clearfog: Add a crude eMMC flashing script
Boot the board via UART with a USB flash disk loaded with
`usb-flash.img`:
./tools/kwboot -b ./u-boot-spl.kwb -t -p /dev/ttyUSB0
usb start; fatload usb 0:1 00800000 boot.scr; source 00800000
Run this from within U-Boot:
mount /dev/sda1 /mnt; sh /mnt/usb-reflash-factory.sh
Don't forget to re-jumper the board for eMMC boot afterwards (00111), do
not leave it in the UART mode (01001).
Change-Id: Iea55c065b2a7e2cf01eed2cbf7cf480d4db85f65
diff --git a/board/czechlight/clearfog/usb-genimage.cfg b/board/czechlight/clearfog/usb-genimage.cfg
index 5f0820a..d909262 100644
--- a/board/czechlight/clearfog/usb-genimage.cfg
+++ b/board/czechlight/clearfog/usb-genimage.cfg
@@ -6,7 +6,8 @@
"czechlight-clearfog.dtb",
"rootfs.cpio.uboot",
"u-boot-spl.kwb",
- "sdcard.img.squashfs"
+ "sdcard.img.squashfs",
+ "usb-reflash-factory.sh"
}
}
size = 128M