Skip to content

Instantly share code, notes, and snippets.

@lemmi
Last active October 11, 2020 21:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lemmi/587569a6830db0f8b1477b8db1ba0e34 to your computer and use it in GitHub Desktop.
Save lemmi/587569a6830db0f8b1477b8db1ba0e34 to your computer and use it in GitHub Desktop.
ER-12
SPI stage 1 bootloader
SPI ID: c2:20:17:c2:20
header found at offset 0x2000
Image 1.2: address: 0xffffffffc0000000, header length: 192, data length: 359416
Validating data...
Starting next bootloader at 0xffffffff81000000
Board type: UBNT_E300
U-Boot 2013.07 (UBNT Build Version: e302_001_3f6cf) (Aug 27 2018 - 07:21:15)
Octeon unique ID: 01400051841df31e0497
N0.LMC0 Configuration Completed: 1024 MB
Warning: Board descriptor tuple not found in eeprom, using defaults
Core clock: 1000 MHz, IO clock: 400 MHz, DDR clock: 533 MHz (1066 Mhz DDR)
Start hw_watchdog_start!
Stop hw_watchdog_start!
Base DRAM address used by u-boot: 0x4fc00000, size: 0x400000
DRAM: 1 GiB
Clearing DRAM...... done
SF: Detected MX25L6405D with page size 256 Bytes, erase size 4 KiB, total 8 MiB
Found valid SPI bootloader at offset: 0x5c000, size: 1438728 bytes
Found valid SPI bootloader at offset: 0x200000, size: 1438728 bytes
Loading bootloader from SPI offset 0x200000, size: 1438728 bytes
U-Boot 2013.07 (UBNT Build Version: e302_003_6be37) (Jun 05 2019 - 09:02:51)
Octeon unique ID: 01400051841df31e0497
Using DRAM size from environment: 1024 MBytes
Core clock: 1000 MHz, IO clock: 400 MHz, DDR clock: 533 MHz (1066 Mhz DDR)
Base DRAM address used by u-boot: 0x4f000000, size: 0x1000000
DRAM: 1 GiB
Clearing DRAM...... done
SF: Detected MX25L6405D with page size 256 Bytes, erase size 4 KiB, total 8 MiB
SF: Detected MX25L6405D with page size 256 Bytes, erase size 4 KiB, total 8 MiB
UBNT_E300 r1:2, r2:13, serial #: 18E8294E206C
MPR 13-02601-13
Loading bootloader from SPI offset 0x200000, size: 1438728 bytes
U-Boot 2013.07 (UBNT Build Version: e302_003_6be37) (Jun 05 2019 - 09:02:51)
Octeon unique ID: 01400051841df31e0497
Using DRAM size from environment: 1024 MBytes
Core clock: 1000 MHz, IO clock: 400 MHz, DDR clock: 533 MHz (1066 Mhz DDR)
Base DRAM address used by u-boot: 0x4f000000, size: 0x1000000
DRAM: 1 GiB
Clearing DRAM...... done
SF: Detected MX25L6405D with page size 256 Bytes, erase size 4 KiB, total 8 MiB
SF: Detected MX25L6405D with page size 256 Bytes, erase size 4 KiB, total 8 MiB
UBNT_E300 r1:2, r2:13, serial #: 18E8294E206C
MPR 13-02601-13
Flash boot bus region not enabled, skipping NOR flash config
DLM0: QSGMII ports selected
DLM1: mini-PCIe slots selected
DLM2: mini-PCIe slots selected
SPI: SPI NOR enabled
MMC: Octeon MMC/SD0: 0
PCIe: Link timeout on port 0, probably the slot is empty
PCIe: Port 1 not in PCIe mode, skipping
PCIe: Port 2 not in PCIe mode, skipping
PCI console init succeeded, 1 consoles, 1024 bytes each
Net: QCA8511 Init done....
mdio_register: non unique device name 'mdio-octeon0'
mdio_register: non unique device name 'mdio-octeon1'
octeth0, octeth1 [PRIME], octeth2, octeth3, octeth4, octeth5, octeth6, octeth7
Node 0 Interface 0 has 4 ports (QSGMII)
Node 0 Interface 1 has 4 ports (QSGMII)
Node 0 Interface 2 has 4 ports (NPI)
Node 0 Interface 3 has 4 ports (LOOP)
Node 0 Interface 4 has 1 ports (AGL)
Type the command 'usb start' to scan for USB storage devices.
Hit any key to stop autoboot: 0
reading vmlinux.64
6340736 bytes read in 2186 ms (2.8 MiB/s)
reading vmlinux.64.md5
33 bytes read in 302 ms (0 Bytes/s)
Allocating memory for ELF segment: addr: 0xffffffff80800000 (adjusted to: 0x800000), size 0x732ad0
## Loading big-endian Linux kernel with entry point: 0xffffffff80c0e7c0 ...
Bootloader: Done loading app on coremask:
0xf
Starting cores:
0xf
Linux version 3.10.107-UBNT (root@b1986d60886e) (gcc version 4.7.0 (Cavium Inc. Version: SDK_BUILD build 51) ) #1 SMP Fri Feb 21 11:10:12 UTC 2020
CVMSEG size: 3 cache lines (384 bytes)
Cavium Inc. SDK-3.1.2
bootconsole [early0] enabled
CPU revision is: 000d9602 (Cavium Octeon III)
FPU revision is: 00739600
Checking for the multiply/shift bug... no.
Checking for the daddiu bug... no.
Determined physical RAM map:
memory: 0000000000400000 @ 0000000000400000 (usable)
memory: 00000000005c9000 @ 0000000000800000 (kernel data and code)
memory: 0000000000047000 @ 0000000000dc9000 (usable after init)
memory: 0000000000123000 @ 0000000000e10000 (kernel data and code)
memory: 000000000ec00000 @ 0000000001100000 (usable)
memory: 000000002ec00000 @ 0000000020300000 (usable)
Using passed Device Tree <800000000fdb0400>.
software IO TLB [mem 0x01f1b000-0x01f5b000] (0MB) mapped at [8000000001f1b000-8000000001f5afff]
Zone ranges:
DMA32 [mem 0x00400000-0xefffffff]
Normal empty
Movable zone start for each node
Early memory node ranges
node 0: [mem 0x00400000-0x00f32fff]
node 0: [mem 0x01100000-0x0fcfffff]
node 0: [mem 0x20300000-0x4eefffff]
Primary instruction cache 78kB, virtually tagged, 39 way, 16 sets, linesize 128 bytes.
Primary data cache 32kB, 32-way, 8 sets, linesize 128 bytes.
Secondary unified cache 512kB, 4-way, 1024 sets, linesize 128 bytes.
PERCPU: Embedded 10 pages/cpu @8000000001f74000 s10880 r8192 d21888 u40960
Built 1 zonelists in Node order, mobility grouping on. Total pages: 251287
Policy zone: DMA32
Kernel command line: root=/dev/mmcblk0p2 rootdelay=10 rw rootsqimg=squashfs.img rootsqwdir=w mtdparts=spi32766.0:2048k(boot0),2048k(boot1),64k(eeprom) console=ttyS0,115200
PID hash table entries: 4096 (order: 3, 32768 bytes)
Memory: 996772k/1011712k available (4199k kernel code, 14940k reserved, 1723k data, 284k init)
SLUB: HWalign=128, Order=0-3, MinObjects=0, CPUs=4, Nodes=2
Hierarchical RCU implementation.
Additional per-CPU info printed with stalls.
NR_IRQS:767 nr_irqs:767 9
CIB interrupt controller probed: 800107000000e000 23 bits
CIB interrupt controller probed: 800107000000e200 12 bits
CIB interrupt controller probed: 800107000000e400 6 bits
CIB interrupt controller probed: 800107000000ec00 15 bits
CIB interrupt controller probed: 800107000000e600 4 bits
CIB interrupt controller probed: 800107000000e800 11 bits
CIB interrupt controller probed: 800107000000e900 11 bits
Calibrating delay loop (skipped) preset value.. 2000.00 BogoMIPS (lpj=10000000)
pid_max: default: 32768 minimum: 501
Security Framework initialized
Dentry cache hash table entries: 131072 (order: 8, 1048576 bytes)
Inode-cache hash table entries: 65536 (order: 7, 524288 bytes)
Mount-cache hash table entries: 256
Checking for the daddi bug... no.
SMP: Booting CPU01 (CoreId 1)...
CPU revision is: 000d9602 (Cavium Octeon III)
FPU revision is: 00739600
SMP: Booting CPU02 (CoreId 2)...
CPU revision is: 000d9602 (Cavium Octeon III)
FPU revision is: 00739600
SMP: Booting CPU03 (CoreId 3)...
CPU revision is: 000d9602 (Cavium Octeon III)
FPU revision is: 00739600
Brought up 4 CPUs
NET: Registered protocol family 16
Installing handlers for error tree at: ffffffff80d45da0
bio: create slab <bio-0> at 0
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
pps_core: LinuxPPS API ver. 1 registered
pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
PTP clock support registered
Switching to clocksource OCTEON_CVMCOUNT
NET: Registered protocol family 2
TCP established hash table entries: 8192 (order: 5, 131072 bytes)
TCP bind hash table entries: 8192 (order: 5, 131072 bytes)
TCP: Hash tables configured (established 8192 bind 8192)
TCP: reno registered
UDP hash table entries: 512 (order: 2, 16384 bytes)
UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
NET: Registered protocol family 1
octeon_pci_console: Initialized.
HugeTLB registered 2 MB page size, pre-allocated 0 pages
squashfs: version 4.0 (2009/01/31) Phillip Lougher
Registering unionfs 2.5.13 (for 3.10.34)
aufs 3.10.x-20141215
msgmni has been set to 1946
io scheduler noop registered
io scheduler cfq registered (default)
octeon_gpio 1070000000800.gpio-controller: OCTEON GPIO: base = 0
Serial: 8250/16550 driver, 6 ports, IRQ sharing disabled
1180000000800.serial: ttyS0 at MMIO 0x1180000000800 (irq = 34) is a OCTEON
console [ttyS0] enabled, bootconsole disabled
console [ttyS0] enabled, bootconsole disabled
1180000000c00.serial: ttyS1 at MMIO 0x1180000000c00 (irq = 35) is a OCTEON
loop: module loaded
m25p80 spi32766.0: mx25l6405d (8192 Kbytes)
3 cmdlinepart partitions found on MTD device spi32766.0
Creating 3 MTD partitions on "spi32766.0":
0x000000000000-0x000000200000 : "boot0"
0x000000200000-0x000000400000 : "boot1"
0x000000400000-0x000000410000 : "eeprom"
spi-octeon 1070000001000.spi: OCTEON SPI bus driver
libphy: mdio-octeon: probed
mdio-octeon 1180000001800.mdio: Version 1.0
libphy: mdio-octeon: probed
mdio-octeon 1180000001900.mdio: Version 1.0
octeon-ethernet 2.0
Node 0 Interface 0 has 4 ports (QSGMII)
Node 0 Interface 1 has 4 ports (QSGMII)
Node 0 Interface 2 has 4 ports (NPI)
Node 0 Interface 3 has 4 ports (LOOP)
Node 0 Interface 4 has 1 ports (AGL)
No power GPIO device tree entry
platform 1180068000000.uctl: clocks initialized.
platform 1180069000000.uctl: clocks initialized.
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 1
xhci-hcd xhci-hcd.0.auto: irq 25, io mem 0x1680000000000
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 2
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 1 port detected
xhci-hcd xhci-hcd.1.auto: xHCI Host Controller
xhci-hcd xhci-hcd.1.auto: new USB bus registered, assigned bus number 3
xhci-hcd xhci-hcd.1.auto: irq 26, io mem 0x1690000000000
hub 3-0:1.0: USB hub found
hub 3-0:1.0: 1 port detected
xhci-hcd xhci-hcd.1.auto: xHCI Host Controller
xhci-hcd xhci-hcd.1.auto: new USB bus registered, assigned bus number 4
hub 4-0:1.0: USB hub found
hub 4-0:1.0: 1 port detected
usbcore: registered new interface driver usb-storage
i2c-octeon 1180000001000.i2c: version 2.6
i2c-octeon 1180000001200.i2c: version 2.6
octeon_wdt: Initial granularity 5 Sec
sdhci: Secure Digital Host Controller Interface driver
sdhci: Copyright(c) Pierre Ossman
TCP: cubic registered
NET: Registered protocol family 17
NET: Registered protocol family 15
Waiting 10sec before mounting root device...
usb 1-1: new high-speed USB device number 2 using xhci-hcd
usb-storage 1-1:1.0: USB Mass Storage device detected
scsi0 : usb-storage 1-1:1.0
scsi 0:0:0:0: Direct-Access Intenso Micro Line PMAP PQ: 0 ANSI: 4
mmc0: BKOPS_EN bit is not set
mmc0: new high speed DDR MMC card at address 0001
mmcblk0: mmc0:0001 MMC4GB 3.64 GiB
mmcblk0boot0: mmc0:0001 MMC4GB partition 1 2.00 MiB
mmcblk0boot1: mmc0:0001 MMC4GB partition 2 2.00 MiB
mmcblk0rpmb: mmc0:0001 MMC4GB partition 3 512 KiB
mmcblk0: p1 p2
mmcblk0boot1: unknown partition table
mmcblk0boot0: unknown partition table
kjournald starting. Commit interval 3 seconds
EXT3-fs (mmcblk0p2): using internal journal
EXT3-fs (mmcblk0p2): mounted filesystem with journal data mode
VFS: Mounted root (aufs filesystem) on device 0:11.
Freeing unused kernel memory: 284K (ffffffff80dc9000 - ffffffff80e10000)
INIT: version 2.88 booting
insmod /lib/modules/3.10.107-UBNT/kernel/drivers/net/bonding/bonding.ko miimon=100 mode=2 xmit_hash_policy=1
6715+0 records in
6715+0 records out
8187+0 records in
8187+0 records out
INIT: Entering runlevel: 2
[....] Starting SSH recovery service in the background
ssh-recovery: starting...
ssh-recovery: if=(all) port=(60257) terminate-timeout=(60)
ssh-recovery: enabling link on interfaces...
ssh-recovery: eth0 :: mac=(18:e8:29:4e:20:71)
ssh-recovery: eth1 :: mac=(18:e8:29:4e:20:72)
ssh-recovery: eth10 :: mac=(18:e8:29:4e:20:6d)
ssh-recovery: eth11 :: mac=(18:e8:29:4e:20:6c)
ssh-recovery: eth2 :: mac=(18:e8:29:4e:20:73)
ssh-recovery: eth3 :: mac=(18:e8:29:4e:20:74)
ssh-recovery: eth4 :: mac=(18:e8:29:4e:20:75)
ssh-recovery: eth5 :: mac=(18:e8:29:4e:20:76)
ssh-recovery: eth6 :: mac=(18:e8:29:4e:20:77)
ssh-recovery: eth7 :: mac=(18:e8:29:4e:20:78)
ssh-recovery: eth8 :: mac=(18:e8:29:4e:20:6e)
ssh-recovery: eth9 :: mac=(18:e8:29:4e:20:6f)
ssh-recovery: switch0 :: mac=(18:e8:29:4e:20:70)
[ ok ] Starting daemon monitor: monit.
[....] Starting routing daemon: ribssh-recovery: service started :: pid=(1258)
[ ok ribd.
[ ok ] Starting EdgeOS router: migrate rl-system configure.
Starting network plug daemon: netplugd.
Welcome to EdgeOS ubnt ttyS0
system type : UBNT_E300
machine : Unknown
processor : 0
cpu model : Cavium Octeon III V0.2 FPU V0.0
BogoMIPS : 2000.00
wait instruction : yes
microsecond timers : yes
tlb_entries : 256
extra interrupt vector : yes
hardware watchpoint : yes, count: 2, address/irw mask: [0x0ffc, 0x0ffb]
isa : mips1 mips2 mips3 mips4 mips5 mips64r2
ASEs implemented : vz
shadow register sets : 1
kscratch registers : 4
core : 0
VCED exceptions : not available
VCEI exceptions : not available
processor : 1
cpu model : Cavium Octeon III V0.2 FPU V0.0
BogoMIPS : 2000.00
wait instruction : yes
microsecond timers : yes
tlb_entries : 256
extra interrupt vector : yes
hardware watchpoint : yes, count: 2, address/irw mask: [0x0ffc, 0x0ffb]
isa : mips1 mips2 mips3 mips4 mips5 mips64r2
ASEs implemented : vz
shadow register sets : 1
kscratch registers : 4
core : 1
VCED exceptions : not available
VCEI exceptions : not available
processor : 2
cpu model : Cavium Octeon III V0.2 FPU V0.0
BogoMIPS : 2000.00
wait instruction : yes
microsecond timers : yes
tlb_entries : 256
extra interrupt vector : yes
hardware watchpoint : yes, count: 2, address/irw mask: [0x0ffc, 0x0ffb]
isa : mips1 mips2 mips3 mips4 mips5 mips64r2
ASEs implemented : vz
shadow register sets : 1
kscratch registers : 4
core : 2
VCED exceptions : not available
VCEI exceptions : not available
processor : 3
cpu model : Cavium Octeon III V0.2 FPU V0.0
BogoMIPS : 2000.00
wait instruction : yes
microsecond timers : yes
tlb_entries : 256
extra interrupt vector : yes
hardware watchpoint : yes, count: 2, address/irw mask: [0x0ffc, 0x0ffb]
isa : mips1 mips2 mips3 mips4 mips5 mips64r2
ASEs implemented : vz
shadow register sets : 1
kscratch registers : 4
core : 3
VCED exceptions : not available
VCEI exceptions : not available
system type : UBNT_E300
machine : Unknown
processor : 0
cpu model : Cavium Octeon III V0.2 FPU V0.0
BogoMIPS : 2000.00
wait instruction : yes
microsecond timers : yes
tlb_entries : 256
extra interrupt vector : yes
hardware watchpoint : yes, count: 2, address/irw mask: [0x0ffc, 0x0ffb]
isa : mips1 mips2 mips3 mips4 mips5 mips64r2
ASEs implemented : vz
shadow register sets : 1
kscratch registers : 4
core : 0
VCED exceptions : not available
VCEI exceptions : not available
processor : 1
cpu model : Cavium Octeon III V0.2 FPU V0.0
BogoMIPS : 2000.00
wait instruction : yes
microsecond timers : yes
tlb_entries : 256
extra interrupt vector : yes
hardware watchpoint : yes, count: 2, address/irw mask: [0x0ffc, 0x0ffb]
isa : mips1 mips2 mips3 mips4 mips5 mips64r2
ASEs implemented : vz
shadow register sets : 1
kscratch registers : 4
core : 1
VCED exceptions : not available
VCEI exceptions : not available
processor : 2
cpu model : Cavium Octeon III V0.2 FPU V0.0
BogoMIPS : 2000.00
wait instruction : yes
microsecond timers : yes
tlb_entries : 256
extra interrupt vector : yes
hardware watchpoint : yes, count: 2, address/irw mask: [0x0ffc, 0x0ffb]
isa : mips1 mips2 mips3 mips4 mips5 mips64r2
ASEs implemented : vz
shadow register sets : 1
kscratch registers : 4
core : 2
VCED exceptions : not available
VCEI exceptions : not available
processor : 3
cpu model : Cavium Octeon III V0.2 FPU V0.0
BogoMIPS : 2000.00
wait instruction : yes
microsecond timers : yes
tlb_entries : 256
extra interrupt vector : yes
hardware watchpoint : yes, count: 2, address/irw mask: [0x0ffc, 0x0ffb]
isa : mips1 mips2 mips3 mips4 mips5 mips64r2
ASEs implemented : vz
shadow register sets : 1
kscratch registers : 4
core : 3
VCED exceptions : not available
VCEI exceptions : not availableubnt@ubnt:~$ ls -1 /sys/bus/mdio_bus/drivers/
Atheros 8033 ethernet
Generic PHY
Vitesse VSC8504
Vitesse VSC8514
=====
ubnt@ubnt:~$ ls -1 /sys/bus/mdio_bus/drivers/*
/sys/bus/mdio_bus/drivers/Atheros 8033 ethernet:
8001180000001800:00
8001180000001800:01
8001180000001800:02
8001180000001800:03
bind
module
uevent
unbind
/sys/bus/mdio_bus/drivers/Generic PHY:
bind
uevent
unbind
/sys/bus/mdio_bus/drivers/Vitesse VSC8504:
8001180000001800:04
8001180000001800:05
8001180000001800:06
8001180000001800:07
bind
module
uevent
unbind
/sys/bus/mdio_bus/drivers/Vitesse VSC8514:
8001180000001800:08
8001180000001800:09
8001180000001800:0a
8001180000001800:0b
bind
module
uevent
unbind
=====
Octeon ubnt_e300(ram)# mii device
MII devices: 'mdio-octeon0' 'mdio-octeon1'
Current device: 'mdio-octeon0'
=====
Octeon ubnt_e300(ram)# mdio list
mdio-octeon0:
4 - Vitesse VSC8504 <--> octeth0
5 - Vitesse VSC8504 <--> octeth1
6 - Vitesse VSC8504 <--> octeth2
7 - Vitesse VSC8504 <--> octeth3
mdio-octeon1:
=====
root@OpenWrt:/# ls -1 /sys/bus/mdio_bus/drivers/
Generic Clause 45 PHY
Generic PHY
=====
root@OpenWrt:/# ls -1 /sys/bus/mdio_bus/drivers/*
/sys/bus/mdio_bus/drivers/Generic Clause 45 PHY:
bind
uevent
unbind
/sys/bus/mdio_bus/drivers/Generic PHY:
8001180000001800:04
8001180000001800:05
bind
uevent
unbind
/ {
model = "cavium,ubnt_e300";
compatible = "cavium,ubnt_e300";
#address-cells = <0x00000002>;
#size-cells = <0x00000002>;
interrupt-parent = <0x00000001>;
memory {
reg = <0x00000000 0x00000000 0x00000000 0x10000000 0x00000000 0x20000000 0x00000000 0x30000000>;
device_type = "memory";
};
soc@0 {
compatible = "simple-bus";
#address-cells = <0x00000002>;
#size-cells = <0x00000002>;
ranges;
bootbus@1180000000000 {
compatible = "cavium,octeon-3860-bootbus";
reg = <0x00011800 0x00000000 0x00000000 0x00000200>;
#address-cells = <0x00000002>;
#size-cells = <0x00000001>;
ranges = * 0x000801dc [0x000000a0];
};
interrupt-controller@1070000000000 {
compatible = "cavium,octeon-3860-ciu";
interrupt-controller;
#interrupt-cells = <0x00000002>;
reg = <0x00010700 0x00000000 0x00000000 0x00007000>;
linux,phandle = <0x00000001>;
phandle = <0x00000001>;
};
interrupt-controller@107000000e000 {
compatible = "cavium,octeon-7130-cib";
reg = <0x00010700 0x0000e000 0x00000000 0x00000008 0x00010700 0x0000e100 0x00000000 0x00000008>;
cavium,max-bits = <0x00000017>;
interrupt-controller;
interrupt-parent = <0x00000001>;
interrupts = <0x00000001 0x00000018>;
#interrupt-cells = <0x00000002>;
};
interrupt-controller@107000000e200 {
compatible = "cavium,octeon-7130-cib";
reg = <0x00010700 0x0000e200 0x00000000 0x00000008 0x00010700 0x0000e300 0x00000000 0x00000008>;
cavium,max-bits = <0x0000000c>;
interrupt-controller;
interrupt-parent = <0x00000001>;
interrupts = <0x00000001 0x00000034>;
#interrupt-cells = <0x00000002>;
};
interrupt-controller@107000000e400 {
compatible = "cavium,octeon-7130-cib";
reg = <0x00010700 0x0000e400 0x00000000 0x00000008 0x00010700 0x0000e500 0x00000000 0x00000008>;
cavium,max-bits = <0x00000006>;
interrupt-controller;
interrupt-parent = <0x00000001>;
interrupts = <0x00000001 0x0000003f>;
#interrupt-cells = <0x00000002>;
};
interrupt-controller@107000000ec00 {
compatible = "cavium,octeon-7130-cib";
reg = <0x00010700 0x0000ec00 0x00000000 0x00000008 0x00010700 0x0000ee00 0x00000000 0x00000008>;
cavium,max-bits = <0x0000000f>;
interrupt-controller;
interrupt-parent = <0x00000001>;
interrupts = <0x00000002 0x00000011>;
#interrupt-cells = <0x00000002>;
linux,phandle = <0x0000000a>;
phandle = <0x0000000a>;
};
interrupt-controller@107000000e600 {
compatible = "cavium,octeon-7130-cib";
reg = <0x00010700 0x0000e600 0x00000000 0x00000008 0x00010700 0x0000e700 0x00000000 0x00000008>;
cavium,max-bits = <0x00000004>;
interrupt-controller;
interrupt-parent = <0x00000001>;
interrupts = <0x00000002 0x00000010>;
#interrupt-cells = <0x00000002>;
linux,phandle = <0x00000007>;
phandle = <0x00000007>;
};
interrupt-controller@107000000e800 {
compatible = "cavium,octeon-7130-cib";
reg = <0x00010700 0x0000e800 0x00000000 0x00000008 0x00010700 0x0000ea00 0x00000000 0x00000008>;
cavium,max-bits = <0x0000000b>;
interrupt-controller;
interrupt-parent = <0x00000001>;
interrupts = <0x00000001 0x00000021>;
#interrupt-cells = <0x00000002>;
linux,phandle = <0x00000008>;
phandle = <0x00000008>;
};
interrupt-controller@107000000e900 {
compatible = "cavium,octeon-7130-cib";
reg = <0x00010700 0x0000e900 0x00000000 0x00000008 0x00010700 0x0000eb00 0x00000000 0x00000008>;
cavium,max-bits = <0x0000000b>;
interrupt-controller;
interrupt-parent = <0x00000001>;
interrupts = <0x00000001 0x00000011>;
#interrupt-cells = <0x00000002>;
linux,phandle = <0x00000009>;
phandle = <0x00000009>;
};
gpio-controller@1070000000800 {
#gpio-cells = <0x00000002>;
compatible = "cavium,octeon-3860-gpio";
reg = <0x00010700 0x00000800 0x00000000 0x00000100>;
gpio-controller;
interrupt-controller;
#interrupt-cells = <0x00000002>;
interrupts = * 0x000809e4 [0x00000080];
linux,phandle = <0x00000002>;
phandle = <0x00000002>;
};
mdio@1180000001800 {
compatible = "cavium,octeon-3860-mdio";
#address-cells = <0x00000001>;
#size-cells = <0x00000000>;
reg = <0x00011800 0x00001800 0x00000000 0x00000040>;
ethernet-phy@0 {
cavium,qlm-trim = "6,sgmii";
reg = <0x00000000>;
compatible = "atheros,ar8033", "ethernet-phy-ieee802.3-c22";
};
ethernet-phy@1 {
cavium,qlm-trim = "6,sgmii";
reg = <0x00000001>;
compatible = "atheros,ar8033", "ethernet-phy-ieee802.3-c22";
};
ethernet-phy@2 {
cavium,qlm-trim = "6,sgmii";
reg = <0x00000002>;
compatible = "atheros,ar8033", "ethernet-phy-ieee802.3-c22";
};
ethernet-phy@3 {
cavium,qlm-trim = "6,sgmii";
reg = <0x00000003>;
compatible = "atheros,ar8033", "ethernet-phy-ieee802.3-c22";
};
ethernet-phy@4 {
/* NOP */
/* NOP */
/* NOP */
/* NOP */
/* NOP */
/* NOP */
compatible = "vitesse,vsc8504", "ethernet-phy-ieee802.3-c22";
reg = <0x00000004>;
interrupt-parent = <0x00000002>;
interrupts = <0x00000011 0x00000008>;
optical-media-type = "1000bx";
vitesse,reg-init = * 0x00080d88 [0x0000006c];
linux,phandle = <0x00000003>;
phandle = <0x00000003>;
};
ethernet-phy@5 {
/* NOP */
/* NOP */
/* NOP */
/* NOP */
/* NOP */
/* NOP */
compatible = "vitesse,vsc8504", "ethernet-phy-ieee802.3-c22";
reg = <0x00000005>;
interrupt-parent = <0x00000002>;
interrupts = <0x00000011 0x00000008>;
optical-media-type = "1000bx";
vitesse,reg-init = * 0x00080ed0 [0x0000006c];
linux,phandle = <0x00000004>;
phandle = <0x00000004>;
};
ethernet-phy@6 {
/* NOP */
/* NOP */
/* NOP */
/* NOP */
/* NOP */
/* NOP */
compatible = "vitesse,vsc8504", "ethernet-phy-ieee802.3-c22";
reg = <0x00000006>;
interrupt-parent = <0x00000002>;
interrupts = <0x00000011 0x00000008>;
vitesse,reg-init = * 0x00081004 [0x00000054];
linux,phandle = <0x00000005>;
phandle = <0x00000005>;
};
ethernet-phy@7 {
/* NOP */
/* NOP */
/* NOP */
/* NOP */
/* NOP */
/* NOP */
compatible = "vitesse,vsc8504", "ethernet-phy-ieee802.3-c22";
reg = <0x00000007>;
interrupt-parent = <0x00000002>;
interrupts = <0x00000011 0x00000008>;
vitesse,reg-init = * 0x00081120 [0x00000054];
linux,phandle = <0x00000006>;
phandle = <0x00000006>;
};
ethernet-phy@8 {
/* NOP */
/* NOP */
/* NOP */
/* NOP */
/* NOP */
/* NOP */
compatible = "vitesse,vsc8514", "ethernet-phy-ieee802.3-c22";
reg = <0x00000008>;
interrupt-parent = <0x00000002>;
interrupts = <0x00000011 0x00000008>;
};
ethernet-phy@9 {
/* NOP */
/* NOP */
/* NOP */
/* NOP */
/* NOP */
/* NOP */
compatible = "vitesse,vsc8514", "ethernet-phy-ieee802.3-c22";
reg = <0x00000009>;
interrupt-parent = <0x00000002>;
interrupts = <0x00000011 0x00000008>;
};
ethernet-phy@a {
/* NOP */
/* NOP */
/* NOP */
/* NOP */
/* NOP */
/* NOP */
compatible = "vitesse,vsc8514", "ethernet-phy-ieee802.3-c22";
reg = <0x0000000a>;
interrupt-parent = <0x00000002>;
interrupts = <0x00000011 0x00000008>;
};
ethernet-phy@b {
/* NOP */
/* NOP */
/* NOP */
/* NOP */
/* NOP */
/* NOP */
compatible = "vitesse,vsc8514", "ethernet-phy-ieee802.3-c22";
reg = <0x0000000b>;
interrupt-parent = <0x00000002>;
interrupts = <0x00000011 0x00000008>;
};
};
mdio@1180000001900 {
compatible = "cavium,octeon-3860-mdio";
#address-cells = <0x00000001>;
#size-cells = <0x00000000>;
reg = <0x00011800 0x00001900 0x00000000 0x00000040>;
};
pip@11800a0000000 {
compatible = "cavium,octeon-3860-pip";
#address-cells = <0x00000001>;
#size-cells = <0x00000000>;
reg = <0x00011800 0xa0000000 0x00000000 0x00002000>;
interface@0 {
/* NOP */
/* NOP */
/* NOP */
/* NOP */
/* NOP */
/* NOP */
compatible = "cavium,octeon-3860-pip-interface";
#address-cells = <0x00000001>;
#size-cells = <0x00000000>;
reg = <0x00000000>;
ethernet@0 {
compatible = "cavium,octeon-3860-pip-port";
reg = <0x00000000>;
local-mac-address = [18 e8 29 4e 20 6c];
phy-handle = <0x00000003>;
};
ethernet@1 {
compatible = "cavium,octeon-3860-pip-port";
reg = <0x00000001>;
local-mac-address = [18 e8 29 4e 20 6d];
phy-handle = <0x00000004>;
};
ethernet@2 {
compatible = "cavium,octeon-3860-pip-port";
reg = <0x00000002>;
local-mac-address = [18 e8 29 4e 20 6e];
phy-handle = <0x00000005>;
};
ethernet@3 {
compatible = "cavium,octeon-3860-pip-port";
reg = <0x00000003>;
local-mac-address = [18 e8 29 4e 20 6f];
phy-handle = <0x00000006>;
};
};
interface@1 {
/* NOP */
/* NOP */
/* NOP */
/* NOP */
/* NOP */
/* NOP */
compatible = "cavium,octeon-3860-pip-interface";
#address-cells = <0x00000001>;
#size-cells = <0x00000000>;
reg = <0x00000001>;
ethernet@0 {
compatible = "cavium,octeon-3860-pip-port";
reg = <0x00000000>;
local-mac-address = [18 e8 29 4e 20 70];
cavium,force_link_up,1000;
};
ethernet@1 {
compatible = "cavium,octeon-3860-pip-port";
reg = <0x00000001>;
local-mac-address = [18 e8 29 4e 20 71];
cavium,force_link_up,1000;
};
ethernet@2 {
compatible = "cavium,octeon-3860-pip-port";
reg = <0x00000002>;
local-mac-address = [18 e8 29 4e 20 72];
cavium,force_link_up,1000;
};
ethernet@3 {
compatible = "cavium,octeon-3860-pip-port";
reg = <0x00000003>;
local-mac-address = [18 e8 29 4e 20 73];
cavium,force_link_up,1000;
};
};
};
uctl@118006c000000 {
compatible = "cavium,octeon-7130-sata-uctl";
reg = <0x00011800 0x6c000000 0x00000000 0x00000100>;
ranges;
#address-cells = <0x00000002>;
#size-cells = <0x00000002>;
/* NOP */
/* NOP */
/* NOP */
/* NOP */
/* NOP */
/* NOP */
/* NOP */
/* NOP */
/* NOP */
/* NOP */
/* NOP */
/* NOP */
/* NOP */
/* NOP */
/* NOP */
/* NOP */
/* NOP */
/* NOP */
/* NOP */
/* NOP */
/* NOP */
/* NOP */
/* NOP */
/* NOP */
/* NOP */
/* NOP */
/* NOP */
/* NOP */
/* NOP */
/* NOP */
/* NOP */
/* NOP */
/* NOP */
/* NOP */
/* NOP */
/* NOP */
/* NOP */
/* NOP */
/* NOP */
/* NOP */
/* NOP */
/* NOP */
};
uctl@1180068000000 {
compatible = "cavium,octeon-7130-usb-uctl";
reg = <0x00011800 0x68000000 0x00000000 0x00000100>;
ranges;
#address-cells = <0x00000002>;
#size-cells = <0x00000002>;
refclk-frequency = <0x05f5e100>;
refclk-type-ss = "dlmc_ref_clk0";
refclk-type-hs = "pll_ref_clk";
xhci@1680000000000 {
compatible = "cavium,octeon-7130-xhci", "synopsys,dwc3";
reg = <0x00016800 0x00000000 0x00000010 0x00000000>;
interrupt-parent = <0x00000008>;
interrupts = <0x00000009 0x00000004>;
};
};
uctl@1180069000000 {
compatible = "cavium,octeon-7130-usb-uctl";
reg = <0x00011800 0x69000000 0x00000000 0x00000100>;
ranges;
#address-cells = <0x00000002>;
#size-cells = <0x00000002>;
refclk-frequency = <0x05f5e100>;
refclk-type-ss = "dlmc_ref_clk0";
refclk-type-hs = "pll_ref_clk";
power = <0x00000002 0x00000002 0x00000001>;
xhci@1690000000000 {
compatible = "cavium,octeon-7130-xhci", "synopsys,dwc3";
reg = <0x00016900 0x00000000 0x00000010 0x00000000>;
interrupt-parent = <0x00000009>;
interrupts = <0x00000009 0x00000004>;
};
};
i2c@1180000001000 {
#address-cells = <0x00000001>;
#size-cells = <0x00000000>;
compatible = "cavium,octeon-3860-twsi";
reg = <0x00011800 0x00001000 0x00000000 0x00000200>;
interrupts = <0x00000000 0x0000002d>;
clock-frequency = <0x000186a0>;
sfp_eeprom@50 {
compatible = "at,24c04";
reg = <0x00000050>;
label = "port0";
};
sfp_eeprom@51 {
compatible = "at,24c04";
reg = <0x00000051>;
label = "port1";
};
};
i2c@1180000001200 {
#address-cells = <0x00000001>;
#size-cells = <0x00000000>;
compatible = "cavium,octeon-3860-twsi";
reg = <0x00011800 0x00001200 0x00000000 0x00000200>;
interrupts = <0x00000000 0x0000003b>;
clock-frequency = <0x000186a0>;
sensor1@2e {
#address-cells = <0x00000001>;
#size-cells = <0x00000000>;
compatible = "adt7475,adt7475";
reg = <0x0000002e>;
};
sensor2@4c {
#address-cells = <0x00000001>;
#size-cells = <0x00000000>;
compatible = "tmp421,tmp421";
reg = <0x0000004c>;
};
psu@40 {
compatible = "isl28022,isl28022";
reg = <0x00000040>;
};
};
serial@1180000000800 {
compatible = "cavium,octeon-3860-uart", "ns16550";
reg = <0x00011800 0x00000800 0x00000000 0x00000400>;
clock-frequency = <0x17d78400>;
current-speed = <0x0001c200>;
reg-shift = <0x00000003>;
interrupts = <0x00000000 0x00000022>;
};
serial@1180000000c00 {
compatible = "cavium,octeon-3860-uart", "ns16550";
reg = <0x00011800 0x00000c00 0x00000000 0x00000400>;
clock-frequency = <0x17d78400>;
current-speed = <0x0001c200>;
reg-shift = <0x00000003>;
interrupts = <0x00000000 0x00000023>;
};
mmc@1180000002000 {
compatible = "cavium,octeon-6130-mmc";
reg = <0x00011800 0x00002000 0x00000000 0x00000100 0x00011800 0x00000168 0x00000000 0x00000020>;
#address-cells = <0x00000001>;
#size-cells = <0x00000000>;
interrupts = <0x00000001 0x00000013 0x00000000 0x0000003f>;
mmc-slot@0 {
compatible = "cavium,octeon-6130-mmc-slot";
reg = <0x00000000>;
voltage-ranges = <0x00000ce4 0x00000ce4>;
spi-max-frequency = <0x018cba80>;
non-removable;
bus-width = <0x00000008>;
cavium,bus-max-width = <0x00000008>;
};
};
spi@1070000001000 {
compatible = "cavium,octeon-3010-spi";
reg = <0x00010700 0x00001000 0x00000000 0x00000100>;
interrupts = <0x00000000 0x0000003a>;
#address-cells = <0x00000001>;
#size-cells = <0x00000000>;
spi-max-frequency = <0x05f5e100>;
flash@0 {
compatible = "Macronix,mx25l6405d", "spi-flash";
reg = <0x00000000>;
spi-max-frequency = <0x017d7840>;
mode = <0x00000000>;
#size-cells = <0x00000001>;
#address-cells = <0x00000001>;
pagesize = <0x00010000>;
size = <0x00200000>;
address-width = <0x00000018>;
partition@0 {
reg = <0x00000000 0x00300000>;
label = "boot0";
read-only;
};
partition@300000 {
reg = <0x00300000 0x00100000>;
label = "dummy";
read-only;
};
partition@400000 {
reg = <0x00400000 0x00010000>;
label = "eeprom";
};
};
};
ocla0@11800A8000000 {
compatible = "cavium,octeon-7130-ocla";
reg = <0x00011800 0xa8000000 0x00000000 0x00500000>;
interrupt-parent = <0x0000000a>;
interrupts = <0x00000008 0x00000001 0x00000009 0x00000001 0x0000000b 0x00000001>;
};
dma-engine@1180000000100 {
compatible = "cavium,octeon-5750-bootbus-dma";
reg = <0x00011800 0x00000100 0x00000000 0x00000008>;
interrupts = <0x00000000 0x0000003f>;
};
dma-engine@1180000000108 {
compatible = "cavium,octeon-5750-bootbus-dma";
reg = <0x00011800 0x00000108 0x00000000 0x00000008>;
interrupts = <0x00000000 0x0000003f>;
};
};
gpio-leds {
compatible = "gpio-leds";
d1 {
label = "Yellow";
gpios = <0x00000002 0x0000000b 0x00000000>;
default-state = "keep";
};
};
aliases {
pip = "/soc@0/pip@11800a0000000";
smi0 = "/soc@0/mdio@1180000001800";
twsi0 = "/soc@0/i2c@1180000001000";
twsi1 = "/soc@0/i2c@1180000001200";
uart0 = "/soc@0/serial@1180000000800";
uart1 = "/soc@0/serial@1180000000c00";
emmc = "/soc@0/mmc@1180000002000";
spi = "/soc@0/spi@1070000001000";
/* NOP */
/* NOP */
/* NOP */
/* NOP */
/* NOP */
/* NOP */
/* NOP */
/* NOP */
/* NOP */
/* NOP */
/* NOP */
/* NOP */
/* NOP */
/* NOP */
/* NOP */
};
};
autoload=n
baudrate=115200
boardname=ubnt_e300
bootcmd=fatload mmc 0 $(loadaddr) vmlinux.64;bootoctlinux $(loadaddr) numcores=$(numcores) endbootargs mem=0 root=/dev/mmcblk0p2 rootdelay=10 rw rootsqimg=squashfs.img rootsqwdir=w mtdparts=spi32766.0:3072k(boot0),1024k(dummy),64k(eeprom)
bootdelay=0
check_md5sum=no
dram_size_mbytes=1024
env_size=2000
eth1addr=18:e8:29:4e:20:6d
eth2addr=18:e8:29:4e:20:6e
eth3addr=18:e8:29:4e:20:6f
eth4addr=18:e8:29:4e:20:70
eth5addr=18:e8:29:4e:20:71
eth6addr=18:e8:29:4e:20:72
eth7addr=18:e8:29:4e:20:73
ethact=octeth1
ethaddr=18:e8:29:4e:20:6c
ethprime=octeth1
fdtaddr=80000
flash_base_addr=1f400000
flash_size=800000
loadaddr=0x20000000
md5addr=0x81000000
mtdparts=spi32766.0:3072k(boot0),1024k(dummy),64k(eeprom)
nuke_env=env default -a;saveenv
numcores=4
numcoreshex=0x4
octeon_failsafe_mode=0
octeon_ram_mode=1
serial#=18E8294E206C
stderr=serial
stdin=serial,pci,bootcmd
stdout=serial
ver=U-Boot 2013.07 (UBNT Build Version: e302_003_6be37) (Jun 05 2019 - 09:02:51)
Environment size: 1075/8188 bytes
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
loop8 7:8 0 80.3M 1 loop
mmcblk0rpmb 179:24 0 512K 0 disk
mmcblk0boot0 179:8 0 2M 1 disk
mmcblk0boot1 179:16 0 2M 1 disk
mmcblk0 179:0 0 3.7G 0 disk
|-mmcblk0p1 179:1 0 142M 0 part
`-mmcblk0p2 179:2 0 3.4G 0 part
mtdblock0 31:0 0 2M 1 disk
mtdblock1 31:1 0 2M 1 disk
mtdblock2 31:2 0 64K 1 disk
ubnt@ubnt:~$ cat /proc/partitions
major minor #blocks name
31 0 2048 mtdblock0
31 1 2048 mtdblock1
31 2 64 mtdblock2
179 0 3817472 mmcblk0
179 1 145408 mmcblk0p1
179 2 3564544 mmcblk0p2
179 24 512 mmcblk0rpmb
179 16 2048 mmcblk0boot1
179 8 2048 mmcblk0boot0
7 8 82244 loop8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment