...
On the Linux development host, install the BSP distribution and activate the cross-build environment as described in TBD Installing and Activating Cross Development Environment :
Code Block $ tar -jxf linux-cm-imxrt-<bsp>-<release>.tar.bz2 $ cd linux-cm-imxrt-<bsp>-<release> $ . ./ACTIVATE.sh
Change to the
rootfs
project directory:Code Block $ cd projects/rootfs
Update the Linux configuration in order to not include the initial RAM disk into the bootable
uImage
. For this, run makekmenuconfig
in the project directory and uncheck (disable) the Initial RAM filesystem... option:Code Block General setup ---> [ ] Initial RAM filesystem and RAM disk (initramfs/initrd) support
Enable building the tarball with the root file system outside of the bootable uImage. For this, define the special
FS_IMAGES
option as$(SAMPLE).tar.gz
inMakefile
. Open theprojects/rootfs/Makefile
file in a text editor and uncomment the following line:Code Block FS_IMAGES := $(SAMPLE).tar.gz
Build the project:
Code Block $ make ... SAMPLE=rootfs \ ../rfs-builder.py create-rfs-dir \ rootfs.initramfs `pwd`/rootfs-build-tmpdir tar -C rootfs-build-tmpdir -zcf rootfs.tar.gz --owner=0 --group=0 .
Check that the following images required to boot the system with the root file system mounted on SD Card has been created:
rootfs.uImage
- a kernel image without the root file system in it;rootfs.tar.gz
- a tarball containing the root filesystem.
Code Block $ ls -1 rootfs.uImage rootfs.tar.gz rootfs.tar.gz rootfs.uImage $
...