[U-Boot] [PATCH] lsxl: Add documentation how to flash an unmodified board

Michael Walle michael at walle.cc
Tue Jun 12 07:14:22 UTC 2018


Am 2018-06-07 11:07, schrieb Bastian Germann:
> Hello Michael,
> 
> I tried to use the MTD layer but that did not work even though I set 
> the
> flash in the Linux device tree read-write. I cannot remember the output
> exactly as it is some time ago that I tried (with Debian).
> 
> Cheers,
> Bastian

>>> + flashrom -r dump.bin -p linux_spi:dev=/dev/spidev0.0
>>> + truncate -s 384K u-boot.kwb
>>> + dd conv=notrunc if=u-boot.kwb of=dump.bin
>>> + flashrom -w dump.bin -p linux_spi:dev=/dev/spidev0.0


Hi Bastian,

ok I see. I'm fine with this. But one remaining question. Why do you 
truncate to 384KiB? The upstream bootloader has its environment in the 
last sector, ie 448KiB.

-michael



More information about the U-Boot mailing list