From eb684205e5e6958ad71cf4a179fa776f6507f7e3 Mon Sep 17 00:00:00 2001 From: Yangbo Lu Date: Wed, 18 Jul 2018 14:14:40 +0800 Subject: 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 --- target/linux/layerscape/image/armv7.mk | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'target/linux/layerscape/image/armv7.mk') diff --git a/target/linux/layerscape/image/armv7.mk b/target/linux/layerscape/image/armv7.mk index 59cc982017..7a582d79bf 100644 --- a/target/linux/layerscape/image/armv7.mk +++ b/target/linux/layerscape/image/armv7.mk @@ -29,3 +29,19 @@ define Device/ls1021atwr append-rootfs | pad-rootfs | check-size 67108865 endef TARGET_DEVICES += ls1021atwr + +define Device/ls1021atwr-sdboot + DEVICE_TITLE := LS1021ATWR (SD Card Boot) + DEVICE_DTS := ls1021a-twr + 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 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 += ls1021atwr-sdboot -- cgit v1.2.3