Initial support Odroid N2 / Linux 5.4 (#523)
* Initial version Odroid N2 Signed-off-by: Pascal Vizeli <pvizeli@syshack.ch> * fix some issue * optimize * cleanup kernel config * Fix HDMI output * Migrate to upstream u-boot * Use own HA image * Add kernel for odroid xu4 * Add N2 to release pipeline * Use uboot 2020.01 / fix version hardkernel * Fix image
This commit is contained in:
@@ -11,10 +11,10 @@ BLUETOOTH_RTL8723_SITE = $(BR2_EXTERNAL_HASSOS_PATH)/package/bluetooth-rtl8723
|
||||
BLUETOOTH_RTL8723_SITE_METHOD = local
|
||||
|
||||
define BLUETOOTH_RTL8723_BUILD_CMDS
|
||||
curl -L -o $(@D)/rtk_hciattach https://raw.githubusercontent.com/armbian/build/dee62df8bb2fe8611fd41ddf02063fa15533298c/packages/bsp/rockchip/rtk_hciattach
|
||||
curl -L -o $(@D)/rtk_hciattach https://raw.githubusercontent.com/home-assistant/hassos-blobs/e0c8b7aebb626694cf5c017a9e03068aee2bc604/rtl_bt/rtk_hciattach
|
||||
|
||||
curl -L -o $(@D)/rtl8723b_config https://raw.githubusercontent.com/armbian/firmware/4723bbb3d1ef70b5fbe7d2599c47d078ab125c47/rtl_bt/rtl8723b_config.bin
|
||||
curl -L -o $(@D)/rtl8723b_fw https://raw.githubusercontent.com/armbian/firmware/4723bbb3d1ef70b5fbe7d2599c47d078ab125c47/rtl_bt/rtl8723b_fw.bin
|
||||
curl -L -o $(@D)/rtl8723b_config https://raw.githubusercontent.com/home-assistant/hassos-blobs/e0c8b7aebb626694cf5c017a9e03068aee2bc604/rtl_bt/rtl8723b_config.bin
|
||||
curl -L -o $(@D)/rtl8723b_fw https://raw.githubusercontent.com/home-assistant/hassos-blobs/e0c8b7aebb626694cf5c017a9e03068aee2bc604/rtl_bt/rtl8723b_fw.bin
|
||||
endef
|
||||
|
||||
define BLUETOOTH_RTL8723_INSTALL_TARGET_CMDS
|
||||
|
||||
@@ -19,6 +19,11 @@ config BR2_PACKAGE_HARDKERNEL_BOOT_ODROID_XU4
|
||||
help
|
||||
For the Odroid-XU4
|
||||
|
||||
config BR2_PACKAGE_HARDKERNEL_BOOT_ODROID_N2
|
||||
bool "Odroid-N2"
|
||||
help
|
||||
For the Odroid-N2
|
||||
|
||||
endchoice
|
||||
|
||||
endif
|
||||
|
||||
@@ -4,7 +4,6 @@
|
||||
#
|
||||
################################################################################
|
||||
|
||||
|
||||
HARDKERNEL_BOOT_SOURCE = $(HARDKERNEL_BOOT_VERSION).tar.gz
|
||||
HARDKERNEL_BOOT_SITE = https://github.com/hardkernel/u-boot/archive
|
||||
HARDKERNEL_BOOT_LICENSE = GPL-2.0+
|
||||
@@ -20,14 +19,16 @@ HARDKERNEL_BOOT_BINS += sd_fuse/bl1.bin.hardkernel \
|
||||
u-boot.gxbb
|
||||
define HARDKERNEL_BOOT_BUILD_CMDS
|
||||
$(@D)/fip/fip_create --bl30 $(@D)/fip/gxb/bl30.bin \
|
||||
--bl301 $(@D)/fip/gxb/bl301.bin \
|
||||
--bl31 $(@D)/fip/gxb/bl31.bin \
|
||||
--bl33 $(BINARIES_DIR)/u-boot.bin \
|
||||
$(@D)/fip.bin
|
||||
--bl301 $(@D)/fip/gxb/bl301.bin \
|
||||
--bl31 $(@D)/fip/gxb/bl31.bin \
|
||||
--bl33 $(BINARIES_DIR)/u-boot.bin \
|
||||
$(@D)/fip.bin
|
||||
|
||||
cat $(@D)/fip/gxb/bl2.package $(@D)/fip.bin > $(@D)/boot_new.bin
|
||||
$(@D)/fip/gxb/aml_encrypt_gxb --bootsig \
|
||||
--input $(@D)/boot_new.bin \
|
||||
--output $(@D)/u-boot.img
|
||||
--input $(@D)/boot_new.bin \
|
||||
--output $(@D)/u-boot.img
|
||||
|
||||
dd if=$(@D)/u-boot.img of=$(@D)/u-boot.gxbb bs=512 skip=96
|
||||
endef
|
||||
|
||||
@@ -39,6 +40,54 @@ HARDKERNEL_BOOT_BINS += sd_fuse/bl1.bin.hardkernel \
|
||||
sd_fuse/tzsw.bin.hardkernel
|
||||
define HARDKERNEL_BOOT_BUILD_CMDS
|
||||
endef
|
||||
|
||||
else ifeq ($(BR2_PACKAGE_HARDKERNEL_BOOT_ODROID_N2),y)
|
||||
HARDKERNEL_BOOT_VERSION = c989da31a5c1da3ab57d7c6dc5a3fdbcc1c3eed7
|
||||
|
||||
HARDKERNEL_BOOT_BINS += u-boot.g12b
|
||||
define HARDKERNEL_BOOT_BUILD_CMDS
|
||||
curl -L -o $(@D)/fip/blx_fix.sh https://raw.githubusercontent.com/home-assistant/hassos-blobs/d271a9c4aedf740e4fa716c3cb7faee93257e968/odroid-n2/blx_fix_g12a.sh
|
||||
curl -L -o $(@D)/fip/acs.bin https://raw.githubusercontent.com/home-assistant/hassos-blobs/d271a9c4aedf740e4fa716c3cb7faee93257e968/odroid-n2/acs.bin
|
||||
curl -L -o $(@D)/fip/bl301.bin https://raw.githubusercontent.com/home-assistant/hassos-blobs/d271a9c4aedf740e4fa716c3cb7faee93257e968/odroid-n2/bl301.bin
|
||||
|
||||
bash $(@D)/fip/blx_fix.sh \
|
||||
$(@D)/fip/g12b/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/g12b/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
|
||||
|
||||
$(@D)/fip/g12b/aml_encrypt_g12b --bl30sig --input $(@D)/fip/bl30_new.bin \
|
||||
--output $(@D)/fip/bl30_new.bin.g12.enc \
|
||||
--level v3
|
||||
$(@D)/fip/g12b/aml_encrypt_g12b --bl3sig --input $(@D)/fip/bl30_new.bin.g12.enc \
|
||||
--output $(@D)/fip/bl30_new.bin.enc \
|
||||
--level v3 --type bl30
|
||||
$(@D)/fip/g12b/aml_encrypt_g12b --bl3sig --input $(@D)/fip/g12b/bl31.img \
|
||||
--output $(@D)/fip/bl31.img.enc \
|
||||
--level v3 --type bl31
|
||||
$(@D)/fip/g12b/aml_encrypt_g12b --bl3sig --input $(BINARIES_DIR)/u-boot.bin \
|
||||
--output $(@D)/fip/bl33.bin.enc \
|
||||
--level v3 --type bl33 --compress lz4
|
||||
$(@D)/fip/g12b/aml_encrypt_g12b --bl2sig --input $(@D)/fip/bl2_new.bin \
|
||||
--output $(@D)/fip/bl2.n.bin.sig
|
||||
$(@D)/fip/g12b/aml_encrypt_g12b --bootmk \
|
||||
--output $(@D)/fip/u-boot.bin \
|
||||
--bl2 $(@D)/fip/bl2.n.bin.sig \
|
||||
--bl30 $(@D)/fip/bl30_new.bin.enc \
|
||||
--bl31 $(@D)/fip/bl31.img.enc \
|
||||
--bl33 $(@D)/fip/bl33.bin.enc \
|
||||
--ddrfw1 $(@D)/fip/g12b/ddr4_1d.fw \
|
||||
--ddrfw2 $(@D)/fip/g12b/ddr4_2d.fw \
|
||||
--ddrfw4 $(@D)/fip/g12b/piei.fw \
|
||||
--ddrfw8 $(@D)/fip/g12b/aml_ddr.fw \
|
||||
--level v3
|
||||
|
||||
cp $(@D)/fip/u-boot.bin $(@D)/u-boot.g12b
|
||||
endef
|
||||
endif
|
||||
|
||||
define HARDKERNEL_BOOT_INSTALL_IMAGES_CMDS
|
||||
|
||||
Reference in New Issue
Block a user