diff options
author | Daniel Schultz <d.schultz@phytec.de> | 2024-08-30 02:09:32 -0700 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2024-09-10 13:16:01 -0600 |
commit | 92ff68b298c62718a16dba22504ec7b60a0de06d (patch) | |
tree | 4e69ad0fb0243f4dec10e18ed91e5018beedbf56 | |
parent | d87842cd3dec760cc54a0cdcb38b7c2e4f2f62a7 (diff) |
include: env: phytec: Add K3 boot logic for OSPI/QSPI flashes
This boot logic allows to boot a Kernel image, Device-Tree blob
and a initramfs from an external OSPI/QSPI NOR flash.
Signed-off-by: Daniel Schultz <d.schultz@phytec.de>
-rw-r--r-- | include/env/phytec/k3_spi.env | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/include/env/phytec/k3_spi.env b/include/env/phytec/k3_spi.env new file mode 100644 index 00000000000..97d3a157058 --- /dev/null +++ b/include/env/phytec/k3_spi.env @@ -0,0 +1,18 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ +/* + * Copyright (C) 2024 PHYTEC Messtechnik GmbH + * Author: Daniel Schultz <d.schultz@phytec.de> + */ + +/* Logic for TI K3 based SoCs to boot from an OSPI/QSPI NOR flash. */ + +spiargs=setenv bootargs console=${console} earlycon=${earlycon} +spiloadimage=sf read ${kernel_addr_r} ${spi_image_addr} ${size_kern} +spiloadfdt=sf read ${fdt_addr_r} ${spi_fdt_addr} ${size_fdt} +spiloadramdisk=sf read ${ramdisk_addr_r} ${spi_ramdisk_addr} ${size_fs} +spiboot=run spiargs; + sf probe; + run spiloadimage; + run spiloadfdt; + run spiloadramdisk; + booti ${kernel_addr_r} ${ramdisk_addr_r}:0x${size_fs} ${fdt_addr_r} |