User Tools

Site Tools


toh:fiboom:hg320

Fiboom HG320

WARNING: Current trunk version boots, but has no WiFI and no Ethernet - serial console required.
FIXME This warning is at least one year old. Please verify, if it is still correct. If it is not, please update this page accordingly. — tmomas 2015/10/05 20:23

Hardware Highlights

CPU Ram Flash Network USB Serial JTag
Broadcom BCM5358 @500MHz 64MiB 16MiB 4 x 1 1x 2.0 Yes Yes

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.

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

Flash Layout

Please check out the article Flash.Layout. It contains an example and a couple of explanations.

OEM easy installation

FIXME 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.

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 http://downloads.openwrt.org/FILL-IN/openwrt-FILL-IN-generic-FILL-IN-squashfs-tftp.bin (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

  • 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

Bootlogs

OEM bootlog

PUT HERE YOUR BOOTLOG


OpenWrt bootlog

Starting program at 0x80001000 [ 0.000000] Linux version 3.3.8 (openwrt@callisto.lab.bufferbloat.net) (gcc version 4.6.3 20120201 (prerelease) (Linaro GCC 4.6-2012.02) ) #1 Wed Sep 26 21:16:16 EDT 2012 [ 0.000000] CPU revision is: 00019749 (MIPS 74Kc) [ 0.000000] bcm47xx: using bcma bus [ 0.000000] bcma: bus0: Found chip with id 0x5357, rev 0x02 and package 0x09 [ 0.000000] bcma: bus0: Core 0 found: ChipCommon (manuf 0x4BF, id 0x800, rev 0x26, class 0x0) [ 0.000000] bcma: bus0: Core 3 found: MIPS 74K (manuf 0x4A7, id 0x82C, rev 0x04, class 0x0) [ 0.000000] bcma: bus0: Initializing MIPS core... [ 0.000000] bcma: bus0: IRQ reconfiguration done [ 0.000000] bcma: core 0x0800, irq : 2(S)* 3 4 5 6 D I [ 0.000000] bcma: core 0x082c, irq : 2(S)* 3 4 5 6 D I [ 0.000000] bcma: bus0: found serial flash. [ 0.000000] bcma: bus0: Early bus registered [ 0.000000] gpiochip_add: registered GPIOs 0 to 15 on device: bcm47xx [ 0.000000] Determined physical RAM map: [ 0.000000] memory: 04000000 @ 00000000 (usable) [ 0.000000] Initrd not found or empty - disabling initrd [ 0.000000] Zone PFN ranges: [ 0.000000] Normal 0x00000000 -> 0x00004000 [ 0.000000] Movable zone start PFN for each node [ 0.000000] Early memory PFN ranges [ 0.000000] 0: 0x00000000 -> 0x00004000 [ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 16256 [ 0.000000] Kernel command line: root=/dev/mtdblock2 rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200 [ 0.000000] PID hash table entries: 256 (order: -2, 1024 bytes) [ 0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes) [ 0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes) [ 0.000000] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes. [ 0.000000] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes [ 0.000000] Writing ErrCtl register=00000000 [ 0.000000] Readback ErrCtl register=00000000 [ 0.000000] Memory: 61420k/65536k available (2545k kernel code, 4116k reserved, 542k data, 168k init, 0k highmem) [ 0.000000] NR_IRQS:128 [ 0.000000] Calibrating delay loop... 249.34 BogoMIPS (lpj=498688) [ 0.032000] pid_max: default: 32768 minimum: 301 [ 0.032000] Mount-cache hash table entries: 512 [ 0.032000] NET: Registered protocol family 16 [ 0.048000] bio: create slab <bio-0> at 0 [ 0.056000] Switching to clocksource MIPS [ 0.064000] NET: Registered protocol family 2 [ 0.064000] IP route cache hash table entries: 1024 (order: 0, 4096 bytes) [ 0.064000] TCP established hash table entries: 2048 (order: 2, 16384 bytes) [ 0.064000] TCP bind hash table entries: 2048 (order: 1, 8192 bytes) [ 0.064000] TCP: Hash tables configured (established 2048 bind 2048) [ 0.064000] TCP reno registered [ 0.064000] UDP hash table entries: 256 (order: 0, 4096 bytes) [ 0.064000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes) [ 0.064000] NET: Registered protocol family 1 [ 0.064000] bcma: bus0: Core 1 found: IEEE 802.11 (manuf 0x4BF, id 0x812, rev 0x1C, class 0x0) [ 0.064000] bcma: bus0: Core 2 found: GBit MAC (manuf 0x4BF, id 0x82D, rev 0x03, class 0x0) [ 0.064000] bcma: bus0: Core 4 found: USB 2.0 Host (manuf 0x4BF, id 0x819, rev 0x05, class 0x0) [ 0.064000] bcma: bus0: Core 5 found: DDR1/DDR2 Memory Controller (manuf 0x4BF, id 0x82E, rev 0x02, class 0x0) [ 0.064000] bcma: bus0: Core 6 found: I2S (manuf 0x4BF, id 0x834, rev 0x02, class 0x0) [ 0.068000] bcma: bus0: Core 7 found: Internal Memory (manuf 0x4BF, id 0x80E, rev 0x0B, class 0x0) [ 0.068000] bcma: bus0: Initializing MIPS core... [ 0.068000] bcma: bus0: set_irq: core 0x0812, irq 3 => 3 [ 0.068000] bcma: bus0: set_irq: core 0x082d, irq 4 => 4 [ 0.068000] bcma: bus0: set_irq: core 0x0819, irq 5 => 5 [ 0.068000] bcma: bus0: IRQ reconfiguration done [ 0.068000] bcma: core 0x0800, irq : 2(S)* 3 4 5 6 D I [ 0.068000] bcma: core 0x082c, irq : 2(S)* 3 4 5 6 D I [ 0.068000] bcma: core 0x0812, irq : 2(S) 3* 4 5 6 D I [ 0.068000] bcma: core 0x082d, irq : 2(S) 3 4* 5 6 D I [ 0.068000] bcma: core 0x0819, irq : 2(S) 3 4 5* 6 D I [ 0.068000] bcma: core 0x082e, irq : 2(S)* 3 4 5 6 D I [ 0.068000] bcma: core 0x0834, irq : 2(S)* 3 4 5 6 D I [ 0.068000] bcma: core 0x080e, irq : 2(S)* 3 4 5 6 D I [ 0.080000] Unsupported SPROM revision 0 detected. Will extract v1 [ 0.100000] bcma: bus0: Bus registered [ 0.100000] squashfs: version 4.0 (2009/01/31) Phillip Lougher [ 0.100000] JFFS2 version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc. [ 0.104000] msgmni has been set to 119 [ 0.104000] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 254) [ 0.104000] io scheduler noop registered [ 0.104000] io scheduler deadline registered (default) [ 0.104000] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled [ 0.132000] serial8250.0: ttyS0 at MMIO 0xb8000300 (irq = 2) is a U6_16550A [ 0.588000] console [ttyS0] enabled [ 0.596000] bcm47xx_pflash: error registering platform driver: -19 [ 0.604000] bcm47xx_sflash: found serial flash: blocksize=64KB, numblocks=256, size=16384KB [ 0.612000] bcm47xx_part: bootloader size: 131072 [ 0.620000] bcm47xx_part: Looking for dual image [ 0.628000] bcm47xx_part: TRX offset : 0 [ 0.632000] 4 bcm47xx partitions found on MTD device bcm47xx-sflash [ 0.640000] Creating 4 MTD partitions on "bcm47xx-sflash": [ 0.644000] 0x000000000000-0x000000020000 : "cfe" [ 0.652000] 0x000000020000-0x000000ff0000 : "linux" [ 0.660000] 0x000000127c00-0x000000ff0000 : "rootfs" [ 0.664000] mtd: partition "rootfs" must either start or end on erase block boundary or be smaller than an erase block -- forcing read-only [ 0.680000] mtd: partition "rootfs" set to be root filesystem [ 0.688000] mtd: partition "rootfs_data" created automatically, ofs=2A0000, len=D50000 [ 0.696000] 0x0000002a0000-0x000000ff0000 : "rootfs_data" [ 0.704000] 0x000000ff0000-0x000001000000 : "nvram" [ 0.712000] bcm47xx_nflash: error registering platform driver: -19 [ 0.720000] BCM47xx Watchdog Timer enabled (30 seconds, nowayout) [ 0.728000] TCP cubic registered [ 0.732000] NET: Registered protocol family 17 [ 0.736000] Bridge firewalling registered [ 0.740000] 8021q: 802.1Q VLAN Support v1.8 [ 0.752000] VFS: Mounted root (squashfs filesystem) readonly on device 31:2. [ 0.760000] Freeing unused kernel memory: 168k freed [ 2.952000] diag: Router model not detected. [ 4.044000] roboswitch: Probing device eth0: No such device [ 4.048000] roboswitch: Probing device eth1: No such device [ 4.056000] roboswitch: Probing device eth2: No such device [ 4.060000] roboswitch: Probing device eth3: No such device [ 7.204000] diag: Router model not detected. - preinit - Press the [f] key and hit [enter] to enter failsafe mode - regular preinit - [ 10.600000] JFFS2 notice: (314) jffs2_build_xattr_subsystem: complete building xattr subsystem, 1 of xdatum (0 unchecked, 0 orphan) and 4 of xref (0 dead, 2 orphan) found. switching to jffs2 - init - Please press Enter to activate this console. [ 12.568000] Compat-drivers backport release: compat-drivers-2012-09-04-2-gddac993 [ 12.576000] Backport based on wireless-testing.git master-2012-09-07 [ 12.584000] compat.git: wireless-testing.git [ 12.620000] cfg80211: Calling CRDA to update world regulatory domain [ 12.624000] cfg80211: World regulatory domain updated: [ 12.632000] cfg80211: (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp) [ 12.640000] cfg80211: (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm) [ 12.648000] cfg80211: (2457000 KHz - 2482000 KHz @ 20000 KHz), (300 mBi, 2000 mBm) [ 12.656000] cfg80211: (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm) [ 12.664000] cfg80211: (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm) [ 12.668000] cfg80211: (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm) [ 12.756000] roboswitch: Probing device eth0: No such device [ 12.760000] roboswitch: Probing device eth1: No such device [ 12.768000] roboswitch: Probing device eth2: No such device [ 12.772000] roboswitch: Probing device eth3: No such device [ 13.296000] Broadcom 43xx driver loaded [ Features: PNL ] [ 13.324000] Broadcom 43xx-legacy driver loaded [ Features: PLID ] [ 13.440000] PPP generic driver version 2.4.2 [ 13.572000] ip_tables: (C) 2000-2006 Netfilter Core Team [ 13.700000] NET: Registered protocol family 24 [ 13.724000] nf_conntrack version 0.5.0 (962 buckets, 3848 max)


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
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 Linksys WRT54GL has two buttons. They are Reset and Secure Easy Setup. Here, we merely name the buttons, so we can use them in the above Howto:

BUTTON Event
Reset reset
Secure Easy Setup ses

Hardware

Info

Architecture: MIPS
Vendor: Broadcom
Bootloader: CFE
System-On-Chip: Broadcom BCM5357 chip rev 2 pkg 9 (MIPS 74Kc)
CPU/Speed 500 Mhz
Flash-Chip: ST 25P64V6P
Flash size: 16 MiB
RAM: 64 MiB
Wireless: Broadcom BCM5358 2.4ghz 802.11bgn
Ethernet: Broadcom BCM5358 / vlan support swconfig
USB: Yes 1 x 2.0
Serial: Yes
JTAG: Yes

Photos

hg320_top.jpg hg320_bottom.jpg hg320_pcb.jpg

Opening the case

Note: This will void your warranty!

  • To remove the cover do a/b/c

Main PCB

Photo of PCB

Serial

port.serial general information about the serial port, serial port cable, etc.

How to connect to the Serial Port of this specific device:

Photo of PCB with markings

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

Currently none.

Hardware mods

Currently none.

Notes

Tags

toh/fiboom/hg320.txt · Last modified: 2015/12/12 07:57 by tmomas