[OpenWrt-Devel] [RFC] sysupgrade: Cross-flashing NOR/NAND proof of concept
Chuanhong Guo
gch981213 at gmail.com
Wed Jun 12 05:29:41 EDT 2019
Hi!
On Wed, Jun 12, 2019 at 8:42 AM Jeff Kletsky <lede at allycomm.com> wrote:
>
> From: Jeff Kletsky <git-commits at allycomm.com>
> * The kernel and software for both the NOR- and NAND-resident
> variants need to be able to read/write raw MTD as well as UBI.
>
> * The existing sysupgrade paths already prevent flashing of a
> NOR-intended image onto a NAND-based device, as well as the other
> way around. As such, even if a approach like this is accepted
> after these board names are "in the wild", sysupgrade will be
> "safe" on "old" builds against future additions to SUPPORTED_DEVICES.
Why would someone do such a cross-flashing at the first place?
If you want to recover the firmware in SPI NAND with a firmware in SPI
NOR, You could just flash a initramfs image of the NAND variant into
NOR flash. (And vice versa)
>
> * The MTD partitioning for both variants need to define both NOR and
> NAND partitioning
GL-AR300M has an NOR-only variant and by adding SPI NAND node into the
NOR variant you'll add some unnecessary error messages into kernel
log.
Regards,
Chuanhong Guo
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel
More information about the openwrt-devel
mailing list