OpenWrt Forum Archive

Topic: HOWTO : kamikaze r19018 : a wifi repeater with a netgear dg834gt

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

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 !

Hey,
I have install open-wrt img on my DG834GT but telnet doesn't work.
The flashing LED (LAN 1) but the ping and telnet does not work.
What to do?

pspmann wrote:

Hey,
I have install open-wrt img on my DG834GT but telnet doesn't work.
The flashing LED (LAN 1) but the ping and telnet does not work.
What to do?

Did you ping/telnet the correct openwrt default ip address : 192.168.1.1 ??
(whereas the netgear default one is 192.168.0.1 ...)

If you are on windows, is the connexion active ? To check that, go in the windows connexions, in the local connexion properties and activate the "Display icon when connected" and "Display if connexion is limited".
If the connexion is not established, check that "Obtain a IP adress automatically" is activated in TCP/IP properties.

Yes I ping 192.168.1.1
I use Ubuntu to telnet and he don't arrive to make LAN connection in auto.

CFE version 1.0.37-5.11 for BCM96348 (32bit,SP,BE)
Build Date: Fri Sep 17 15:59:48 CST 2004 (root@Run-P4)
Copyright (C) 2000,2001,2002,2003 Broadcom Corporation.

Initializing Arena.
Initializing Devices.
internal_open
bcm6348enet: init_emac
CPU type 0x29107: 256MHz, Bus: 128MHz, Ref: 32MHz

Total memory used by CFE:  0x80401000 - 0x8051C910 (1161488)
Initialized Data:          0x80418630 - 0x804192D0 (3232)
BSS Area:                  0x804192D0 - 0x8041A910 (5696)
Local Heap:                0x8041A910 - 0x8051A910 (1048576)
Stack Area:                0x8051A910 - 0x8051C910 (8192)
Text (code) segment:       0x80401000 - 0x80418624 (95780)
Boot area (physical):      0x0051D000 - 0x0055D000
Relocation Factor:         I:00000000 - D:00000000

Board IP address                : 192.168.1.1:ffffff00
Host IP address                 : 192.168.1.100
Gateway IP address              :
Run from flash/host (f/h)       : f
Default host run file name      : vmlinux
Default host flash file name    : bcm963xx_fs_kernel
Boot delay (0-9 seconds)        : 1
Board Id Name                   : 96348GW-10
Psi size in KB                  : 16
Number of MAC Addresses (1-32)  : 2
Base MAC Address                : 00:0f:b5:7e:88:be
Ethernet PHY Type               : Internal
Memory size in MB               : 16

*** Press any key to stop auto run (1 seconds) ***
Auto run second count down: 0
Code Address: 0x80010000, Entry Address: 0x80010000
Decompression OK!
Entry at 0x80010000
Closing network.
Starting program at 0x80010000
Linux version 2.6.30.10 (fahad@pyramid) (gcc version 4.3.3 (GCC) ) #1 Sun Jan 3 18:17:30 GMT 2010
Detected Broadcom 0x6348 CPU revision a2
CPU frequency is 256000000 Hz
16MB of RAM installed
registering 37 GPIOs
board_bcm963xx: CFE version: unknown
console [early0] enabled
CPU revision is: 00029107 (Broadcom BCM6348)
board_bcm963xx: board name: 96348GW-10
Determined physical RAM map:
 memory: 01000000 @ 00000000 (usable)
Initrd not found or empty - disabling initrd
Zone PFN ranges:
  Normal   0x00000000 -> 0x00001000
Movable zone start PFN for each node
early_node_map[1] active PFN ranges
    0: 0x00000000 -> 0x00001000
Built 1 zonelists in Zone order, mobility grouping off.  Total pages: 4064
Kernel command line: root=/dev/mtdblock2 rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200
Primary instruction cache 16kB, VIPT, 2-way, linesize 16 bytes.
Primary data cache 8kB, 2-way, VIPT, no aliases, linesize 16 bytes
NR_IRQS:128
PID hash table entries: 64 (order: 6, 256 bytes)
Dentry cache hash table entries: 2048 (order: 1, 8192 bytes)
Inode-cache hash table entries: 1024 (order: 0, 4096 bytes)
Memory: 13364k/16384k available (2045k kernel code, 3020k reserved, 359k data, 132k init, 0k highmem)
Calibrating delay loop... 254.97 BogoMIPS (lpj=509952)
Mount-cache hash table entries: 512
net_namespace: 532 bytes
NET: Registered protocol family 16
board_bcm963xx: not enough mac address
registering PCI controller with io_map_base unset
bio: create slab <bio-0> at 0
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 512 (order: 0, 4096 bytes)
TCP bind hash table entries: 512 (order: -1, 2048 bytes)
TCP: Hash tables configured (established 512 bind 512)
TCP reno registered
NET: Registered protocol family 1
audit: initializing netlink socket (disabled)
type=2000 audit(0.229:1): initialized
squashfs: version 4.0 (2009/01/31) Phillip Lougher
Registering mini_fo version $Id$
JFFS2 version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
msgmni has been set to 26
io scheduler noop registered
io scheduler deadline registered (default)
gpiodev: gpio device registered with major 254
gpiodev: gpio platform device registered with access mask FFFFFFFF
bcm63xx_uart.0: ttyS0 at MMIO 0xfffe0300 (irq = 10) is a bcm63xx_uart
console handover: boot [early0] -> real [ttyS0]
bcm63xx_enet MII bus: probed
bcm963xx_flash: 0x00400000 at 0x1fc00000
bcm963xx: Found 1 x16 devices at 0x0 in 16-bit bank
Support for command set 0006 not present
gen_probe: No supported Vendor Command Set found
bcm963xx_flash: Failed to probe using CFI
bcm963xx-flash: probe of bcm963xx-flash.0 failed with error -5
bcm63xx_wdt started, timer margin: 30 sec
Registered led device: adsl-fail
Registered led device: ppp
Registered led device: ppp-fail
Registered led device: power
Registered led device: stop
TCP westwood registered
NET: Registered protocol family 17
802.1Q VLAN Support v1.8 Ben Greear <greearb@candelatech.com>
All bugs added by David S. Miller <davem@redhat.com>
VFS: Cannot open root device "mtdblock2" or unknown-block(0,0)
Please append a correct "root=" boot option; here are the available partitions:
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)

Wha to do ? Thanks

My code is

 === IMPORTANT ============================
  Use 'passwd' to set your login password
  this will disable telnet and enable SSH
 ------------------------------------------


BusyBox v1.15.3 (2010-01-03 17:52:34 GMT) built-in shell (ash)
Enter 'help' for a list of built-in commands.

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 KAMIKAZE (bleeding edge, r19018) ------------------
  * 10 oz Vodka       Shake well with ice and strain
  * 10 oz Triple sec  mixture into 10 shot glasses.
  * 10 oz lime juice  Salute!
 ---------------------------------------------------
root@OpenWrt:~# dmesg
Linux version 2.6.30.10 (fahad@pyramid) (gcc version 4.3.3 (GCC) ) #1 Sun Jan 3 18:17:30 GMT 2010
Detected Broadcom 0x6348 CPU revision a2
CPU frequency is 256000000 Hz
16MB of RAM installed
registering 37 GPIOs
board_bcm963xx: CFE version: unknown
console [early0] enabled
CPU revision is: 00029107 (Broadcom BCM6348)
board_bcm963xx: board name: 96348GW-10
Determined physical RAM map:
 memory: 01000000 @ 00000000 (usable)
Initrd not found or empty - disabling initrd
Zone PFN ranges:
  Normal   0x00000000 -> 0x00001000
Movable zone start PFN for each node
early_node_map[1] active PFN ranges
    0: 0x00000000 -> 0x00001000
On node 0 totalpages: 4096
free_area_init_node: node 0, pgdat 802681b0, node_mem_map 802cf000
  Normal zone: 32 pages used for memmap
  Normal zone: 0 pages reserved
  Normal zone: 4064 pages, LIFO batch:0
Built 1 zonelists in Zone order, mobility grouping off.  Total pages: 4064
Kernel command line: root=/dev/mtdblock2 rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200
Primary instruction cache 16kB, VIPT, 2-way, linesize 16 bytes.
Primary data cache 8kB, 2-way, VIPT, no aliases, linesize 16 bytes
NR_IRQS:128
PID hash table entries: 64 (order: 6, 256 bytes)
Dentry cache hash table entries: 2048 (order: 1, 8192 bytes)
Inode-cache hash table entries: 1024 (order: 0, 4096 bytes)
Memory: 13364k/16384k available (2045k kernel code, 3020k reserved, 359k data, 132k init, 0k highmem)
Calibrating delay loop... 254.97 BogoMIPS (lpj=509952)
Mount-cache hash table entries: 512
net_namespace: 532 bytes
NET: Registered protocol family 16
board_bcm963xx: not enough mac address
registering PCI controller with io_map_base unset
bio: create slab <bio-0> at 0
pci 0000:00:01.0: reg 10 32bit mmio: [0x000000-0x00ffff]
Switched to high resolution mode on CPU 0
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 512 (order: 0, 4096 bytes)
TCP bind hash table entries: 512 (order: -1, 2048 bytes)
TCP: Hash tables configured (established 512 bind 512)
TCP reno registered
NET: Registered protocol family 1
audit: initializing netlink socket (disabled)
type=2000 audit(0.229:1): initialized
squashfs: version 4.0 (2009/01/31) Phillip Lougher
Registering mini_fo version $Id$
JFFS2 version 2.2. (NAND) (SUMMARY)  ?® 2001-2006 Red Hat, Inc.
msgmni has been set to 26
io scheduler noop registered
io scheduler deadline registered (default)
gpiodev: gpio device registered with major 254
gpiodev: gpio platform device registered with access mask FFFFFFFF
bcm63xx_uart.0: ttyS0 at MMIO 0xfffe0300 (irq = 10) is a bcm63xx_uart
console handover: boot [early0] -> real [ttyS0]
bcm63xx_enet MII bus: probed
bcm963xx_flash: 0x00400000 at 0x1fc00000
bcm963xx: Found 1 x16 devices at 0x0 in 16-bit bank
 Amd/Fujitsu Extended Query Table at 0x0040
number of CFI chips: 1
cfi_cmdset_0002: Disabling erase-suspend-program due to code brokenness.
bcm963xx_flash: Read Signature value of CFE1CFE1
bcm963xx_flash: CFE bootloader detected
bcm963xx_flash: CFE boot tag found with version 6, board type 96348GW-10, and tagid bccfe.
bcm963xx_flash: Partition 0 is CFE offset 0 and length 10000
bcm963xx_flash: Partition 1 is kernel offset 10100 and length cff00
bcm963xx_flash: Partition 2 is rootfs offset e0000 and length 310000
bcm963xx_flash: Partition 3 is nvram offset 3f0000 and length 10000
bcm963xx_flash: Partition 4 is linux offset 10000 and length 3e0000
bcm963xx_flash: Spare partition is 230000 offset and length 1c0000
Creating 5 MTD partitions on "bcm963xx":
0x000000000000-0x000000010000 : "CFE"
0x000000010100-0x0000000e0000 : "kernel"
mtd: partition "kernel" must either start or end on erase block boundary or be smaller than an erase block -- forcing read-only
0x0000000e0000-0x0000003f0000 : "rootfs"
mtd: partition "rootfs" set to be root filesystem
mtd: partition "rootfs_data" created automatically, ofs=230000, len=1C0000
0x000000230000-0x0000003f0000 : "rootfs_data"
0x0000003f0000-0x000000400000 : "nvram"
0x000000010000-0x0000003f0000 : "linux"
bcm63xx_wdt started, timer margin: 30 sec
Registered led device: adsl-fail
Registered led device: ppp
Registered led device: ppp-fail
Registered led device: power
Registered led device: stop
TCP westwood registered
NET: Registered protocol family 17
802.1Q VLAN Support v1.8 Ben Greear <greearb@candelatech.com>
All bugs added by David S. Miller <davem@redhat.com>
VFS: Mounted root (squashfs filesystem) readonly on device 31:2.
Freeing unused kernel memory: 132k freed
Please be patient, while OpenWrt loads ...
mini_fo: using base directory: /
mini_fo: using storage directory: /jffs
bcm63xx_enet bcm63xx_enet.0: attached PHY at address 1 [Broadcom BCM63XX (1)]
eth1: link forced UP - 100/full - flow control off/off
device eth1 entered promiscuous mode
br-lan: port 1(eth1) entering forwarding state
roboswitch: Probing device eth0: Failed to enable switch
roboswitch: Probing device eth1: found a 5325! It's a 5350.
PPP generic driver version 2.4.2
ip_tables: (C) 2000-2006 Netfilter Core Team
NET: Registered protocol family 24
nf_conntrack version 0.5.0 (256 buckets, 1024 max)
ath_hal: module license 'Proprietary' taints kernel.
Disabling lock debugging due to kernel taint
ath_hal: 2009-05-08 (AR5210, AR5211, AR5212, AR5416, RF5111, RF5112, RF2413, RF5413, RF2133, RF2425, REGOPS_FUNC, XR)
ath_pci: trunk
wlan: trunk
wlan: mac acl policy registered
ath_rate_minstrel: Minstrel automatic rate control algorithm 1.2 (trunk)
ath_rate_minstrel: look around rate set to 10%
ath_rate_minstrel: EWMA rolloff level set to 75%
ath_rate_minstrel: max segment size in the mrr set to 6000 us
PCI: Enabling device 0000:00:01.0 (0000 -> 0002)
Atheros HAL provided by OpenWrt, DD-WRT and MakSat Technologies
wifi0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps
wifi0: 11g rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
wifi0: turboG rates: 6Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
wifi0: H/W encryption support: WEP AES AES_CCM TKIP
ath_pci: wifi0: Atheros 5212: mem=0x30000000, irq=32
device ath1 entered promiscuous mode
br-lan: port 2(ath1) entering forwarding state
root@OpenWrt:~#

Near the end, you have

bcm63xx_uart.0: ttyS0 at MMIO 0xfffe0300 (irq = 10) is a bcm63xx_uart
console handover: boot [early0] -> real [ttyS0]
bcm63xx_enet MII bus: probed
bcm963xx_flash: 0x00400000 at 0x1fc00000
bcm963xx: Found 1 x16 devices at 0x0 in 16-bit bank
Support for command set 0006 not present
gen_probe: No supported Vendor Command Set found
bcm963xx_flash: Failed to probe using CFI
bcm963xx-flash: probe of bcm963xx-flash.0 failed with error -5

and I have

bcm63xx_uart.0: ttyS0 at MMIO 0xfffe0300 (irq = 10) is a bcm63xx_uart
console handover: boot [early0] -> real [ttyS0]
bcm63xx_enet MII bus: probed
bcm963xx_flash: 0x00400000 at 0x1fc00000
bcm963xx: Found 1 x16 devices at 0x0 in 16-bit bank
 Amd/Fujitsu Extended Query Table at 0x0040
number of CFI chips: 1

But I don't know what happens ...

Did you follow the "howto" from the beginning ? i.e. start by resetting the modem
with a netgear firmware ?

Yes i followed your instruction.
I'm french and my motherboard is green (blue on wiki) so i think there are diffrences wih your model..

It was really a nice experience to read out from here because all the posts are interesting to read out and conating very useful information for the readers as well.

The discussion might have continued from here.