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.

jow wrote:

You most likely just need to reset your cable modem (pull the power for 30 seconds). And leave the OpenWrt WAN settings at default (DHCP Client).

Thanks, it's was necessary to change the lan IP to 192.168.100.2. Now I have internet on my router, but I cannot wake-up the wireless, reading about it now, but if anyone can help on this too, it will be very appreciate! smile

So, I just turned on my wireless network, I followed this video: http://www.youtube.com/watch?v=GraJd8CKhgo

Besides the guy did a lot of stuff that I don't need, I discovered that my bridge was wrong, I was trying to use WAN instead of LAN. Now it's all done... Thanks! smile

Hi,

I just heard from OPENWRT 1 day ago and wanted to test it ..
I just folowed the instruction from radengr and seems to work like a charm
Many thanks radengr.

for those who doesn't hav a serial ttl cable and only a MAC (OSX) you can use the osx compiled version of telnetenable here :
http://www.myopenrouter.com/download/11 … e-Utility/

Regards,

very well written and easy to follow. now i have my wnr2000v1 running openwrt.

thanks.

radengr wrote:

I just flashed my WNR2000v1 with Backfire 10.03.1 final. Seems to be working well. The good thing is newer builds are a bit smaller now and so there doesn't seem to be any need to compile OpenWRT from source for this router anymore (unless you need something special?). After flashing I had 176 KB free.

Here are the instructions for *v1* only (all of this info is already in the thread, but just for good measure I'm repeating some of it here). I strongly recommend doing this with a serial console. If you have one it is much harder to get stuck with a bricked router. It isn't that hard, you just need a cheap ttl level serial device. On ebay you can get one for *less* than $3 *shipped* with the cables you need for this router. Just search for "USB 2.0 to UART TTL Serial Converter CP2102" or similar. You don't absolutely have to have one, but it is good insurance. They are just handy to have around anyway, I have about 4 smile.

Installation instructions from a new router (running the Netgear Factory Firmware):

Somehow get access to a command prompt. This is either done by enabling telnet (see earlier in this thread or the wiki) or (my preferred method) hooking up a ttl level serial cable.

Then the following will install OpenWRT:

cd /tmp
snarf http://fuhry.co.cc/b/wnr2000/ubootenv-stockpartitions.img
snarf http://fuhry.co.cc/b/wnr2000/u-boot.bin
snarf http://downloads.openwrt.org/backfire/10.03.1/ar71xx/openwrt-ar71xx-ap81-rootfs-squashfs.bin
snarf http://downloads.openwrt.org/backfire/10.03.1/ar71xx/openwrt-ar71xx-uImage-lzma.bin
mtd -e mtd0 write u-boot.bin mtd0
mtd -e mtd1 write ubootenv-stockpartitions.img mtd1
mtd -e mtd2 write openwrt-ar71xx-ap81-rootfs-squashfs.bin mtd2
mtd -e mtd4 write openwrt-ar71xx-uImage-lzma.bin mtd4
reboot

If you are running an older build of OpenWRT I haven't had much luck flashing without going through the Netgear firmware first. I haven't tried very hard either though so if someone has a better method please chime in. Remeber to download the factory firmware before wiping your router if that is going to leave you without internet access. To get back to the factory firmware you have two options:

The first (from OpenWRT):

mtd erase u-boot-env
mtd erase uImage
reboot

The second (from the uboot recovery console):

mtdparts default
erase nor0,4
erase nor0,1

Then reboot the router, tftp flash a copy of an official firmware from Netgear, and follow the instructions above. Enjoy, and thanks again to fuhry for patching uboot!

I registered a profile on this forum, just to say thanks to the people behind this. I used these images and was able to get OpenWRT up and running on my WNR2000v1, which I should add was lying around without any use. Looking forward to tweaking around with the settings.

Just wanted to added a few points:
1. For people who cant get their WNR2000v1 connected to the internet before using the following commands for whatever reason, I would recommend downloading these files separately on a different machine connected to the internet, host it on a local FTP server and download this files using ftpget instead of snarf.
2. I might be wrong here but since the amount of space left after flashing with this firmware is extremely minimal, there is very limited scope to install any opkg packages. As such, this might not be really required as WNR2000v1 has no USB support and so torrent clients, media server etc are of no use. Please correct me if I am wrong.

Thanks again. Will use the router for sometime and post any updates that I might have.

radengr wrote:

I just flashed my WNR2000v1 with Backfire 10.03.1 final. Seems to be working well. The good thing is newer builds are a bit smaller now and so there doesn't seem to be any need to compile OpenWRT from source for this router anymore (unless you need something special?). After flashing I had 176 KB free.

Here are the instructions for *v1* only (all of this info is already in the thread, but just for good measure I'm repeating some of it here). I strongly recommend doing this with a serial console. If you have one it is much harder to get stuck with a bricked router. It isn't that hard, you just need a cheap ttl level serial device. On ebay you can get one for *less* than $3 *shipped* with the cables you need for this router. Just search for "USB 2.0 to UART TTL Serial Converter CP2102" or similar. You don't absolutely have to have one, but it is good insurance. They are just handy to have around anyway, I have about 4 smile.

Installation instructions from a new router (running the Netgear Factory Firmware):

Somehow get access to a command prompt. This is either done by enabling telnet (see earlier in this thread or the wiki) or (my preferred method) hooking up a ttl level serial cable.

Then the following will install OpenWRT:

cd /tmp
snarf http://fuhry.co.cc/b/wnr2000/ubootenv-stockpartitions.img
snarf http://fuhry.co.cc/b/wnr2000/u-boot.bin
snarf http://downloads.openwrt.org/backfire/10.03.1/ar71xx/openwrt-ar71xx-ap81-rootfs-squashfs.bin
snarf http://downloads.openwrt.org/backfire/10.03.1/ar71xx/openwrt-ar71xx-uImage-lzma.bin
mtd -e mtd0 write u-boot.bin mtd0
mtd -e mtd1 write ubootenv-stockpartitions.img mtd1
mtd -e mtd2 write openwrt-ar71xx-ap81-rootfs-squashfs.bin mtd2
mtd -e mtd4 write openwrt-ar71xx-uImage-lzma.bin mtd4
reboot

If you are running an older build of OpenWRT I haven't had much luck flashing without going through the Netgear firmware first. I haven't tried very hard either though so if someone has a better method please chime in. Remeber to download the factory firmware before wiping your router if that is going to leave you without internet access. To get back to the factory firmware you have two options:

The first (from OpenWRT):

mtd erase u-boot-env
mtd erase uImage
reboot

The second (from the uboot recovery console):

mtdparts default
erase nor0,4
erase nor0,1

Then reboot the router, tftp flash a copy of an official firmware from Netgear, and follow the instructions above. Enjoy, and thanks again to fuhry for patching uboot!

hcgonzalezpr wrote:

http://fuhry.co.cc/b/wnr2000/ is down.


Does anyone have mirror of this files?

Also getting server is unreachable

I got into telnet of my WNR2000, made backs of u-boot, got excited about getting openwrt and the server for the custom u-boot is down sad

If anyone has a copy of the files needed to flash these guys I can throw up a mirror of them.  Hopefully someone still has them?

simcop2387 wrote:

If anyone has a copy of the files needed to flash these guys I can throw up a mirror of them.  Hopefully someone still has them?

Same here, I need them too.

ftp://fuhry:wnr2000@82.30.122.161


so to install it would be

cd /tmp
snarf ftp://fuhry:wnr2000@82.30.122.161/ubootenv-stockpartitions.img
snarf ftp://fuhry:wnr2000@82.30.122.161/u-boot.bin
snarf http://downloads.openwrt.org/backfire/10.03.1/ar71xx/openwrt-ar71xx-ap81-rootfs-squashfs.bin
snarf http://downloads.openwrt.org/backfire/10.03.1/ar71xx/openwrt-ar71xx-uImage-lzma.bin
mtd -e mtd0 write u-boot.bin mtd0
mtd -e mtd1 write ubootenv-stockpartitions.img mtd1
mtd -e mtd2 write openwrt-ar71xx-ap81-rootfs-squashfs.bin mtd2
mtd -e mtd4 write openwrt-ar71xx-uImage-lzma.bin mtd4
reboot

(Last edited by bfsilas on 27 Jun 2012, 19:15)

Awesome, thank you so much.  I've put up a mirror of them on my linode at http://www.simcop2387.info/wnr2000/  Best to keep these spread around i think.

the commands for my mirror then are

cd /tmp
snarf http://www.simcop2387.info/wnr2000/ubootenv-stockpartitions.img
snarf http://www.simcop2387.info/wnr2000/u-boot.bin
snarf http://downloads.openwrt.org/backfire/10.03.1/ar71xx/openwrt-ar71xx-ap81-rootfs-squashfs.bin
snarf http://downloads.openwrt.org/backfire/10.03.1/ar71xx/openwrt-ar71xx-uImage-lzma.bin
mtd -e mtd0 write u-boot.bin mtd0
mtd -e mtd1 write ubootenv-stockpartitions.img mtd1
mtd -e mtd2 write openwrt-ar71xx-ap81-rootfs-squashfs.bin mtd2
mtd -e mtd4 write openwrt-ar71xx-uImage-lzma.bin mtd4
reboot

I'm gonna be testing these later tonight.

@bfsilas thanks for the files, works perfectly
@simcop2387 thanks for the mirror

Don't know if snarf supports https, if it doesn't and you are on windows, get TinyWeb to serve the files.

Here's my mirror:

https://dl.dropbox.com/s/84ewdltbqvpvnjm/ubootenv-stockpartitions.img?dl=1
https://dl.dropbox.com/s/dzy2usi7a7jiqdr/u-boot.bin?dl=1

(Last edited by kingqk on 3 Jul 2012, 21:21)

If someone is interested in, I made a bash script which stores the router's data in a virtualized ftp server, in such manner that you can see if the upload is well happened and if the files are good (with an md5 checksum).
You can easily adapt it in order to flash the router in one step, however I doubt that I will post any kind of script which could brick your WNR2000 in a forum.

#!/bin/bash
##################################################################################################
##        Makes copies for WNR2000 using FTP
##
##    This file need an executable called telnetenable in the same folder
##    You can compile it from the sources : wiki.openwrt.org/_media/toh/netgear/telnetenable.zip
##    Thanks to yoshac and alsterwassermann for this very useful tool
##    You also need an FTP server (mine is in a Virtual Machine)
##    This script doesn't create the directory for saving in the FTP server
##    This server also need an ssh access
##    The data are stored from the router to a VirtualBox machine via FTP :
##
##      ##############                                  #################
##      #    Host    #                                  #    Router     #
##      #telnetenable#                                  #               #
##      #            # ========  enable via nc  =====>  #               #
##      #            # ========   dd command    =====>  #               #
##      #            #            ######                #dd in /tmp/file#
##      #            #            # VM #                #               #
##      #            #            #    # <=ftpput file= #               #
##      #            #            #file#                #               #
##      #            # <=ssh md5= #    #                #               #
##      #            #            ######                #               #
##      #            # <==== ftpput md5 from file ===== #               #
##      ##############                                  #################
##
##################################################################################################
secret_user="Gearguy"
secret_pass="Geardog"
ftp_user="user"
ftp_pass="pass"
ssh_user="ssh_user"
VM_name="Server"
ftp_name="ftp-server"
ftp_saving_path="" #let it blank or create it on the FTP server before changing this variable
dirname_ftp="/home/ftp/user/$ftp_saving_path" #to locate files with ssh


##Part I Telnetenable
path="$(dirname $0)" && cd $path
file="modpkt.pkt"
#echo "Router detection using arp command assuming IP ends with '1'. Please wait..."
arp_result=$(arp -n| grep -E '([0-9]{1,3}\.){3}1\>')
ip_router=$(echo $arp_result | grep -Eo '([0-9]{1,3}\.){3}1\>')
hw_router=$(echo $arp_result | grep -Eo "([0-9a-f]{2}:)+[0-9a-f]{2}\>")
echo "Router found at ip : $ip_router with mac adress : $hw_router"
hw_modif=$(echo $hw_router | tr '[a-z]' '[A-Z]'| tr -d ':')
echo "$path/telnetenable $ip_router $hw_modif $secret_user $secret_pass > $file"
./telnetenable $ip_router $hw_modif $secret_user $secret_pass > $file

##Part II sending packet for enabling telnet
sleep 2
echo "nc $ip_router 23 < $file"
nc $ip_router 23 < $file 2>&1>/dev/null
rm -f $file
sleep 2
#echo "telnet $ip_router"
#telnet $ip_router

##Part III starting the virtual machine and finding its IP address
echo "Starting the Virtual Machine called $VM_name on Local Area Network"
DISPLAY=:0 vboxmanage startvm $VM_name
#machine whose FTP port is open in LAN
echo "Looking for the IP of the Virtual Machine"
sleep 5
##    I had some trouble recovering the IP address of the FTP server, you don't need all these tricks
echo -n "-first method gives :"
ip_ftp1=$(nmap $ip_router/24 -p 21|grep -B 5 open|grep -Eo '([0-9]{1,3}\.){3}[0-9]{1,3}\>')
echo $ip_ftp1
#arp table filtered knowing all the other IP address of the LAN (in this case the host and the router)
echo -n "-second method gives :"
ip_machine=$(hostname -I)
ip_ftp2=$(arp -n|grep -E '([0-9a-fA-F]{2}:){5}[0-9a-fA-F]{2}'|grep -Eo '([0-9]{1,3}\.){3}[0-9]{1,3}\>'|grep -v $ip_router |grep -v $ip_machine)
echo $ip_ftp2
#recovers IP address of the machine whose name is known
echo -n "-third method gives :"
ip_ftp3=$(ping $ftp_name.local -c 1|grep PING |grep -Eo '([0-9]{1,3}\.){3}[0-9]{1,3}\>')
echo $ip_ftp3

#Part IV copying each blocks, sending their files, and getting md5 checksums before and after sending 
num_block=0
for file in u-boot u-boot-env rootfs user-config uImage language_table rootfs_checksum ART
    do
    { echo "dd if=/dev/mtdblock$num_block of=/tmp/$file"; sleep 1; } | telnet $ip_router 2>&1>/dev/null
    { echo "cd /tmp;ftpput -u $ftp_user -p $ftp_pass $ip_ftp3 $ftp_saving_path/. $file"; sleep 1; } | telnet $ip_router 2>&1>/dev/null
    md5_target=$(ssh utilisateur@$ip_ftp3 md5sum $dirname_ftp/$file|cut -d\  -f1)
    md5_source=$({ echo "cd /tmp;md5sum $file"; sleep 1; } | telnet $ip_router | tail -n +12 | head -n -2 |cut -d\  -f1)
    echo -ne "File:$file\n source:$md5_source\n target:$md5_target\n"
    { echo "cd /tmp;rm $file"; sleep 1; } | telnet $ip_router 2>&1>/dev/null
    num_block=$(($num_block+1))
done

echo "Saving state and ending the $VM_name Virtual Machine"
vboxmanage controlvm $VM_name savestate

echo "The End"
read key

Hope this helps someone

(Last edited by WRTbricker on 12 Jul 2012, 11:36)

Hi, i'd like to thank everyone for their great work on openwrt on the WNR2000v1. Sadly, i think i might have bricked my router.
  I was originally able to install openwrt via the non partition method and it worked perfectly fine. However, i decided to try the partition method and that is where i ran into trouble. I followed all the commands are directed and was able to log in to 192.168.1.1 even though it seems that the dhcp and wireless were not working. After trying to enable dhcp and saving the setting i tried to re-enter via 192.168.1.1 and thats where the issue started. i have tried to access it via telnet with no luck. i tried pinging the addresses and all i get are time out connections. i tried using tftp to restore the original firmware but with no luck either. the lights on the front of the device seem to be normal, none of them are stuck on on. Is there any hope for this router, or am i just gonna have to use it as a paperweight.

thanks!

You may be able to unbrick the router with a serial cable. There are a lot of informations about this in the forum, and even in this topic. I won't pollute it by repeating all the stuff but if you want me to help you, I answered you. Look at your PMs wink

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

Thanks to radengr and everyone else for their instructions to set up openwrt on the WNR2000v1. I finally got mine up and going once I thought to disable my firewall to access the tftp server.

Hello,

can you specify packages that can turn off to build minimal version (smallest size of file) ?

Another - if i build my own package i have error (router not working). Therefore, I ask for a list of packages that are nessesary.

Thanks a lot.

Anyone had any luck with a V3? I have one if anyone needs any help.

ptcruisergt wrote:

Has anyone tried the beta builds of Attitude Adjustment (12.09)?

Link: https://forum.openwrt.org/viewtopic.php?id=39117

I've been playing around with AA on my wnr2000 for the past couple days and somehow I really messed something up.

Just ordered a usb-ttl converter so that I can jump on the serial console to resurrect this beauty.

Anyone wanting to try the AA RC1 version, I created two pkg files to flash.

Here was the make command for building it from Imagebuilder:

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

Router Model          NETGEAR WNR2000
Firmware Version   OpenWrt Attitude Adjustment 12.09-rc1 / LuCI 0.11 Branch (0.11+svn9515)   
Kernel Version        3.3.8

uImage: http://www.filedropper.com/uimage-lzma

root.squashfs: http://www.filedropper.com/root

If you want to have a login shell on serial console on AA, I found you need to run the below command to enable a shell after the unit boots.

echo "ttyS0::askfirst:/bin/ash --login" >> /etc/inittab

Then reboot...

Hi,

is the latest method as posted in post 148 in this topic still the LATEST up-to-date method?

And can it be done/achieved within Windows?

Are the servers still good and contain the LATEST OpenWRT version that is available for WNR2000 V1?

I need to update my WNR2000 v1 to OpenWRT as I experience some problems like that WIFI is acting 'strange' on my Iphone 2G. And besides that....when I want to check which devices are connected to the router it only shows my (WIRED) laptop. But in the 'list' it doesn't shows all the WIRELESS connected devices...

And next to those problems I want to increase the TX Power if possible. (DD-WRT is possible as I have done succesfully with Linksys WRT54GL device).

Thank you all in advance!

btw: Have latest OpenWRT for this device some option like to create a 'guest' WIFI network besides the actual WIFI? I think maybe I talk about a 'Hotspot' option???

wrtvic wrote:

Anyone wanting to try the AA RC1 version, I created two pkg files to flash.

Here was the make command for building it from Imagebuilder:

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

Router Model          NETGEAR WNR2000
Firmware Version   OpenWrt Attitude Adjustment 12.09-rc1 / LuCI 0.11 Branch (0.11+svn9515)   
Kernel Version        3.3.8

uImage: http://www.filedropper.com/uimage-lzma

root.squashfs: http://www.filedropper.com/root

Did you try this also YOURSELF? And no problems encountered? Is this like BETA OpenWRT firmware or something?

Sorry, posts 176 to 175 are missing from our archive.