Image vs zImage vs uImage

What is the difference between them? Image: the generic Linux kernel binary image file. zImage: a compressed version of the Linux kernel image that is self-extracting. uImage: an image file that has a U-Boot wrapper (installed by the mkimage utility) that includes the OS type and loader information. A very common practice (e.g. the typical … Read more

How to read a binary data over serial terminal in C program?

system(“stty erase ^H); system(“stty -F /dev/ttyS0 -icrnl -ixon -ixoff -opost -isig -icanon -echo”); // enter into non-canonical (raw) mode This would be insufficient code (and poor coding practice per POSIX conventions) to put the serial port into raw or non-canonical mode. The easiest method in C and Linux is to use the function cfmakeraw() which … Read more

How to know linux scheduler time slice?

The quantum allocated for a particular process may vary: You can tune “slice” by adjusting sched_latency_ns and sched_min_granularity_ns, but note that “slice” is not a fixed quantum. Also note that CFS preemption decisions are based upon instantaneous state. A task may have received a full (variable) “slice” of CPU time, but preemption will be triggered … Read more

Which yocto is best for me

Morty, Jethro, Fido etc. are not different “yoctos”, but different releases given the timeline of the project. Generally, pick the most current that is available, as it is the most actively maintained one. (At the current moment in time, Rocko is the stable release)