8 if [ -z "${image}" ]; then
9 echo "Image not specified"
13 if [ ! -f '/usr/lib/u-boot/Cubietruck/u-boot-sunxi-with-spl.bin' ]; then
14 echo "Unable to find cubietruck u-boot file"
18 # u-boot needs to be dd'd to the device, not a partition
19 # but kpartx does not setup the device, just the partitions
21 dd if=/usr
/lib
/u-boot
/Cubietruck
/u-boot-sunxi-with-spl.bin of
=${image} bs
=1k seek
=8
23 mkdir
-p $rootdir/boot
/dtbs
24 cp $rootdir/usr
/lib
/linux-image-
*-armmp/* $rootdir/boot
/dtbs
26 for module
in phy-sun4i-usb ohci-platform
; do
27 echo ${module} >> ${rootdir}/etc
/initramfs-tools
/modules