Skip to content

Instantly share code, notes, and snippets.

@damex
Created October 11, 2020 10:28
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/0fe7d3b8d19a8b083046b9397db223f8 to your computer and use it in GitHub Desktop.
Save damex/0fe7d3b8d19a8b083046b9397db223f8 to your computer and use it in GitHub Desktop.
root@OpenWrt:/# sysupgrade /mnt/disk/openwrt-octeon-ubnt_edgerouter4-squashfs-sysupgrade.tar
Image not in /tmp, copying...
Image metadata not found
Cannot save config while running from ramdisk.
Commencing upgrade. Closing all shell sessions.
Watchdog handover: fd=3
- watchdog -
killall: telnetd: no process killed
Sending TERM to remaining processes ... netifd odhcpd ntpd dnsmasq ubusd urngd logd
Sending KILL to remaining processes ...
Performing system upgrade...
flashing kernel to /dev/mmcblk0p1
flashing rootfs to /dev/mmcblk0p2
610+0 records in
610+0 records out
Upgrade completed
Rebooting system...
umount: can't unmount /dev: Resource busy
umount: can't unmount /tmp: Resource busy
umount: can't unmount /: Invalid argument
[ 495.177724] reboot: Restarting system
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
reading vmlinux.64
8442296 bytes read in 2078 ms (3.9 MiB/s)
reading vmlinux.64.md5
33 bytes read in 303 ms (0 Bytes/s)
Allocating memory for ELF segment: addr: 0xffffffff81100000 (adjusted to: 0x1100000), size 0x1959660
## Loading big-endian Linux kernel with entry point: 0xffffffff816fcb20 ...
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 r14641-582ba9ddc7)) #0 SMP Sun Oct 11 09:31:54 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] 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 passed Device Tree.
[ 0.000000] software IO TLB: mapped [mem 0x02b0c000-0x02b4c000] (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-0x0000000002a59fff]
[ 0.000000] node 0: [mem 0x0000000002b00000-0x000000000fafffff]
[ 0.000000] node 0: [mem 0x0000000020000000-0x000000004ebfffff]
[ 0.000000] Zeroed struct page in unavailable ranges: 10918 pages
[ 0.000000] Initmem setup node 0 [mem 0x0000000001100000-0x000000004ebfffff]
[ 0.000000] percpu: Embedded 18 pages/cpu s35872 r8192 d29664 u73728
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 247300
[ 0.000000] Kernel command line: root=/dev/mmcblk0p2 rootdelay=10 rw rootsqimg=squashfs.img rootsqwdir=w mtdparts=spi32766.0:3072k(boot0),1024k(dummy),64k(eeprom) root=/dev/mmcblk0p2 rootfstype=squashfs,ext4 rootwait console=ttyS0,11
5200
[ 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: 960408K/1004904K available (6158K kernel code, 338K rwdata, 1476K rodata, 1296K init, 16677K bss, 44496K 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 25 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: 800107000000ec00 15
[ 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] random: get_random_bytes called from start_kernel+0x320/0x578 with crng_init=0
[ 0.343355] clocksource: OCTEON_CVMCOUNT: mask: 0xffffffffffffffff max_cycles: 0x1cd42e4dffb, max_idle_ns: 881590591483 ns
[ 0.362503] Calibrating delay loop (skipped) preset value.. 2000.00 BogoMIPS (lpj=4000000)
[ 0.370736] pid_max: default: 32768 minimum: 301
[ 0.375427] Mount-cache hash table entries: 2048 (order: 2, 16384 bytes, linear)
[ 0.382701] Mountpoint-cache hash table entries: 2048 (order: 2, 16384 bytes, linear)
[ 0.391109] Checking for the daddi bug... no.
[ 0.395876] rcu: Hierarchical SRCU implementation.
[ 0.400771] smp: Bringing up secondary CPUs ...
[ 0.405423] SMP: Booting CPU01 (CoreId 1)...
[ 0.409703] CPU1 revision is: 000d9602 (Cavium Octeon III)
[ 0.410076] SMP: Booting CPU02 (CoreId 2)...
[ 0.419786] CPU2 revision is: 000d9602 (Cavium Octeon III)
[ 0.420130] SMP: Booting CPU03 (CoreId 3)...
[ 0.429840] CPU3 revision is: 000d9602 (Cavium Octeon III)
[ 0.429941] smp: Brought up 1 node, 4 CPUs
[ 0.441959] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[ 0.451566] futex hash table entries: 1024 (order: 5, 131072 bytes, linear)
[ 0.459004] NET: Registered protocol family 16
[ 0.469210] PCIe: Initializing port 0
[ 0.476055] PCIe: BIST2 FAILED for port 0 (0x0000000000000003)
[ 0.659945] random: fast init done
[ 2.481747] PCIe: Link timeout on port 0, probably the slot is empty
[ 2.488093] PCIe: Initializing port 1
[ 2.495063] PCIe: BIST FAILED for port 1 (0xffffffffffffffff)
[ 4.508012] PCIe: Link timeout on port 1, probably the slot is empty
[ 4.520380] SCSI subsystem initialized
[ 4.524187] usbcore: registered new interface driver usbfs
[ 4.529565] usbcore: registered new interface driver hub
[ 4.534865] usbcore: registered new device driver usb
[ 4.540009] PCI host bridge to bus 0000:00
[ 4.543952] pci_bus 0000:00: root bus resource [mem 0x1000000000000]
[ 4.550273] pci_bus 0000:00: root bus resource [io 0x0000]
[ 4.555828] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]
[ 4.562602] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[ 4.571094] pci_bus 0000:00: busn_res: [bus 00-ff] end is updated to 00
[ 4.577594] workqueue: max_active 576 requested for napi_workq is out of range, clamping between 1 and 512
[ 4.587952] clocksource: Switched to clocksource OCTEON_CVMCOUNT
[ 4.594463] NET: Registered protocol family 2
[ 4.599109] tcp_listen_portaddr_hash hash table entries: 512 (order: 1, 8192 bytes, linear)
[ 4.607331] TCP established hash table entries: 8192 (order: 4, 65536 bytes, linear)
[ 4.615100] TCP bind hash table entries: 8192 (order: 5, 131072 bytes, linear)
[ 4.622341] TCP: Hash tables configured (established 8192 bind 8192)
[ 4.628648] UDP hash table entries: 512 (order: 2, 16384 bytes, linear)
[ 4.635195] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes, linear)
[ 4.642375] NET: Registered protocol family 1
[ 4.646594] PCI: CLS 0 bytes, default 128
[ 4.651169] platform 1180068000000.uctl: clocks initialized.
[ 4.656893] platform 1180069000000.uctl: clocks initialized.
[ 4.663309] workingset: timestamp_bits=46 max_order=18 bucket_order=0
[ 4.675200] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 4.681018] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[ 4.692603] octeon_gpio 1070000000800.gpio-controller: OCTEON GPIO driver probed.
[ 4.700133] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[ 4.706804] printk: console [ttyS0] disabled
[ 4.710958] 1180000000800.serial: ttyS0 at MMIO 0x1180000000800 (irq = 46, base_baud = 25000000) is a OCTEON
[ 4.720737] printk: console [ttyS0] enabled
[ 4.720737] printk: console [ttyS0] enabled
[ 4.729060] printk: bootconsole [early0] disabled
[ 4.729060] printk: bootconsole [early0] disabled
[ 4.738722] 1180000000c00.serial: ttyS1 at MMIO 0x1180000000c00 (irq = 47, base_baud = 25000000) is a OCTEON
[ 4.748825] octeon_rng octeon_rng: Octeon Random Number Generator
[ 4.758483] loop: module loaded
[ 4.762727] spi-nor spi0.0: mx25l6405d (8192 Kbytes)
[ 4.767752] 3 fixed-partitions partitions found on MTD device spi0.0
[ 4.774119] Creating 3 MTD partitions on "spi0.0":
[ 4.778918] 0x000000000000-0x000000300000 : "boot0"
[ 4.784434] 0x000000300000-0x000000400000 : "dummy"
[ 4.789917] 0x000000400000-0x000000410000 : "eeprom"
[ 4.795507] spi-octeon 1070000001000.spi: OCTEON SPI bus driver
[ 4.801689] libphy: mdio_octeon: probed
[ 4.806645] mdio_octeon 1180000001800.mdio: Probed
[ 4.811583] libphy: mdio_octeon: probed
[ 4.815441] mdio_octeon 1180000001900.mdio: Probed
[ 4.820444] libphy: Fixed MDIO Bus: probed
[ 4.825229] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 4.831778] ehci-pci: EHCI PCI platform driver
[ 4.836259] ehci-platform: EHCI generic platform driver
[ 4.841582] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[ 4.847785] ohci-platform: OHCI generic platform driver
[ 4.853152] usbcore: registered new interface driver usb-storage
[ 4.859173] octeon_wdt: Initial granularity 5 Sec
[ 4.889587] Interface 0 has 4 ports (SGMII)
[ 4.893852] Interface 1 has 4 ports (SGMII)
[ 4.898872] Interface 3 has 4 ports (LOOP)
[ 4.909758] NET: Registered protocol family 10
[ 4.916085] Segment Routing with IPv6
[ 4.919815] NET: Registered protocol family 17
[ 4.924321] 8021q: 802.1Q VLAN Support v1.8
[ 4.929077] OF: fdt: not creating '/sys/firmware/fdt': CRC check failed
[ 4.935899] Waiting 10 sec before mounting root device...
[ 13.163961] random: crng init done
[ 14.327531] mmc0: new DDR MMC card at address 0001
[ 14.332786] mmcblk0: mmc0:0001 SEM04G 3.69 GiB
[ 14.337481] mmcblk0boot0: mmc0:0001 SEM04G partition 1 2.00 MiB
[ 14.343540] mmcblk0boot1: mmc0:0001 SEM04G partition 2 2.00 MiB
[ 14.349546] mmcblk0rpmb: mmc0:0001 SEM04G partition 3 2.00 MiB, chardev (252:0)
[ 14.357707] mmcblk0: p1 p2
[ 15.030670] VFS: Mounted root (squashfs filesystem) readonly on device 179:2.
[ 15.038344] Freeing unused kernel memory: 1296K
[ 15.042895] This architecture does not have kernel memory protection.
[ 15.049338] Run /sbin/init as init process
[ 15.420115] init: Console is alive
[ 15.423636] init: - watchdog -
[ 15.617410] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[ 15.640248] dwc3 1680000000000.xhci: Configuration mismatch. dr_mode forced to host
[ 15.648253] dwc3 1690000000000.xhci: Configuration mismatch. dr_mode forced to host
[ 15.659699] xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
[ 15.665241] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 1
[ 15.673002] xhci-hcd xhci-hcd.0.auto: hcc params 0x0220f06d hci version 0x100 quirks 0x0000000002010010
[ 15.682434] xhci-hcd xhci-hcd.0.auto: irq 44, io mem 0x1680000000000
[ 15.689378] hub 1-0:1.0: USB hub found
[ 15.693181] hub 1-0:1.0: 1 port detected
[ 15.697331] xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
[ 15.702846] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 2
[ 15.710522] xhci-hcd xhci-hcd.0.auto: Host supports USB 3.0 SuperSpeed
[ 15.717152] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[ 15.725631] hub 2-0:1.0: USB hub found
[ 15.729428] hub 2-0:1.0: 1 port detected
[ 15.733654] xhci-hcd xhci-hcd.1.auto: xHCI Host Controller
[ 15.739185] xhci-hcd xhci-hcd.1.auto: new USB bus registered, assigned bus number 3
[ 15.746943] xhci-hcd xhci-hcd.1.auto: hcc params 0x0220f06d hci version 0x100 quirks 0x0000000002010010
[ 15.756378] xhci-hcd xhci-hcd.1.auto: irq 45, io mem 0x1690000000000
[ 15.763322] hub 3-0:1.0: USB hub found
[ 15.767127] hub 3-0:1.0: 1 port detected
[ 15.771275] xhci-hcd xhci-hcd.1.auto: xHCI Host Controller
[ 15.776792] xhci-hcd xhci-hcd.1.auto: new USB bus registered, assigned bus number 4
[ 15.784464] xhci-hcd xhci-hcd.1.auto: Host supports USB 3.0 SuperSpeed
[ 15.791066] usb usb4: We don't know the algorithms for LPM for this host, disabling LPM.
[ 15.799530] hub 4-0:1.0: USB hub found
[ 15.803368] hub 4-0:1.0: 1 port detected
[ 15.807737] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[ 15.819691] init: - preinit -
[ 16.796037] usb 2-1: new SuperSpeed Gen 1 USB device number 2 using xhci-hcd
[ 16.822275] usb-storage 2-1:1.0: USB Mass Storage device detected
[ 16.828676] scsi host0: usb-storage 2-1:1.0
Press the [f] key and hit [enter] to enter failsafe mode
Press the [1], [2], [3] or [4] key and hit [enter] to select the debug level
[ 17.845222] scsi 0:0:0:0: Direct-Access SanDisk Ultra Fit 1.00 PQ: 0 ANSI: 6
[ 17.854403] sd 0:0:0:0: [sda] 60063744 512-byte logical blocks: (30.8 GB/28.6 GiB)
[ 17.863510] sd 0:0:0:0: [sda] Write Protect is off
[ 17.868879] sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[ 17.884868] sda: sda1
[ 17.889125] sd 0:0:0:0: [sda] Attached SCSI removable disk
[ 20.988801] mount_root: rootdisk overlay filesystem has not been formatted yet
[ 34.957789] F2FS-fs (loop0): Found nat_bits in checkpoint
[ 35.015469] F2FS-fs (loop0): Mounted with checkpoint version = 470a8faf
[ 35.022574] mount_root: overlay filesystem has not been fully initialized yet
[ 35.030004] mount_root: switching to f2fs overlay
[ 35.040186] overlayfs: "xino" feature enabled using 32 upper inode bits.
[ 35.076403] urandom-seed: Seed file not found (/etc/urandom.seed)
[ 35.159746] procd: - early -
[ 35.162726] procd: - watchdog -
[ 35.712025] procd: - watchdog -
[ 35.715346] procd: - ubus -
[ 35.777482] procd: - init -
Please press Enter to activate this console.
[ 36.010250] kmodloader: loading kernel modules from /etc/modules.d/*
[ 36.040507] xt_time: kernel timezone is -0000
[ 36.047860] urngd: v1.0.2 started.
[ 36.053157] PPP generic driver version 2.4.2
[ 36.058373] NET: Registered protocol family 24
[ 36.068461] kmodloader: done loading kernel modules from /etc/modules.d/*
[ 42.560609] br-lan: port 1(eth1) entered blocking state
[ 42.565864] br-lan: port 1(eth1) entered disabled state
[ 42.571312] device eth1 entered promiscuous mode
[ 42.781063] br-lan: port 2(eth2) entered blocking state
[ 42.786321] br-lan: port 2(eth2) entered disabled state
[ 42.791767] device eth2 entered promiscuous mode
[ 42.796486] br-lan: port 2(eth2) entered blocking state
[ 42.801728] br-lan: port 2(eth2) entered forwarding state
[ 42.807213] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
[ 43.001025] br-lan: port 3(eth3) entered blocking state
[ 43.006286] br-lan: port 3(eth3) entered disabled state
[ 43.011724] device eth3 entered promiscuous mode
[ 43.016437] br-lan: port 3(eth3) entered blocking state
[ 43.021678] br-lan: port 3(eth3) entered forwarding state
[ 43.383192] br-lan: port 2(eth2) entered disabled state
[ 43.388956] br-lan: port 3(eth3) entered disabled state
[ 45.854108] eth2: 1000 Mbps Full duplex, port 2, queue 2
[ 45.859453] br-lan: port 2(eth2) entered blocking state
[ 45.864689] br-lan: port 2(eth2) entered forwarding state
BusyBox v1.31.1 () built-in shell (ash)
_______ ________ __
| |.-----.-----.-----.| | | |.----.| |_
| - || _ | -__| || | | || _|| _|
|_______|| __|_____|__|__||________||__| |____|
|__| W I R E L E S S F R E E D O M
-----------------------------------------------------
OpenWrt SNAPSHOT, r14665-4389bebe00
-----------------------------------------------------
=== WARNING! =====================================
There is no root password defined on this device!
Use the "passwd" command to set up a new password
in order to prevent unauthorized SSH logins.
--------------------------------------------------
root@OpenWrt:/#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment