Dateien hochladen nach „buildroot-external/package/amlogic-boot“

This commit is contained in:
2023-03-29 10:40:48 +02:00
parent a44dcd98a1
commit b698176b1b
2 changed files with 37 additions and 22 deletions

View File

@@ -14,17 +14,17 @@ config BR2_PACKAGE_AMLOGIC_BOOT_S9XX
help
For the S9XX
config BR2_PACKAGE_HARDKERNEL_BOOT_ODROID_C4
config BR2_PACKAGE_AMLOGIC_BOOT_ODROID_C4
bool "Odroid-C4"
help
For the Odroid-C4
config BR2_PACKAGE_HARDKERNEL_BOOT_ODROID_XU4
config BR2_PACKAGE_AMLOGIC_BOOT_ODROID_XU4
bool "Odroid-XU4"
help
For the Odroid-XU4
config BR2_PACKAGE_HARDKERNEL_BOOT_ODROID_N2
config BR2_PACKAGE_AMLOGIC_BOOT_ODROID_N2
bool "Odroid-N2"
help
For the Odroid-N2

View File

@@ -1,6 +1,6 @@
################################################################################
#
# hardkernel secure boot loader
# amlogic secure boot loader
#
################################################################################
@@ -11,7 +11,7 @@ AMLOGIC_BOOT_LICENSE_FILES = Licenses/gpl-2.0.txt
AMLOGIC_BOOT_INSTALL_IMAGES = YES
AMLOGIC_BOOT_DEPENDENCIES = uboot
ifeq ($(BR2_PACKAGE_AMLOGIC_BOOT_ODROID_C2),y)
ifeq ($(BR2_PACKAGE_HARDKERNEL_BOOT_ODROID_C2),y)
AMLOGIC_BOOT_VERSION = 205c7b3259559283161703a1a200b787c2c445a5
AMLOGIC_BOOT_BINS += sd_fuse/bl1.bin.hardkernel
@@ -38,17 +38,32 @@ AMLOGIC_BOOT_VERSION = 2a4e31e3fde9bced8a150d338aa397a0362df191
AMLOGIC_BOOT_BINS += u-boot.sm1
define AMLOGIC_BOOT_BUILD_CMDS
curl -L -o $(@D)/fip/blx_fix.sh https://raw.githubusercontent.com/home-assistant/operating-system-blobs/75fa51f44221da614a717673a27bec4fa01ccd6c/hardkernel/blx_fix_g12a.sh
curl -L -o $(@D)/fip/acs.bin https://raw.githubusercontent.com/home-assistant/operating-system-blobs/75fa51f44221da614a717673a27bec4fa01ccd6c/hardkernel/odroid-c4/acs.bin
curl -L -o $(@D)/fip/bl301.bin https://raw.githubusercontent.com/home-assistant/operating-system-blobs/75fa51f44221da614a717673a27bec4fa01ccd6c/hardkernel/odroid-c4/bl301.bin
curl -L -o $(@D)/fip/blx_fix.sh https://github.com/unifreq/amlogic-boot-fip/raw/e6974ee48d5e9eb12cc23a85deee95f21163d4ee/hk1box/blx_fix.sh
curl -L -o $(@D)/fip/acs.bin https://github.com/unifreq/amlogic-boot-fip/raw/e6974ee48d5e9eb12cc23a85deee95f21163d4ee/hk1box/acs.bin
curl -L -o $(@D)/fip/bl301.bin https://github.com/unifreq/amlogic-boot-fip/raw/e6974ee48d5e9eb12cc23a85deee95f21163d4ee/hk1box/bl301.bin
curl --create-dirs -L -o $(@D)/fip/hk1box/bl30.bin https://github.com/unifreq/amlogic-boot-fip/raw/e6974ee48d5e9eb12cc23a85deee95f21163d4ee/hk1box/bl30.bin
curl -L -o $(@D)/fip/hk1box/bl2.bin https://github.com/unifreq/amlogic-boot-fip/raw/e6974ee48d5e9eb12cc23a85deee95f21163d4ee/hk1box/bl2.bin
curl -L -o $(@D)/fip/hk1box/bl31.img https://github.com/unifreq/amlogic-boot-fip/raw/e6974ee48d5e9eb12cc23a85deee95f21163d4ee/hk1box/bl31.img
curl -L -o $(@D)/fip/hk1box/ddr4_1d.fw https://github.com/unifreq/amlogic-boot-fip/raw/e6974ee48d5e9eb12cc23a85deee95f21163d4ee/hk1box/ddr4_1d.fw --create-dirs
curl -L -o $(@D)/fip/hk1box/ddr4_2d.fw https://github.com/unifreq/amlogic-boot-fip/raw/e6974ee48d5e9eb12cc23a85deee95f21163d4ee/hk1box/ddr4_2d.fw
curl -L -o $(@D)/fip/hk1box/ddr3_1d.fw https://github.com/unifreq/amlogic-boot-fip/raw/e6974ee48d5e9eb12cc23a85deee95f21163d4ee/hk1box/ddr3_1d.fw
curl -L -o $(@D)/fip/hk1box/piei.fw https://github.com/unifreq/amlogic-boot-fip/raw/e6974ee48d5e9eb12cc23a85deee95f21163d4ee/hk1box/piei.fw
curl -L -o $(@D)/fip/hk1box/lpddr4_1d.fw https://github.com/unifreq/amlogic-boot-fip/raw/e6974ee48d5e9eb12cc23a85deee95f21163d4ee/hk1box/lpddr4_1d.fw
curl -L -o $(@D)/fip/hk1box/lpddr4_2d.fw https://github.com/unifreq/amlogic-boot-fip/raw/e6974ee48d5e9eb12cc23a85deee95f21163d4ee/hk1box/lpddr4_2d.fw
curl -L -o $(@D)/fip/hk1box/diag_lpddr4.fw https://github.com/unifreq/amlogic-boot-fip/raw/e6974ee48d5e9eb12cc23a85deee95f21163d4ee/hk1box/diag_lpddr4.fw
curl -L -o $(@D)/fip/hk1box/aml_ddr.fw https://github.com/unifreq/amlogic-boot-fip/raw/e6974ee48d5e9eb12cc23a85deee95f21163d4ee/hk1box/aml_ddr.fw
curl -L -o $(@D)/fip/hk1box/lpddr3_1d.fw https://github.com/unifreq/amlogic-boot-fip/raw/e6974ee48d5e9eb12cc23a85deee95f21163d4ee/hk1box/lpddr3_1d.fw
bash $(@D)/fip/blx_fix.sh \
$(@D)/fip/g12a/bl30.bin $(@D)/fip/zero_tmp $(@D)/fip/bl30_zero.bin \
$(@D)/fip/hk1box/bl30.bin $(@D)/fip/zero_tmp $(@D)/fip/bl30_zero.bin \
$(@D)/fip/bl301.bin $(@D)/fip/bl301_zero.bin $(@D)/fip/bl30_new.bin \
bl30
bash $(@D)/fip/blx_fix.sh \
$(@D)/fip/g12a/bl2.bin $(@D)/fip/zero_tmp $(@D)/fip/bl2_zero.bin \
$(@D)/fip/hk1box/bl2.bin $(@D)/fip/zero_tmp $(@D)/fip/bl2_zero.bin \
$(@D)/fip/acs.bin $(@D)/fip/bl21_zero.bin $(@D)/fip/bl2_new.bin \
bl2
@@ -58,7 +73,7 @@ define AMLOGIC_BOOT_BUILD_CMDS
$(@D)/fip/g12a/aml_encrypt_g12a --bl3sig --input $(@D)/fip/bl30_new.bin.g12a.enc \
--output $(@D)/fip/bl30_new.bin.enc \
--level v3 --type bl30
$(@D)/fip/g12a/aml_encrypt_g12a --bl3sig --input $(@D)/fip/g12a/bl31.img \
$(@D)/fip/g12a/aml_encrypt_g12a --bl3sig --input $(@D)/fip/hk1box/bl31.img \
--output $(@D)/fip/bl31.img.enc \
--level v3 --type bl31
$(@D)/fip/g12a/aml_encrypt_g12a --bl3sig --input $(BINARIES_DIR)/u-boot.bin \
@@ -72,21 +87,21 @@ define AMLOGIC_BOOT_BUILD_CMDS
--bl30 $(@D)/fip/bl30_new.bin.enc \
--bl31 $(@D)/fip/bl31.img.enc \
--bl33 $(@D)/fip/bl33.bin.enc \
--ddrfw1 $(@D)/fip/g12a/ddr4_1d.fw \
--ddrfw2 $(@D)/fip/g12a/ddr4_2d.fw \
--ddrfw3 $(@D)fip/g12a/ddr3_1d.fw \
--ddrfw4 $(@D)/fip/g12a/piei.fw \
--ddrfw5 $(@D)/fip/g12a/lpddr4_1d.fw \
--ddrfw6 $(@D)/fip/g12a/lpddr4_2d.fw \
--ddrfw7 $(@D)/fip/g12a/diag_lpddr4.fw \
--ddrfw8 $(@D)/fip/g12a/aml_ddr.fw \
--ddrfw9 $(@D)/fip/g12a/lpddr3_1d.fw \
--ddrfw1 $(@D)/fip/hk1box/ddr4_1d.fw \
--ddrfw2 $(@D)/fip/hk1box/ddr4_2d.fw \
--ddrfw3 $(@D)fip/hk1box/ddr3_1d.fw \
--ddrfw4 $(@D)/fip/hk1box/piei.fw \
--ddrfw5 $(@D)/fip/hk1box/lpddr4_1d.fw \
--ddrfw6 $(@D)/fip/hk1box/lpddr4_2d.fw \
--ddrfw7 $(@D)/fip/hk1box/diag_lpddr4.fw \
--ddrfw8 $(@D)/fip/hk1box/aml_ddr.fw \
--ddrfw9 $(@D)/fip/hk1box/lpddr3_1d.fw \
--level v3
cp $(@D)/fip/u-boot.bin $(@D)/u-boot.sm1
endef
else ifeq ($(BR2_PACKAGE_AMLOGIC_BOOT_ODROID_XU4),y)
else ifeq ($(BR2_PACKAGE_HARDKERNEL_BOOT_ODROID_XU4),y)
AMLOGIC_BOOT_VERSION = 88af53fbcef8386cb4d5f04c19f4b2bcb69e90ca
AMLOGIC_BOOT_BINS += sd_fuse/bl1.bin.hardkernel
@@ -96,7 +111,7 @@ AMLOGIC_BOOT_BINS += sd_fuse/tzsw.bin.hardkernel
define AMLOGIC_BOOT_BUILD_CMDS
endef
else ifeq ($(BR2_PACKAGE_AMLOGIC_BOOT_ODROID_N2),y)
else ifeq ($(BR2_PACKAGE_HARDKERNEL_BOOT_ODROID_N2),y)
AMLOGIC_BOOT_VERSION = ca5bdd0f1c291d1ec135cd134e01aa2619203d4c
AMLOGIC_BOOT_BINS += u-boot.g12b