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:
Dan Johansen 2019-12-29 08:16:51 +01:00
parent bcda19731b
commit 22e175036b
1 changed files with 2 additions and 3 deletions

View File

@ -1,7 +1,7 @@
#! /bin/bash #! /bin/bash
# ***************************** # *****************************
# Version 1.2.10 # Version 1.2.11
# ***************************** # *****************************
# Set globals # Set globals
@ -396,13 +396,12 @@ cleanup () {
mv $TMPDIR/root/boot/* $TMPDIR/boot mv $TMPDIR/root/boot/* $TMPDIR/boot
if [[ "$DEVICE" = "on2" ]]; then if [[ "$DEVICE" = "on2" ]]; then
#flash bootloader #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 fi
#clean up #clean up
umount $TMPDIR/root umount $TMPDIR/root
umount $TMPDIR/boot umount $TMPDIR/boot
losetup -d $LDEV 1> /dev/null 2>&1
rm -r $TMPDIR/root $TMPDIR/boot rm -r $TMPDIR/root $TMPDIR/boot
partprobe $SDCARD 1> /dev/null 2>&1 partprobe $SDCARD 1> /dev/null 2>&1