X-Git-Url: https://git.siccegge.de//index.cgi?a=blobdiff_plain;f=examples%2Fcubietruck-customise.sh;h=bef3bcc00741ff778e3d961ee9b9dbe178e9e311;hb=c476243eafde1e0eda3158f31398b622c8043a9a;hp=4d436ae3fa813f5d691777690b189e0cd8b3164d;hpb=41ebf61957c1c3d168b5e048e465c6a7b0b57a1c;p=forks%2Fvmdebootstrap.git diff --git a/examples/cubietruck-customise.sh b/examples/cubietruck-customise.sh index 4d436ae..bef3bcc 100755 --- a/examples/cubietruck-customise.sh +++ b/examples/cubietruck-customise.sh @@ -3,22 +3,10 @@ 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 + +for module in phy-sun4i-usb ohci-platform; do + echo ${module} >> ${rootdir}/etc/initramfs-tools/modules +done