summaryrefslogtreecommitdiffstats
path: root/target/linux/mvebu/image/boot.script
diff options
context:
space:
mode:
authorJosua Mayer <josua.mayer97@gmail.com>2016-08-09 15:23:24 +0200
committerFelix Fietkau <nbd@nbd.name>2016-09-02 14:43:52 +0200
commit3242c076492a46ddf5da92fb4bd3de813cab56f4 (patch)
treec9e97fb3f812f2cdb974e8c8e508c2aff39ab286 /target/linux/mvebu/image/boot.script
parenta67183a7bc6f65535877f98ca25f662affbc1df5 (diff)
downloadmaster-31e0f0ae-3242c076492a46ddf5da92fb4bd3de813cab56f4.tar.gz
master-31e0f0ae-3242c076492a46ddf5da92fb4bd3de813cab56f4.tar.bz2
master-31e0f0ae-3242c076492a46ddf5da92fb4bd3de813cab56f4.zip
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 <josua.mayer97@gmail.com> Signed-off-by: Felix Fietkau <nbd@nbd.name> [cleanup]
Diffstat (limited to 'target/linux/mvebu/image/boot.script')
-rw-r--r--target/linux/mvebu/image/boot.script7
1 files changed, 7 insertions, 0 deletions
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