Skip to content

Ubnt Lssr71

felixphew edited this page Jul 13, 2016 · 2 revisions

Ubiquiti LSSR71

Hardware

  • Atheros AR7161 CPU

  • 32mb DDR RAM

  • 680MHz CPU; 170MHz RAM clock; 85MHz AHB clock

  • 1 x mini-PCI slot

  • 1 x 10/100 ethernet port

  • LEDs on GPIO pins (on underside of board)

  • GPIO connector

  • 3.3v RS232 connector

Issues

  • Redboot reports 16mb of RAM, but the board has 32mb of RAM
  • The kernel needs patching to force 32mb of RAM in src/sys/mips/atheros/ar71xx_machdep.c
  • The default redboot init script uses "go" rather than "exec", so the current method of extracting the Redboot setup+environment (passed in registers a0->a3) does not work
  • The current workaround is to reflash the unit, then using the console and run "fconfig" to modify the startup script to use "exec" rather than "go"

Dmesg

Looking for PHY for MAC unit 0
Eth KSZ8721B found.
Looking for PHY for MAC unit 1
Eth KSZ8721B found.
Ethernet eth0: MAC address 00:15:6d:c1:0a:51
IP: 192.168.1.20/255.255.255.0, Gateway: 0.0.0.0
Default server: 0.0.0.0

RedBoot(tm) bootstrap and debug environment [ROMRAM]
Ubiquiti Networks certified release, version 0.9.6.1 - built 15:39:29, Nov  4 2008

Copyright (C) 2000, 2001, 2002, 2003, 2004 Red Hat, Inc.

Board: Ubiquiti AR71xx-based board
RAM: 0x80000000-0x81000000, [0x8003ab60-0x80fe1000] available
FLASH: 0xbf000000 - 0xbf800000, 128 blocks of 0x00010000 bytes each.
== Executing boot script in 1.000 seconds - enter ^C to abort
RedBoot> cache off
RedBoot> fis load -d -e kernel
Trying LZMA decompression...
        lzma_decode failed. res=2
Trying ZLIB decompression...
Image loaded from 0x80060000-0x805a93ef
Entry point: 0x80050120, address range: 0x80050000-0x804aa674
RedBoot> go
CPU platform: Atheros AR7161 rev 2
CPU Frequency=680 MHz
CPU DDR Frequency=170 MHz
CPU AHB Frequency=85 MHz
platform frequency: 680000000
arguments: 
  a0 = 80050120
  a1 = 80fffff0
  a2 = 00000001
  a3 = 00000007
Cmd line:
Environment:
envp is invalid
Cache info:
  picache_stride    = 4096
  picache_loopcount = 16
  pdcache_stride    = 4096
  pdcache_loopcount = 8
cpu0: MIPS Technologies processor v116.147
  MMU: Standard TLB, 16 entries
  L1 i-cache: 4 ways of 512 sets, 32 bytes per line
  L1 d-cache: 4 ways of 256 sets, 32 bytes per line
  Config1=0x9ee3519e<PerfCount,WatchRegs,MIPS16,EJTAG>
  Config3=0x20
KDB: debugger backends: ddb
KDB: current backend: ddb
Copyright (c) 1992-2011 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
        The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 9.0-CURRENT #60 r219627:219628M: Mon Mar 14 11:46:13 WST 2011
    adrian@pcbsd-3114:/data/freebsd/mips/head/obj/rspro_head/mips.mipseb/data/freebsd/mips/head/src/sys/LSSR71 mips
real memory  = 33554432 (32768K bytes)
avail memory = 26800128 (25MB)
nexus0: <MIPS32 root nexus>
clock0: <Generic MIPS32 ticker> on nexus0
Timecounter "MIPS32" frequency 340000000 Hz quality 800
Event timer "MIPS32" frequency 340000000 Hz quality 800
apb0 at irq 4 on nexus0
uart0: <16550 or compatible> on apb0
uart0: console (115200,n,8,1)
ehci0: <AR71XX Integrated USB 2.0 controller> at mem 0x1b000000-0x1bffffff irq 1 on nexus0
usbus0: set host controller mode
usbus0: EHCI version 1.0
usbus0: set host controller mode
usbus0: <AR71XX Integrated USB 2.0 controller> on ehci0
pcib0 at irq 0 on nexus0
pci0: <PCI bus> on pcib0
pci0: <old, non-VGA display device> at device 0.0 (no driver attached)
ath0: <Atheros 9160> irq 0 at device 17.0 on pci0
ath0: AR9160 mac 64.1 RF5133 phy 11.0
arge0: <Atheros AR71xx built-in ethernet interface> at mem 0x19000000-0x19000fff irq 2 on nexus0
miibus0: <MII bus> on arge0
ukphy0: <Generic IEEE 802.3u media interface> PHY 1 on miibus0
ukphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
arge0: Ethernet address: 62:73:64:95:7f:28
arge1: <Atheros AR71xx built-in ethernet interface> at mem 0x1a000000-0x1a000fff irq 3 on nexus0
arge1: No PHY specified, using mask 15
arge1: Ethernet address: 62:73:64:fb:d6:33
spi0: <AR71XX SPI> at mem 0x1f000000-0x1f00000f on nexus0
spibus0: <spibus bus> on spi0
mx25l0: <M25Pxx Flash Family> at cs 0 on spibus0
mx25l0: m25p64, sector 65536 bytes, 128 sectors
ar71xx_wdog0: <Atheros AR71XX watchdog timer> on nexus0
Timecounters tick every 1.000 msec
usbus0: 480Mbps High Speed USB v2.0
ugen0.1: <Atheros> at usbus0
uhub0: <Atheros EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus0
redboot/rootfs.uzip: 830 x 16384 blocks
Root mount waiting for: usbus0
uhub0: 2 ports with 2 removable, self powered
Trying to mount root from ufs:redboot/rootfs.uzip []...
warning: no time-of-day clock registered, system time will not be set accurately