4f9f3a0e96
For boards like imx7d-pico, u-boot.img changes to u-boot-dtb.img in
U-Boot v2019.07. Therefore, we need to pick u-boot.img or u-boot-dtb.img
depending on the board configuration.
Just like was done in commit 52344e556f
for the generic genimage
template, replace the U-Boot file name with UBOOTBIN, which is set
according to the BR2_TARGET_UBOOT_FORMAT_* option. We also need to set
the correct value for this variable for the u-boot.img and
u-boot-dtb.img cases.
While we're at it, rename the partition from 'u-boot-img' to 'u-boot',
to stay consistent with the generic genimage template.
Signed-off-by: Joris Offouga <offougajoris@gmail.com>
[Arnout: correct u-boot.img condition, rework commit log]
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
47 lines
855 B
Plaintext
47 lines
855 B
Plaintext
# Minimal SD card image for the Freescale boards Template for SPL Boot
|
|
#
|
|
# We mimic the .sdcard Freescale's image format:
|
|
# * the SD card must have 1 kB free space at the beginning,
|
|
# * U-Boot is dumped as is,
|
|
# * a FAT partition at offset 8MB is containing zImage/uImage and DTB files
|
|
# * a single root filesystem partition is required (ext2, ext3 or ext4)
|
|
#
|
|
|
|
image boot.vfat {
|
|
vfat {
|
|
files = {
|
|
%FILES%
|
|
}
|
|
}
|
|
size = 16M
|
|
}
|
|
|
|
image sdcard.img {
|
|
hdimage {
|
|
}
|
|
|
|
partition spl {
|
|
in-partition-table = "no"
|
|
image = "SPL"
|
|
offset = 1024
|
|
}
|
|
|
|
partition u-boot {
|
|
in-partition-table = "no"
|
|
image = "%UBOOTBIN%"
|
|
offset = 69K
|
|
}
|
|
|
|
partition boot {
|
|
partition-type = 0xC
|
|
bootable = "true"
|
|
image = "boot.vfat"
|
|
offset = 8M
|
|
}
|
|
|
|
partition rootfs {
|
|
partition-type = 0x83
|
|
image = "rootfs.ext2"
|
|
}
|
|
}
|