From: Michael Walle Date: Tue, 12 Jun 2018 09:14:22 +0200 Subject: [U-Boot] [PATCH] lsxl: Add documentation how to flash an unmodified board In-Reply-To: <4a4cf150-f423-9e5b-ade1-b2e34e9597fd@fishpost.de> References: <20180606093856.1170-1-bastian.germann@fishpost.de> <4a4cf150-f423-9e5b-ade1-b2e34e9597fd@fishpost.de> Message-ID: <74b56a1debf91772d57213605547d971@walle.cc> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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