by ckiick » Fri Oct 19, 2012 6:02 pm
To elaborate a little more on WarHeadsSE posting.
get the file mtd1-uboot.bin from his link. The size should be exactly 2162688 bytes. It is a copy of the stage1/uboot section of nand for an oxnas board running ALARM.
The md5sum is ed5a59bf385db528f4f601defa5de3ad. DO NOT USE if it is corrupt.
If your uboot is not completely trashed already, this procedure will definetely nuke it. It will also reset the boot environment (blparams). You need to be booted off of SATA, and a serial console is highly recommended.
First verify that the file is the right size and checksum.
Then use flash_erase on the first 16 blocks of mtd1. This will kill the existing uboot.
Write the image to nand using nandwrite. I used the -n -o -r options.
Dump the image back out and compare to the original file. If they don't match, something is wrong.
Use blparam to reset the boot environment to your specific plug.
If needed, install a uImage into NAND. See the oxnas-install.sh script for clues. Be careful!
Reboot without SATA. Monitor on the serial console to see it starting uboot.
$this->bbcode_second_pass_code('', '
flash_erase /dev/mtd1 0 16
nandwrite -n -o -r /dev/mtd1 mtd1-uboot.bin
nanddump -n -o -l 0x200000 -f mtd1-uboot.chk /dev/mtd1
md5sum mtd1-uboot.bin mtd1-uboot.chk
')
Things that need to be reset using blparams:
ethaddr
cesvcid
bootargs_stock, the mac_addr part.
bootargs, the mac_addr part.
The cesvcid and mac addr can be found on the bottom of the foot of the pogoplug.
--
Chris J. Kiick Robot builder and all-around geek.