mirror of
https://xff.cz/git/u-boot/
synced 2025-09-30 06:51:28 +02:00
scripts: sunxi: Build an raw SPL image
Introduce a new sunxi-spl-with-ecc.bin image with already the right header, ECC, randomizer and padding for the BROM to be able to read it. It needs to be flashed using a raw access to the NAND so that the controller doesn't change a thing to it, since we already have all the right parameters. Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com> Acked-by: Boris Brezillon <boris.brezillon@free-electrons.com> Reviewed-by: Heiko Schocher <hs@denx.de>
This commit is contained in:
committed by
Jagan Teki
parent
ff93c28265
commit
d2fdcc76e8
@@ -179,6 +179,10 @@ endif
|
||||
|
||||
ifdef CONFIG_ARCH_SUNXI
|
||||
ALL-y += $(obj)/sunxi-spl.bin
|
||||
|
||||
ifdef CONFIG_NAND_SUNXI
|
||||
ALL-y += $(obj)/sunxi-spl-with-ecc.bin
|
||||
endif
|
||||
endif
|
||||
|
||||
ifeq ($(CONFIG_SYS_SOC),"at91")
|
||||
@@ -300,6 +304,17 @@ cmd_mksunxiboot = $(objtree)/tools/mksunxiboot $< $@
|
||||
$(obj)/sunxi-spl.bin: $(obj)/$(SPL_BIN).bin FORCE
|
||||
$(call if_changed,mksunxiboot)
|
||||
|
||||
quiet_cmd_sunxi_spl_image_builder = SUNXI_SPL_IMAGE_BUILDER $@
|
||||
cmd_sunxi_spl_image_builder = $(objtree)/tools/sunxi-spl-image-builder \
|
||||
-c $(CONFIG_NAND_SUNXI_SPL_ECC_STRENGTH)/$(CONFIG_NAND_SUNXI_SPL_ECC_SIZE) \
|
||||
-p $(CONFIG_SYS_NAND_PAGE_SIZE) \
|
||||
-o $(CONFIG_SYS_NAND_OOBSIZE) \
|
||||
-u $(CONFIG_NAND_SUNXI_SPL_USABLE_PAGE_SIZE) \
|
||||
-e $(CONFIG_SYS_NAND_BLOCK_SIZE) \
|
||||
-s -b $< $@
|
||||
$(obj)/sunxi-spl-with-ecc.bin: $(obj)/sunxi-spl.bin
|
||||
$(call if_changed,sunxi_spl_image_builder)
|
||||
|
||||
# Rule to link u-boot-spl
|
||||
# May be overridden by arch/$(ARCH)/config.mk
|
||||
quiet_cmd_u-boot-spl ?= LD $@
|
||||
|
Reference in New Issue
Block a user