Reply
Newbie
murray
Posts: 5
Registered: ‎01-15-2009
Posts: 5
Registered: 01-15-2009

Bad firmware update image

When ever I try to upgrade the firmware on my nanostation 2, I get a an error message saying "Bad firmware update image" on the web interface. Or "Error code 2: Invalid firmware file" if I try to upgrade using ftp.

What does this mean?

I've tried with a number of different firmware versions all with the same result. What is being checked to determine if the image is valid?
Ubiquiti Employee
UBNT-keba
Posts: 326
Registered: ‎08-28-2007
Posts: 326
Kudos: 24
Registered: 08-28-2007

Re: Bad firmware update image

You should use TFTP and use BINARY transfer mode.
Ubiquiti Networks, Inc.
System programmer
Newbie
murray
Posts: 5
Registered: ‎01-15-2009
Posts: 5
Registered: 01-15-2009

Re: Bad firmware update image

I am using TFTP in binary mode:


$ tftp 192.168.1.20
tftp> trace
Packet tracing on.
tftp> binary
tftp> put XS2.ar2316.v3.2.3-rc.4063.081124.1732.bin
sent WRQ
....
....
....
sent DATA
received ACK
sent DATA
received ACK
sent DATA
received ERROR
Error code 2: Invalid firmware file
Sent 2978304 bytes in 32.8 seconds
tftp>


I get a similar error if I upload via the web interface.

... and if I scp the file to the nanostation and try running fwupdate manually:


XS5.ar2313.v3.1.1.3498.080725.1329# fwupdate -m
Invalid version 'XS2.ar2316.OpenWRT'
/bin/fwupdate: Firmware update file check failed!


md5sum's of the uploaded file are correct so I don't think there is any problem when transferring the file.

What checks does the fwupdate do? And why would they be failing?
Newbie
murray
Posts: 5
Registered: ‎01-15-2009
Posts: 5
Registered: 01-15-2009

Re: Bad firmware update image

Oops, my mistake!

What I've got here is a nanostation5, and I'm trying to load the nanostation2 firmware onto it.

Guess that would explain it.. :manhappy:

Anyway, thanks for the fast response.
Previous Employee
UBNT-Mike.Ford
Posts: 9,171
Registered: ‎08-17-2007
Posts: 9171
Kudos: 11
Registered: 08-17-2007

Re: Bad firmware update image

Thanks for the update.

Mike
Reply