Skip to content

Instantly share code, notes, and snippets.

@damex
Created October 13, 2020 07:06
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 damex/6124bd98da608025f336d096c53e53e0 to your computer and use it in GitHub Desktop.
Save damex/6124bd98da608025f336d096c53e53e0 to your computer and use it in GitHub Desktop.
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: 363424
Validating data...
Starting next bootloader at 0xffffffff81000000
Board type: UBNT_E300
U-Boot 2013.07 (Build time: Jan 04 2018 - 17:14:08)
Octeon unique ID: 08c000318819f31e0548
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: e300_003_6be37) (Jun 05 2019 - 08:57:57)
Octeon unique ID: 08c000318819f31e0548
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:0, r2:14, serial #: FCECDA03BF17
MPR 13-02427-14
Loading bootloader from SPI offset 0x200000, size: 1438728 bytes
U-Boot 2013.07 (UBNT Build Version: e300_003_6be37) (Jun 05 2019 - 08:57:57)
Octeon unique ID: 08c000318819f31e0548
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:0, r2:14, serial #: FCECDA03BF17
MPR 13-02427-14
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: octeth0, octeth1 [PRIME], octeth2, octeth3
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
Octeon ubnt_e300(ram)#
Octeon ubnt_e300(ram)#
Octeon ubnt_e300(ram)# usb start
(Re)start USB...
USB0: Starting the controller
USB XHCI 1.00
scanning bus 0 for devices... cannot reset port 1!?
2 USB Device(s) found
USB1: Starting the controller
USB XHCI 1.00
scanning bus 1 for devices... 1 USB Device(s) found
scanning usb for storage devices... 1 Storage Device(s) found
Octeon ubnt_e300(ram)# fatload usb 0:1 0x20000000 openwrt-octeon3-ubnt_edgerouter-4-ini
reading openwrt-octeon3-ubnt_edgerouter-4-ini
** Unable to read file openwrt-octeon3-ubnt_edgerouter-4-ini **
Octeon ubnt_e300(ram)# fatload usb 0:1 0x20000000 openwrt-octeon3-ubnt_edgerouter-4-initramfs-kernel.bin
reading openwrt-octeon3-ubnt_edgerouter-4-initramfs-kernel.bin
20407152 bytes read in 414 ms (47 MiB/s)
Octeon ubnt_e300(ram)# bootoctlinux 0 numcores=4 endbootargs mem=0
Allocating memory for ELF segment: addr: 0xffffffff81100000 (adjusted to: 0x1100000), size 0x24c9760
## Loading big-endian Linux kernel with entry point: 0xffffffff8172d4d8 ...
Bootloader: Done loading app on coremask:
0xf
Starting cores:
0xf
[ 0.000000] Linux version 5.4.70 (vagrant@builder) (gcc version 8.4.0 (OpenWrt GCC 8.4.0 r14666+2-62e72b3c5f)) #0 SMP Mon Oct 12 17:27:57 2020
[ 0.000000] Skipping L2 locking due to reduced L2 cache size
[ 0.000000] CVMSEG size: 2 cache lines (256 bytes)
[ 0.000000] printk: bootconsole [early0] enabled
[ 0.000000] CPU0 revision is: 000d9602 (Cavium Octeon III)
[ 0.000000] FPU revision is: 00739600
[ 0.000000] Checking for the multiply/shift bug... no.
[ 0.000000] Checking for the daddiu bug... no.
[ 0.000000] Kernel sections are not in the memory maps
[ 0.000000] Wasting 278528 bytes for tracking 4352 unused pages
[ 0.000000] Initrd not found or empty - disabling initrd
[ 0.000000] Using appended Device Tree.
[ 0.000000] software IO TLB: mapped [mem 0x0360b000-0x0364b000] (0MB)
[ 0.000000] Primary instruction cache 78kB, virtually tagged, 39 way, 16 sets, linesize 128 bytes.
[ 0.000000] Primary data cache 32kB, 32-way, 8 sets, linesize 128 bytes.
[ 0.000000] Zone ranges:
[ 0.000000] DMA32 [mem 0x0000000001100000-0x00000000efffffff]
[ 0.000000] Normal empty
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x0000000001100000-0x00000000035c9fff]
[ 0.000000] node 0: [mem 0x0000000003600000-0x000000000f9fffff]
[ 0.000000] node 0: [mem 0x0000000020000000-0x000000004ebfffff]
[ 0.000000] Zeroed struct page in unavailable ranges: 11062 pages
[ 0.000000] Initmem setup node 0 [mem 0x0000000001100000-0x000000004ebfffff]
[ 0.000000] percpu: Embedded 18 pages/cpu s36384 r8192 d29152 u73728
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 247158
[ 0.000000] Kernel command line: console=ttyS0,115200
[ 0.000000] Dentry cache hash table entries: 131072 (order: 8, 1048576 bytes, linear)
[ 0.000000] Inode-cache hash table entries: 65536 (order: 7, 524288 bytes, linear)
[ 0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[ 0.000000] Memory: 948124K/1004328K available (6353K kernel code, 345K rwdata, 1532K rodata, 12748K init, 16677K bss, 56204K reserved, 0K cma-reserved)
[ 0.000000] SLUB: HWalign=128, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[ 0.000000] rcu: Hierarchical RCU implementation.
[ 0.000000] rcu: CONFIG_RCU_FANOUT set to non-default value of 32.
[ 0.000000] rcu: RCU restricting CPUs from NR_CPUS=16 to nr_cpu_ids=4.
[ 0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[ 0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=4
[ 0.000000] NR_IRQS: 127
[ 0.000000] CIB interrupt controller probed: 800107000000e000 23
[ 0.000000] CIB interrupt controller probed: 800107000000e200 12
[ 0.000000] CIB interrupt controller probed: 800107000000e400 6
[ 0.000000] CIB interrupt controller probed: 800107000000e600 4
[ 0.000000] CIB interrupt controller probed: 800107000000e800 11
[ 0.000000] CIB interrupt controller probed: 800107000000e900 11
[ 0.000000] CIB interrupt controller probed: 800107000000ec00 15
[ 0.000000] random: get_random_bytes called from start_kernel+0x320/0x578 with crng_init=0
[ 1.332123] clocksource: OCTEON_CVMCOUNT: mask: 0xffffffffffffffff max_cycles: 0x1cd42e4dffb, max_idle_ns: 881590591483 ns
[ 1.351274] Calibrating delay loop (skipped) preset value.. 2000.00 BogoMIPS (lpj=10000000)
[ 1.359571] pid_max: default: 32768 minimum: 301
[ 1.364308] Mount-cache hash table entries: 2048 (order: 2, 16384 bytes, linear)
[ 1.371554] Mountpoint-cache hash table entries: 2048 (order: 2, 16384 bytes, linear)
[ 1.379967] Checking for the daddi bug... no.
[ 1.384700] rcu: Hierarchical SRCU implementation.
[ 1.389605] smp: Bringing up secondary CPUs ...
[ 1.394208] SMP: Booting CPU01 (CoreId 1)...
[ 1.398468] CPU1 revision is: 000d9602 (Cavium Octeon III)
[ 1.398471] FPU revision is: 00739600
[ 1.398838] SMP: Booting CPU02 (CoreId 2)...
[ 1.412191] CPU2 revision is: 000d9602 (Cavium Octeon III)
[ 1.412194] FPU revision is: 00739600
[ 1.412547] SMP: Booting CPU03 (CoreId 3)...
[ 1.425898] CPU3 revision is: 000d9602 (Cavium Octeon III)
[ 1.425901] FPU revision is: 00739600
[ 1.426000] smp: Brought up 1 node, 4 CPUs
[ 1.441447] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 1.451117] futex hash table entries: 1024 (order: 5, 131072 bytes, linear)
[ 1.458568] NET: Registered protocol family 16
[ 1.469220] PCIe: Initializing port 0
[ 1.476045] PCIe: BIST2 FAILED for port 0 (0x0000000000000003)
[ 1.948631] random: fast init done
[ 3.481753] PCIe: Link timeout on port 0, probably the slot is empty
[ 3.488099] PCIe: Initializing port 1
[ 3.495069] PCIe: BIST FAILED for port 1 (0xffffffffffffffff)
[ 5.507985] PCIe: Link timeout on port 1, probably the slot is empty
[ 5.520491] SCSI subsystem initialized
[ 5.524328] usbcore: registered new interface driver usbfs
[ 5.529676] usbcore: registered new interface driver hub
[ 5.535015] usbcore: registered new device driver usb
[ 5.540135] PCI host bridge to bus 0000:00
[ 5.544058] pci_bus 0000:00: root bus resource [mem 0x1000000000000]
[ 5.550411] pci_bus 0000:00: root bus resource [io 0x0000]
[ 5.555945] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]
[ 5.562720] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[ 5.571245] pci_bus 0000:00: busn_res: [bus 00-ff] end is updated to 00
[ 5.577744] workqueue: max_active 576 requested for napi_workq is out of range, clamping between 1 and 512
[ 5.588059] clocksource: Switched to clocksource OCTEON_CVMCOUNT
[ 5.594543] NET: Registered protocol family 2
[ 5.599176] tcp_listen_portaddr_hash hash table entries: 512 (order: 1, 8192 bytes, linear)
[ 5.607375] TCP established hash table entries: 8192 (order: 4, 65536 bytes, linear)
[ 5.615182] TCP bind hash table entries: 8192 (order: 5, 131072 bytes, linear)
[ 5.622404] TCP: Hash tables configured (established 8192 bind 8192)
[ 5.628716] UDP hash table entries: 512 (order: 2, 16384 bytes, linear)
[ 5.635240] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes, linear)
[ 5.642464] NET: Registered protocol family 1
[ 5.646665] PCI: CLS 0 bytes, default 128
[ 5.730189] platform 1180068000000.uctl: clocks initialized.
[ 5.735737] platform 1180069000000.uctl: clocks initialized.
[ 5.742398] workingset: timestamp_bits=46 max_order=18 bucket_order=0
[ 5.754885] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 5.760692] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[ 5.772651] octeon_gpio 1070000000800.gpio-controller: OCTEON GPIO driver probed.
[ 5.780165] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[ 5.786791] printk: console [ttyS0] disabled
[ 5.790949] 1180000000c00.serial: ttyS0 at MMIO 0x1180000000c00 (irq = 46, base_baud = 25000000) is a OCTEON
[ 5.800728] printk: console [ttyS0] enabled
[ 5.808917] printk: bootconsole [early0] disabled
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment