diff mbox series

[master/scarthgap,v1,2/3] bsp: conf: machine: add ti-falcon.inc

Message ID 20250415093645.435281-2-anshuld@ti.com
State Superseded
Delegated to: Ryan Eatmon
Headers show
Series [master/scarthgap,v1,1/3] am62: apply u-boot config fragment on ti-falcon | expand

Commit Message

Anshul Dalal April 15, 2025, 9:36 a.m. UTC
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 <anshuld@ti.com>
---
 meta-ti-bsp/conf/machine/include/k3.inc        | 4 ++++
 meta-ti-bsp/conf/machine/include/ti-falcon.inc | 5 +++++
 2 files changed, 9 insertions(+)
 create mode 100644 meta-ti-bsp/conf/machine/include/ti-falcon.inc

Comments

Denys Dmytriyenko April 16, 2025, 12:13 a.m. UTC | #1
On Tue, Apr 15, 2025 at 03:06:43PM +0530, Anshul Dalal via lists.yoctoproject.org wrote:
> 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 <anshuld@ti.com>
> ---
>  meta-ti-bsp/conf/machine/include/k3.inc        | 4 ++++
>  meta-ti-bsp/conf/machine/include/ti-falcon.inc | 5 +++++
>  2 files changed, 9 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 ea6a5028..329ac037 100644
> --- a/meta-ti-bsp/conf/machine/include/k3.inc
> +++ b/meta-ti-bsp/conf/machine/include/k3.inc
> @@ -56,3 +56,7 @@ TI_WKS_BOOTLOADER_APPEND ?= ""
>  do_image_wic[depends] += "virtual/bootloader:do_deploy"
>  
>  SERIAL_CONSOLES = "115200;ttyS0 115200;ttyS2"
> +
> +FALCON_INCLUDE:ti-falcon = "conf/machine/include/ti-falcon.inc"

Where and how ti-falcon override is being defined/set?


> +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..b571c04d
> --- /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 = "0x82000000"
> +UBOOT_LOADADDRESS = "0x82200000"
> +FIT_KERNEL_COMP_ALG = "none"
Anshul Dalal April 16, 2025, 3:01 a.m. UTC | #2
On Wed Apr 16, 2025 at 5:43 AM IST, Denys Dmytriyenko wrote:
> On Tue, Apr 15, 2025 at 03:06:43PM +0530, Anshul Dalal via lists.yoctoproject.org wrote:
>> 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 <anshuld@ti.com>
>> ---
>>  meta-ti-bsp/conf/machine/include/k3.inc        | 4 ++++
>>  meta-ti-bsp/conf/machine/include/ti-falcon.inc | 5 +++++
>>  2 files changed, 9 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 ea6a5028..329ac037 100644
>> --- a/meta-ti-bsp/conf/machine/include/k3.inc
>> +++ b/meta-ti-bsp/conf/machine/include/k3.inc
>> @@ -56,3 +56,7 @@ TI_WKS_BOOTLOADER_APPEND ?= ""
>>  do_image_wic[depends] += "virtual/bootloader:do_deploy"
>>  
>>  SERIAL_CONSOLES = "115200;ttyS0 115200;ttyS2"
>> +
>> +FALCON_INCLUDE:ti-falcon = "conf/machine/include/ti-falcon.inc"
>
> Where and how ti-falcon override is being defined/set?
>

It's a DISTROOVERRIDE set in local.conf as follows:

DISTROOVERRIDES:append = ":ti-falcon"

>
>> +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..b571c04d
>> --- /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 = "0x82000000"
>> +UBOOT_LOADADDRESS = "0x82200000"
>> +FIT_KERNEL_COMP_ALG = "none"
diff mbox series

Patch

diff --git a/meta-ti-bsp/conf/machine/include/k3.inc b/meta-ti-bsp/conf/machine/include/k3.inc
index ea6a5028..329ac037 100644
--- a/meta-ti-bsp/conf/machine/include/k3.inc
+++ b/meta-ti-bsp/conf/machine/include/k3.inc
@@ -56,3 +56,7 @@  TI_WKS_BOOTLOADER_APPEND ?= ""
 do_image_wic[depends] += "virtual/bootloader:do_deploy"
 
 SERIAL_CONSOLES = "115200;ttyS0 115200;ttyS2"
+
+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..b571c04d
--- /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 = "0x82000000"
+UBOOT_LOADADDRESS = "0x82200000"
+FIT_KERNEL_COMP_ALG = "none"