upgrading u-boot from linux for SH7785LCR board

Bill Traynor
2010-07-04T18:11:15Z

I've compiled and tested u-boot from git for the 7785lcr board. I'd
like to write the u-boot.bin to flash but do not have a JTAG to be able
to recover if the write fails.

Given the MTD layout:
dev: size erasesize name
mtd0: 00080000 00040000 "loader"
mtd1: 00080000 00040000 "bootenv"
mtd2: 00400000 00040000 "kernel"
mtd3: 03b00000 00040000 "data"

Is it reasonable to do the following:

flash_erase /dev/mtd[0]
dd if=/tmp/u-boot.bin of=/dev/mtd0 bs\x128k conv=sync

I'd rather not brick the board I have, so if someone who does have the
capability to recover could test this method for me, it'd be appreciated.

Thanks
Bill