root/trunk/software/rootfs/flash.sh

Revision 346, 315 bytes (checked in by hardert, 5 months ago)

Revert to the old flash script for now since the new one interacts
poorly with the auto-flashing script

  • Property svn:executable set to *
Line 
1 #!/bin/sh
2
3 flash_eraseall /dev/mtd3
4 nandwrite -p /dev/mtd3 /media/mmcblk0p1/uImage
5
6 flash_eraseall -j /dev/mtd4
7 mkdir /media/nand
8 mount -t jffs2 /dev/mtdblock4 /media/nand
9 tar jxvf /media/mmcblk0p2/rootfs.tar.bz2 -C /media/nand
10 umount /media/nand
11 echo "default-on" > /sys/class/leds/oswaldboard\:\:usr/trigger
12 halt
Note: See TracBrowser for help on using the browser.