Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The kernel configuration of this project is minimalistic, for instance, the TCP/IP stack is disabled. At the application level, this is really a single-process configuration. Specifically, instead of the standard Linux init, the project runs a custom application called hello. The following are relevant snippets from the hello.intramfs specification file that illustrate how the custom application is installed on the target instead of init.

Code Block
file /bin/hello ${INSTALL_ROOT}/projects/${SAMPLE}/hello/hello 755 0 0

...


slink /init /bin/hello 777 0 0

The application itself is a simple endless-loop Hello, world C program, except that before entering the loop it prints the content of /proc/meminfo to stdout (which is the Linux serial console in this specific configuration). The meminfo printout gives information on how much memory is available when the application is running.

The application source can be found in projects/hello/hello/hello.c. For the sake of completeness, here is the full source of that program:

...

The bootable Linux image ready for installation to non-volatile storage (SD Card) of the i.MX RT10XX (hello.uImage) is ~3.5M 3 MBytes in size. This is a multi-file Image: ~3.4 2 MBytes is the kernel Image itself, and ~11.5 KBytes is the Device Tree Blob file.

...