From e8b64e866a103ca6a35de9648f74adbe587653f9 Mon Sep 17 00:00:00 2001 From: Brandon McNama Date: Fri, 30 Dec 2022 22:53:05 -0500 Subject: [PATCH] Add support for ODroid HC4 --- Pkgfile | 5 +++++ u-boot/pkg.yaml | 17 +++++++++++++++++ 2 files changed, 22 insertions(+) diff --git a/Pkgfile b/Pkgfile index fa95c3f52..8ff37a60a 100644 --- a/Pkgfile +++ b/Pkgfile @@ -163,6 +163,11 @@ vars: arm_trusted_firmware_sha256: 60fad60eeb6840097f8e64f16093c06ddb2ef269c7a22affed02beaa6cefe466 arm_trusted_firmware_sha512: 958cf8f9e258638e59d0fbd8b053fce7d8a9ea2fc922686c9d20ea16f79f55219ac18a12ab240c528ee98e49c2e0eef4c963fdb255cc14b92437a5b3cffc8640 + # renovate: datasource=git-refs currentValueTemplate=master depName=git://github.com/LibreELEC/amlogic-boot-fip.git + amlogic_boot_fip_version: 36f258b88ca019be511d315e58dfbb3a964d5b78 + amlogic_boot_fip_sha256: 655e5b2a1451e7e404783dd481e6655e198adef4f1471f0ecc1fb54a3ec44896 + amlogic_boot_fip_sha512: 947dcefdc0487e918a16712ceeb353a0e6aaded1f7bef4d39ef19d0d058f9dd3a0ed6afb1f0f7061e3bedb7401332f395b108be003374227416c62e2680d007b + # renovate: datasource=github-tags extractVersion=^v(?.*)$ depName=u-boot/u-boot uboot_version: 2022.07 uboot_sha256: 92b08eb49c24da14c1adbf70a71ae8f37cc53eeb4230e859ad8b6733d13dcf5e diff --git a/u-boot/pkg.yaml b/u-boot/pkg.yaml index 9820da08c..3ce994c7b 100644 --- a/u-boot/pkg.yaml +++ b/u-boot/pkg.yaml @@ -10,6 +10,8 @@ # - https://u-boot.readthedocs.io/en/latest/board/rockchip/rockchip.html # Broadcom/RaspberryPi # - https://github.com/u-boot/u-boot/blob/master/doc/board/broadcom/raspberrypi.rst +# ODroid HC4 +# - https://u-boot.readthedocs.io/en/latest/board/amlogic/odroid-c4.html name: u-boot variant: scratch shell: /toolchain/bin/bash @@ -23,6 +25,10 @@ steps: destination: arm-trusted-firmware.tar.gz sha256: "{{ .arm_trusted_firmware_sha256 }}" sha512: "{{ .arm_trusted_firmware_sha512 }}" + - url: https://github.com/LibreELEC/amlogic-boot-fip/archive/{{ .amlogic_boot_fip_version }}.tar.gz + destination: amlogic-boot-fip.tar.gz + sha256: "{{ .amlogic_boot_fip_sha256 }}" + sha512: "{{ .amlogic_boot_fip_sha512 }}" - url: https://ftp.denx.de/pub/u-boot/u-boot-{{ .uboot_version }}.tar.bz2 destination: u-boot.tar.bz2 sha256: "{{ .uboot_sha256 }}" @@ -40,6 +46,8 @@ steps: ROCK_PI_4C_RK3399_U_BOOT: rock-pi-4c-rk3399_u-boot JETSON_NANO_U_BOOT: jetson-nano_u-boot NANOPI_R4S_U_BOOT: nanopi-r4s_u-boot + ODROID_HC4_AMLOGIC_BOOT_FIP: odroid-hc4_amlogic-boot-fip + ODROID_HC4_U_BOOT: odroid-hc4_u-boot prepare: - | mkdir -p /usr/bin \ @@ -128,6 +136,15 @@ steps: cd ${NANOPI_R4S_U_BOOT} make nanopi-r4s-rk3399_defconfig sed -i "s/CONFIG_TOOLS_LIBCRYPTO=y/# CONFIG_TOOLS_LIBCRYPTO is not set/" .config + # odroid-hc4 + - | + mkdir ${ODROID_HC4_U_BOOT} + tar -xjf u-boot.tar.bz2 --strip-components=1 -C ${ODROID_HC4_U_BOOT} + make -C ${ODROID_HC4_U_BOOT} odroid-hc4_defconfig + mkdir ${ODROID_HC4_AMLOGIC_BOOT_FIP} + tar -xf amlogic-boot-fip.tar.gz --strip-components=1 -C ${ODROID_HC4_AMLOGIC_BOOT_FIP} + cd ${DROID_HC4_AMLOGIC_BOOT_FIP} + ./build-fip.sh odroid-hc4 build: # sun50i_a64 - |