From 4b16683eff6d9f190e38df1e3d85b9e113687623 Mon Sep 17 00:00:00 2001 From: Max Krummenacher Date: Wed, 10 Nov 2021 11:32:06 +0100 Subject: apalis-tk1: use mainline u-boot Mainline (sources.denx.de) has all the functionality needed for Apalis TK1. Build directly from the mainline repo. Add a bbappend which makes the cboot image format. Related-to: ELB-4090 Signed-off-by: Max Krummenacher --- conf/machine/apalis-tk1.conf | 4 ++-- recipes-bsp/u-boot/u-boot-toradex-common-tk1.inc | 22 ------------------- recipes-bsp/u-boot/u-boot-toradex-tk1_2020.07.bb | 27 ------------------------ recipes-bsp/u-boot/u-boot_%.bbappend | 15 +++++++++++++ 4 files changed, 17 insertions(+), 51 deletions(-) delete mode 100644 recipes-bsp/u-boot/u-boot-toradex-common-tk1.inc delete mode 100644 recipes-bsp/u-boot/u-boot-toradex-tk1_2020.07.bb create mode 100644 recipes-bsp/u-boot/u-boot_%.bbappend diff --git a/conf/machine/apalis-tk1.conf b/conf/machine/apalis-tk1.conf index 6b543a8..766eab0 100644 --- a/conf/machine/apalis-tk1.conf +++ b/conf/machine/apalis-tk1.conf @@ -38,8 +38,8 @@ WIC_CREATE_EXTRA_ARGS:append = " --no-fstab-update" # The kernel lives in a seperate FAT or UBI partition, don't deploy it in /boot RDEPENDS:${KERNEL_PACKAGE_NAME}-base = "" -PREFERRED_PROVIDER_u-boot = "u-boot-toradex-tk1" -PREFERRED_PROVIDER_virtual/bootloader = "u-boot-toradex-tk1" +PREFERRED_PROVIDER_u-boot = "u-boot" +PREFERRED_PROVIDER_virtual/bootloader = "u-boot" UBOOT_MACHINE = "apalis-tk1_defconfig" UBOOT_ENTRYPOINT = "0" UBOOT_LOADADDRESS = "0x80008000" diff --git a/recipes-bsp/u-boot/u-boot-toradex-common-tk1.inc b/recipes-bsp/u-boot/u-boot-toradex-common-tk1.inc deleted file mode 100644 index 3f71fc2..0000000 --- a/recipes-bsp/u-boot/u-boot-toradex-common-tk1.inc +++ /dev/null @@ -1,22 +0,0 @@ -HOMEPAGE = "http://www.denx.de/wiki/U-Boot/WebHome" -SECTION = "bootloaders" -DEPENDS += "flex-native bison-native" - -LICENSE = "GPLv2+" -LIC_FILES_CHKSUM = "file://Licenses/README;md5=30503fd321432fc713238f582193b78e" -PE = "1" - -PV = "2020.07+git${SRCPV}" -inherit toradex-u-boot-localversion - -# We use the revision in order to avoid having to fetch it from the -# repo during parse -SRCREV = "e4279843b222d170114a01eb4dca2b9f6515de61" -SRCBRANCH = "toradex_2020.07" -SRCREV:use-head-next = "${AUTOREV}" - -SRC_URI = "git://git.toradex.com/u-boot-toradex.git;protocol=https;branch=${SRCBRANCH}" - -S = "${WORKDIR}/git" - -UBOOT_INITIAL_ENV = "u-boot-initial-env" diff --git a/recipes-bsp/u-boot/u-boot-toradex-tk1_2020.07.bb b/recipes-bsp/u-boot/u-boot-toradex-tk1_2020.07.bb deleted file mode 100644 index 7e772bf..0000000 --- a/recipes-bsp/u-boot/u-boot-toradex-tk1_2020.07.bb +++ /dev/null @@ -1,27 +0,0 @@ -require u-boot-toradex-common-tk1.inc -require recipes-bsp/u-boot/u-boot.inc - -B = "${WORKDIR}/build" - -DEPENDS += "bc-native dtc-native" -DEPENDS:append:apalis-tk1 = " cbootimage-native" - -PROVIDES += "u-boot" - -COMPATIBLE_MACHINE = "(apalis-tk1)" - -SRC_URI:append:apalis-tk1 = " \ - file://apalis-tk1.img.cfg \ - file://fw_env.config \ - file://PM375_Hynix_2GB_H5TC4G63AFR_RDA_924MHz.bct \ -" - -PACKAGE_ARCH = "${MACHINE_ARCH}" - -do_deploy:append:apalis-tk1() { - cd ${DEPLOYDIR} - cp ${WORKDIR}/PM375_Hynix_2GB_H5TC4G63AFR_RDA_924MHz.bct . - cbootimage -s tegra124 ${WORKDIR}/apalis-tk1.img.cfg apalis-tk1.img - rm PM375_Hynix_2GB_H5TC4G63AFR_RDA_924MHz.bct -} - diff --git a/recipes-bsp/u-boot/u-boot_%.bbappend b/recipes-bsp/u-boot/u-boot_%.bbappend new file mode 100644 index 0000000..fcd3a4d --- /dev/null +++ b/recipes-bsp/u-boot/u-boot_%.bbappend @@ -0,0 +1,15 @@ +FILESEXTRAPATHS:prepend := "${THISDIR}//files:" +DEPENDS:append:apalis-tk1 = " cbootimage-native" + +SRC_URI:append:apalis-tk1 = " \ + file://apalis-tk1.img.cfg \ + file://fw_env.config \ + file://PM375_Hynix_2GB_H5TC4G63AFR_RDA_924MHz.bct \ +" + +do_deploy:append:apalis-tk1() { + cd ${DEPLOYDIR} + cp ${WORKDIR}/PM375_Hynix_2GB_H5TC4G63AFR_RDA_924MHz.bct . + cbootimage -s tegra124 ${WORKDIR}/apalis-tk1.img.cfg apalis-tk1.img + rm PM375_Hynix_2GB_H5TC4G63AFR_RDA_924MHz.bct +} -- cgit v1.2.3