odroid-c2: Initial Support

Working:
* Ethernet
* Resize of Data
* RAUC boot marking/fetching
* CMD Line into HASSOS and Linux

Partially working:
* USB (requires 1+ devices in at boot. Seems to be a kernel/dt issue.)

Untested:
* RAUC Update
* HDMI

Not working:
* Homeassistant
** We see:
hassio > ha info
The HTTP request failed with the error: Get http://hassio/homeassistant/info: dial tcp 172.30.32.2:80: getsockopt: connection refused
This commit is contained in:
Ryan Bray
2018-08-08 23:36:33 -06:00
parent 5c8f8bea48
commit 11088580c5
36 changed files with 10629 additions and 22 deletions

View File

@@ -0,0 +1,24 @@
config BR2_PACKAGE_HARDKERNEL_SBL
bool "Hardkernel Secure Boot Loader"
depends on BR2_TARGET_UBOOT
help
Augment uboot for secure loading on hardkernel targets.
if BR2_PACKAGE_HARDKERNEL_SBL
choice
prompt "Target"
default BR2_PACKAGE_HARDKERNEL_SBL_ODROID_C2
config BR2_PACKAGE_HARDKERNEL_SBL_ODROID_C2
bool "Odroid-C2"
help
For the Odroid-C2
config BR2_PACKAGE_HARDKERNEL_SBL_ODROID_XU4
bool "Odroid-XU4"
help
For the Odroid-XU4. NOT YET IMPLEMENTED!!
endchoice
endif

View File

@@ -0,0 +1,39 @@
################################################################################
#
# hardkernel secure boot loader
#
################################################################################
HARDKERNEL_SBL_VERSION = 205c7b3259559283161703a1a200b787c2c445a5
HARDKERNEL_SBL_SOURCE = $(HARDKERNEL_SBL_VERSION).tar.gz
HARDKERNEL_SBL_SITE = https://github.com/hardkernel/u-boot/archive
HARDKERNEL_SBL_LICENSE = GPL-2.0+
HARDKERNEL_SBL_LICENSE_FILES = Licenses/gpl-2.0.txt
HARDKERNEL_SBL_INSTALL_IMAGES = YES
HARDKERNEL_SBL_DEPENDENCIES = uboot
ifeq ($(BR2_PACKAGE_HARDKERNEL_SBL_ODROID_C2),y)
HARDKERNEL_SBL_BINS += sd_fuse/bl1.bin.hardkernel \
u-boot.gxbb
define HARDKERNEL_SBL_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
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
dd if=$(@D)/u-boot.img of=$(@D)/u-boot.gxbb bs=512 skip=96
endef
endif
define HARDKERNEL_SBL_INSTALL_IMAGES_CMDS
$(foreach f,$(HARDKERNEL_SBL_BINS), \
cp -dpf $(@D)/$(f) $(BINARIES_DIR)/
)
endef
$(eval $(generic-package))