June 2017
Intermediate to advanced
478 pages
13h 14m
English
In the last stage of the build, Buildroot uses a tool named genimage to create an image for the SD card that we can copy directory to the card. We need a configuration file to layout the image in the right way. We will name the file board/melp/nova/genimage.cfg and populate it as shown here:
image boot.vfat { vfat { files = { "MLO", "u-boot.img", "zImage", "uEnv.txt", "nova.dtb", } } size = 16M}image sdcard.img { hdimage { } partition u-boot { partition-type = 0xC bootable = "true" image = "boot.vfat" } partition rootfs { partition-type = 0x83 image = "rootfs.ext4" size = 512M }}
This will create a file named sdcard.img, which contains two partitions named u-boot and rootfs. The first contains the boot files listed in boot.vfat, and ...
Read now
Unlock full access