Ubiquiti ToughSwitch TS-5-POE
Advanced Gigabit PoE Managed Switch.
Any text with a light background (like this text) provides guidance for creating the Details Page. When you have filled in correct/useful information (instead of any template that's there) remove the text, as well as the <WRAP>
that encloses it.
Getting started with a new Device Page
- This is an empty template that suggests the information that should be present on a well-constructed Device Page. This means, that you have to fill it with life and information.
- There are several “fixme” tags with text on a light background (like this text) throughout this template. As you fill in the page, remove those tags so that people can judge its completeness.
- When there are no more “fixme” tags left, delete this one too, along with the
<WRAP>
that encloses it.
Keep the articles modular
- Please include only model specific information, omit bla,bla and put everything generic into separate articles
- If you have no time to write certain stuff, link to docs
- base-system should lead the way, do not explain this again
- DO NOT provide a complete howto here! Instead groom the general documentation.
Supported Versions
Hardware Highlights
Installation
Flash Layout
Find out flash layout, then add the flash layout table here (copy, paste, modify the example).
Please check out the article Flash layout. It contains examples and explanations that describe how to document the flash layout.
OEM easy installation
The instructions below are for Broadcom devices and only serve as an example. Remove / modify them if they do not apply to this particular device!
This section deals with
- How you install OpenWrt from a device freshly opened
- 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 needed for tftp
Enter values for “FILL-IN” below
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
These are generic instructions. Update with your router's specifics.
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
If you don't have a GUI (LuCI) available, you can alternatively upgrade via the command line. There are two command line methods for upgrading:
sysupgrade
mtd
Note: It is important that you put the firmware image into the ramdisk (/tmp) before you start flashing.
sysupgrade
- Login as root via SSH on 192.168.1.1, then enter the following commands:
cd /tmp wget http://downloads.openwrt.org/snapshots/trunk/XXX/xxx.abc sysupgrade /tmp/xxx.abc
mtd
If sysupgrade
does not support this router, use mtd
.
- Login as root via SSH on 192.168.1.1, then enter the following commands:
cd /tmp wget http://downloads.openwrt.org/snapshots/trunk/XXX/xxx.abc mtd write /tmp/xxx.abc linux && reboot
Debricking
Failsafe mode
Basic configuration
→ Basic configuration After flashing, proceed with this.
Set up your Internet connection, configure wireless, configure USB port, etc.
Specific Configuration
Please fill in real values for this device, then remove the EXAMPLEs
Network interfaces
The default network configuration is:
Interface Name | Description | Default configuration |
---|---|---|
br-lan | EXAMPLE LAN & WiFi | EXAMPLE 192.168.1.1/24 |
vlan0 (eth0.0) | EXAMPLE LAN ports (1 to 4) | EXAMPLE None |
vlan1 (eth0.1) | EXAMPLE WAN port | EXAMPLE DHCP |
wl0 | EXAMPLE WiFi | EXAMPLE Disabled |
Switch Ports (for VLANs)
Please fill in real values for this device, then remove the EXAMPLEs
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) | EXAMPLE 4 |
LAN 1 | EXAMPLE 3 |
LAN 2 | EXAMPLE 2 |
LAN 3 | EXAMPLE 1 |
LAN 4 | EXAMPLE 0 |
Buttons
→ hardware.button on howto use and configure the hardware button(s). Here, we merely name the buttons, so we can use them in the above Howto.
Please fill in real values for this device, then remove the EXAMPLEs
The Ubiquiti ToughSwitch TS-5-POE has the following buttons:
BUTTON | Event |
---|---|
EXAMPLE Reset | reset |
EXAMPLE Secure Easy Setup | ses |
EXAMPLE No buttons at all. | - |
PoE
Enabling PoE on switch ports.
Please fill in real values for this device, then remove the EXAMPLEs
I installed such packages as kmod-i2c-gpio, kmod-gpio-pca953x, kmod-switch-ar8xxx.
This is the command to enable PoE on the desired port (1):
echo “1” > /sys/class/gpio/ubnt:24v-poe:port1/value
Disabling:
echo “0” > /sys/class/gpio/ubnt:24v-poe:port1/value
To make everything work like new when rebooting, enter the command in /etc/rc.local
Hardware
Info
Photos
Front:
Insert photo of front of the casing
Back:
Insert photo of back of the casing
Backside label:
Insert photo of backside label
Opening the case
Note: This will void your warranty!
Please improve case opening description, e.g. remove rubber feet, adhesive labels, screws, ...
Open Case:
Very carefully peel off the corners of the foam padding. You could use a sharp flat blade, or a thin flat metal stiff sheet. Be careful not to cut or damage the padding (optional) so you can put it back. Of course, you could just remove it all and replace later with other foam pad or rubber feet, or similar.
Find and remove 4 screws on each four corners.
The case top comes off, not the case bottom. Turn upright and shake a little to have gravity pull down on the case bottom and motherboard. Do not let it fall out. If it does not come out, use the same blade/metal sheet to pry it off a little until it releases.
Serial
→ port.serial general information about the serial port, serial port cable, etc.
The board has a populated pinhead J1 with a TTL (3.3V) level serial port as described:
PIN | USE |
---|---|
1 | VCC |
2 | RX |
3 | TX |
4 | GND |
Serial connection parameters for Ubiquiti ToughSwitch TS-5-POE | 115200, 8N1 |
---|
JTAG
→ port.jtag general information about the JTAG port, JTAG cable, etc.
How to connect to the JTAG Port of this specific device:
Insert photo of PCB with markings for JTAG port
Bootloader Mods
Bootlogs
OEM bootlog
U-Boot 1.1.4.2-s559 (May 23 2012 - 13:31:49) Board: Ubiquiti Networks XM board (rev 2.4 e700) DRAM: 64 MB Flash: 8 MB Net: eth0, eth1 Hit any key to stop autoboot: 0 ## Booting image at 9f050000 ... Image Name: MIPS Ubiquiti Linux-2.6.32.49 Created: 2013-07-24 13:58:19 UTC Image Type: MIPS Linux Kernel Image (lzma compressed) Data Size: 1041384 Bytes = 1017 kB Load Address: 80002000 Entry Point: 80002000 Verifying Checksum ... OK Uncompressing Kernel Image ... OK Starting kernel ... Booting... ^@^M[ 0.000000] Linux version 2.6.32.49 (buildd@builder) (gcc version 4.1.2) #1 Wed Jul 24 16:58:15 EEST 2013 [ 0.000000] flash_size passed from bootloader = 0 [ 0.000000] CPU revision is: 00019374 (MIPS 24Kc) [ 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_node_map[1] active 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: console=ttyS0,115200 root=31:03 rootfstype=squashfs init=/init mtdparts=ar7240-nor0:256k(u-boot),64k(u-boot-env),1024k(kernel),6528k(rootfs),256k(cfg),64k(EEPROM) [ 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 64kB, 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: 61828k/65536k available (2273k kernel code, 3636k reserved, 532k data, 136k init, 0k highmem) [ 0.000000] Hierarchical RCU implementation. [ 0.000000] NR_IRQS:128 [ 0.000000] plat_time_init: plat time init done [ 0.000000] Console: colour dummy device 80x25 [ 0.000000] Calibrating delay loop... 259.58 BogoMIPS (lpj=129792) [ 0.016000] Mount-cache hash table entries: 512 [ 0.019000] NET: Registered protocol family 16 [ 0.021000] ===== ar7240_platform_init: 0 [ 0.021000] ***** Warning *****: PCIe WLAN H/W not found !!! [ 0.029000] bio: create slab <bio-0> at 0 [ 0.030000] usbcore: registered new interface driver usbfs [ 0.031000] usbcore: registered new interface driver hub [ 0.031000] usbcore: registered new device driver usb [ 0.032000] Switching to clocksource MIPS [ 0.035000] NET: Registered protocol family 2 [ 0.035000] IP route cache hash table entries: 1024 (order: 0, 4096 bytes) [ 0.037000] TCP established hash table entries: 2048 (order: 2, 16384 bytes) [ 0.037000] TCP bind hash table entries: 2048 (order: 1, 8192 bytes) [ 0.037000] TCP: Hash tables configured (established 2048 bind 2048) [ 0.037000] TCP reno registered [ 0.038000] NET: Registered protocol family 1 [ 0.038000] AR7240 GPIOC major 0 [ 0.040000] squashfs: version 4.0 (2009/01/31) Phillip Lougher [ 0.040000] JFFS2 version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc. [ 0.041000] msgmni has been set to 120 [ 0.041000] io scheduler noop registered (default) [ 0.067000] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled [ 0.068000] serial8250.0: ttyS0 at MMIO 0xb8020000 (irq = 19) is a 16550A [ 0.344000] console [ttyS0] enabled [ 0.349000] 6 cmdlinepart partitions found on MTD device ar7240-nor0 [ 0.355000] Creating 6 MTD partitions on "ar7240-nor0": [ 0.361000] 0x000000000000-0x000000040000 : "u-boot" [ 0.367000] 0x000000040000-0x000000050000 : "u-boot-env" [ 0.374000] 0x000000050000-0x000000150000 : "kernel" [ 0.380000] 0x000000150000-0x0000007b0000 : "rootfs" [ 0.386000] mtd: partition "rootfs" set to be root filesystem [ 0.392000] 0x0000007b0000-0x0000007f0000 : "cfg" [ 0.398000] 0x0000007f0000-0x000000800000 : "EEPROM" [ 0.405000] usbmon: debugfs is not available [ 0.409000] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver [ 0.446000] Port Status c000004 [ 0.449000] ar7240-ehci ar7240-ehci.0: ATH EHCI [ 0.454000] ar7240-ehci ar7240-ehci.0: new USB bus registered, assigned bus number 1 [ 0.463000] ehci_reset Intialize USB CONTROLLER in host mode: 3 [ 0.470000] ehci_reset Port Status c000000 [ 0.474000] ar7240-ehci ar7240-ehci.0: irq 3, io mem 0x1b000000 [ 0.481000] ehci_reset Intialize USB CONTROLLER in host mode: 3 [ 0.488000] ehci_reset Port Status c000000 [ 0.498000] ar7240-ehci ar7240-ehci.0: USB 2.0 started, EHCI 1.00 [ 0.504000] usb usb1: configuration #1 chosen from 1 choice [ 0.510000] hub 1-0:1.0: USB hub found [ 0.514000] hub 1-0:1.0: 1 port detected [ 0.519000] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver [ 0.526000] u32 classifier [ 0.529000] Performance counters on [ 0.532000] input device check on [ 0.536000] Actions configured [ 0.542000] TCP westwood registered [ 0.545000] NET: Registered protocol family 10 [ 0.554000] NET: Registered protocol family 17 [ 0.559000] Bridge firewalling registered [ 0.563000] 802.1Q VLAN Support v1.8 Ben Greear <greearb@candelatech.com> [ 0.570000] All bugs added by David S. Miller <davem@redhat.com> [ 0.576000] ar7240wdt_init: Registering WDT success [ 0.587000] VFS: Mounted root (squashfs filesystem) readonly on device 31:3. [ 0.595000] Freeing unused kernel memory: 136k freed [ 0.610000] Please be patient, while AirOS loads ... [ 1.727000] Algorithmics/MIPS FPU Emulator v1.5 ...mounts done ...filesystem init done ...base ok ...update ok ...symlinks ok ...httpd ok ...detect ok ...caldata ok ...running /sbin/init Please press Enter to activate this console. ^M TOUGHSwitch PoE login: ubnt Password: Jul 24 16:57:35 login[871]: root login on 'ttyS0'^M BusyBox v1.11.2 (2013-07-24 16:54:01 EEST) built-in shell (ash) Enter 'help' for a list of built-in commands. SW.v1.3#
OpenWrt bootlog
COPY HERE THE BOOTLOG ONCE OPENWRT IS INSTALLED AND RUNNING
Notes
Space for additional notes, links to forum threads or other resources, ...
- ...