Re: upgrading u-boot from linux for SH7785LCR board

Mike Frysinger
2010-07-04T21:24:43Z

[-- Attachment #1: Type: Text/Plain, Size: 751 bytes --]

On Sunday, July 04, 2010 14:11:15 Bill Traynor wrote:
> 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=128k conv=sync

why dont you just use the mtdblock interface ? it will take care of all the
weird flash issues like erasing/etc...

all i do is:
cat u-boot.bin > /dev/mtdblock0
-mike

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 836 bytes --]