]> git.siccegge.de Git - forks/vmdebootstrap.git/commitdiff
trim cubietruck example to a possible vm image
authorNeil Williams <codehelp@debian.org>
Fri, 2 Jan 2015 13:57:46 +0000 (13:57 +0000)
committerNeil Williams <codehelp@debian.org>
Fri, 2 Jan 2015 13:57:46 +0000 (13:57 +0000)
examples/cubietruck-customise.sh
examples/cubietruck.sh

index 1a66bf92e6452f45c9b8889e070b4d9bc16d3209..bef3bcc00741ff778e3d961ee9b9dbe178e9e311 100755 (executable)
@@ -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
index 91db01a43803535a6fb058a035430f48c17a816b..395b032f72eae7b2aa08f15eab2d65a3be43b895 100755 (executable)
@@ -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 \
  "$@"