|
@@ -37,6 +37,27 @@ if [ -e output/images/imx23_olinuxino_dev_linux.sb ] ; then
|
37
|
37
|
elif [ -e output/images/u-boot.sd ] ; then
|
38
|
38
|
echo Writing U-Boot bootstream
|
39
|
39
|
sudo dd if=output/images/u-boot.sd of="$1"1
|
|
40
|
+elif [ -e output/images/ ] ; then
|
|
41
|
+ echo Creaeting boot filesystem
|
|
42
|
+ sudo mkfs.vfat -F 16 -n boot "$1"1
|
|
43
|
+
|
|
44
|
+ echo Mounting boot filesystem
|
|
45
|
+ sudo mkdir -p /media/boot
|
|
46
|
+ sudo mount "$1"1 /media/boot
|
|
47
|
+
|
|
48
|
+ echo Copying bootloader files
|
|
49
|
+ sudo cp output/images/rpi-firmware/* /media/boot/
|
|
50
|
+ sudo cp output/images/*.dtb /media/boot/
|
|
51
|
+
|
|
52
|
+ echo Preparing and copying Kernel Image
|
|
53
|
+ output/host/usr/bin/mkknlimg output/images/zImage /media/boot/zImage
|
|
54
|
+
|
|
55
|
+ echo Synchronising changes to disk
|
|
56
|
+ sudo sync
|
|
57
|
+
|
|
58
|
+ echo Unmounting boot filesystem
|
|
59
|
+ sudo umount /media/boot
|
|
60
|
+ sudo rm -rf /media/boot
|
40
|
61
|
else
|
41
|
62
|
echo Could not find a suitable bootstream!
|
42
|
63
|
fi
|
|
@@ -58,11 +79,13 @@ if [ -e output/images/rootfs.tar ] ; then
|
58
|
79
|
echo Unmounting root filesystem
|
59
|
80
|
sudo umount /media/rootfs
|
60
|
81
|
sudo rm -rf /media/rootfs
|
61
|
|
-else
|
62
|
|
- echo Writing root filesystem
|
|
82
|
+elif [ -e output/images/rootfs.ext2 ] ; then
|
|
83
|
+ echo Writing ext2 root filesystem
|
63
|
84
|
sudo dd if=output/images/rootfs.ext2 of="$1"2 bs=512
|
64
|
85
|
|
65
|
86
|
echo Synchronising changes to disk
|
66
|
87
|
sudo sync
|
|
88
|
+else
|
|
89
|
+ echo Could not find a suitable root filesystem!
|
67
|
90
|
fi
|
68
|
91
|
|