Commit 22e17503 authored by Dan Johansen's avatar Dan Johansen

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.
parent bcda1973
#! /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
#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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment