Differences

This shows you the differences between two versions of the page.

toh:netgear:dg834gt [2012/10/08 16:30]
apbarrett Add some sub-sub-headings to the linux instructions.
toh:netgear:dg834gt [2013/05/15 16:10] (current)
danitool
Line 1: Line 1:
====== Netgear DG834GT ====== ====== Netgear DG834GT ======
-| {{:meta:icons:tango:48px-dialog-warning.svg.png?nolink&24x24}} | **WARNING:** Do not confuse the DG834**GT** with the [[oldwiki:openwrtdocs:hardware:netgear:DG834G]]! +| {{:meta:icons:tango:48px-dialog-warning.svg.png}} | **WARNING:** Do not confuse the DG834**GT** with the [[/toh/netgear/dg834.v4|DG834G V4]]!\\ Also note that the **Wifi** chip for this router is the **atheros** AR2414 chip and //not// the broadcom.
-Also note that the **Wifi** chip for this router is the **atheros** AR2414 chip and //not// the broadcom.+
===== Hardware Highlights ===== ===== Hardware Highlights =====
-^ CPU ^ Ram ^ Flash ^ LAN ^ USB ^ Serial ^ JTag ^ +^ SoC ^ Ram ^ Flash ^ LAN ^ USB ^ Serial ^ JTag ^ 
-|Broadcom BCM6348@255MHz | 16MiB | 4MiB | 4 x 1| USB 1.1 Host | Yes | Yes |+|Broadcom BCM6348@256MHz | 16MiB | 4MiB | 4 x 1| USB 1.1 Host | Yes | Yes |
===== Installation ===== ===== Installation =====
Line 77: Line 77:
  * This should get you the CFE> prompt. If you just got random rubbish on the screen, you have a DG834GT that has problems with the serial port and bootloader. You may have to try using NFTP or the Netgear Firmware Recovery tool instead.   * This should get you the CFE> prompt. If you just got random rubbish on the screen, you have a DG834GT that has problems with the serial port and bootloader. You may have to try using NFTP or the Netgear Firmware Recovery tool instead.
  * In the serial terminal, type <code>flashimage [your_pc_ip_address]:openwrt-DG834GT_DG834PN-squashfs-cfe.bin</code>   * In the serial terminal, type <code>flashimage [your_pc_ip_address]:openwrt-DG834GT_DG834PN-squashfs-cfe.bin</code>
 +
 +
 +==== WiFi ====
 +
 +Getting the wireless working when using the image that does not contain the driver requires the device to communicate with the internet.  The image has a static IP address which may not be in the subnet of the network the DG834GT is plugged into.  During the Installation of the wireless driver the device self-reboots.  This works around that.  The following assumes that you have left the default IP address on the DG834GT.  The DG834GT is connected by ethernet to a Linux PC with two NIC (eg wireless and Ethernet).  The PC wireless connects to the internet.  The Linux PC forwards inet so the netgear can download via it.
 +
 +=== Access the DG834GT ===
 +On the Linux PC configure the ethernet to the DG834GT with a static IP so you can telnet then ssh to it.
 +
 +<code>
 +sudo ifconfig eth0 192.168.1.3 netmask 255.255.255.0
 +</code>
 +
 +=== Configure DG834GT to use PC as internet provider ===
 +
 +Modify '/etc/config/network' so the gateway is the laptop.  Add the following 'gateway' line to the 'config interface lan' section.
 +<code>
 +config interface lan
 +        option type    bridge
 +        option ifname  eth1
 + option gateway  192.168.1.3
 +</code>
 +
 +Add to the 'System;Startup;Local Startup' post boot script (via web interface) so it appends an external nameserver to resolve.conf.  Alternatively you could edit /etc/rc.local.  8.8.8.8 is a valid name server. 
 +<code>
 +echo search lan > /etc/resolv.conf
 +echo nameserver 8.8.8.8 >> /etc/resolv.conf
 +exit 0
 +</code>
 +
 +
 +=== PC Forwarding ===
 +
 +Configure the Linux PC to forward traffic from the ethernet to the internet with the following script.  Tailor the interfaces to your environment.
 +
 +<code>
 +#!/bin/bash
 +#assumes PC eth0 is connected to DG834GT and will have IP 192.168.1.3
 +#allow the netgear to get info from the inet via this laptop.
 +
 +function verbose
 +{
 +    echo $*
 +    $*
 +}
 +
 +echo 1 > /proc/sys/net/ipv4/ip_forward
 +
 +IP=192.168.1.3
 +#internal
 +INT=eth0
 +EXT=wlan0
 +
 +#setup static IP on interface to the netgear
 +verbose ifconfig eth0 $IP netmask 255.255.255.0
 +
 +#set up routing
 +verbose iptables -t nat -A POSTROUTING -o $EXT -j MASQUERADE
 +#allow router to connect out and remote servers to respond
 +verbose iptables -A FORWARD -i $INT -o $EXT -j ACCEPT
 +verbose iptables -A FORWARD -i $EXT -o $INT -m state    --state RELATED,ESTABLISHED -j ACCEPT
 +exit
 +</code>
 +
 +=== Linux PC looses Internet ===
 +Occasionally the Linux PC may loose the internet.  It might prioritise routeing traffic through the netgear rather than the interface to the internet.  In the following replace 10.0.2.1 with your routers IP.
 +<code>
 +sudo route del default
 +sudo route add default gw 10.0.2.1
 +</code>
 +
 +=== Download the driver ===
 +The Netgear can appear to hang as the files being downloaded and configured are large.  Downloading the dependencies separately is unnecessary, but gives more feedback.
 +
 +At the shell:
 +<code>
 +opkg update
 +opkg install kmod-ath
 +opkg install kmod-ath5k
 +</code>
 +NB the device may reboot between drivers
 +
 +=== Verify Wireless Driver Ok ===
 +At a shell prompt, enter 'wifi detect'.  If nothing is produced then you may need the ath9k driver instead.
 +
 +To install the ath9k driver (this process took nearly an hour each).
 +At the shell:
 +<code>
 +opkg update
 +opkg install kmod-ath9k-common
 +opkg install kmod-ath9k
 +</code>
 +
 +
 +=== Configuring Wireless ===
 +Enter the command
 +<code>
 +wifi detect > /etc/config/wireless
 +</code>
 +
 +vi /etc/config/wireless and comment out the line
 +<code>
 +option disabled 1
 +</code>
 +It will look like
 +<code>
 +#option disabled 1
 +</code>
 +
 +Enter command 'reboot'.
 +
 +=== Lastly for Wifi ===
 +The web interface will now have 'Network;Wifi' available.
 +
 +Undo the changes to /etc/config/network and 'System;Startup;Local Startup'.
Line 83: Line 198:
==== Info ==== ==== Info ====
- +| **[[wp>Instruction set|Architecture]]:**   | [[wp>MIPS architecture|MIPS]] big endian | 
-| **Architecture:** MIPS big endian|  +| **Vendor:**         | [[wp>Broadcom]]
-| **Vendor:** Broadcom |  +| **[[doc:techref:Bootloader]]:**     | [[doc:techref:bootloader:CFE|CFE]]
-| **Bootloader:** CFE |  +| **Board Id:**      | 96348GW-10 | 
-| **System-On-Chip:** Broadcom 6348KPBG |  +| **[[doc:hardware:soc|System-On-Chip]]:** | BCM6348KPBG
-| **CPU Speed:** 255 Mhz |  +| **[[doc:hardware:cpu|CPU]]/Speed**       | BMIPS3300 V0.7 / 256 MHz
-| **Flash-Chip:** MX 29LV320BTC-70G |  +| **Flash-Chip:**     | MX 29LV320BTC-70G | 
-| **Flash size:** 4 MiB |  +| **Flash size:**     | 4 MiB | 
-| **RAM:** IC42S32400 16 MiB or W9812G2DH-7 16 MiB both (1Mx4x32bit) |  +| **RAM:**             | IC42S32400\\ W9812G2DH-7
-| **Wireless:** Atheros AR2414 MiniPCI (802.11bg) |  +| **RAM size:**            | 16 MiB (1Mx4x32bit) | 
-| **Ethernet:** BCM5325EKQMG +| **Wireless:**       | Atheros AR2414 MiniPCI (802.11bg) | 
-| **USB:** Yes USB 1.1 unpopulated |  +| **Ethernet:**       | BCM5325 w/ vlan support [[doc:techref:swconfig]] | 
-| **Serial:** [[:inbox#Serial|Yes]] |  +| **Internet:**        | ADSL2+ 
-| **JTAG:** [[:inbox#JTAG|Yes]] |+| **USB:**             | Yes USB 1.1 unpopulated
 +| **[[doc:hardware:port.serial|Serial]]:** | [[#Serial|Yes]] | 
 +| **[[doc:hardware:port.jtag|JTAG]]:**     | [[#JTAG|Yes]] |
==== Serial ==== ==== Serial ====
Line 206: Line 323:
^GPIO ^ BGA pad ^connected ^ ^GPIO ^ BGA pad ^connected ^
-|GPIO_0| AB5 |_ | +|GPIO_0| AB5 |_ (Power LED)
-|GPIO_1| AC5 |LED 2| +|GPIO_1| AC5 |LED 2 (Orange Tick LED)
-|GPIO_2| AD1 |connected| +|GPIO_2| AD1 |connected (Orange ADSL LED)
-|GPIO_3| AD2 |LED 4| +|GPIO_3| AD2 |LED 4 (Wireless LED)
-|GPIO_4| AD4 |connected| +|GPIO_4| AD4 |connected reset
-|GPIO_5| AD3 |LED 3| +|GPIO_5| AD3 |LED 3 (Hidden LED)
-|GPIO_6| AE3 |connected reset+|GPIO_6| AE3 |connected | 
-|GPIO_7| AD5 |connected via left from the R514 label|+|GPIO_7| AD5 |connected via left from the R514 label (Green ADSL LED)|
|GPIO_8| AE5 |connected| |GPIO_8| AE5 |connected|
|GPIO_9| AE4 |connected| |GPIO_9| AE4 |connected|

Back to top

toh/netgear/dg834gt.1349706649.txt.bz2 · Last modified: 2012/10/08 16:30 by apbarrett