Skip to content
Advertisement

Tag: embedded-linux

Qt application autorun on linux embedded – “xcb” error

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

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

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

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

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

Advertisement