#20982: jffs2-error / nanostation M5 xw / r47658
------------------------+------------------------
  Reporter:  bittorf@…  |      Owner:  developers
      Type:  defect     |     Status:  new
  Priority:  normal     |  Milestone:
 Component:  packages   |    Version:  Trunk
Resolution:             |   Keywords:
------------------------+------------------------

Comment (by jmarlin):

 https://wiki.openwrt.org/toh/ubiquiti/airmaxm notes the following:

 Special Firmware Note: AirOS XM.v5.5.X images used U-Boot 1.1.4.2-s594
 (Dec 5 2012 - 15:23:07). The OpenWRT image can be successfully flashed
 onto these versions of firmware. However, in July 2015 Ubiquiti released a
 new version of firmware XM.v5.6.X. With this firmware a new U-Boot version
 was released, U-Boot 1.1.4.2-s956 (Jun 10 2015 - 10:54:50). The newer
 U-Boot version changes the memory size and starting address for rootfs,
 cfg, and EEPROM. LOADING AN OPENWRT IMAGE ON A U-Boot 1.1.4.2-s956 WILL
 CAUSE THE DEVICE TO BE BRICKED!!!

 If the device has XM.v5.6.X, an older version of XM firmware can be loaded
 from the AirOS webgui (for example XM.v5.5.10) and U-Boot will be
 overwritten with the older version. OpenWRT can then be loaded onto the
 device successfully.

 {{{
 U-Boot 1.1.4.2-s594 (Dec 5 2012 - 15:23:07)
 #:      name    size    offset  mask_flags
 0:      u-boot          0x00040000      0x00000000      0
 1:      u-boot-env      0x00010000      0x00040000      0
 2:      kernel          0x00100000      0x00050000      0
 3:      rootfs          0x00660000      0x00150000      0
 4:      cfg             0x00040000      0x007b0000      0
 5:      EEPROM          0x00010000      0x007f0000      0

 U-Boot 1.1.4.2-s956 (Jun 10 2015 - 10:54:50)
 #:      name    size    offset  mask_flags
 0:      u-boot          0x00040000      0x00000000      0
 1:      u-boot-env      0x00010000      0x00040000      0
 2:      kernel          0x00100000      0x00050000      0
 3:      rootfs          0x005a0000      0x00150000      0
 4:      cfg             0x00040000      0x006f0000      0
 5:      EEPROM          0x00010000      0x00730000      0
 }}}

 /quote

 Note that these partitions listed on this wikipage are *not* what we
 actually saw under 5.6.3 as mdeneen noted above.

 However, the behavior is consistent with what the wiki notes - flashing
 OpenWRT onto a 5.6.3 Airrouter is *not* successful, while flashing OpenWRT
 onto a downgraded 5.5.10 Airrouter *is*.


 Also note these mtdparts:

 As defined in the the ar71xx Makefile:
 {{{ ubntxm_mtdlayout=mtdparts=spi0.0:256k(u-boot)ro,64k(u-boot-
 
env)ro,1024k(kernel),6528k(rootfs),256k(cfg)ro,64k(EEPROM)ro,7552k@0x50000(firmware)
 }}}

 As seen in the serial console on a 5.6.3 AirOS platform:
 {{{ mtdparts=mtdparts=ar7240-nor0:256k(u-boot),64k(u-boot-
 env),1024k(kernel),5760k(rootfs),256k(cfg),64k(EEPROM) }}}

 The new router firmware notes a rootfs size (5760k) which even doesn't
 match what it reports in its own '/proc/mtd' (6528k). Also, changing the
 rootfs size to 5760k in the ar71xx Makefile still doesn't allow us to
 flash.

--
Ticket URL: <https://dev.openwrt.org/ticket/20982#comment:13>
OpenWrt <http://openwrt.org>
Opensource Wireless Router Technology
_______________________________________________
openwrt-tickets mailing list
openwrt-tickets@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-tickets

Reply via email to