STANDARD DISCLAIMER: I'm not responsible for voided warranties, bricked routers, lost packets or money. This worked for me, this is how I got openwrt working on mine.
PERSONAL DISCLAIMER: It is my first post ... Hoping if fits the standards and will be useful to someone.
GOAL: With a netgear dg834gt,
o Reception of a wifi signal with wep encryption from my AP
o Repetition with a psk2 encryption and another SSID
1. Reset the dg834gt box.
You need a dg834gt image (.img) file. You can find the last "netgear official" one at http://kb.netgear.com/app/answers/detai … _id/100109
Follow the instructions at http://kb.netgear.com/app/answers/detail/a_id/263
After reset of the dg834gt, you should be able to go to http://192.168.0.1 with admin / password and follow with step 2
2. Install openwrt
After many research, I've reached https://forum.openwrt.org/viewtopic.php … 0&p=22 in which fahadsadah announces a .img file for dg834gt (many thanks to him !!). You can find it at http://pyramid.cluenet.org/~fahad/crap/ … g834gt.img
Just follow the update instructions of http://kb.netgear.com/app/answers/detai … _id/100109 to upgrade with openwrt-dg834gt.img And wonderful, it works, the openwrt kamikaze r19018 release is installed !!
To reach it, telnet 192.168.1.1
3. Modify dg834gt ip address
My AP has 192.168.1.1 ip address so I just change the dg834gt one to 192.168.2.1 ... To do that :
telnet 192.168.1.1
cd /etc/config
vi network
and replace 192.168.1.1 by 192.168.2.1 in option ipaddr (howto use vi is outside of the scope here) then
reboot
Wait a little then telnet 192.168.1.2 should work
4. The wifi does not work !!!
Google, google, ... and ... google with "openwrt Atheros 5212", I've reached https://dev.openwrt.org/ticket/4484 in which a user talk about softled ... Well,
telnet 192.168.2.1
cd /lib/wifi
vi madwifi.sh
replace
config_get_bool softled "$device" softled 1
by
config_get_bool softled "$device" softled 0
reboot
and, don't ask me why, wifi works (but not the wifi led on dg834gt ! It does not matter)
5. Create the client wifi connexion
Thanks to http://nuwiki.openwrt.org/oldwiki/Repeater which has been very useful !!
telnet 192.168.2.1
cd /etc/config
vi wireless
Write :
config wifi-device wifi0
option type atheros
option channel auto
config wifi-iface
option device wifi0
option network wan
option mode sta
option ssid THE_SSID_I_WANT_TO_CONNECT_TO
option encryption wep
option key 'XXXXXXXXXXXXXXXXXXXXXXXXXX'reboot, wait a while ... 1 or 2 minutes
telnet 192.168.2.1
iwconfig ath0
gives
ath0 IEEE 802.11g ESSID:"THE_SSID_I_WANT_TO_CONNECT_TO"
Mode:Managed Frequency:2.457 GHz Access Point: XX:XX:XX:XX:XX:XX
Bit Rate:36 Mb/s Tx-Power:19 dBm
RTS thr:off Fragment thr:off
Encryption key:XXXX-XXXX-XXXX-XXXX-XXXX-XXXX-XX Security mode:restricted
Power Management:off
Link Quality=32/70 Signal level=-63 dBm Noise level=-95 dBm
Rx invalid nwid:100633 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0
ifconfig ath0
gives
ath0 Link encap:Ethernet HWaddr XX:XX:XX:XX:XX:XX
inet addr:192.168.1.15 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:117960 errors:0 dropped:0 overruns:0 frame:0
TX packets:33441 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:165576122 (157.9 MiB) TX bytes:2981914 (2.8 MiB)what is important is the "inet addr" field to be filled. In my case, it is 192.168.1.15 ... It is ok since my AP ip address is 192.168.1.1. A ping 192.168.1.1 should be ok ...
7. Create the repeater wifi connexion
telnet 192.168.2.1
cd /etc/config
vi wireless
add
config wifi-iface
option device wifi0
option network lan
option mode ap
option ssid THE_SSID_I_WANT_TO_EMIT
option encryption psk2
option key 'xxxxxxxxxxx'at the end of the file.
reboot, Wait a while ... The THE_SSID_I_WANT_TO_EMIT network should appear in the available network ... and you should be able to connect and surf ... Finished !
