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

_______________________________________________
U-Boot mailing list
[email protected]
https://lists.denx.de/listinfo/u-boot

Reply via email to