Misc fixes
This commit is contained in:
parent
3cc05c50c3
commit
6b75b69ce0
1 changed files with 7 additions and 2 deletions
|
@ -1,4 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
#
|
||||||
|
# based on instructions at:
|
||||||
|
# https://www.yoctoproject.org/downloads/bsps/daisy16/beaglebone
|
||||||
|
|
||||||
# cleanup
|
# cleanup
|
||||||
# trap ctrl-c and call ctrl_c()
|
# trap ctrl-c and call ctrl_c()
|
||||||
|
@ -8,6 +11,8 @@ function cleanup() {
|
||||||
umount -f /tmp/sdcard.boot.$$ >/dev/null 2>&1
|
umount -f /tmp/sdcard.boot.$$ >/dev/null 2>&1
|
||||||
umount -f /tmp/sdcard.root.$$ >/dev/null 2>&1
|
umount -f /tmp/sdcard.root.$$ >/dev/null 2>&1
|
||||||
echo "Aborted."
|
echo "Aborted."
|
||||||
|
rmdir /tmp/sdcard.boot.$$
|
||||||
|
rmdir /tmp/sdcard.root.$$
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -68,8 +73,8 @@ mount -t ext4 "${DEV}2" /tmp/sdcard.root.$$
|
||||||
echo "...done"
|
echo "...done"
|
||||||
|
|
||||||
echo "Copying bootloader..."
|
echo "Copying bootloader..."
|
||||||
cp MLO-beaglebone /mnt/sdcard.boot.$$/MLO
|
cp MLO-beaglebone /tmp/sdcard.boot.$$/MLO
|
||||||
cp u-boot-beaglebone.img /mnt/sdcard.boot.$$/u-boot.img
|
cp u-boot-beaglebone.img /tmp/sdcard.boot.$$/u-boot.img
|
||||||
echo "...done"
|
echo "...done"
|
||||||
|
|
||||||
echo "Creating root filesystem..."
|
echo "Creating root filesystem..."
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue