mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-27 11:13:24 +02:00
flash-images: install u-boot for nanopi r2s on aarch64
rockchip has a large bootloader so this also increase the gap between partitiontable and fist partition to 16MB on aarch64 Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
This commit is contained in:
@@ -67,6 +67,7 @@ ifeq "$(BUILD_PLATFORM)" "arm"
|
|||||||
PART_TYPE = c
|
PART_TYPE = c
|
||||||
ifeq "$(BUILD_ARCH)" "aarch64"
|
ifeq "$(BUILD_ARCH)" "aarch64"
|
||||||
BOOTLOADER = grub
|
BOOTLOADER = grub
|
||||||
|
S_OFFSET = 32768
|
||||||
endif
|
endif
|
||||||
else
|
else
|
||||||
BOOTLOADER = grub
|
BOOTLOADER = grub
|
||||||
@@ -260,6 +261,10 @@ ifeq "$(BUILD_ARCH)" "armv6l"
|
|||||||
# Install u-boot for Orangepi Zero/Nanopi DUO into image 8KB
|
# Install u-boot for Orangepi Zero/Nanopi DUO into image 8KB
|
||||||
dd if=/usr/share/u-boot/orangepi_zero/u-boot-sunxi-with-spl.bin of=$(IMG) bs=1K seek=8 conv=notrunc
|
dd if=/usr/share/u-boot/orangepi_zero/u-boot-sunxi-with-spl.bin of=$(IMG) bs=1K seek=8 conv=notrunc
|
||||||
endif
|
endif
|
||||||
|
ifeq "$(BUILD_ARCH)" "aarch64"
|
||||||
|
# Install u-boot for NanoPi R2S into image 8KB
|
||||||
|
dd if=/usr/share/u-boot/nanopi_r2s/u-boot-rockchip.bin of=$(IMG) bs=1K seek=32 conv=notrunc
|
||||||
|
endif
|
||||||
|
|
||||||
# Compress Image
|
# Compress Image
|
||||||
xz $(XZ_OPT) < $(IMG) > $(IMAGE_FILE)
|
xz $(XZ_OPT) < $(IMG) > $(IMAGE_FILE)
|
||||||
|
|||||||
Reference in New Issue
Block a user