OpenWrt Forum Archive

Topic: Netgear WNR2000 OpenWRT (Atheros AP81, AR9103 chip, u-boot)

The content of this topic has been archived between 3 Apr 2018 and 3 May 2018. Unfortunately there are posts – most likely complete pages – missing.

Great. Thanks for the hint.

Is your Wifi switch (on/off) working ?
If yes, on which ID ist the switch located ?
As far as I know the WPS button is definded as:
#define WNR2000V4_GPIO_BTN_WPS        11
but I does not have one for the Wifi switch.

Here's a sysupgrade image: openwrt-ar71xx-generic-wnr2000v4-squashfs-sysupgrade.bin

From what I see in my sources, Wifi button is GPIO 11 and as far as I remember it works.
I'll upload my code on github later.

Let me know how my image works for you!

Sorry, but the image can not be applied.
<<
root@WNR2000v4:/tmp# sysupgrade -v sys.bin
Sysupgrade is not yet supported on generic.
Image check 'platform_check_image' failed.
>>
<<
root@WNR2000v4:/# mtd -r write /tmp/sys.bin firmware
Image check failed.
>>

(Last edited by rpsoft on 17 Dec 2013, 19:18)

rpsoft wrote:

Sorry, but the image can not be applied.
<<
root@WNR2000v4:/tmp# sysupgrade -v sys.bin
Sysupgrade is not yet supported on generic.
Image check 'platform_check_image' failed.

This is the correct behavior.

>>
<<
root@WNR2000v4:/# mtd -r write /tmp/sys.bin firmware
Image check failed.
>>

Seems it complains about image headers, probably because the
board magic is incorrectly checked. Could you try this:

mtd -r -f write /tmp/sys.bin firmware

(Last edited by bukington on 18 Dec 2013, 21:04)

Great. Now the image is installed.
Little issue with the U-Boot, do you use a modified one ?
<<
Client starts...[Listening] for ADVERTISE...TTT
Retry count exceeded; boot the image as usual

nmrp server is stopped or failed !
   Verifying Checksum ... OK
Begin Second part firmware check
Second part Bad Magic Number
Trying eth1

The Router is in TFTP Server Firmware Recovery mode NOW!
>>

But after a "Ctrl+C" the image boots normal.
Currently I does only a few checks, seems good !
I''ll be grateful if you can upload the source to the git.

Great work !

(Last edited by rpsoft on 19 Dec 2013, 00:03)

You need to edit u-boot env to remove firmware check call.

setenv bootcmd bootm 0x9f040000
saveenv

Current openwrt kernel size is larger than wnr2000v4 initial kernel partition, so nor_two_part_fw_integrity_check function (called in original bootcmd) is failing.

This is great. I thought I've to build a new u-boot.

rpsoft wrote:

This is great. I thought I've to build a new u-boot.

What about image I provided, any issue so far?

Yes, eth0 and eth1 are inverted. On my router eth0 is WAN, eth1 is LAN.
If your image is booted eth0 is LAN, eth1 is WAN, and no DHCP addresses on LAN are served.
A minor issue is a wrong amber LED. Seems port 2 and port 4 are inverted.

BTW, do you had also problems with JFFS2 filesystem to get it work ?
If I start my image MTD can't find any squashfs filesystem on rootfs.

3.100000] m25p80 spi0.0: found mx25l3205d, expected m25p80
[    3.100000] m25p80 spi0.0: mx25l3205d (4096 Kbytes)
[    3.110000] Creating 5 MTD partitions on "spi0.0":
[    3.110000] 0x000000000000-0x000000030000 : "u-boot"
[    3.120000] 0x000000030000-0x000000040000 : "u-boot-env"
[    3.130000] 0x000000040000-0x000000140000 : "kernel"
[    3.130000] 0x000000140000-0x0000003f0000 : "rootfs"
[    3.140000] mtd: device 3 (rootfs) set to be root filesystem
[    3.150000] mtdsplit: no squashfs found in "rootfs"
[    3.150000] mtdsplit: no squashfs found in "spi0.0"
[    3.160000] 0x0000003f0000-0x000000400000 : "art"

Any idea ?
Cheers.

(Last edited by rpsoft on 22 Dec 2013, 23:35)

Hi bukington,

here you can find my first version of WNR2000v4 sysupgrade: https://www.dropbox.com/s/85ev8ed6f65q6 … pgrade.bin
It's nearly nacked, no Luci, default LED functions, no switches and Wlan is disabled by default.

Merry Chistmas.

(Last edited by rpsoft on 27 Dec 2013, 12:09)

OK. I've spent about 2 hours searching through this forum to see if i can solve the issue i have with my WNR2000v1.

So i am just gonna pop the question even if the answer is in here somewhere, but for some reason i did not see it. I am a n00b at linux by the way.

I flashed the necessary files to the router, following the instructions in this thread meticulously. Then  i enabled SSL in the router. But as far as i can see, no Luci was incorporated in this build, so i tried installing it with opkg. But the overlay partition is only 384k (i just used the images posted here and changed nothing), and default the partition only has 180k free , while LuCi requires 211k to install. I have tried the FREE UP RAM section, to no avail. I either get errors or there is nothing to free up.

I have no idea how to solve this. Who can point me in the right direction?

Thanks in advance.

(Last edited by pmf71 on 2 Feb 2014, 00:58)

pmf71 wrote:

But the overlay partition is only 384k

Thats right. As I know the device has only 4MB flash and after installing Luci the flash is nearly full.
You can use this device only with a very basic functionality.

Regards,
Ralph

Would love some help from more experienced users here - have searched a bit...

Q - I have inherited a WNR2000v1 - can I use it to extend the wireless network on the NGO base where I live (in Mozambique) that runs WPA2-enterprise 802.1x (PEAP/MS-CHAPv2)?

Background - I can connect my laptop ok but smaller devices in the kitchen can't connect at all as signal is too weak so I'd like to extend / repeat it. I don't mind if the speed's a bit slower, just getting a connection would be great. My dad can bring the unit from the UK on Saturday so I need to decide whether he should bring it or whether I should hunt out a different router. Enterprise is mentioned on the wiki (http://wiki.openwrt.org/doc/uci/wireless/encryption) but I don't know if it's the same flavour. Plus I don't know if this router in particular can handle it.

Many thanks

fuhry wrote:

I have successfully loaded OpenWRT (svn r22909) on to my WNR2000.
.......
- Build a custom u-boot. Apply the patch above to the sources in Netgear's GPL package, add staging_dir_mips/bin/ to your PATH, make ap81_config and make. The resulting u-boot.bin file can be flashed onto your device. Here's a binary build: http://fuhry.co.cc/b/wnr2000/u-boot.bin
........
-fuhry


Fuhry,
I'm wondering how you build successfully toolchain for this?
I'm stuck at
*** buffer overflow detected ***: mips-linux-uclibc-ar terminated

ISSUE SOLVED
Solution : Need to compile using fedora 5 (yeah, rusty linux)

(Last edited by dony71 on 22 Mar 2014, 03:42)

I have followed this post and sucessfully got my WNR2000v1 running on AA-rc1 (with the files from posts 172/178) as a wireless extender with this setup. Thank you to Fuhry and others for your work.

But I will need it to work with wpa2-enterprise and so I need to uninstall "wpad-mini" and install "wpad", but I don't have enough space. (I also need "relayd" and "luci-proto-relay" for the relay)

Q:  Will this plan below succeed or brick my router? Or do I need to go back to Netgear firmware and start again with all four files?

1) Run the lastest trunk Image Generator (running in Ubuntu 12.04 64bit on VirtualBox on OS X 10.9) with this command:

make image PROFILE=AP81 PACKAGES="luci-mod-admin-full luci-lib-web luci-theme-base luci-theme-openwrt luci-proto-relay uhttpd kmod-ath9k wpad -wpad-mini -ppp -ppp-mod-pppoe relayd busybox iw libuci libuci-lua libc libgcc lua libiwinfo libiwinfo-lua"

which makes these files:

$ ls -hs
total 27M
4,0K md5sums
1,5M openwrt-ar71xx-generic-ap81-kernel.bin
2,2M openwrt-ar71xx-generic-ap81-rootfs-squashfs.bin
6,5M openwrt-ar71xx-generic-ap81-squashfs-sysupgrade.bin
2,4M openwrt-ar71xx-generic-root.squashfs
2,1M openwrt-ar71xx-generic-root.squashfs-64k
1,5M openwrt-ar71xx-generic-uImage-gzip.bin
1,1M openwrt-ar71xx-generic-uImage-lzma.bin
3,1M openwrt-ar71xx-generic-vmlinux.bin
3,2M openwrt-ar71xx-generic-vmlinux.elf
1,5M openwrt-ar71xx-generic-vmlinux.gz
1,1M openwrt-ar71xx-generic-vmlinux.lzma
1,1M openwrt-ar71xx-generic-vmlinux-lzma.elf

2) Flash the rootfs and uImage partitions, i.e. mtd2 and mtd5 from this table:

root@OpenWrt:~# cat /proc/mtd
dev:    size   erasesize  name
mtd0: 00040000 00010000 "u-boot"
mtd1: 00010000 00010000 "u-boot-env"
mtd2: 00240000 00010000 "rootfs"
mtd3: 00080000 00010000 "rootfs_data"
mtd4: 00010000 00010000 "user-config"
mtd5: 00120000 00010000 "uImage"
mtd6: 00020000 00010000 "language_table"
mtd7: 00010000 00010000 "rootfs_checksum"
mtd8: 00010000 00010000 "art"

with these two files as follows:

mtd -e mtd2 write openwrt-ar71xx-generic-ap81-rootfs-squashfs.bin mtd2
mtd -e mtd5 write openwrt-ar71xx-generic-uImage-lzma.bin mtd5

I'm a beginner who's worked hard for a week, so any help appreciated.

hnyman wrote:

Has anybody succesfully connected to WN2000RPT's telnet interface after using telnetenable? Based on wiki, WN2000RPT is supposed to be v0 of WNR2000 and telnetenable should work with it. I tried yesterday with my WN2000RPT, but depending on the client I got just "error 10057" or "connection refused" error from telnetenable.

http://wiki.openwrt.org/toh/netgear/wnr … .wn2000rpt

Is there anyone success to flash this WN2000RPT  ?  I have V1 and according to this http://wiki.openwrt.org/toh/netgear/wnr … .wn2000rpt could be flashed, but I'm unable to unlock the telnet

This is very usefully for me smile

Hi!

I've just bricked my WNR2000v4 completely. I unintentionally deleted the memarea of the u-boot. I would be very grateful if anyone here could provide a full memdump of the SPI nor flash. I could then try to reflash it with an external SPI flash programmer.

Thank you!

Regards,
Franz

Hi, I read back this thread to 2011, and have a Netgear WNR2000 v3.  Is it possible to run Attitude Adjustment on v3 of this router these days?

I saw a reference to http://wiki.openwrt.org/toh/netgear/telnet.console - I'm okay telnetting in and flashing stuff if I know which sequence of commands to use and it doesn't involve touching circuit boards tongue

Or on the other hand ... can I be pretty sure I could experiment with OpenWRT on a WNR2000 v3 without bricking it, and being able to return to other firmwares including stock, at this point? Or is that a Bad Plan?

thanks for this post, Actually I'm running on my WNR2000v1 backfire 10.03 r24977 istalled following the fuhry post https://forum.openwrt.org/viewtopic.php … 2#p124422.

Is there a newer and better version for my router ? Could anyone point me to the last one so I can make an upgrade ? AA or Backfire??

thanks in advance for attention

So, bukington and rpsoft, did you guys end up making any more progress with the wnr2000v4? I have one of these and would very much like a somewhat more capable firmware...actually, I'd honestly settle for just having an ssh command on the stock firmware, but OpenWRT would be even better. If you've got a working image and process at this point I'd love to hear about it.

Thanks!

WNR2000v1 owners, I'm working on building new images for you.

Stay tuned..

ptcruisergt wrote:

WNR2000v1 owners, I'm working on building new images for you.

Stay tuned..

If you can port switch patch code to AA which I did on backfire
I don't have much time to do this now so will be nice to share the code
You can check my patch code in post#213

(Last edited by dony71 on 5 Jun 2014, 02:07)

james3 wrote:

thanks for this post, Actually I'm running on my WNR2000v1 backfire 10.03 r24977 istalled following the fuhry post https://forum.openwrt.org/viewtopic.php … 2#p124422.

Is there a newer and better version for my router ? Could anyone point me to the last one so I can make an upgrade ? AA or Backfire??

thanks in advance for attention

this is based on post#213

http://www.mediafire.com/download/35r4r … e-lzma.bin
http://www.mediafire.com/download/hd6hk … uashfs.bin