This application note explains how to build a bootable Linux image (rootfs.uImage
). A bootable Linux image can be booted to the target via TFTP (refer to TBD Loading Linux images via Ethernet and TFTP application note).
Linux images are built on the cross-development host. Make sure that you activate the cross development environment as described in Installing and Activating Cross Development Environment .
In the Emcraft software distribution, Linux images are built from "project" directories. A project defines a concrete Linux configuration ready for installation to the target. Each project is defined by the following files:
<project>
.kernel.${MCU}_defconfig
- kernel configuration for the project;<project>
.dts.${MCU}
- kernel configuration for the project;<project>
.busybox
-busybox
configuration for the project;<project>
.initrams
- spec file for the project root filesystem (initramfs
).
...
Activate the cross development environment:
Code Block -bash-3.2$$ . ./ACTIVATE.sh
Change to the project directory, for instance:
Code Block -bash-3.2$$ cd projects/rootfs
Run
make
:Code Block -bash-3.2$$ make
The make will create the project rootfs.uImage
ready for load to the target.