Modify

Opened 5 years ago

Closed 3 years ago

Last modified 2 years ago

#10597 closed defect (fixed)

upgrading ubiquiti AirOS firmware to OpenWrt does not work

Reported by: bittorf@… Owned by: juhosg
Priority: normal Milestone: Barrier Breaker 14.07
Component: packages Version: Trunk
Keywords: ubiquiti ubnt XM bullet 5M 2M flashing sysupgrade Cc:

Description

At the moment, it's not working like documentated on the Wiki[1].

I have some devices, which are not physically available,

so i cannot use the TFTP-method to upgrade.

[1] http://wiki.openwrt.org/toh/ubiquiti/bullet

It seems, that the MAGIC should be XM.ar7240, but is UBNTXM.ar7240:

XM.v5.3# /sbin/fwupdate.real -m /tmp/fwupdate.bin  -d
Found mtd block: /dev/mtd0(u-boot)
Found mtd block: /dev/mtd1(u-boot-env)
Found mtd block: /dev/mtd2(kernel)
Found mtd block: /dev/mtd3(rootfs)
Found mtd block: /dev/mtd4(cfg)
Found mtd block: /dev/mtd5(EEPROM)
Got U-Boot variable: mtdparts = mtdparts=mtdparts=ar7240-nor0:256k(u-boot),64k(u-boot-env),1024k(kernel),6528k(rootfs),256k(cfg),64k(EEPROM)
Adding U-Boot partition: u-boot 9F000000 00040000
Adding U-Boot partition: u-boot-env 9F040000 00010000
Adding U-Boot partition: kernel 9F050000 00100000
Adding U-Boot partition: rootfs 9F150000 00660000
Adding U-Boot partition: cfg 9F7B0000 00040000
Adding U-Boot partition: EEPROM 9F7F0000 00010000
Calculating flash size:
Adding block: /dev/mtd0("u-boot") - size: 00040000
Adding block: /dev/mtd1("u-boot-env") - size: 00010000
Adding block: /dev/mtd2("kernel") - size: 00100000
Adding block: /dev/mtd3("rootfs") - size: 00660000
Adding block: /dev/mtd4("cfg") - size: 00040000
Adding block: /dev/mtd5("EEPROM") - size: 00010000
Total flash size: 00800000
Flash start: 9F000000
Flash end: 9F800000
Header MAGIC 'OPEN'
Current: XM.ar7240.v5.3.7782.110114.1442

New ver: UBNTXM.ar7240.OpenWrt.r29366
Versions: New(0) 0.0.0, Required(327680) 5.0.0
Invalid version 'UBNTXM.ar7240.OpenWrt.r29366'

Attachments (0)

Change History (10)

comment:1 Changed 5 years ago by bittorf@…

Here is the same problem on ubnt-forums with

r29353 instead of r29366 like mine:

http://ubnt.com/forum/showthread.php?p=231574

comment:2 Changed 5 years ago by jow

  • Owner changed from developers to juhosg
  • Status changed from new to assigned

comment:3 Changed 5 years ago by bittorf@…

maybe this comment[1] helps:

"kills third party firmware warnings"

EDIT FILE: ~/SDK.UBNT.v5.2.1/openwrt/tools/ubnt-mkfwimage/src/fw.h
FIND LINE: #define MAGIC_HEADER	"OPEN"
CHANGE TO: #define MAGIC_HEADER	"UBNT"

[1] www.ubnt.com/forum/showthread.php?t=25524

comment:4 Changed 5 years ago by juhosg

  • Resolution set to fixed
  • Status changed from assigned to closed

Fixed in r30626.

comment:5 Changed 4 years ago by malarkannan.p@…

  • Resolution fixed deleted
  • Status changed from closed to reopened

Hi,
I am using r31650 but similar error appears when upgrading from unifi firmware 2.2.5 using ssh.

BZ.v2.2.5# fwupdate.real -m openwrt-ar71xx-generic-ubnt-unifi-jffs2-factory.bin -d
Found mtd block: /dev/mtd0(u-boot)
Found mtd block: /dev/mtd1(u-boot-env)
Found mtd block: /dev/mtd2(kernel)
Found mtd block: /dev/mtd3(rootfs)
Found mtd block: /dev/mtd4(cfg)
Found mtd block: /dev/mtd5(EEPROM)
Got U-Boot variable: mtdparts = mtdparts=mtdparts=ar7240-nor0:256k(u-boot),64k(u-boot-env),1024k(kernel),6528k(rootfs),256k(cfg),64k(EEPROM)
Adding U-Boot partition: u-boot 9F000000 00040000
Adding U-Boot partition: u-boot-env 9F040000 00010000
Adding U-Boot partition: kernel 9F050000 00100000
Adding U-Boot partition: rootfs 9F150000 00660000
Adding U-Boot partition: cfg 9F7B0000 00040000
Adding U-Boot partition: EEPROM 9F7F0000 00010000
Calculating flash size:
Adding block: /dev/mtd0("u-boot") - size: 00040000
Adding block: /dev/mtd1("u-boot-env") - size: 00010000
Adding block: /dev/mtd2("kernel") - size: 00100000
Adding block: /dev/mtd3("rootfs") - size: 00660000
Adding block: /dev/mtd4("cfg") - size: 00040000
Adding block: /dev/mtd5("EEPROM") - size: 00010000
Total flash size: 00800000
Flash start: 9F000000
Flash end: 9F800000
Header MAGIC 'OPEN'
Current: BZ.ar7240.v2.2.5.1080.120224.0850

New ver: XM.ar7240.v6.0.0-OpenWrt-r31650
Invalid version 'XM.ar7240.v6.0.0-OpenWrt-r31650'

comment:6 Changed 4 years ago by marko.draca@…

Trunk version from 15-Jul-2011 21:51, ATTITUDE ADJUSTMENT (Bleeding Edge, r31854)

Here is the fix for unifi:

open
/trunk/target/linux/ar71xx/image/Makefile

search for
define Image/Build/Profile/UBNTUNIFI

and change next line to
$(call Image/Build/Template/$(fs_64k)/$(1),UBNTXM,ubnt-unifi,board=UBNT-XM,XM,UBNTXM,ar7240)

comment:7 Changed 4 years ago by webtrontech@…

This is still happening in r35001.

BZ.v2.2.3# fwupdate.real -m openwrt-ar71xx-generic-ubnt-unifi-jffs2-factory.bin
-d
Found mtd block: /dev/mtd0(u-boot)
Found mtd block: /dev/mtd1(u-boot-env)
Found mtd block: /dev/mtd2(kernel)
Found mtd block: /dev/mtd3(rootfs)
Found mtd block: /dev/mtd4(cfg)
Found mtd block: /dev/mtd5(EEPROM)
Got U-Boot variable: mtdparts = mtdparts=mtdparts=ar7240-nor0:256k(u-boot),64k(u-boot-env),1024k(kernel),6528k(rootfs),256k(cfg),64k(EEPROM)
Adding U-Boot partition: u-boot 9F000000 00040000
Adding U-Boot partition: u-boot-env 9F040000 00010000
Adding U-Boot partition: kernel 9F050000 00100000
Adding U-Boot partition: rootfs 9F150000 00660000
Adding U-Boot partition: cfg 9F7B0000 00040000
Adding U-Boot partition: EEPROM 9F7F0000 00010000
Calculating flash size:
Adding block: /dev/mtd0("u-boot") - size: 00040000
Adding block: /dev/mtd1("u-boot-env") - size: 00010000
Adding block: /dev/mtd2("kernel") - size: 00100000
Adding block: /dev/mtd3("rootfs") - size: 00660000
Adding block: /dev/mtd4("cfg") - size: 00040000
Adding block: /dev/mtd5("EEPROM") - size: 00010000
Total flash size: 00800000
Flash start: 9F000000
Flash end: 9F800000
Header MAGIC 'OPEN'
Current: BZ.ar7240.v2.2.3.1055.120112.0726

New ver: XM.ar7240.v6.0.0-OpenWrt-r35001
Invalid version 'XM.ar7240.v6.0.0-OpenWrt-r35001'

.

comment:8 Changed 4 years ago by webtrontech@…

Fixed this by following previously posted mods but the text strings are different now
open
/trunk/target/linux/ar71xx/image/Makefile
search for
$(eval $(call SingleProfile,UBNTXM,$(fs_64k),UBNTUNIFI,ubnt-unifi,UBNT-UF,ttyS0,115200,XM,XM,ar7240))
change just the last bit to include UBNT
$(eval $(call SingleProfile,UBNTXM,$(fs_64k),UBNTUNIFI,ubnt-unifi,UBNT-UF,ttyS0,115200,XM,UBNTXM,ar7240))

comment:9 Changed 3 years ago by tripolar

  • Resolution set to fixed
  • Status changed from reopened to closed

please try latest trunk and reopen if the bug still exists.

comment:10 Changed 2 years ago by jow

  • Milestone changed from Attitude Adjustment 12.09 to Barrier Breaker 14.07

Milestone Attitude Adjustment 12.09 deleted

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.