OpenWrt Forum Archive

Topic: openwrt at netgear DG834B v2 ?

The content of this topic has been archived on 20 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

I'm trying to flash openwrt to my netgear router. Now I read the tutorials DG834G and Installing Ar7. At the first one is written that I have to "patch the ADAM2". Thats no problem and my checksums are correct. Now I have to "Replacing ADAM2", but my netgear router doesn't has "wget" so how can I get the "mtd2.bin" from my pc to the router?

I can only use these commands:

#
\[              ash             atm_monitor     atmarp
atmarpd         br2684ctl       brctl           busybox
cat             chmod           cmd_agent_ap    conf
cp              crond           dd              dmesg
dproxy          echo            egrep           ez-ipupdate
false           free            fw-scripts/     grep
ifconfig        init            insmod          iptables
kill            killall         klogd           ln
ls              lsmod           mini_httpd      mkdir
modprobe        more            mount           mv
nbtscan         netgear_ntp     nocache.cgi     nvram
pb_ap           ping            pppd            pppoe
ps              rc              reaim           reboot
restore_config.cgi              ripd            rm
rmmod           route           scfgmgr         setup.cgi
sh              sleep           smtpc           syslogd
test            touch           true            udhcpc
udhcpd          umount          upgrade_flash.cgi
upnpd           user_drv        utelnetd        wifi_watchdog
wizard          zebra

(Last edited by Oconnor on 25 Jun 2007, 20:17)

At the router was a Firmware ver 1.x, I did an upgrade to ver 3.x. And now I have wget, so nevermind.

Next question:
I can't ftp to to the adamflash. I read TroubleshootingAR7 after typing

cat /proc/ticfg/env | grep my_ipaddress

no ip adresse showes up. So I did

echo "my_ipaddress 192.168.1.1" > /proc/sys/dev/adam2/environment

Now the IP address showes up. Serial console works correct:

DGB34 > printenv
memsize               0x01000000
flashsize             0x00400000
modetty0              115200,n,8,1,hw
modetty1              115200,n,8,1,hw
bootserport           tty0
cpufrequency          150000000
sysfrequency          125000000
bootloaderVersion     0.18.01
ProductID             DG834
HWRevision            Unknown
SerialNumber          none
prompt                DGB34
firstfreeaddress      0x9402e088
req_fullrate_freq     125000000
mtd0                  0x900d0000,0x903e0000
mtd1                  0x90020000,0x900d0000
mtd2                  0x90000000,0x90020000
mtd3                  0x903e0000,0x903f0000
autoload
maca                  00:0f:b5:1a:5d:c4
macb                  00:0f:b5:1a:5d:c5
Bridge_MODE           0
mt_time               0
mtd4                  0x903f0000,0x90400000
oam_lb_timeout        100
eoc_vendor_id         b5004E5447520000
enable_margin_retrain  1
my_ipaddress          192.168.1.1

But I still can't ftp or even ping the router! My PC IP adresse is set up correct. If I use adam2flash.pl it can't find the router:

(none):/home/oconnor/Desktop # ./adam2flash.pl 192.168.1.1 openwrt-ar7-2.6-squashfs.bin
Looking for device: .......... not found!

So what can I do to ftp the router?

Nevermind I got it. The Device doesn't sends a ping back, but the ftp server is working. The Kamikaze is running at the Netgear DG834B v2.

Hi Oconnor,

I own a DG834 v1 and I'm very interrested by this hack.

I successfully patched the ADAM2 too with the correct checksum, but I need to know how can I send this file to the router (with firmare v3.01.25).

I also need to know how to replace the NETGEAR firmware by the openwrt itself (by ftp ?) and where can I get a compiled binary of this firware for my router.

Thanks.

Hi bubumac,
You have to setup an HTTP Server on your PC then take the patched ADAM2 call it "adam2-fix.bin" to it. Now you have to telnet to your DG834 and get the patched ADAM2 via "wget http://your.pc.ip.adresse/adam2-fix.bin" after that do "dd if=adam2-fix.bin of=/dev/mtdblock/2" like it is written in the Tutorial.

You have to setup a new mtd "SETENV mtd5,0x90020000,0x903e0000". It is also written in this Tutorial.

Now you have a pached adam2.

You have to replace Netgear firmware by FTP like this tutorial the second part. Flash it to mtd5 but double check that! You can try to use a snapshot from openwrt or compile it yourselve I compiled revison 7880 by myselve and it worked also the dslmodem worked smile.

Please read the tutorial's carefully!

(Last edited by Oconnor on 18 Jul 2007, 13:03)

Hi All-  I am very interested in the hack you guys were doing on the DG834Gv2 router.  I am trying to figure out how to patch the ADAM2.  OK- i have never done anything like this before, but it seems that the four bytes at the address are AAAAAAAA and when I replace them, the checksum fails.  Could you either help a newbie know how to do this patch, or could you send me your patched ADAM2 file?  Any help would be greatly appreciated.

Thanks

Chris M.

PS, if you want to send me a file, you can send it to chrismcbr (at) gmail dot com

(Last edited by Crmcbride on 23 Sep 2009, 17:39)

The discussion might have continued from here.