From 3242c076492a46ddf5da92fb4bd3de813cab56f4 Mon Sep 17 00:00:00 2001 From: Josua Mayer Date: Tue, 9 Aug 2016 15:23:24 +0200 Subject: mvebu: add sdcard image creation script Added gen_mvebu_sdcard_img.sh to facilitate creating an fixed-size sdcard image, adding the bootloader and populating it with actual data. Added the required rules for creating a 4GB sdcard image according to this layout: p0: boot (fat32) p1: rootfs (squashfs) p2: rootfs_data (ext4) This should be generic to any mvebu boards that can boot from block storage. Added the new sdcard image to the Clearfog image profile. Signed-off-by: Josua Mayer Signed-off-by: Felix Fietkau [cleanup] --- target/linux/mvebu/image/boot.script | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 target/linux/mvebu/image/boot.script (limited to 'target/linux/mvebu/image/boot.script') diff --git a/target/linux/mvebu/image/boot.script b/target/linux/mvebu/image/boot.script new file mode 100644 index 0000000000..1ebc88bda3 --- /dev/null +++ b/target/linux/mvebu/image/boot.script @@ -0,0 +1,7 @@ +setenv bootargs console=ttyS0,115200n8 root=/dev/mmcblk0p2 rootfstype=squashfs rootwait overlay=/dev/mmcblk0p3 +setenv fdt_high 0x07a12000 + +fatload mmc 0:1 0x02000000 zImage +fatload mmc 0:1 0x05F00000 armada-388-clearfog.dtb + +bootz 0x02000000 - 0x05F00000 -- cgit v1.2.3