HOWTO: Building and installing openwrt on Netgear WNR2000V5

Because so many people asked for that, i decided to make a small howto.

In short:
If you have already from somewhere any proven working openwrt image, then you can use the already on the router installed OEM-Gui from netgear and use the build in updater. When you choose the openwrt file (for example openwrt-ar71xx-generic-wnr2000v5-squashfs-dni.img )then you see something like this:

Current Version 1.0.0.64
Uploaded Version OpenWrt.r*********

Then you confirm and thats all.

If you want to go back to the netgear firmware or have bricked the device somehow, then you have to use TFTP for installation.
How to get into the update mode: Power off the device, hold down the reset button and while holding the reset button power-on the device. It would start flashing orange first. Hold until it starts flashing green.
Then you can release the reset button.

If you would like to know how the bootloader looks like in this state:
The Router is in TFTP Server Firmware Recovery mode NOW!
Listening on Port : 69, IP Address: 192.168.1.1...

When you send any image it contunues to work like this:

Rcv:
.................................................................
.................................................................
.................................................................
.................................................................
.................................................................
.................................................................
.................................................................
.................................................................
.................................................................
.................................................................
................................................................
Done!
Bytes transferred = 3653765 (37c085 hex)
HW ID on board: 29764648+4+0+32+2x2+0
HW ID on image: 29764648+4+0+32+2x2+0
Firmware Image HW ID matched Board HW ID

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

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

Erase Flash from 0x9f020000 to 0x9f02ffff in Bank # 1

For pushing the image over TFTP to the device with free software on a free os the command looks like this:
atftp --trace --option "timeout 1" --option "mode octet" --put --local-file WNR2000v5-V1.0.0.64.img 192.168.1.1

I got that from here:
https://wiki.openwrt.org/doc/howto/generic.flashing.tftp#linuxbsd

Windows or any other not recommended os-user could take a look into this:
https://kb.netgear.com/22688/How-to-upload-firmware-to-a-NETGEAR-router-using-TFTP

How to build the image:

https://wiki.openwrt.org/doc/howto/build
https://wiki.openwrt.org/doc/howto/buildroot.exigence

The recent repo where you can find the sourcecode is here:
git clone https://git.openwrt.org/openwrt/staging/jow.git

Only the git clone command differs from the normal howto.
In "make menuconfig" you have to choose the model (wnr2000v5) and then if required for example luci. Then save the config and run make to build the image.

At the end you should have in bin/targets/ar71xx/generic the required firmware that can be flashed with TFTP or netgear/openwrt web-gui.