mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-10 23:24:38 +00:00
keystone: add support for NAND gpheader image
Add support for NAND gpheader image. TI Keystone2 ROM bootloader expects 8 bytes of trailing zeroes in the nand u-boot image. So add zeros at the end of the nand gph image. Acked-by: Murali Karicheri <m-karicheri2@ti.com> Signed-off-by: Ivan Khoronzhuk <ivan.khoronzhuk@ti.com>
This commit is contained in:
parent
67ac6ffaee
commit
0e7f2dbac6
1 changed files with 6 additions and 0 deletions
6
Makefile
6
Makefile
|
@ -914,6 +914,12 @@ OBJCOPYFLAGS_u-boot-spi.gph = -I binary -O binary --pad-to=$(CONFIG_SPL_PAD_TO)
|
||||||
u-boot-spi.gph: spl/u-boot-spl.gph u-boot.img FORCE
|
u-boot-spi.gph: spl/u-boot-spl.gph u-boot.img FORCE
|
||||||
$(call if_changed,pad_cat)
|
$(call if_changed,pad_cat)
|
||||||
|
|
||||||
|
MKIMAGEFLAGS_u-boot-nand.gph = -A $(ARCH) -T gpimage -C none \
|
||||||
|
-a $(CONFIG_SYS_TEXT_BASE) -e $(CONFIG_SYS_TEXT_BASE) -n U-Boot
|
||||||
|
u-boot-nand.gph: u-boot.bin FORCE
|
||||||
|
$(call if_changed,mkimage)
|
||||||
|
@dd if=/dev/zero bs=8 count=1 2>/dev/null >> $@
|
||||||
|
|
||||||
ifneq ($(CONFIG_SUNXI),)
|
ifneq ($(CONFIG_SUNXI),)
|
||||||
OBJCOPYFLAGS_u-boot-sunxi-with-spl.bin = -I binary -O binary \
|
OBJCOPYFLAGS_u-boot-sunxi-with-spl.bin = -I binary -O binary \
|
||||||
--pad-to=$(CONFIG_SPL_PAD_TO) --gap-fill=0xff
|
--pad-to=$(CONFIG_SPL_PAD_TO) --gap-fill=0xff
|
||||||
|
|
Loading…
Reference in a new issue