uboot-layerscape: Add ls1028ardb support
authorWojciech Dubowik <Wojciech.Dubowik@protonmail.ch>
Wed, 12 Apr 2023 10:07:32 +0000 (12:07 +0200)
committerHauke Mehrtens <hauke@hauke-m.de>
Sun, 7 May 2023 12:50:50 +0000 (14:50 +0200)
Support uboot for NXP LS1028ARDB reference board. GIC V3 has to
be disabled in the uboot config to allow booting upstream kernels.
This patch can be dropped once uboot is updated to 2022.04 version
to nxp-qoriq github lf-6.1.1 branch.

Signed-off-by: Wojciech Dubowik <Wojciech.Dubowik@protonmail.ch>
package/boot/uboot-layerscape/Makefile
package/boot/uboot-layerscape/files/fsl_ls1028a-rdb-sdboot-uEnv.txt [new file with mode: 0644]
package/boot/uboot-layerscape/files/fsl_ls1028a-rdb-uEnv.txt [new file with mode: 0644]
package/boot/uboot-layerscape/patches/0004-disable-gic-initialization-for-ls1028ardb.patch [new file with mode: 0644]

index 53d21f59dc97cbaad2616d7bc57b3fbd78889d32..f21e51c01898a2e01db1d15158d0323e6a0ef720 100644 (file)
@@ -45,6 +45,16 @@ define U-Boot/fsl_ls1012a-frwy-sdboot
   ENV_SIZE:=0x10000
 endef
 
+define U-Boot/fsl_ls1028a-rdb
+  NAME:=NXP LS1028ARDB
+  UBOOT_CONFIG:=ls1028ardb_tfa
+endef
+
+define U-Boot/fsl_ls1028a-rdb-sdboot
+  NAME:=NXP LS1028ARDB SD Card Boot
+  UBOOT_CONFIG:=ls1028ardb_tfa
+endef
+
 define U-Boot/fsl_ls1043a-rdb
   NAME:=NXP LS1043ARDB
   UBOOT_CONFIG:=ls1043ardb_tfa
@@ -127,6 +137,8 @@ UBOOT_TARGETS := \
   fsl_ls1012a-frdm \
   fsl_ls1012a-rdb \
   fsl_ls1012a-frwy-sdboot \
+  fsl_ls1028a-rdb \
+  fsl_ls1028a-rdb-sdboot \
   fsl_ls1043a-rdb \
   fsl_ls1043a-rdb-sdboot \
   fsl_ls1046a-frwy \
diff --git a/package/boot/uboot-layerscape/files/fsl_ls1028a-rdb-sdboot-uEnv.txt b/package/boot/uboot-layerscape/files/fsl_ls1028a-rdb-sdboot-uEnv.txt
new file mode 100644 (file)
index 0000000..3c39c22
--- /dev/null
@@ -0,0 +1,10 @@
+fdtaddr=0x8f000000
+loadaddr=0x81000000
+fdt_high=0x8fffffff
+initrd_high=0xffffffffffffffff
+hwconfig=fsl_ddr:bank_intlv=auto
+sd_boot=ext4load mmc 0:1 $loadaddr fitImage;bootm $loadaddr
+bootargs=root=/dev/mmcblk0p2 rw rootwait rootfstype=squashfs,f2fs noinitrd earlycon=uart8250,mmio,0x21c0500 console=ttyS0,115200
+bootcmd=echo starting openwrt ...;run sd_boot
+bootdelay=3
+fsl_bootcmd_mcinitcmd_set=y
diff --git a/package/boot/uboot-layerscape/files/fsl_ls1028a-rdb-uEnv.txt b/package/boot/uboot-layerscape/files/fsl_ls1028a-rdb-uEnv.txt
new file mode 100644 (file)
index 0000000..21d41d1
--- /dev/null
@@ -0,0 +1,9 @@
+fdtaddr=0x8f000000
+loadaddr=0x81000000
+bootm_size=0x10000000
+hwconfig=fsl_ddr:bank_intlv=auto
+qspi_boot=sf probe 0:0;sf read $loadaddr 1000000 1000000;bootm $loadaddr
+bootargs=rootfstype=squashfs,jffs2 noinitrd earlycon=uart8250,mmio,0x21c0500 console=ttyS0,115200 mtdparts=20c0000.spi:1m(bl2),4m(fip),1m(u-boot-env),128k(secure-boot-headers),48m@0x1000000(firmware)
+bootcmd=echo starting openwrt ...;run qspi_boot
+bootdelay=3
+fsl_bootcmd_mcinitcmd_set=y
diff --git a/package/boot/uboot-layerscape/patches/0004-disable-gic-initialization-for-ls1028ardb.patch b/package/boot/uboot-layerscape/patches/0004-disable-gic-initialization-for-ls1028ardb.patch
new file mode 100644 (file)
index 0000000..72011ae
--- /dev/null
@@ -0,0 +1,8 @@
+--- a/configs/ls1028ardb_tfa_defconfig
++++ b/configs/ls1028ardb_tfa_defconfig
+@@ -1,5 +1,4 @@
+ CONFIG_ARM=y
+-CONFIG_GIC_V3_ITS=y
+ CONFIG_TARGET_LS1028ARDB=y
+ CONFIG_TFABOOT=y
+ CONFIG_SYS_MALLOC_F_LEN=0x6000