Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lec-px3: Port changes #24

Merged
12 commits merged into from
Jan 19, 2021
2 changes: 1 addition & 1 deletion layers/meta-balena
Submodule meta-balena updated 273 files
2 changes: 2 additions & 0 deletions layers/meta-balena-nanopc-t4/conf/layer.conf
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,6 @@ BBFILE_COLLECTIONS += "balena-nanopc-t4"
BBFILE_PATTERN_balena-nanopc-t4 := "^${LAYERDIR}/"
BBFILE_PRIORITY_balena-nanopc-t4 = "1337"

BBMASK += "/meta-nanopc-t4/recipes-bsp/u-boot/u-boot-rockchip.bb"

LAYERSERIES_COMPAT_balena-nanopc-t4 = "thud"
24 changes: 24 additions & 0 deletions layers/meta-balena-nanopc-t4/conf/machine/lec-px30.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#@TYPE: Machine
#@NAME: ADLINK LEC-PX30
#@SOC: Rockchip PX30
#@DESCRIPTION: Machine configuration for ADLINK LEC-PX30

require conf/machine/include/arm/arch-armv8.inc
require conf/machine/include/soc-family.inc
# require conf/machine/include/px30.inc

PREFERRED_PROVIDER_virtual/bootloader = "u-boot-rockchip"
PREFERRED_PROVIDER_virtual/kernel = "linux-rockchip"
PREFERRED_VERSION_linux-rockchip = "4.4.185%"

UBOOT_MACHINE = "evb-px30_defconfig"

KERNEL_IMAGETYPE = "Image"

SERIAL_CONSOLES = "1500000;ttyFIQ0"

#KBUILD_DEFCONFIG = "lec-px30_config"

KERNEL_DEVICETREE = "rockchip/px30-evb-ddr3-v10-linux.dtb"

MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "kernel-devicetree rkbin-wifi"
6 changes: 6 additions & 0 deletions layers/meta-balena-nanopc-t4/conf/machine/smarc-px30.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#@TYPE: Machine
##@NAME: smarc-px30
##@DESCRIPTION: Machine configuration for the I-Pi SMARC PX30

MACHINEOVERRIDES = "lec-px30:${MACHINE}"
include conf/machine/lec-px30.conf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Supported machines
#MACHINE ?= "nanopc-t4"

#MACHINE ?= "lec-px30"
BALENA_STORAGE = "overlay2"

# More info meta-resin/README.md
Expand Down
15 changes: 15 additions & 0 deletions layers/meta-balena-nanopc-t4/recipes-bsp/rkbin/files/PX30TRUST.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[VERSION]
MAJOR=1
MINOR=0
[BL30_OPTION]
SEC=0
[BL31_OPTION]
SEC=1
PATH=rk33/px30_bl31_v1.14.elf
ADDR=0x00040000
[BL32_OPTION]
SEC=0
[BL33_OPTION]
SEC=0
[OUTPUT]
PATH=trust.img
15 changes: 15 additions & 0 deletions layers/meta-balena-nanopc-t4/recipes-bsp/rkbin/rkbin_git.bbappend
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
FILESEXTRAPATHS_append := ":${THISDIR}/files"

SRC_URI_append_lec-px30 = " \
file://PX30TRUST.ini \
"

do_compile_lec-px30() {
cp ${WORKDIR}/PX30TRUST.ini .
tools/trust_merger PX30TRUST.ini
}

do_deploy_append_lec-px30 () {
install -m 755 ${S}/rk33/px30_ddr_333MHz_v1.10.bin ${DEPLOYDIR}/rkbin
install -m 755 ${S}/rk33/px30_miniloader_v1.15.bin ${DEPLOYDIR}/rkbin
}
Loading