Skip to content
Snippets Groups Projects
Commit b0b0d22f authored by Tuomas Tynkkynen's avatar Tuomas Tynkkynen Committed by Jagan Teki
Browse files

ARM: sunxi: Build u-boot-sunxi-with-spl.bin on ARM64 as well


In README.sunxi64 we tell the user how to optionally create
u-boot-sunxi-with-spl.bin by manually running cat. Instead, have the
build system create the file automatically just like it does for 32-bit
sunxi boards.

Signed-off-by: default avatarTuomas Tynkkynen <tuomas@tuxera.com>
Reviewed-by: default avatarAndre Przywara <andre.przywara@arm.com>
Acked-by: default avatarMaxime Ripard <maxime.ripard@bootlin.com>
Reviewed-by: default avatarJagan Teki <jagan@openedev.com>
parent 155b1169
No related branches found
No related tags found
No related merge requests found
...@@ -1191,8 +1191,13 @@ u-boot-x86-16bit.bin: u-boot FORCE ...@@ -1191,8 +1191,13 @@ u-boot-x86-16bit.bin: u-boot FORCE
endif endif
ifneq ($(CONFIG_ARCH_SUNXI),) ifneq ($(CONFIG_ARCH_SUNXI),)
ifeq ($(CONFIG_ARM64),)
u-boot-sunxi-with-spl.bin: spl/sunxi-spl.bin u-boot.img u-boot.dtb FORCE u-boot-sunxi-with-spl.bin: spl/sunxi-spl.bin u-boot.img u-boot.dtb FORCE
$(call if_changed,binman) $(call if_changed,binman)
else
u-boot-sunxi-with-spl.bin: spl/sunxi-spl.bin u-boot.itb FORCE
$(call if_changed,cat)
endif
endif endif
ifneq ($(CONFIG_TEGRA),) ifneq ($(CONFIG_TEGRA),)
......
...@@ -95,9 +95,8 @@ Transfer the SPL and the U-Boot FIT image directly to an uSD card: ...@@ -95,9 +95,8 @@ Transfer the SPL and the U-Boot FIT image directly to an uSD card:
(replace /dev/sdx with you SD card device file name, which could be (replace /dev/sdx with you SD card device file name, which could be
/dev/mmcblk[x] as well). /dev/mmcblk[x] as well).
Alternatively you can concatenate the SPL and the U-Boot FIT image into a Alternatively you can use the SPL and the U-Boot FIT image combined into a
single file and transfer that instead: single file and transfer that instead:
$ cat spl/sunxi-spl.bin u-boot.itb > u-boot-sunxi-with-spl.bin
# dd if=u-boot-sunxi-with-spl.bin of=/dev/sdx bs=8k seek=1 # dd if=u-boot-sunxi-with-spl.bin of=/dev/sdx bs=8k seek=1
You can partition the microSD card, but leave the first MB unallocated (most You can partition the microSD card, but leave the first MB unallocated (most
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment