Skip to content

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…

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 dependen…

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 …

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…