From fcdba74bc53b401e16e03f0b05ccc8e8052cf84b Mon Sep 17 00:00:00 2001 From: Anshul Dalal Date: Fri, 25 Apr 2025 20:56:08 +0530 Subject: bsp: conf: machine: add ti-falcon.inc ti-falcon.inc configures the following things for enabling falcon boot: 1. Change fitImage class to kernel-fitimage-legacyhs 2. Update kernel and dtb address for falcon boot 3. Disable kernel compression Signed-off-by: Anshul Dalal Signed-off-by: Ryan Eatmon --- meta-ti-bsp/conf/machine/include/k3.inc | 5 +++++ meta-ti-bsp/conf/machine/include/ti-falcon.inc | 5 +++++ meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti.inc | 12 ++++++++++++ 3 files changed, 22 insertions(+) create mode 100644 meta-ti-bsp/conf/machine/include/ti-falcon.inc diff --git a/meta-ti-bsp/conf/machine/include/k3.inc b/meta-ti-bsp/conf/machine/include/k3.inc index b98b4580..4b235d34 100644 --- a/meta-ti-bsp/conf/machine/include/k3.inc +++ b/meta-ti-bsp/conf/machine/include/k3.inc @@ -54,3 +54,8 @@ WKS_FILE ?= "${@bb.utils.contains("MACHINE_FEATURES", "efi", "sdimage-2part-efi. do_image_wic[depends] += "virtual/bootloader:do_deploy" SERIAL_CONSOLES = "115200;ttyS0 115200;ttyS2" + +FALCON_INCLUDE = "" +FALCON_INCLUDE:ti-falcon = "conf/machine/include/ti-falcon.inc" + +require ${FALCON_INCLUDE} diff --git a/meta-ti-bsp/conf/machine/include/ti-falcon.inc b/meta-ti-bsp/conf/machine/include/ti-falcon.inc new file mode 100644 index 00000000..55a4daa6 --- /dev/null +++ b/meta-ti-bsp/conf/machine/include/ti-falcon.inc @@ -0,0 +1,5 @@ +KERNEL_CLASSES:remove = "kernel-fitimage" +KERNEL_CLASSES += "kernel-fitimage-legacyhs" +UBOOT_DTB_LOADADDRESS = "0x88000000" +UBOOT_LOADADDRESS = "0x82000000" +FIT_KERNEL_COMP_ALG = "none" diff --git a/meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti.inc b/meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti.inc index 57bf7a4e..161beb45 100644 --- a/meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti.inc +++ b/meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti.inc @@ -368,4 +368,16 @@ do_deploy:append:am62pxx() { install -m 0644 ${S}/tools/logos/ti_logo_414x97_32bpp.bmp.gz ${DEPLOYDIR} } +do_install:append:ti-falcon() { + install -m 0644 ${B}/tispl_falcon.bin ${D}/boot +} + +FALCON_PKG = "" +FALCON_PKG:ti-falcon = "${PN}-falcon " + +PACKAGES:prepend:am62xx-evm = "${FALCON_PKG} " +PACKAGES:prepend:am62axx-evm = "${FALCON_PKG} " +PACKAGES:prepend:am62pxx-evm = "${FALCON_PKG} " +PACKAGES:prepend:am62xx-lp-evm = "${FALCON_PKG} " + TOOLCHAIN = "gcc" -- cgit v1.2.3-54-g00ecf