diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d1ea53502..36124fe57 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -123,6 +123,9 @@ jobs: # Hisilicon [HI3516CV6XX] - hi3516cv6xx_ultimate + # Hisilicon [HI3519DV500] + - hi3519dv500_ultimate + # Hisilicon [HI3516EV200] - hi3516dv200_lite - hi3516ev200_lite diff --git a/br-ext-chip-hisilicon/board/hi3519dv500/fit-image.its b/br-ext-chip-hisilicon/board/hi3519dv500/fit-image.its index ec45d48cb..79057f130 100644 --- a/br-ext-chip-hisilicon/board/hi3519dv500/fit-image.its +++ b/br-ext-chip-hisilicon/board/hi3519dv500/fit-image.its @@ -21,11 +21,11 @@ linux_kernel { description = "Linux"; - data = /incbin/("Image"); + data = /incbin/("Image.gz"); type = "kernel"; arch = "arm64"; os = "Linux"; - compression = "none"; + compression = "gzip"; load = <0x40080000>; entry = <0x40080000>; }; diff --git a/br-ext-chip-hisilicon/board/hi3519dv500/post-image.sh b/br-ext-chip-hisilicon/board/hi3519dv500/post-image.sh index 7b126b58b..5e2864afd 100755 --- a/br-ext-chip-hisilicon/board/hi3519dv500/post-image.sh +++ b/br-ext-chip-hisilicon/board/hi3519dv500/post-image.sh @@ -8,6 +8,9 @@ ERASEBLOCK_SIZE=$((64 * 1024)) cp ${BINARIES_DIR}/hi35*.dtb ${BINARIES_DIR}/fdt.dtb +# Compress the arm64 Image so the FIT + squashfs fit the 16 MiB NOR. U-Boot +# decompresses it at boot (CONFIG_FIT + CONFIG_GZIP). +gzip -9 -c ${BINARIES_DIR}/Image > ${BINARIES_DIR}/Image.gz cp ${BOARD_DIR}/${ITS_SOURCE} ${BINARIES_DIR}/ mkimage -f ${BINARIES_DIR}/${ITS_SOURCE} ${BINARIES_DIR}/fitImage