summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorNeil Williams <codehelp@debian.org>2015-01-02 13:57:46 +0000
committerNeil Williams <codehelp@debian.org>2015-01-02 13:57:46 +0000
commit5df7b79ff1e41dbf8ef491d1de25201d0a2e2525 (patch)
treed3b237c1f4404f75adab289ef0f0a7d8540526a4 /examples
parent3a412f8c99ce163873825a644e0c135a33ad1fb3 (diff)
downloadvmdebootstrap-5df7b79ff1e41dbf8ef491d1de25201d0a2e2525.tar.gz
trim cubietruck example to a possible vm image
Diffstat (limited to 'examples')
-rwxr-xr-xexamples/cubietruck-customise.sh16
-rwxr-xr-xexamples/cubietruck.sh4
2 files changed, 0 insertions, 20 deletions
diff --git a/examples/cubietruck-customise.sh b/examples/cubietruck-customise.sh
index 1a66bf9..bef3bcc 100755
--- a/examples/cubietruck-customise.sh
+++ b/examples/cubietruck-customise.sh
@@ -3,22 +3,6 @@
set -e
rootdir=$1
-image=$2
-
-if [ -z "${image}" ]; then
- echo "Image not specified"
- exit
-fi
-
-if [ ! -f '/usr/lib/u-boot/Cubietruck/u-boot-sunxi-with-spl.bin' ]; then
- echo "Unable to find cubietruck 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/Cubietruck/u-boot-sunxi-with-spl.bin of=${image} bs=1k seek=8
mkdir -p $rootdir/boot/dtbs
cp $rootdir/usr/lib/linux-image-*-armmp/* $rootdir/boot/dtbs
diff --git a/examples/cubietruck.sh b/examples/cubietruck.sh
index 91db01a..395b032 100755
--- a/examples/cubietruck.sh
+++ b/examples/cubietruck.sh
@@ -13,13 +13,9 @@ sudo vmdebootstrap \
--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 ttyS0 115200 vt100" \
--customize "cubietruck-customise.sh" \
- --bootoffset=2mib \
- --bootsize 100mib --boottype vfat \
"$@"