1
0
mirror of https://git.yoctoproject.org/meta-ti synced 2026-07-21 03:17:18 +00:00
Commit Graph

23 Commits

Author SHA1 Message Date
Sinthu Raja 295309d446 conf: machine: k3: Define RD, DTB and DTBO load address for FIT image
K3 platforms include the FIT image-based kernel by default. The bootloader
loads the kernel and DTB from the FIT image. The DTB/DTBOs are added to the
FIT image but the load address is not included in the image section of
each DTB/DTBO. This load address is determined by the LOADADDRESS macros
in the kernel-fitmage class.

Hence, define the RD/DTB/DTBOs LOADADDRESS and OFFSET macros in the K3 common
include, and remove those macros defined in the K3 board specific config files.

Signed-off-by: Sinthu Raja <sinthu.raja@ti.com>
Reviewed-by: Andrew Davis <afd@ti.com>
Signed-off-by: Ryan Eatmon <reatmon@ti.com>
2023-02-10 12:17:12 -06:00
Denys Dmytriyenko 34c2065a5b k3: also inherit kernel-fitimage class for FIT image generation
In order to support fitImage image type, kernel-fitimage class is needed.

Signed-off-by: Denys Dmytriyenko <denys@konsulko.com>
Signed-off-by: Ryan Eatmon <reatmon@ti.com>
(cherry picked from kirkstone/master commit 48b22e8266)
Signed-off-by: Denys Dmytriyenko <denys@konsulko.com>
Tested-by: Jose Quaresma <jose.quaresma@foundries.io>
Signed-off-by: Ryan Eatmon <reatmon@ti.com>
2023-01-05 13:37:40 -06:00
Ryan Eatmon 923c656b43 conf: Remove vmlinux.gz from KERNEL_IMAGETYPES
With a recent patch to the TI kernel that includes debug symbols,
the vmlinux.gz file grew in size that impacted the testing.
This file is not needed to be in the final image so remove it
from the list.

Signed-off-by: Ryan Eatmon <reatmon@ti.com>
2022-12-05 12:05:46 -06:00
Andrew Davis e6deeba806 conf: machine: k3: Add fitImage to the default kernel image types
FIT Image based kernels are valid for all K3 devices, not just HS, deploy
this kernel image type by default so it doesn't have to be appended on
a per-device-type basis.

Signed-off-by: Andrew Davis <afd@ti.com>
Signed-off-by: Ryan Eatmon <reatmon@ti.com>
2022-08-08 20:07:47 -05:00
Andrew Davis b572721c6d conf: machine: Move K3 TI_SECURE_DEV_PKG definition to common include
The K3 TI_SECURE_DEV_PKG is the same for all devices, move this out
of each machine file and into the common K3 includes. This doesn't
have any effect on the GP machines as they make no use of it.

Signed-off-by: Andrew Davis <afd@ti.com>
Signed-off-by: Ryan Eatmon <reatmon@ti.com>
2022-08-06 19:04:37 -05:00
Andrew Davis 038148a6d0 conf: machine: Make multi-certificate image the default
Only the first two K3 devices do not support multi-cert boot so
lets make multi-cert the default and only add back sysfw.itb
for these two devices.

Signed-off-by: Andrew Davis <afd@ti.com>
Reviewed-by: lines be preserved?
Signed-off-by: Ryan Eatmon <reatmon@ti.com>
2022-08-05 08:29:17 -05:00
Manorit Chawdhry 5e1204d728 conf: machine: wic: Fix HS image boot partition
IMAGE_BOOT_FILES was being overwritten in the HS recipes leading to
incomplete binaries in /boot and the naming of the binaries were not
correct.

Fixes /boot partition for HS devices.

Signed-off-by: Manorit Chawdhry <m-chawdhry@ti.com>
[afd: Extended fix to all HS platforms]
Signed-off-by: Andrew Davis <afd@ti.com>
Acked-by: Manorit Chawdhry <m-chawdhry@ti.com>
Signed-off-by: Ryan Eatmon <reatmon@ti.com>
2022-06-23 09:22:05 -05:00
Yogesh Siraswar 1eb6e71fe0 wic: revert grub-efi patch
Revert "conf/machine: k3: Enable grub-efi by default in wic images"

This reverts commit d0b09833b4.
2021-11-19 02:27:48 +00:00
Tom Rini d0b09833b4 conf/machine: k3: Enable grub-efi by default in wic images
All of our platforms here support running EFI binaries.  We can have wic
generate a simple grub.cfg file for us that will find the root partition
via PARTUUID and utilize the device tree that is already discoverable
via the EFI configuration tables.  Assuming the EFI loader is U-Boot,
this device tree can be replaced at run-time by the normal mechanism of
loading in to memory and passing that address as an argument to bootefi.

Signed-off-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Denys Dmytriyenko <denys@konsulko.com>
Signed-off-by: Yogesh Siraswar <yogeshs@ti.com>
2021-08-09 15:39:11 +00:00
Nishanth Menon 03450999c5 conf/machine: k3: Lets build bmap files by default
Lets generate bmap files for bmaptool to use as well as default to use
with wic files.

NOTE: bmaptool can speed up flashing SD cards by 2x-3x by skipping
empty blocks of the image.

https://www.yoctoproject.org/docs/current/mega-manual/mega-manual.html#flashing-images-using-bmaptool

Signed-off-by: Nishanth Menon <nm@ti.com>
Reviewed-by: Denys Dmytriyenko <denys@konsulko.com>
2021-03-31 21:45:25 -05:00
Nishanth Menon f36bf3544c conf/machine: k3: Add multi-certificate boot image support
Lets keep things consistent by providing two possibilities for platforms
to pick from - legacy boot and multi-certificate boot.

In legacy boot, the base bootloader and system firmware are
maintained as separate binaries (tiboot3.bin and sysfw.itb).

In multi-certificate boot that newer K3 devices support, ROM is smarter
and can handle multiple x509 certificate based images: so we can strip
out the sysfw.itb and integrate it as part of tiboot3.bin itself. This
improves authentication and overall system boot times since we are now
able to boot both the system controller and the boot processor in
parallel.

We do have a scheme currently to identify the images necessary for boot
etc, but things are handled on a platform conf file basis. We can
improve that by introducing the pattern at the top level include and use
the relevant pattern in platforms as needed.

Signed-off-by: Nishanth Menon <nm@ti.com>
Reviewed-by: Denys Dmytriyenko <denys@konsulko.com>
2021-03-31 21:42:59 -05:00
Denys Dmytriyenko 5e12310bfc conf/machine: clean up MACHINE_FEATURES for k3/j7/am65 families
Signed-off-by: Denys Dmytriyenko <denys@ti.com>
2020-08-06 20:55:36 +00:00
Denys Dmytriyenko 0f99cfb94c trusted-firmware-a: upstreamed and unified to meta-arm, drop locally
Signed-off-by: Denys Dmytriyenko <denys@ti.com>
2020-05-19 20:30:29 +00:00
Denys Dmytriyenko a83fb916dc conf/wic: switch back to 2-partition SD images, reserve extra space in boot
Signed-off-by: Denys Dmytriyenko <denys@ti.com>
2020-05-07 01:16:33 +00:00
Daniel D?az f0371c25b8 conf/machine: Use weak assignment for preferred virtual/kernel
A user of the meta-ti layer may choose to use a combination
of the machines herein with another kernel, not necessarily
the one from the machine definition.

Signed-off-by: Daniel Díaz <daniel.diaz@linaro.org>
Signed-off-by: Denys Dmytriyenko <denys@ti.com>
2020-05-06 00:55:11 +00:00
Denys Dmytriyenko f814840465 conf, recipes-bsp: support building for K3 R5F cores via multiconfig
K3 Multicore SoC architecture defines different functional domains, each
containing specific processing cores and peripherals. Early boot is normally
handled by running bootloader and loading SYSFW on MCU Cortex-R5F core:
https://git.ti.com/cgit/ti-u-boot/ti-u-boot/tree/board/ti/am65x/README
https://git.ti.com/cgit/ti-u-boot/ti-u-boot/tree/board/ti/j721e/README

This change adds support for building bootloader and SYSFW ITB image for
K3 Cortex-R5F cores via multiconfig.

Signed-off-by: Denys Dmytriyenko <denys@ti.com>
2020-05-05 05:22:25 +00:00
Denys Dmytriyenko 7646efc16a wic: create SD card with 3 partitions for testing
Signed-off-by: Denys Dmytriyenko <denys@ti.com>
2020-03-23 17:52:49 +00:00
Denys Dmytriyenko 418c90c917 conf/machine: add dependency for wic to package deployed SPL
Signed-off-by: Denys Dmytriyenko <denys@ti.com>
2020-02-13 18:33:55 +00:00
Denys Dmytriyenko 576c6f9a31 conf/machine: generalize wic usage by moving settings to SOC files
Signed-off-by: Denys Dmytriyenko <denys@ti.com>
2020-02-11 01:14:57 +00:00
Denys Dmytriyenko 0d9910c171 conf/machine: rename "sgx" flag to "gpu" in MACHINE_FEATURES
Signed-off-by: Denys Dmytriyenko <denys@ti.com>
2019-06-25 14:58:33 +00:00
Denys Dmytriyenko de7203d403 conf/machine: define UBOOT_SUFFIX and SPL_BINARY in machine configs
Signed-off-by: Denys Dmytriyenko <denys@ti.com>
2018-10-17 22:48:49 +00:00
e-ruei1@ti.com 5c63b16e41 conf: machine: k3: enable sgx
Signed-off-by: Eric Ruei <e-ruei1@ti.com>
Signed-off-by: Denys Dmytriyenko <denys@ti.com>
2018-07-28 05:09:25 +00:00
Denys Dmytriyenko ceb443f18a machine: k3.inc: add new SOC family definition for K3
The AM654 SoC is a lead device of the K3 Multicore SoC architecture
platform, targeted for broad market and industrial control with aim to
meet the complex processing needs of modern embedded products.

See AM65x Technical Reference Manual (SPRUID7, April 2018)
for further details: http://www.ti.com/lit/pdf/spruid7

Signed-off-by: Denys Dmytriyenko <denys@ti.com>
2018-06-19 00:42:38 +00:00