Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
odroid-n2:software:building_petitboot [2019/02/13 00:20]
tobetter [Build configuration for Petitboot]
odroid-n2:software:building_petitboot [2019/06/12 11:54]
luke.go [Build configuration for Petitboot]
Line 1: Line 1:
 +{{indexmenu_n>​6}}
 ====== Building Petitboot ====== ====== Building Petitboot ======
 ===== Background ===== ===== Background =====
 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 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.
 ===== Buildroot ===== ===== Buildroot =====
-The Buildroot source tree can be downloaded with the same branch of ODROID-N2'​s release branch, ''​aml64_buildroot_master''​. This page, [[https://​wiki.odroid.com/​internal/​odroid-n2/​software/​building_buildroot|Buildroot]],​ introduces how the Buildroot source tree can be downloaded and set up the building environment.+The Buildroot source tree can be downloaded with the same branch of ODROID-N2'​s release branch, ''​aml64_buildroot_master''​. This page, [[odroid-n2/​software/​building_buildroot|Buildroot]],​ introduces how the Buildroot source tree can be downloaded and set up the building environment.
 ===== Build configuration for Petitboot ===== ===== Build configuration for Petitboot =====
 ''​odroidn2_spibios_release''​ the build configuration to build Petitboot image in the Buildroot source tree. ''​odroidn2_spibios_release''​ the build configuration to build Petitboot image in the Buildroot source tree.
 <code bash host> <code bash host>
-$ source buildroot/​build/​setenv.sh ​odroidn2_spibios_release+$ source buildroot/​build/​setenv.sh ​odroidn2_bios_release
 $ make $ make
 </​code>​ </​code>​
Line 14: Line 15:
 <code bash host> <code bash host>
 $ ls output/​odroidn2_bios/​images/​ $ 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 +Image.gz ​    ​boot.ini ​      ​boot.vfat ​              ​rootfs.cpio ​    ​rootfs.cpio.uboot 
-boot.cmd ​ boot.scr ​ meson64_odroidn2.dtb ​ rootfs.cpio.gz ​ rootfs.ext2 ​       rootfs.tar ​  ​sdcard.img ​    ​spi-update.vfat ​ spiupdate.cmd ​ uImage+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
 </​code>​ </​code>​
 +==== sdcard.img vs spiboot.img ====
 +  * The image ''​sdcard.img''​ is the bootable SD card image on ODROID-N2, this image is aimed to fully update the SPI flash memory on the board. As soon as the bootloader from SD card is loaded, ODROID-N2 will start to update the SPI flash memory and reboot once updating is completed.
 +  * Another file ''​spiboot.img''​ is the file which is to be flashed into the SPI flash memory. Its size is always 8MiB which is the same amount of the SPI flash memory on ODROID-N2.
 +
 +If SPI flash memory is empty or corrupted, even you are not sure, the flash memory can be updated with ''​sdcard.img''​. In this case, boot selector switch must be placed to ''​MMC''​ in order to select the first boot media as SD card.
 +
 +IF SPI flash memory is already running and needs to be updated with a newer version, simple copy ''​spiboot.img''​ to the file system of the first partition on SD card. Then Petitboot in SPI flash memory will load and update it by itself.
 +
 +{{:​odroid-n2:​software:​petitboot_1_mainmenu.png?​800|}}