NETGEAR DG834G v4
Also note that the Wifi chip for this router is the Broadcom BCM4318 chip and not the atheros.
Router DG834v4 (same model, but without wifi) has the same firmware.
Router DG834GBv4 is interchangeable with this, but installation instructions does not apply because of differences in original OEM firmware.
Hardware Highlights
SoC | CPU Freq | Ram | Flash | Network | USB | Serial | JTag |
---|---|---|---|---|---|---|---|
Broadcom BCM6348 | 240MHz | 16MiB | 4MiB | 4 x 1 | possible | Yes | Yes |
NOTE:
- There is NO support for the ADSL modem currently!
- USB layout is unknown.
Installation
Download OpenWrt:
- Download the latest OpenWrt for the brcm63xx chipset from https://downloads.openwrt.org/chaos_calmer/15.05/brcm63xx/generic/ I used openwrt-15.05-brcm63xx-generic-96348GW-10-generic-squashfs-cfe.bin.
Download the source code from netgear:
- http://kb.netgear.com/app/answers/detail/a_id/2649/~/netgear-open-source-code-for-programmers-%28gpl%29 (eg: http://www.downloads.netgear.com/files/GPL/DG834GV4_V5.01.16_src.zip ). This is needed for the makeImage script.
Download the original firmware:
- Download the original firmware from http://downloadcenter.netgear.com/other/ (or build from the source code)
Generate the .img file (which can be used for upgrading through the OEM web interface):
- Get the makeImage binary, which is available in the source code provided by netgear (see above). makeImage does the following:
- copies the first 64 KiB (65536 bytes) from the start of the original image (DG834GV4_V5.01.16.img). This copies the the bootloader or CFE?
- copies the entire filesystem file (the openwrt .bin file)
- copies about 96 bytes from the end of the original image.
- padding with null bytes to an 8KiB boundary.
- combine OpenWrt and the original firmware:
- ./makeImage my-DG834Gv4-firmware.img netgear/DG834Gv4_V5.01.16.img openwrt-15.05-brcm63xx-generic-96348GW-10-generic-squashfs-cfe.bin
Preparing the router to upload the firmware:
- Power down DG834Gv4 and disconnect the DC plug from the rear of the unit.
- Wait 5-10 seconds.
- Switch on the DC adapter at the mains switch.
- With the reset button pressed, plug the DC adapter plug into the rear of the DG834Gv4.
- Wait 5-10 seconds and not release the reset button.
- The power button starts to blink green and red alternatively.
If you have linux installed:
- Compile NFTP utility:nftp.c (more info in: http://wilmer.gaa.st/834root/wiki/nftp)
- ./nftp -u eth0 miOpenWrt_DG834Gv4.img
If you only have windows installed, the procedure is as follows:
- Download ftp://downloads.netgear.com/files/dg834_recovery_utility.zip and unzip.
- Follow the instructions in the document DG834 Recovery Procedure.pdf for upload the firmware miOpenWrt_DG834Gv4.img
Note: dg834_recovery_utility.zip only works on windows 32bit
Flash Layout
Please check out the article flash.layout. It contains an example and a couple of explanations.
Partition | Size | EraseSize | Name | Function |
---|---|---|---|---|
mtd0 | 00010000 | 00002000 | “CFE” | bootloader |
mtd1 | 000dff00 | 00010000 | “kernel” | kernel |
mtd2 | 00300000 | 00010000 | “rootfs” | root file system |
mtd3 | 000b0000 | 00010000 | “rootfs_data” | conf, packages |
mtd4 | 00010000 | 00010000 | “nvram” | OEM conf |
mtd5 | 003e0000 | 00010000 | “linux” | upgrade |
OEM easy installation
The instructions below are for Broadcom devices and only serve as an example. Don't leave them in place if they do not apply to a particular device! |
This section deals with how you install OpenWrt from a device freshly opened. Plus the steps required such as reset to factory defaults if the device has already been configured
Note: Reset router to factory defaults if it has been previously configured.
- Browse to http://192.168.1.1/Upgrade.asp
- Upload .bin file to router
- Wait for it to reboot
- Telnet to 192.168.1.1 and set a root password, or browse to http://192.168.1.1 if LuCI is installed.
OEM installation using the TFTP method
If you want to upgrade using TFTP you follow these steps (as an alternative to the above install process).
Upgrading OpenWrt
If you have already installed OpenWrt and like to reflash for e.g. upgrading to a new OpenWrt version you can upgrade using the mtd command line tool. It is important that you put the firmware image into the ramdisk (/tmp) before you start flashing.
LuCI Web Upgrade Process
- Browse to http://192.168.1.1/cgi-bin/luci/mini/system/upgrade/ LuCI Upgrade URL
- Upload image file for sysupgrade to LuCI
- Wait for reboot
Terminal Upgrade Process
- Login as root via SSH on 192.168.1.1
- Use the following commands to upgrade.
cd /tmp/ wget http://downloads.openwrt.org/snapshots/trunk/XXX/xxx.abc sysupgrade /tmp/xxx.abc
- If sysupgrade does not support this router, use the following commands.
cd /tmp/ wget http://downloads.openwrt.org/snapshots/trunk/XXX/xxx.abc mtd write /tmp/xxx.abc linux && reboot
Basic configuration
→ Basic configuration After flashing, proceed with this.
Set up your Internet connection, configure wireless, configure USB port, etc.
Specific Configuration
Interfaces
The default network configuration is:
Interface Name | Description | Default configuration |
---|---|---|
br-lan | LAN & WiFi | 192.168.1.1/24 |
vlan0 (eth0.0) | LAN ports (1 to 4) | None |
vlan1 (eth0.1) | WAN port | DHCP |
wl0 | WiFi | Disabled |
Switch Ports (for VLANs)
Numbers 0-3 are Ports 1-4 as labeled on the unit, number 4 is the Internet (WAN) on the unit, 5 is the internal connection to the router itself. Don't be fooled: Port 1 on the unit is number 3 when configuring VLANs. vlan0 = eth0.0, vlan1 = eth0.1 and so on.
Port | Switch port |
---|---|
LAN 1 | 3 |
LAN 2 | 2 |
LAN 3 | 1 |
LAN 4 | 0 |
Failsafe mode
GPIOs
GPIO line | Connected |
---|---|
0 | Green LED Power |
1 | Red LED Power |
2 | LED Dsl |
3 | LED Internet |
Buttons
→ hardware.button on howto use and configure the hardware button(s).
The Netgear DG834G V4 has only one button:
BUTTON | Event | GPIO |
---|---|---|
Reset | reset | 6 |
Hardware
Info
Instruction set: | MIPS |
Vendor: | Broadcom |
bootloader: | CFE |
Board ID: | 96348W3 |
System-On-Chip: | BCM6348SKFBG |
CPU/Speed | BMIPS3300 V0.7 / 240 MHz |
Flash-Chip: | Spansion S29GL032A90TFIR4 |
Flash size: | 4 MiB |
RAM: | EM638165TS-6G / 16 MiB / 166MHz |
Wireless: | Broadcom 4318 11b/g |
Ethernet: | BCM5325 w/ vlan support swconfig |
Internet: | ADSL2+ |
USB: | possible 1 x 1.1 |
Serial: | Yes |
JTAG: | Yes |
Photos
Opening the case
Serial
→ port.serial general information about the serial port, serial port cable, etc.
Serial console is J521. Settings are: 115200, 8, n, 1
How to connect to the Serial Port of this specific device:
NOTE: R521, R522 and R523 are missing on the DG834Gv4, (it could be 1 kiloohm).
Pint out | Line |
---|---|
1 | GND |
2 | Tx |
3 | Vcc |
4 | Rx |
JTAG
→ port.jtag general information about the JTAG port, JTAG cable, etc.
How to connect to the JTAG Port of this specific device:
Netgear DG834 comes with standard 12-pin JTAG interface. The JTAG port is J201.
Name signal | Pint out | Pin out | Name signal |
---|---|---|---|
nTRST | 1 | 2 | GND |
TDI | 3 | 4 | GND |
TDO | 5 | 6 | GND |
TMS | 7 | 8 | GND |
TCK | 9 | 10 | GND |
nSRST | 11 | 12 | n/a |
Example of use:
JTAG | XILIX | Parallel Port |
---|---|---|
11 nSRST | ||
9 TCK | ---------100R--------- | D1, Pin 3 |
7 TMS | --------100R--------- | D2, Pin 4 |
5 TDO | --------100R--------- | Select, Pin 13 |
3 TDI | ---------100R--------- | D0, Pin 2 |
1 nTRST | ||
2 GND | --------------------------------------- | GND, Pines 20, 25 |
Debricking
Bootloader Mods
- you could read about bootloader in general
Hardware mods
- as a beginner, you really should inform yourself about soldering in general and then obtain some practical experience!