Skip to content

Commit

Permalink
Add support for ODroid HC4
Browse files Browse the repository at this point in the history
  • Loading branch information
DWSR committed Dec 31, 2022
1 parent 325c9bf commit e8b64e8
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Pkgfile
Original file line number Diff line number Diff line change
Expand Up @@ -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(?<version>.*)$ depName=u-boot/u-boot
uboot_version: 2022.07
uboot_sha256: 92b08eb49c24da14c1adbf70a71ae8f37cc53eeb4230e859ad8b6733d13dcf5e
Expand Down
17 changes: 17 additions & 0 deletions u-boot/pkg.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 }}"
Expand All @@ -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 \
Expand Down Expand Up @@ -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
- |
Expand Down

0 comments on commit e8b64e8

Please sign in to comment.