Fix odroid N2 uboot flashing command
The odroid N2 flashing command was using an of= device that does not exist, resulting in non-booting installs. Setting it to the same device variable as the others should fix this. Also removed a losetup line, that does not exist in the other device sections. And updated version to 1.2.11.
This commit is contained in:
parent
bcda19731b
commit
22e175036b
|
|
@ -1,7 +1,7 @@
|
|||
#! /bin/bash
|
||||
|
||||
# *****************************
|
||||
# Version 1.2.10
|
||||
# Version 1.2.11
|
||||
# *****************************
|
||||
|
||||
# Set globals
|
||||
|
|
@ -396,13 +396,12 @@ cleanup () {
|
|||
mv $TMPDIR/root/boot/* $TMPDIR/boot
|
||||
if [[ "$DEVICE" = "on2" ]]; then
|
||||
#flash bootloader
|
||||
dd if=$TMPDIR/boot/u-boot.bin of=${LDEV} conv=fsync,notrunc bs=512 seek=1 1> /dev/null 2>&1
|
||||
dd if=$TMPDIR/boot/u-boot.bin of=${SDCARD} conv=fsync,notrunc bs=512 seek=1 1> /dev/null 2>&1
|
||||
fi
|
||||
|
||||
#clean up
|
||||
umount $TMPDIR/root
|
||||
umount $TMPDIR/boot
|
||||
losetup -d $LDEV 1> /dev/null 2>&1
|
||||
rm -r $TMPDIR/root $TMPDIR/boot
|
||||
partprobe $SDCARD 1> /dev/null 2>&1
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue