Modify

Opened 3 years ago

Last modified 21 months ago

#18959 reopened defect

Netgear WNR2000v3 - not applied Patch have cost me 4 hours, no flashing possible atm

Reported by: anonymous Owned by: developers
Priority: high Milestone:
Component: base system Version: Trunk
Keywords: Cc:

Description

Hello. I got an Netgear WNR2000v3 (normal EU/WW-device) and i had to figure out by myself why i cant flash Openwrt in any way on the device.

I give here a quick, full story about the WNR2000v3 that should clear everything about the device for all time.

The WNR2000v3 is an atheros device that is working fine when Openwrt get somehow on the device. Without flashing via serial console, it was not possible to install it. BUT i was able to flash DD-WRT totaly normal via Netgear web-gui. So the solution is there but not implemented into Openwrt webflash-files, that already exist.
I start checking dd-wrt and why it can be flashed and openwrt cant(not via webflash, not via tftp).

Its because of 29763551+04+32 !
This is the board_hw_id. It is been set by default to 29763551+04+32. The factory netgear image have this value in it together with board_model_id = wnr2000v3. When you only have the board_model_id and not the board_hw_id, it would not flash via web-gui and not via tftp. Openwrt only have board_model_id.

The solution for Openwrt is:
In the file target/linux/ar71xx/image/Makefile

Change

SingleProfile,Netgear,64kraw,WNR2000V3,wnr2000v3,WNR2000V3,ttyS0,115200,$$(wnr2000v3_mtdlayout),0x32303033,WNR2000V3,"" NA,))

to

SingleProfile,Netgear,64kraw,WNR2000V3,wnr2000v3,WNR2000V3,ttyS0,115200,$$(wnr2000v3_mtdlayout),0x32303033,WNR2000V3,"" NA,-H 29763551+04+32))

This patch have already been send to the Openwrt community before one year!

https://www.mail-archive.com/openwrt-devel@lists.openwrt.org/msg21900.html

Only because the device from Aaron Z was able to flash ANY image, because his device miss the model_hw_id, the patch dont get applied to Openwrt.

On other pages its also written, that the board_hw_id is been set by default on the devices and to get able to flash every firmware that only have the board_model_id set, you have to remove the value by talking via serial to the device.

http://www.techinfodepot.info/wiki/Netgear_WNR2000_v3#JTAG-Serial_Info

Additional information: The most recent 1.1.2.x Firmware works perfectly with an normal sized openwrt-image (with just luci enabled and nothing else). Only DD-WRT images have a problem for first flash with too big size.

http://svn.dd-wrt.com/ticket/3188

Here is more information about the wnr2000v3 and that it need both values to flash(post from Ronturn on the page):
http://www.dd-wrt.com/phpBB2/viewtopic.php?p=702539

So finaly: PLEASE now add the patch that already someone have send to Openwrt before one year, so that normal user can flash Openwrt nicely via default web-gui (or tftp). When patch is been applied and openwrt image is been flashed, there comes a nice question "current version: 1.1.2.x, next version: Openwrt rXXXXXX" would you like to continue? When you answer with yes, you have after few moments an nice working Openwrt device.

And again as told above: The patch does not make problems to devices like for example the one from Aaron Z who did not apply the patch to upstream. When board_hw_id is not been set like it seems on his device, an image with board_hw_id set also gets flashed, because then the device simply dont check the board_hw_id.

Attachments (0)

Change History (9)

comment:1 Changed 3 years ago by anonymous

Thanks for reporting this awesome information about the router. It helped me to get able to build an image that can be flashed with the factory web interface!

comment:2 Changed 3 years ago by nbd

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

fixed in r45054

comment:3 Changed 21 months ago by anonymous

Hi!

I am still getting the message "Firmware upgrade failed. Please check your file."

Using the latest release: https://downloads.openwrt.org/chaos_calmer/15.05/ar71xx/generic/openwrt-15.05-ar71xx-generic-wnr2000v3-squashfs-factory.img

The vendor firmware version is: V1.1.2.2

Can you give any hints what I can do?

comment:4 Changed 21 months ago by anonymous

  • Resolution fixed deleted
  • Status changed from closed to reopened

comment:5 Changed 21 months ago by anonymous

After attaching a serial console to the board, as described here: http://www.techinfodepot.info/wiki/Netgear_WNR2000_v3#JTAG-Serial_Info

The console spit out that the model id did not match.

The firmware is for "wnr2000v3", where the command
board_model_id_show revealed a model_id of "WNR2000V3", so this seems to be case sensitive.

Using board_model_id_set command I changed it to "wnr2000v3" and than everything worked like a charm.

comment:6 Changed 21 months ago by anonymous

You are trying to flash outdated and unsipported 15.05. Current version is 15.05.1 (and trunk).

comment:7 Changed 21 months ago by anonymous

It also did not work with trunk, due to mismatching model_id.

comment:8 Changed 21 months ago by anonymous

I cant confirm this. Trunk is flashing fine. I have an other problem on trunk:

/ticket/22413.html

comment:9 Changed 21 months ago by anonymous

Here as prove that the regular model ID is written in small letters. I flashed with serial connection the latest oem firmware that also have small written letters:

Bytes transferred = 3469509 (34f0c5 hex)
wnr2000v3 Firmware, check special case
Firmware version > V1.1.1.39, checking HW ID

HW ID on board: 29763551+04+32
HW ID on image: 29763551+04+32
Firmware Image HW ID matched Board HW ID

MODEL ID on board: wnr2000v3
MODEL ID on image: wnr2000v3
Firmware Image MODEL ID matched Board model ID

Add Comment

Modify Ticket

Action
as reopened .
Author


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

 
Note: See TracTickets for help on using tickets.