#21371: ar71xx sysupgrade broken in trunk since r47878 for non-nand devices
-------------------------------+---------------------------------------
 Reporter:  hnyman             |      Owner:  developers
     Type:  defect             |     Status:  new
 Priority:  highest            |  Milestone:  Designated Driver (Trunk)
Component:  base system        |    Version:  Trunk
 Keywords:  ar71xx sysupgrade  |
-------------------------------+---------------------------------------
 r47878 broke the sysupgrade for non-nand ar71xx devices.

 If a non-nand ar71xx device tries sysupgrade from a firmware revision
 47878 or later, the user gets a warning about invalid file in Luci or the
 following error at the system console:

     /sbin/sysupgrade: .: line 10: can't open '/lib/upgrade/nand.sh'

 The reason is explained in https://lists.openwrt.org/pipermail/openwrt-
 devel/2015-December/037958.html

 r7878 inserted a new file /lib/upgrade/merakinand.sh, which contains a
 nand-specific script sourcing. "normal" ar71xx devices now fail due to
 that missing script.


 If you have installed the broken ar71xx firmware with revision
 r47878-current, the easy fix is to manually edit
 /lib/upgrade/merakinand.sh file in the live router and remove the line 10
 containing ". /lib/upgrade/nand.sh". Below is the same patch for source
 repo:
 {{{
 --- target/linux/ar71xx/base-files/lib/upgrade/merakinand.sh
 +++ target/linux/ar71xx/base-files/lib/upgrade/merakinand.sh
 @@ -7,7 +7,6 @@
  #
  . /lib/ar71xx.sh
  . /lib/functions.sh
 -. /lib/upgrade/nand.sh

  get_magic_at() {
      local mtddev=$1
 }}}

 The file /lib/upgrade/merakinand.sh can be also deleted, as it is not
 needed by other devices.

--
Ticket URL: <https://dev.openwrt.org/ticket/21371>
OpenWrt <http://openwrt.org>
Opensource Wireless Router Technology
_______________________________________________
openwrt-tickets mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-tickets

Reply via email to