aboutsummaryrefslogtreecommitdiffstats
path: root/package/boot
diff options
context:
space:
mode:
authorYangbo Lu <yangbo.lu@nxp.com>2018-07-18 14:14:40 +0800
committerHauke Mehrtens <hauke@hauke-m.de>2018-09-22 21:20:57 +0200
commiteb684205e5e6958ad71cf4a179fa776f6507f7e3 (patch)
treefe6803b86bdfd42e65cbf894854e47c307d992fa /package/boot
parentf0ec7bd27d206ea0eb9587e178ce0d7ddc006bce (diff)
downloadupstream-eb684205e5e6958ad71cf4a179fa776f6507f7e3.tar.gz
upstream-eb684205e5e6958ad71cf4a179fa776f6507f7e3.tar.bz2
upstream-eb684205e5e6958ad71cf4a179fa776f6507f7e3.zip
layerscape: add SD card boot support
NOR/QSPI Flash on Layerscape board only has limited 64MB memory size. Since some boards (ls1043ardb/ls1046ardb/ls1088ardb/ls1021atwr) could support SD card boot, we added SD boot support for them to put all things on SD card to meet large memory requirement. Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
Diffstat (limited to 'package/boot')
-rw-r--r--package/boot/uboot-layerscape/Makefile32
-rw-r--r--package/boot/uboot-layerscape/files/ls1021atwr-sdboot-uEnv.txt8
-rw-r--r--package/boot/uboot-layerscape/files/ls1043ardb-sdboot-uEnv.txt9
-rw-r--r--package/boot/uboot-layerscape/files/ls1046ardb-sdboot-uEnv.txt9
-rw-r--r--package/boot/uboot-layerscape/files/ls1088ardb-sdboot-uEnv.txt10
5 files changed, 67 insertions, 1 deletions
diff --git a/package/boot/uboot-layerscape/Makefile b/package/boot/uboot-layerscape/Makefile
index 875e08f0e1..ef456bfc7e 100644
--- a/package/boot/uboot-layerscape/Makefile
+++ b/package/boot/uboot-layerscape/Makefile
@@ -44,16 +44,34 @@ define U-Boot/ls1043ardb
ENV_SIZE:=0x20000
endef
+define U-Boot/ls1043ardb-sdboot
+ NAME:=NXP LS1043ARDB SD Card Boot
+ UBOOT_CONFIG:=ls1043ardb_sdcard
+ UBOOT_IMAGE:=u-boot-with-spl-pbl.bin
+endef
+
define U-Boot/ls1046ardb
NAME:=NXP LS1046ARDB
UBOOT_CONFIG:=ls1046ardb_qspi
endef
+define U-Boot/ls1046ardb-sdboot
+ NAME:=NXP LS1046ARDB SD Card Boot
+ UBOOT_CONFIG:=ls1046ardb_sdcard
+ UBOOT_IMAGE:=u-boot-with-spl-pbl.bin
+endef
+
define U-Boot/ls1088ardb
NAME:=NXP LS1088ARDB
UBOOT_CONFIG:=ls1088ardb_qspi
endef
+define U-Boot/ls1088ardb-sdboot
+ NAME:=NXP LS1088ARDB SD Card Boot
+ UBOOT_CONFIG:=ls1088ardb_sdcard_qspi
+ UBOOT_IMAGE:=u-boot-with-spl.bin
+endef
+
define U-Boot/ls2088ardb
NAME:=NXP LS2088ARDB
UBOOT_CONFIG:=ls2080ardb
@@ -66,14 +84,26 @@ define U-Boot/ls1021atwr
ENV_SIZE:=0x20000
endef
+define U-Boot/ls1021atwr-sdboot
+ NAME:=NXP LS1021ATWR SD Card Boot
+ BUILD_SUBTARGET:=armv7
+ UBOOT_CONFIG:=ls1021atwr_sdcard_ifc
+ UBOOT_IMAGE:=u-boot-with-spl-pbl.bin
+ ENV_SIZE:=0x20000
+endef
+
UBOOT_TARGETS := \
ls1012ardb \
ls1012afrdm \
ls1043ardb \
+ ls1043ardb-sdboot \
ls1046ardb \
+ ls1046ardb-sdboot \
ls1088ardb \
+ ls1088ardb-sdboot \
ls2088ardb \
- ls1021atwr
+ ls1021atwr \
+ ls1021atwr-sdboot
define Build/InstallDev
$(INSTALL_DIR) $(STAGING_DIR_IMAGE)
diff --git a/package/boot/uboot-layerscape/files/ls1021atwr-sdboot-uEnv.txt b/package/boot/uboot-layerscape/files/ls1021atwr-sdboot-uEnv.txt
new file mode 100644
index 0000000000..0a1a6bdd1b
--- /dev/null
+++ b/package/boot/uboot-layerscape/files/ls1021atwr-sdboot-uEnv.txt
@@ -0,0 +1,8 @@
+fdtaddr=0x8f000000
+loadaddr=0x81000000
+fdt_high=0xffffffff
+initrd_high=0xffffffff
+sd_boot=mmc read $fdtaddr 7800 800;mmc read $loadaddr 8000 8000;bootm $loadaddr - $fdtaddr
+bootargs=root=/dev/mmcblk0p1 rw rootwait rootfstype=ext4 noinitrd earlycon=uart8250,mmio,0x21c0500 console=ttyS0,115200
+bootcmd=echo starting openwrt ...;run sd_boot
+bootdelay=3
diff --git a/package/boot/uboot-layerscape/files/ls1043ardb-sdboot-uEnv.txt b/package/boot/uboot-layerscape/files/ls1043ardb-sdboot-uEnv.txt
new file mode 100644
index 0000000000..c1596b506a
--- /dev/null
+++ b/package/boot/uboot-layerscape/files/ls1043ardb-sdboot-uEnv.txt
@@ -0,0 +1,9 @@
+fdtaddr=0x8f000000
+loadaddr=0x81000000
+fdt_high=0xffffffffffffffff
+initrd_high=0xffffffffffffffff
+hwconfig=fsl_ddr:bank_intlv=auto
+sd_boot=mmc read $fdtaddr 7800 800;mmc read $loadaddr 8000 8000;bootm $loadaddr - $fdtaddr
+bootargs=root=/dev/mmcblk0p1 rw rootwait rootfstype=ext4 noinitrd earlycon=uart8250,mmio,0x21c0500 console=ttyS0,115200
+bootcmd=echo starting openwrt ...;run sd_boot
+bootdelay=3
diff --git a/package/boot/uboot-layerscape/files/ls1046ardb-sdboot-uEnv.txt b/package/boot/uboot-layerscape/files/ls1046ardb-sdboot-uEnv.txt
new file mode 100644
index 0000000000..c1596b506a
--- /dev/null
+++ b/package/boot/uboot-layerscape/files/ls1046ardb-sdboot-uEnv.txt
@@ -0,0 +1,9 @@
+fdtaddr=0x8f000000
+loadaddr=0x81000000
+fdt_high=0xffffffffffffffff
+initrd_high=0xffffffffffffffff
+hwconfig=fsl_ddr:bank_intlv=auto
+sd_boot=mmc read $fdtaddr 7800 800;mmc read $loadaddr 8000 8000;bootm $loadaddr - $fdtaddr
+bootargs=root=/dev/mmcblk0p1 rw rootwait rootfstype=ext4 noinitrd earlycon=uart8250,mmio,0x21c0500 console=ttyS0,115200
+bootcmd=echo starting openwrt ...;run sd_boot
+bootdelay=3
diff --git a/package/boot/uboot-layerscape/files/ls1088ardb-sdboot-uEnv.txt b/package/boot/uboot-layerscape/files/ls1088ardb-sdboot-uEnv.txt
new file mode 100644
index 0000000000..2d27f7eb05
--- /dev/null
+++ b/package/boot/uboot-layerscape/files/ls1088ardb-sdboot-uEnv.txt
@@ -0,0 +1,10 @@
+fdtaddr=0x8f000000
+loadaddr=0x81000000
+fdt_high=0xa0000000
+initrd_high=0xffffffffffffffff
+hwconfig=fsl_ddr:bank_intlv=auto
+mc_init=mmc read 80000000 5000 1800;mmc read 80300000 7000 800;fsl_mc start mc 80000000 80300000;mmc read 80400000 6800 800;fsl_mc apply dpl 80400000
+sd_boot=mmc read $fdtaddr 7800 800;mmc read $loadaddr 8000 8000;bootm $loadaddr - $fdtaddr
+bootargs=root=/dev/mmcblk0p1 rw rootwait rootfstype=ext4 noinitrd earlycon=uart8250,mmio,0x21c0500 console=ttyS0,115200
+bootcmd=echo starting openwrt ...;run mc_init;run sd_boot
+bootdelay=3