Skip to content

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…

Scanf a char pointer in Assembly

So I have a task to do, which requires from me to scanf a char* in assembly. I tried this code: It writes down first printf correctly, then it waits for input (so scanf works), but then when I enter anything -> Segmentation fault. I know, that the char* should be somehow initialized, but how can I do it fr…

Detailed documentation for systemd’s sd-bus

I have some project which uses libdbus for IPC. The goal is to use systemd’s sd-bus instead of libdbus. There is documentation for sd-bus (here, here and etc), but that documentation doesn’t cover all aspects of D-Bus specification implementation. I spent a lot looking for at least any detailed ex…