]> git.siccegge.de Git - forks/vmdebootstrap.git/commitdiff
add modules to cubietruck example and provide a wandboard example based on that.
authorNeil Williams <codehelp@debian.org>
Tue, 23 Dec 2014 18:41:41 +0000 (18:41 +0000)
committerNeil Williams <codehelp@debian.org>
Tue, 23 Dec 2014 18:41:41 +0000 (18:41 +0000)
examples/cubietruck-customise.sh
examples/wandboard-customise.sh [new file with mode: 0644]
examples/wandboard6q.sh [new file with mode: 0644]

index 4d436ae3fa813f5d691777690b189e0cd8b3164d..1a66bf92e6452f45c9b8889e070b4d9bc16d3209 100755 (executable)
@@ -22,3 +22,7 @@ dd if=/usr/lib/u-boot/Cubietruck/u-boot-sunxi-with-spl.bin of=${image} bs=1k see
 
 mkdir -p $rootdir/boot/dtbs
 cp $rootdir/usr/lib/linux-image-*-armmp/* $rootdir/boot/dtbs
+
+for module in phy-sun4i-usb ohci-platform; do
+       echo ${module} >> ${rootdir}/etc/initramfs-tools/modules 
+done
diff --git a/examples/wandboard-customise.sh b/examples/wandboard-customise.sh
new file mode 100644 (file)
index 0000000..f16cff0
--- /dev/null
@@ -0,0 +1,28 @@
+#!/bin/sh
+
+set -e
+
+rootdir=$1
+image=$2
+
+if [ -z "${image}" ]; then
+       echo "Image not specified"
+       exit
+fi
+
+if [ ! -f '/usr/lib/u-boot/wandboard_quad/u-boot.imx' ]; then
+       echo "Unable to find wandboard u-boot file"
+       exit
+fi
+
+# u-boot needs to be dd'd to the device, not a partition
+# but kpartx does not setup the device, just the partitions
+
+dd if=/usr/lib/u-boot/wandboard_quad/u-boot.imx of=${image} seek=1 conv=fsync bs=1k
+
+mkdir -p $rootdir/boot/dtbs
+cp $rootdir/usr/lib/linux-image-*-armmp/* $rootdir/boot/dtbs
+
+for module in ahci_platform ahci_imx sd-mod; do
+       echo ${module} >> ${rootdir}/etc/initramfs-tools/modules 
+done
diff --git a/examples/wandboard6q.sh b/examples/wandboard6q.sh
new file mode 100644 (file)
index 0000000..0113bef
--- /dev/null
@@ -0,0 +1,23 @@
+#!/bin/sh
+
+set -e
+
+sudo vmdebootstrap \
+ --owner $(whoami) --verbose \
+ --size 3G \
+ --mirror http://http.debian.net/debian \
+ --log wandboard.log --log-level debug \
+ --arch armhf \
+ --foreign /usr/bin/qemu-arm-static \
+ --enable-dhcp \
+ --configure-apt \
+ --no-extlinux \
+ --no-kernel \
+ --package u-boot \
+ --package linux-image-armmp \
+ --distribution sid \
+ --serial-console-command "/sbin/getty -L ttymxc0 115200 vt100" \
+ --customize "wandboard-customise.sh" \
+ --bootoffset=2mib \
+ --bootsize 100mib --boottype vfat \
+ "$@"