This is an old revision of the document!

Building Petitboot

The Petitboot image is a complete set of minimal Linux system, and its software modules are ported to Buildroot. Therefore, Petitboot image can be built with the same instruction as Buildroot when its build configuration is selected.

The Buildroot source tree can be downloaded with the same branch of ODROID-N2's release branch, aml64_buildroot_master. This page, Buildroot, introduces how the Buildroot source tree can be downloaded and set up the building environment.

odroidn2_spibios_release the build configuration to build Petitboot image in the Buildroot source tree.

$ source buildroot/build/ odroidn2_spibios_release
$ make

Once the building is completed, many files are dropped into the directory output/odroidn2_bios/images, but only two files sdcard.img and spiboot.img will be used to boot and update Petitboot.

$ ls output/odroidn2_bios/images/
Image.gz  boot.ini  boot.vfat             rootfs.cpio     rootfs.cpio.uboot  rootfs.ext4  rootfs.tar.gz  spi-update.img   spiboot.img    u-boot.bin
boot.cmd  boot.scr  meson64_odroidn2.dtb  rootfs.cpio.gz  rootfs.ext2        rootfs.tar   sdcard.img     spi-update.vfat  spiupdate.cmd  uImage