Huawei HG520b
The Huawei HG520b is an adsl wifi router distributed by TEDATA to IT'S customers.
| master ic NO is |
| TRENDCHIP |
| TC3162P2-PQ208G |
| D500H.1 |
| UG1016D2-H |
| NETWORK IC NO |
| IC+ |
| IP175C LF |
| 1016C13 |
| FR1W418.18 |
| WIRELISS IC NO |
| RA |
| RT2561T |
| G2V8900G0 |
| 1016AT |
| MEMORY IC "I'M NOT SURE" |
| EM639165TS-7G |
| 009AG05AGF841.132Q |
| Frequency 143MHZ |
| ADSL IC |
| trendchip tc3085-tq64-epg |
this is all i know
Supported Versions
| Version/Model | Launch Date | S/N | OpenWrt Version Supported | Model Specific Notes |
|---|
| v1 | 2006-07 | - | - | - |
| v1.1 | 2008-12 | - | - | - |
| v2 | 2011-01 | - | - | - |
NOTE: Anything not included in model specific notes, or where a short comment couldn't be included on the notes.
OEM source code available at: (add URL)
Hardware Highlights
| SoC | Ram | Flash | Network | USB | Serial | JTag |
|---|
| TC3162P2 | 16MiB | ? | 4 x 1 | No | Yes | ? |
Manufacturer's site: http://www.huawei.com/en/
Forum: https://forum.openwrt.org/viewtopic.php?id=???
Keep the articles modular
| Please include only model specific information, omit bla,bla and put everything generic into separate articles |
| generic.overview if you have no time to write certain stuff link to this |
| basic.config should lead the way, do not explain this again |
| DO NOT provide a complete howto here! Instead groom the general HowTos. |
Installation
→ obtain.firmware
→ Install OpenWrt
→ »»»»here»»»»Latest OpenWrt release««««here«««« DO NOT PROVIDE OWN LINKS to http://downloads.openwrt.org/
Flash Layout
Please check out the article Flash.Layout. It contains an example and a couple of explanations.
OEM easy installation
| https://wiki.openwrt.org/lib/images/smileys/fixme.gif 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
Specific values you need
| Bootloader tftp server IPv4 address | FILL-IN |
| Bootloader MAC address (special) | FILL-IN |
| Firmware tftp image | Latest OpenWrt release (NOTE: Name must contain "tftp") |
| TFTP Transfer Window | FILL-IN seconds |
| TFTP Window Start | approximately FILL-IN seconds after power on |
| TFTP Client Required IP Address | FILL-IN |
Upgrading OpenWrt
→ generic.sysupgrade
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
Terminal Upgrade Process
cd /tmp/
wget http://http://downloads.openwrt.org/snapshots/trunk/XXX/xxx.abc
sysupgrade /tmp/xxx.abc
cd /tmp/
wget http://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 | Enabled |
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 |
|---|
| Internet (WAN) | 4 |
| LAN 1 | 3 |
| LAN 2 | 2 |
| LAN 3 | 1 |
| LAN 4 | 0 |
Failsafe mode
Buttons
→ hardware.button on howto use and configure the hardware button(s).
The Huawei HG520b has three buttons. They are Reset and Power, Wireless Here on/off , we merely name the buttons, so we can use them in the above Howto:
| BUTTON | Event |
|---|
| Reset | reset |
| Wireless | on/off wireless |
| Power | on/off Power |
Hardware
Info
| Instruction set: | MIPS / ARM / PowerPC / SPARC / Ubicom32 / x86 /AVR32 / ETRAX CRIS / … |
| Vendor: | TRENDCHIP |
| Bootloader: | U-Boot / RedBoot / CFE / … |
| System-On-Chip: | TRENDCHIP TC3162P2-PQ208G |
| CPU @Frq | |
| Flash size: | 8192 KiB |
| Flash Chip: | |
| RAM size: | 16 MiB |
| RAM Chip: | EM639165TS |
| Wireless No1: | RA: RT2561T / for 2.4GHz 802.11b/g |
| Switch: | IC+ IP175C LF ( VLAN ) |
| Modem: | none / xDSL / Wireless |
| USB: | NONE |
| Serial: | Yes |
| JTAG: | Yes |
Photos
Opening the case
Serial
→ port.serial general information about the serial port, serial port cable, etc.
How to connect to the Serial Port of this specific device:
JTAG
→ port.jtag general information about the JTAG port, JTAG cable, etc.
How to connect to the JTAG Port of this specific device:
Photo of PCB with markings
Debricking
Bootloader Mods
Hardware mods
Bootlogs
OEM bootlog