diff options
author | Yangbo Lu <yangbo.lu@nxp.com> | 2018-07-18 14:14:40 +0800 |
---|---|---|
committer | Hauke Mehrtens <hauke@hauke-m.de> | 2018-09-22 21:20:57 +0200 |
commit | eb684205e5e6958ad71cf4a179fa776f6507f7e3 (patch) | |
tree | fe6803b86bdfd42e65cbf894854e47c307d992fa /target/linux/layerscape/image/armv8_64b.mk | |
parent | f0ec7bd27d206ea0eb9587e178ce0d7ddc006bce (diff) | |
download | upstream-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 'target/linux/layerscape/image/armv8_64b.mk')
-rw-r--r-- | target/linux/layerscape/image/armv8_64b.mk | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/target/linux/layerscape/image/armv8_64b.mk b/target/linux/layerscape/image/armv8_64b.mk index 15963eb912..a144fd0c66 100644 --- a/target/linux/layerscape/image/armv8_64b.mk +++ b/target/linux/layerscape/image/armv8_64b.mk @@ -85,6 +85,27 @@ define Device/ls1043ardb endef TARGET_DEVICES += ls1043ardb +define Device/ls1043ardb-sdboot + DEVICE_TITLE := LS1043ARDB (SD Card Boot) + DEVICE_PACKAGES += \ + layerscape-fman-ls1043ardb \ + layerscape-ppa-ls1043ardb + DEVICE_DTS := freescale/fsl-ls1043a-rdb-sdk + FILESYSTEMS := ext4 + IMAGES := sdcard.img + IMAGE/sdcard.img := \ + ls-clean | \ + ls-append-sdhead $(1) | pad-to 4K | \ + ls-append $(1)-uboot.bin | pad-to 3M | \ + ls-append $(1)-uboot-env.bin | pad-to 4M | \ + ls-append ls1043ardb-ppa.itb | pad-to 9M | \ + ls-append ls1043ardb-fman.bin | pad-to 15M | \ + ls-append-dtb $$(DEVICE_DTS) | pad-to 16M | \ + append-kernel | pad-to $(LS_SD_ROOTFSPART_OFFSET)M | \ + append-rootfs | check-size $(LS_SD_IMAGE_SIZE) +endef +TARGET_DEVICES += ls1043ardb-sdboot + define Device/ls1046ardb DEVICE_TITLE := LS1046ARDB DEVICE_PACKAGES += \ @@ -109,6 +130,27 @@ define Device/ls1046ardb endef TARGET_DEVICES += ls1046ardb +define Device/ls1046ardb-sdboot + DEVICE_TITLE := LS1046ARDB (SD Card Boot) + DEVICE_PACKAGES += \ + layerscape-fman-ls1046ardb \ + layerscape-ppa-ls1046ardb + DEVICE_DTS := freescale/fsl-ls1046a-rdb-sdk + FILESYSTEMS := ext4 + IMAGES := sdcard.img + IMAGE/sdcard.img := \ + ls-clean | \ + ls-append-sdhead $(1) | pad-to 4K | \ + ls-append $(1)-uboot.bin | pad-to 3M | \ + ls-append $(1)-uboot-env.bin | pad-to 4M | \ + ls-append ls1046ardb-ppa.itb | pad-to 9M | \ + ls-append ls1046ardb-fman.bin | pad-to 15M | \ + ls-append-dtb $$(DEVICE_DTS) | pad-to 16M | \ + append-kernel | pad-to $(LS_SD_ROOTFSPART_OFFSET)M | \ + append-rootfs | check-size $(LS_SD_IMAGE_SIZE) +endef +TARGET_DEVICES += ls1046ardb-sdboot + define Device/ls1088ardb DEVICE_TITLE := LS1088ARDB DEVICE_PACKAGES += \ @@ -137,6 +179,33 @@ define Device/ls1088ardb endef TARGET_DEVICES += ls1088ardb +define Device/ls1088ardb-sdboot + DEVICE_TITLE := LS1088ARDB (SD Card Boot) + DEVICE_PACKAGES += \ + layerscape-rcw-ls1088ardb-sdboot \ + layerscape-mc-ls1088ardb \ + layerscape-dpl-ls1088ardb \ + layerscape-ppa-ls1088ardb \ + restool + DEVICE_DTS := freescale/fsl-ls1088a-rdb + FILESYSTEMS := ext4 + IMAGES := sdcard.img + IMAGE/sdcard.img := \ + ls-clean | \ + ls-append-sdhead $(1) | pad-to 4K | \ + ls-append $(1)-rcw.bin | pad-to 1M | \ + ls-append $(1)-uboot.bin | pad-to 3M | \ + ls-append $(1)-uboot-env.bin | pad-to 4M | \ + ls-append ls1088ardb-ppa.itb | pad-to 10M | \ + ls-append ls1088ardb-mc.itb | pad-to 13M | \ + ls-append ls1088ardb-dpl.dtb | pad-to 14M | \ + ls-append ls1088ardb-dpc.dtb | pad-to 15M | \ + ls-append-dtb $$(DEVICE_DTS) | pad-to 16M | \ + append-kernel | pad-to $(LS_SD_ROOTFSPART_OFFSET)M | \ + append-rootfs | check-size $(LS_SD_IMAGE_SIZE) +endef +TARGET_DEVICES += ls1088ardb-sdboot + define Device/ls2088ardb DEVICE_TITLE := LS2088ARDB DEVICE_PACKAGES += \ |