[U-Boot] [PATCH] lsxl: Add documentation how to flash an unmodified board
Bastian Germann
bastiangermann at fishpost.de
Wed Jun 6 09:47:43 UTC 2018
Signed-off-by: Bastian Germann <bastiangermann at fishpost.de>
---
board/buffalo/lsxl/README | 17 ++++++++++++++++-
1 file changed, 16 insertions(+), 1 deletion(-)
diff --git a/board/buffalo/lsxl/README b/board/buffalo/lsxl/README
index ef5ed42880..3ede081776 100644
--- a/board/buffalo/lsxl/README
+++ b/board/buffalo/lsxl/README
@@ -111,7 +111,7 @@ rescue
See `Rescue Mode` for more information.
You can change the boot source by setting the 'bootsource' variable to the
-corresponding value. Please note, that the restore_env script will the the
+corresponding value. Please note, that the restore_env script will set the
bootsource back to 'legacy'.
@@ -137,3 +137,18 @@ you already have a bootloader CLI, you can use the following commands:
bootp ${loadaddr} u-boot.kwb
sf erase 0 +${filelen}
sf write 0 ${fileaddr} ${filesize}
+
+As netconsole is unavailable in the Buffalo U-Boot version, you can only
+flash via bootloader CLI if you modify the board. If you do not want to do
+that, you can flash from GNU/Linux with the flashrom utility. You have to
+have the flash chip available as a spidev device, which you can get by
+enabling Linux configuration option CONFIG_SPI_SPIDEV and adding a spidev
+compatible device in the device tree available in the Linux source tree as
+arch/arm/boot/dts/kirkwood-lsxl.dtsi
+
+The flashing is then done with the following commands:
+
+ 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
--
2.17.1
More information about the U-Boot
mailing list