How to change your kernel space memory in Ubuntu and embedded

While writing a driver for Ubuntu or porting linux to a new embedded board one may need to either limit or increase the RAM (Random Access Memory) used by kernel. This can be achieved by tweaking the kernel command line arguments sent from the second stage bootloader to the kernel.

How to make my C code have multi-level logs

How to make my C code have multi-level logs


Sarah, an embedded engineer in the software IP development team, writes tons of C code daily. All the company employees including her colleagues and boss are the users of her code. She has to make sure that her code is flexible for all the users. For example, her co-workers need all the details at all the levels of the program execution while her boss is only interested in the results. For this Sarah uses multi-level logs in her code.

What are multi-level logs?

Categorizing the logs thus forming a level for each and printing the logs on screen only when that level is required