Skip to content
Snippets Groups Projects
Commit 02f90d26 authored by Martyn Welch's avatar Martyn Welch
Browse files

d/targets: Enable support for NXP QorIQ Layerscape ls1028ardb

parent 0e2a4700
No related branches found
No related tags found
1 merge request!115d/targets: Enable support for NXP QorIQ Layerscape ls1028ardb
......@@ -142,6 +142,24 @@ Description: A boot loader for imx systems
Included platforms:
${u-boot-imx:platforms}
Package: u-boot-layerscape
Architecture: arm64
Multi-Arch: same
Depends: ${misc:Depends}
Breaks: u-boot (<< 2014.10~rc2+dfsg1-2~)
Replaces: u-boot (<< 2014.10~rc2+dfsg1-2~)
Description: A boot loader for layerscape systems
Das U-Boot is a cross-platform bootloader for embedded systems,
used as the default boot loader by several board vendors. It is
intended to be easy to port and to debug, and runs on many
supported architectures, including PPC, ARM, MIPS, x86, m68k,
NIOS, and Microblaze.
.
This package includes boot loaders for various layerscape platforms.
.
Included platforms:
${u-boot-layerscape:platforms}
Package: u-boot-qcom
Architecture: arm64
Multi-Arch: same
......
From: Martyn Welch <martyn.welch@collabora.com>
Date: Wed, 12 Jun 2024 17:20:01 +0100
Subject: ls1028ardb: Set fdtfile so that correct DTB is used
The environment variable `fdtfile` is currently not being set in the
environment. As a result, a device tree name is being constructed from
the `soc` and `board` environment variables, which doesn't match the
naming used for the actual device trees provided by the kernel. Use
`CONFIG_DEFAULT_FDT_FILE` to provide the required device tree name.
Signed-off-by: Martyn Welch <martyn.welch@collabora.com>
---
configs/ls1028ardb_tfa_defconfig | 1 +
include/configs/ls1028ardb.h | 1 +
2 files changed, 2 insertions(+)
diff --git a/configs/ls1028ardb_tfa_defconfig b/configs/ls1028ardb_tfa_defconfig
index de893ff..69909b9 100644
--- a/configs/ls1028ardb_tfa_defconfig
+++ b/configs/ls1028ardb_tfa_defconfig
@@ -29,6 +29,7 @@ CONFIG_FIT_VERBOSE=y
CONFIG_DISTRO_DEFAULTS=y
CONFIG_BOOTDELAY=10
CONFIG_OF_BOARD_SETUP=y
+CONFIG_DEFAULT_FDT_FILE="fsl-ls1028a-rdb"
CONFIG_OF_STDOUT_VIA_ALIAS=y
CONFIG_USE_BOOTARGS=y
CONFIG_BOOTARGS="console=ttyS0,115200 root=/dev/ram0 earlycon=uart8250,mmio,0x21c0500 ramdisk_size=0x2000000 default_hugepagesz=2m hugepagesz=2m hugepages=256 video=1920x1080-32@60 cma=256M"
diff --git a/include/configs/ls1028ardb.h b/include/configs/ls1028ardb.h
index ee4f885..692d06f 100644
--- a/include/configs/ls1028ardb.h
+++ b/include/configs/ls1028ardb.h
@@ -59,6 +59,7 @@
#undef CFG_EXTRA_ENV_SETTINGS
#define CFG_EXTRA_ENV_SETTINGS \
"board=ls1028ardb\0" \
+ "fdtfile=freescale/" CONFIG_DEFAULT_FDT_FILE ".dtb\0" \
"hwconfig=fsl_ddr:bank_intlv=auto\0" \
"ramdisk_addr=0x800000\0" \
"ramdisk_size=0x2000000\0" \
......@@ -95,3 +95,6 @@ apertis/x86/0080-X86-Distro_boot-feature-added.patch
# Support for qemu
qemu/Base-adresses-for-kernel-and-ramdisk-changed-for-qem.patch
# Support for NXP QorIQ Layerscape boards
apertis/layerscape/0068-ls1028ardb-Set-fdtfile-so-that-correct-DTB-is-used.patch
......@@ -48,6 +48,13 @@ ifeq (${DEB_HOST_ARCH},arm64)
imx8mn_var_som_targets := arch/arm/dts/imx8mn-var-som-symphony.dtb \
spl/u-boot-spl.bin u-boot-nodtb.bin u-boot.bin u-boot.img u-boot.itb
# u-boot-layerscape
# Martyn Welch <martyn.welch@collabora.com>
u-boot-layerscape_platforms += ls1028ardb_tfa
ls1028ardb_tfa_assigns := BL31=/usr/lib/arm-trusted-firmware/XXX/bl31.bin
ls1028ardb_tfa_targets := u-boot-dtb.bin
# u-boot-mvebu
# Vagrant Cascadian <vagrant@debian.org>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment