8 if [ -z "${image}" ]; then
9 echo "Image not specified"
13 if [ ! -f '/usr/lib/u-boot/wandboard_quad/u-boot.imx' ]; then
14 echo "Unable to find wandboard 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
/wandboard_quad
/u-boot.imx of
=${image} seek
=1 conv
=fsync bs
=1k
23 mkdir
-p $rootdir/boot
/dtbs
24 cp $rootdir/usr
/lib
/linux-image-
*-armmp/* $rootdir/boot
/dtbs
26 for module
in ahci_platform ahci_imx sd-mod
; do
27 echo ${module} >> ${rootdir}/etc
/initramfs-tools
/modules