Edimax BR-6104K/BR-6104KP

The Edimax BR-6104K/BR-6104KP is a router based on Infineon's ADM5120P SoC. The CPU has a MIPS32 core (little endian). These devices have 16MiB of RAM, 2MiB of flash memory, 2 USB ports (BR-6104KP), a WAN port, and 4 ethernet ports.

Supported Versions

Version/Model S/N OpenWrt Version Supported Model Specific Notes
Rev. A - Backfire trunk -

Hardware Highlights

CPU Ram Flash Network USB Serial JTag
4Kc@175MHz/227MIPS 16MB 2MB 4 x 1 Yes Yes Yes

Installation

Currently, the only way to install OpenWrt is to build Backfire and transfer the resulting image to the router via serial port. Please consult here (Midge). Here is a good HOWTO on installing a serial port. USB rootfs see: USB-rootfs on boot on Edimax BR-6104KP (ADM5120) [WORKS]. A better way for external rootfs is to use the block-extroot package. Although the small flash will cause some trouble, when using ext2/3/4 on the external storage. In order to get the rootfs_data partition created in the flash (jffs2, which needs at least 5 eraseblocks), which is essential for pivoting /overlay or root using block-mount, the firmware image should not exceed a size of 1 769 472 bytes. In that case, the rootfs_data partition will have a free capacity of approximately 130 kB, which is just sufficient to install kmod-scsi-core and kmod-usb-storage. Everything else essentially necessary to get the filesystem mounted, has to be compiled into the firmware image. To achieve this, busybox normally has to be stripped down (unnecessary stuff, like ipv6, telnetd, traceroute, ntpd, dhcpd) - a full busybox can be installed to the external storage afterwards.

Hardware

Info

Architecture: MIPS
Vendor: Edimax
Bootloader: Edimax type bootloader
System-On-Chip: ADM5120P
CPU Speed: 175 Mhz
Flash-Chip: ???
Flash size: 2 MiB
RAM: 16 MiB
Wireless: -
Ethernet: Embedded ethernet switch engine
USB: Yes
Serial: Yes
JTAG: Yes

Photos

Edimax BR-6104K

Front:

Back:

Modified Edimax BR-6104K. Added USB and DB9 connectors for serial buses.

Opening the case

  • To remove the cover simply remove the screws on the bottom cover

Main PCB

The main PCB of BR-6104K with modifications. USB components were filled in and quick hack of +5V USB power supply added which virtually made it to work like BR-6104KP. Also the second serial port was connected to JP2 connector (no 3.3V to RS232 level converter shown).

Serial

On the BR6104K/KP board there is a 8pin connector called JP2 that can be used as serial port. You can connect a serial level shifter (such as the MAX232 family) to these pins.

Its pins are:

1.RX 2.+3.3V
3.nc 4.nc
5.nc 6.nc
7.TX 8.GND

Use the 3.3V as supply for the MAX chip, don't use the 5V from the USB. (You want to convert to the processors' levels, not the USBs')

JTAG

ADM5120 supports MIPS EJTAG 2.6. Edimax 6104K/6104KP has standard 14-pin EJTAG header (unsoldered).

See port.jtag for more JTAG details.

Specific Configuration

Interfaces

The admswconfig tool configures the internal switch. Instead of using the tool manually, the switch can be configured using the "config switch" section in /etc/config/network.

Example: The following configuration separates WAN and LAN

#### VLAN configuration
config switch
option eth0 "1 2 3 4"
option eth1 "0"
option eth2 ""
option eth3 ""
option eth4 "" 

The default network configuration is:

Interface Name Description Default configuration
br-lan LAN 192.168.1.1/24
eth0 LAN ports (1 to 4) None
eth1 WAN port (0) DHCP

Routers may come with identical MAC addresses, use "option macaddr " inside the /etc/config/network file to change the default MAC.

Switch Ports (for VLANs)

Numbers 1-4 are Ports 1-4 as labeled on the unit, number 0 is the Internet (WAN) on the unit.

Port Switch port
Internet (WAN) 0
LAN 1 1
LAN 2 2
LAN 3 3
LAN 4 4

Failsafe mode

If you forgot your password, broken one of the startup scripts, firewalled yourself or corrupted the JFFS2 partition, you can get back in by using OpenWrt's failsafe mode.

Boot into failsafe mode

FIXME TODO

What to do in failsafe mode?

NOTE: The root file system in failsafe mode is the SquashFS partition mounted in readonly mode. To switch to the normal writable root file system run mount_root and make any changes. Run mount_root now.

  1. Forgot/lost your password and you like to set a new one

passwd

  1. Forgot the routers IP address

uci get network.lan.ipaddr

  1. You accidentally run 'ipkg upgrade' or filled up the flash by installing to big packages (clean the JFFS2 partition and start over)

mtd -r erase rootfs_data If you are done with failsafe mode power cycle the router and boot in normal mode.

Buttons

The Edimax BR-6104KP has one reset button. The reset button is software controlled (/dev/switch), see http://www.agri-vision.nl/CMS/index.php?option=com_content&task=view&id=35&Itemid=63 for a script using the button.

Basic configuration

Other Info


Back to top

toh/edimax/br-6104kp.txt · Last modified: 2012/11/13 22:15 by mbs