Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 1 Dec 2015 02:23:03 -0200
From:      Silvio Barros <silvio@konnet.com.br>
To:        freebsd-mips@freebsd.org.
Subject:   EdgeRouter Pro USB problem
Message-ID:  <565D20A7.4050803@konnet.com.br>

next in thread | raw e-mail | index | archive | help
Hi, I'm trying to make FreeBSD run on Edge Router pro, but nothing works 
after setting up the usb:

U-Boot 2012.04.01 (UBNT Build ID: 4670715-g7c4b1d0) (Build time: May 27 
2014 - 11:19:05)

Skipping PCIe port 0 BIST, in EP mode, can't tell if clocked.
Skipping PCIe port 1 BIST, reset not done. (port not configured)
BIST check passed.
UBNT_E200 r1:0, r2:15, serial #: 0418D6F1C56B
MPR 13-00317-15
Core clock: 1000 MHz, IO clock: 600 MHz, DDR clock: 533 MHz (1066 Mhz DDR)
Base DRAM address used by u-boot: 0x8f800000, size: 0x800000
DRAM: 2 GiB
Clearing DRAM...... done
Flash: 8 MiB
Net:   octeth0, octeth1, octeth2, octeth3, octeth4, octeth5, octeth6, 
octeth7
MMC:   Octeon MMC/SD0: 0
USB:   USB EHCI 1.00
scanning bus for devices... 2 USB Device(s) found
Type the command 'usb start' to scan for USB storage devices.

Hit any key to stop autoboot:  0
(Re)start USB...
USB:   USB EHCI 1.00
scanning bus for devices... 2 USB Device(s) found
        scanning bus for storage devices... 1 Storage Device(s) found
reading kernel/kernel

17211699 bytes read
argv[2]: coremask=0x3
argv[3]: bootverbose=1
Allocating memory for ELF segment: addr: 0xffffffff80100080 (adjusted 
to: 0x100080), size 0xe923c0
## Loading big-endian Linux kernel with entry point: 0xffffffff80100080 ...
Bootloader: Done loading app on coremask: 0x3
Starting cores 0x3
Compiled for CPU model: (0x000d9300 | 0x08000000)
CPU Model: CN6120p1.1-1000-AAP
CPU clock: 1000MHz  Core Mask: 0x3

###################################################
WARNING: Software configured for older revision than running on.
          Compiled for ID=0x000d9300, Chip is 0x000d9301
###################################################

Board: CUST_UBIQUITI_E200
Board Type: 20003  Revision: 0/15
Serial number: 0418D6F1C56B
MAC address base: 04:18:d6:f1:c5:6b (8 configured)
Cache info:
   picache_stride    = 4096
   picache_loopcount = 0
   pdcache_stride    = 1024
   pdcache_loopcount = 32
cpu0: Cavium processor v1.147
   MMU: Standard TLB, 128 entries
   L1 i-cache: 37 ways of 8 sets, 128 bytes per line
   L1 d-cache: 32 ways of 8 sets, 128 bytes per line
   Config1=0xfe3703da<COP2,PerfCount,WatchRegs,EJTAG>
   Config3=0x80003080
Physical memory chunk(s):
0xf93000 - 0xf092fff, 235929600 bytes (57600 pages)
0xf101000 - 0xff00fff, 14680064 bytes (3584 pages)
0x20000000 - 0x8f7fffff, 1870659584 bytes (456704 pages)
Maxmem is 0x8f800000
pcpu is available at virtual address 0xc000000000000000.
Octeon SDK: Cavium Inc. OCTEON SDK version 2.3.0, build 427
Available Octeon features: SAAD ZIP CRYPTO PCIE KEY_MEMORY TRA MGMT_PORT 
RAID USB NO_WPTR MDIO_CLAUSE_45 HFA DICI_MODE BIT_EXTRACTOR MMC
Copyright (c) 1992-2015 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 10.2-STABLE #15 r291381M: Fri Nov 27 17:41:13 BRST 2015
root@jail02:/usr/obj/mips.mips64/usr/freebsd10-stable/sys/ERL mips
gcc version 4.2.1 20070831 patched [FreeBSD]
Preloaded elf kernel "kernel" at 0xffffffff80f66de0.
real memory  = 2121269248 (2071552K bytes)
Physical memory chunk(s):
0x010b0000 - 0x0f092fff, 234762240 bytes (57315 pages)
0x0f101000 - 0x0ff00fff, 14680064 bytes (3584 pages)
0x20000000 - 0x8c456fff, 1816489984 bytes (443479 pages)
avail memory = 2055122944 (1959MB)
Create COP2 context zone
AP #1 started!
FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
random device not loaded; using insecure entropy
ULE: setup cpu 0
ULE: setup cpu 1
wlan: <802.11 Link Layer>
null: <null device, zero device>
Falling back to <Software, Yarrow> random adaptor
random: <Software, Yarrow> initialized
nfslock: pseudo-device
crypto: <crypto core>
mem: <memory>
nexus0: <MIPS32 root nexus>
clock0: <Generic MIPS32 ticker> on nexus0
Timecounter "MIPS32" frequency 1000000000 Hz quality 800
Event timer "MIPS32" frequency 1000000000 Hz quality 800
rnd0: <Cavium Octeon Random Number Generator> on nexus0
cryptocteon0: <Octeon Secure Coprocessor> on nexus0
crypto: assign cryptocteon0 driver id 0, flags 83886080
crypto: cryptocteon0 registers alg 6 flags 0 maxoplen 0
crypto: cryptocteon0 registers alg 7 flags 0 maxoplen 0
crypto: cryptocteon0 registers alg 1 flags 0 maxoplen 0
crypto: cryptocteon0 registers alg 2 flags 0 maxoplen 0
crypto: cryptocteon0 registers alg 11 flags 0 maxoplen 0
cryptosoft0: <software crypto> on nexus0
crypto: assign cryptosoft0 driver id 1, flags 100663296
crypto: cryptosoft0 registers alg 1 flags 0 maxoplen 0
crypto: cryptosoft0 registers alg 2 flags 0 maxoplen 0
crypto: cryptosoft0 registers alg 3 flags 0 maxoplen 0
crypto: cryptosoft0 registers alg 4 flags 0 maxoplen 0
crypto: cryptosoft0 registers alg 5 flags 0 maxoplen 0
crypto: cryptosoft0 registers alg 16 flags 0 maxoplen 0
crypto: cryptosoft0 registers alg 6 flags 0 maxoplen 0
crypto: cryptosoft0 registers alg 7 flags 0 maxoplen 0
crypto: cryptosoft0 registers alg 18 flags 0 maxoplen 0
crypto: cryptosoft0 registers alg 19 flags 0 maxoplen 0
crypto: cryptosoft0 registers alg 20 flags 0 maxoplen 0
crypto: cryptosoft0 registers alg 8 flags 0 maxoplen 0
crypto: cryptosoft0 registers alg 15 flags 0 maxoplen 0
crypto: cryptosoft0 registers alg 9 flags 0 maxoplen 0
crypto: cryptosoft0 registers alg 10 flags 0 maxoplen 0
crypto: cryptosoft0 registers alg 13 flags 0 maxoplen 0
crypto: cryptosoft0 registers alg 14 flags 0 maxoplen 0
crypto: cryptosoft0 registers alg 11 flags 0 maxoplen 0
crypto: cryptosoft0 registers alg 22 flags 0 maxoplen 0
crypto: cryptosoft0 registers alg 21 flags 0 maxoplen 0
crypto: cryptosoft0 registers alg 17 flags 0 maxoplen 0
ciu0: <Cavium Octeon Central Interrupt Unit> on nexus0
obio0 on ciu0
uart1: <Octeon-16550 channel 1> on obio0
uart1: console (115200,n,8,1)
uart1: fast interrupt
uart1: PPS capture mode 2 (DCD)
uart0: <Octeon-16550 channel 0> on obio0
uart0: console (115200,n,8,1)
uart0: fast interrupt
uart0: PPS capture mode 2 (DCD)
ERROR: cvmx_mgmt_port_initialize: Not able to read the PHY on MIX0
ERROR: cvmx_mgmt_port_initialize: Not able to read the PHY on MIX1
octebus0: <Cavium Octeon Ethernet pseudo-bus> on ciu0
Interface 0 has 4 ports (SGMII)
Interface 1 has 4 ports (SGMII)
Interface 2 has 4 ports (NPI)
Interface 3 has 4 ports (LOOP)
Warning: Enabling IPD when IPD already enabled.
Warning: Enabling PKO when PKO already enabled.
octe0: <Cavium Octeon SGMII Ethernet> on octebus0
octe0: bpf attached
octe0: Ethernet address: 04:18:d6:f1:c5:6d
octe1: <Cavium Octeon SGMII Ethernet> on octebus0
octe1: bpf attached
octe1: Ethernet address: 04:18:d6:f1:c5:6e
octe2: <Cavium Octeon SGMII Ethernet> on octebus0
octe2: bpf attached
octe2: Ethernet address: 04:18:d6:f1:c5:6f
octe3: <Cavium Octeon SGMII Ethernet> on octebus0
octe3: bpf attached
octe3: Ethernet address: 04:18:d6:f1:c5:70
octe4: <Cavium Octeon SGMII Ethernet> on octebus0
octe4: bpf attached
octe4: Ethernet address: 04:18:d6:f1:c5:71
octe5: <Cavium Octeon SGMII Ethernet> on octebus0
octe5: bpf attached
octe5: Ethernet address: 04:18:d6:f1:c5:72
octe6: failed to register device for interface 1, port 18
octe7: failed to register device for interface 1, port 19
octe8: failed to register device for interface 2, port 32
octe9: failed to register device for interface 2, port 33
octe10: failed to register device for interface 2, port 34
octe11: failed to register device for interface 2, port 35
octe12: failed to register device for interface 3, port 36
octe13: failed to register device for interface 3, port 37
octe14: failed to register device for interface 3, port 38
octe15: failed to register device for interface 3, port 39
pcib0: <Cavium Octeon PCIe bridge> on ciu0
PCIe: Port 0 is SGMII, skipping.
pcib0: Failed to put PCIe bus in host mode.
device_attach: pcib0 attach returned 6
pcib1: <Cavium Octeon PCIe bridge> on ciu0
PCIe: Port 1 stuck in reset, skipping.
pcib1: Failed to put PCIe bus in host mode.
device_attach: pcib1 attach returned 6
octehci0: <Octeon USB EHCI Bus> on ciu0
ehci0: <Octeon USB EHCI Device> on octehci0
octehci0: MEMORY resource - for ehci 0-ffffffffffffffff
IO Resource tag ffffffff80e8acc8, hdl 80016f0000000000, size 1
octehci0: IRQ resource - for ehci 0-ffffffffffffffff
UCTL clock already started!
octeon2_usb_clock_start: Setting port control status register
usbus0: EHCI version 1.0
usbus0 on ehci0
ehci0: usbpf: Attached
Device configuration finished.
procfs registered
Timecounter "Octeon" frequency 1000000000 Hz quality 900
Timecounters tick every 10.000 msec
vlan: initialized, using hash tables with chaining
usbus0: 480Mbps High Speed USB v2.0
crypto: <crypto device>
tcp_init: net.inet.tcp.tcbhashsize auto tuned to 16384
lo0: bpf attached
ugen0.1: <Cavium> at usbus0
uhub0: <Cavium EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus0
random: unblocking device.
SMP: AP CPU #1 launched.
Root mount waiting for: usbus0
uhub0: 2 ports with 2 removable, self powered
Root mount waiting for: usbus0
Root mount waiting for: usbus0
Root mount waiting for: usbus0
ugen0.2: <Kingston> at usbus0
umass0: <Kingston DT 101 G2, class 0/0, rev 2.00/1.00, addr 2> on usbus0
umass0:  SCSI over Bulk-Only; quirks = 0xc100
umass0:0:0:-1: Attached to scbus0
Trying to mount root from ufs:da0s2a []...
mountroot: waiting for device da0s2a ...
GEOM: new disk da0
pass0 at umass-sim0 bus 0 scbus0 target 0 lun 0
pass0: <Kingston DT 101 G2 1.00> Removable Direct Access SCSI-2 device
pass0: Serial Number 001CC0C60D71C680C42F06A6
pass0: 40.000MB/s transfers
da0 at umass-sim0 bus 0 scbus0 target 0 lun 0
da0: <Kingston DT 101 G2 1.00> Removable Direct Access SCSI-2 device
da0: Serial Number 001CC0C60D71C680C42F06A6
da0: 40.000MB/s transfers
da0: 3819MB (7823296 512 byte sectors: 255H 63S/T 486C)
da0: quirks=0x2<NO_6_BYTE>
da0: Delete methods: <NONE(*),ZERO>
warning: no time-of-day clock registered, system time will not be set 
accurately
start_init: trying /sbin/init
cpuid = 0
ADDRESS_SPACE_ERR: pid 17 tid 100042 (init), uid 0: pc 0x120022b34 got a 
read fault (type 0x4) at 0xffffffffffff9008
Trapframe Register Dump:
     zero: 0    at: 0x120110000    v0: 0    v1: 0
     a0: 0x18    a1: 0    a2: 0    a3: 0
     a4: 0xb    a5: 0xa    a6: 0xc    a6: 0x18
     t0: 0x2    t1: 0x4    t2: 0x2    t3: 0x12011b240
     t8: 0    t9: 0x120022760    s0: 0x2    s1: 0x1200ea3d0
     s2: 0x18    s3: 0x1200089f0    s4: 0x18    s5: 0x1200ea4d0
     s6: 0    s7: 0    k0: 0    k1: 0
     gp: 0x12011b240    sp: 0x7fffffe280    s8: 0    ra: 0x12000b024
     sr: 0x808cb3    mullo: 0    mulhi: 0    badvaddr: 0xffffffffffff9008
     cause: 0x10    pc: 0x120022b34
Page table info for pc address 0x120022b34: pde = 0x9800000002bb3000, 
pte = 0x2800000000abc9a
Dumping 4 words starting at pc address 0x120022b34:
dc629008 14400005 0040202d df99dc58
Page table info for bad address 0xffffffffffff9008: pde = 
0x9800000002bb6000, pte = 0
cpuid = 1
ADDRESS_SPACE_ERR: pid 17 tid 100042 (init), uid 0: pc 0x120022b34 got a 
read fault (type 0x4) at 0xd4fafed937b79b60
Trapframe Register Dump:
     zero: 0    at: 0x120130000    v0: 0    v1: 0xd4fafed937b80b58
     a0: 0x400    a1: 0x800    a2: 0x7fffffcd38    a3: 0x7fffffd1a0
     a4: 0x120138270    a5: 0    a6: 0xc    a6: 0x18
     t0: 0x2    t1: 0x4    t2: 0x2    t3: 0x12011b240
     t8: 0    t9: 0x120022760    s0: 0x17    s1: 0x800
     s2: 0x400    s3: 0x7fffffd1a0    s4: 0x400    s5: 0x7fffffdef8
     s6: 0x12010fd60    s7: 0x7fffffd1a0    k0: 0    k1: 0
     gp: 0x12011b240    sp: 0x7fffffccd0    s8: 0    ra: 0x120066e28
     sr: 0x808cb3    mullo: 0    mulhi: 0    badvaddr: 0xd4fafed937b79b60
     cause: 0x10    pc: 0x120022b34
Page table info for pc address 0x120022b34: pde = 0x9800000002bb3000, 
pte = 0x2800000000abc9a
Dumping 4 words starting at pc address 0x120022b34:
dc629008 14400005 0040202d df99dc58




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?565D20A7.4050803>