I develop software in Qt for a microcomputer based on Cortex imx6. On this platform, I have installed Linux prepared for this uP and Qt. uname -a Linux colibri-imx6 4.1.35-v2.7b1+gc1177831f5a1 #11 SMP Tue Jun 20 13:05:01 CEST 2017 armv7l armv7l armv7l GNU/Linux I want to run my app during system startup and I have a problem with this. I wrote
Tag: embedded-linux
Reverse engineering a zImage
So I have a custom kernel for an embedded arm device which I had worked on some time ago. I’ve revisited the project but since have reinstalled Ubuntu on my development machine. I can’t compile a new zImage correctly as before. I have found an old SD which card which has the correctly compiled and working zImage. I suspect I’m
cannot get data from IR sensor on embedded linux using official driver
I run a linux image (made with buildroot and the 4.11.2 kernel provided by the manufacturer) on a nanopi NEO air board with an IR sensor plugged directly on the IR pin. I want to use the sensor to get data from an IR remote control. I followed the procedure found here, with the same driver, and got the same
How to use CHECK_LIBRARY_EXISTS in cmake?
Here’s what I have in my CMakeLists.txt: Result: The symbol exists in that library: Why cmake doesn’t find that? Answer It was dependencies. CHECK_LIBRARY_EXISTS is much more complex than nm -D. CMake actually creates a C project that references that library, and tries to link it. I missed some dependencies used by that library (libdrm-dev, libxcb-dri2-0, libx11-xcb-dev), so the linker
Linux console output on multiple UARTs
My embedded board has 2 UARTs. I want to have console output on both the UARTs. In kernel/Documentation/console/console.txt it’s mentioned that: you can only define one console per device type (serial, video). Does this mean I can use only one UART as console? Or, is it possible to redirect the console output to both of these UARTs? Answer It’s possible
How to know when dd has finished
I have a issue with the dd comand. I use it in a while like this: And it works like charm, the only problem is that once the file is read completely, it doesnt stop the while, it stays there stalled. How could I make the while to stop once the dd read all the file? BTW: Note my machine
Be confused with msg_name field in msghdr structure
In user space, I encapsulated a L3 packet using sock_raw (including IP header) and send to kernel space using sock_sendmsg() using msghdr structure I cannot understand clearly the roles of msg_name. I already specified the source IP and dest IP in L3 header. Why do I need msg_name? Answer The msg_name and msg_namelen fields of struct msghdr have the same
embedded linux/QNX – how to completely zero out flash
I have a bug related to persistent files. To determine the exact sequence of steps to reproduce the bug, I need to start out the flash disk at a known state. QUESTION Using linux/QNX commands, how do I completely zero out the entire flash disk while being Telnet’d into the system? Answer On QNX, you can try the flashctl tool
tiny6410 friendlyarm connect to capacitive lcd but touch not worked in linux
I connect my Capacitive lcd to tiny6410 and install linux on it. I also change the friendlyarm.ini to this: and play with ctp=1 (not work),ctp=2 (not work),ctp=3 (not work) my lcd is S70(when linux is install it writes on screen lcd type is S70 (auto detect)) this device has resistive lcd at first but it was broken then I changed
What is use of struct i2c_device_id if we are already using struct of_device_id?
I was trying to understand a codec driver code on Linux kernel 4.4. The codec is connected to sound card using i2c bus and the codec driver code is written as I2C client. Client’s struct i2c_driver contains both i2c_device_id information and of_device_id information. Now as per my understanding client’s probe function will be called when compatible string of struct of_device_id