using openwrt mtd command, advide erase before writing

This commit is contained in:
Daniel Barlow 2023-09-18 10:59:55 +01:00
parent b3a7a2246d
commit 12b9feb8ee

View file

@ -120,13 +120,14 @@ hardware-specific, and sometimes involves soldering: please refer
to the :ref:`development manual <tftp server>`. to the :ref:`development manual <tftp server>`.
Flashing from OpenWrt (not currently advised!) Flashing from OpenWrt
============================================== =====================
.. CAUTION:: At your own risk! This will (at least in some .. CAUTION:: Untested! A previous version of these instructions
circumstances) lead to bricking the device: we think this (without the -e flag) led to bricking the device
flash method is currently incompatible with use of a when flashing a jffs2 image. If you are reading
writeable (jffs2) filesystem. this message, nobody has yet reported on whether the
new instructions are any better.
If your device is running OpenWrt then it probably has the If your device is running OpenWrt then it probably has the
:command:`mtd` command installed. After transferring the image onto the :command:`mtd` command installed. After transferring the image onto the
@ -134,7 +135,10 @@ device using e.g. :command:`ssh`, you can run it as follows:
.. code-block:: console .. code-block:: console
mtd -r write /tmp/firmware.bin firmware mtd -e -r write /tmp/firmware.bin firmware
The options to this command are for "erase before writing" and "reboot
after writing".
For more information, please see the `OpenWrt manual <https://openwrt.org/docs/guide-user/installation/sysupgrade.cli>`_ which may also contain (hardware-dependent) instructions on how to flash an image using the vendor firmware - perhaps even from a web interface. For more information, please see the `OpenWrt manual <https://openwrt.org/docs/guide-user/installation/sysupgrade.cli>`_ which may also contain (hardware-dependent) instructions on how to flash an image using the vendor firmware - perhaps even from a web interface.