Skip to content

Instantly share code, notes, and snippets.

@ptpt52
Created March 13, 2020 14:06
Show Gist options
  • Save ptpt52/cdd863ab9eca0a41da87be86d18dac35 to your computer and use it in GitHub Desktop.
Save ptpt52/cdd863ab9eca0a41da87be86d18dac35 to your computer and use it in GitHub Desktop.
Please choose the operation:
1: Load system code to SDRAM via TFTP.
2: Load system code then write to Flash via TFTP.
3: Boot system code via Flash (default).
4: Entr boot command line interface.
7: Load Boot Loader code then write to Flash via Serial.
9: Load Boot Loader code then write to Flash via TFTP.
r: Start TFTP recovery.
default: 3
0
3: System Boot system code via Flash.
## Booting image at bfd40000 ...
Image Name: MIPS OpenWrt Linux-5.4.25
Image Type: MIPS Linux Kernel Image (lzma compressed)
Data Size: 2612218 Bytes = 2.5 MB
Load Address: 80001000
Entry Point: 80001000
........................................ Verifying Checksum ... OK
Uncompressing Kernel Image ... OK
No initrd
## Transferring control to Linux (at address 80001000) ...
## Giving linux memsize in MB, 256
Starting kernel ...
[ 0.000000] Linux version 5.4.25 (LGA1150@Haswell) (gcc version 9.2.0 (OpenWrt GCC 9.2.0 r12425-d83150e3fb)) #0 SMP Fri Mar 13 12:16:33 2020
[ 0.000000] SoC Type: MediaTek MT7621 ver:1 eco:3
[ 0.000000] printk: bootconsole [early0] enabled
[ 0.000000] CPU0 revision is: 0001992f (MIPS 1004Kc)
[ 0.000000] MIPS: machine is UBNT-ERX-SFP
[ 0.000000] Initrd not found or empty - disabling initrd
[ 0.000000] VPE topology {2,2} total 4
[ 0.000000] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[ 0.000000] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[ 0.000000] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[ 0.000000] Zone ranges:
[ 0.000000] Normal [mem 0x0000000000000000-0x000000000fffffff]
[ 0.000000] HighMem empty
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x0000000000000000-0x000000000fffffff]
[ 0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x000000000fffffff]
[ 0.000000] percpu: Embedded 14 pages/cpu s26960 r8192 d22192 u57344
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 64960
[ 0.000000] Kernel command line: console=ttyS0,57600 rootfstype=squashfs,jffs2
[ 0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes, linear)
[ 0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes, linear)
[ 0.000000] Writing ErrCtl register=0000b080
[ 0.000000] Readback ErrCtl register=0000b080
[ 0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[ 0.000000] Memory: 250476K/262144K available (5905K kernel code, 210K rwdata, 1244K rodata, 1268K init, 232K bss, 11668K reserved, 0K cma-reserved, 0K highmem)
[ 0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[ 0.000000] rcu: Hierarchical RCU implementation.
[ 0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[ 0.000000] NR_IRQS: 256
[ 0.000000] random: get_random_bytes called from start_kernel+0x340/0x554 with crng_init=0
[ 0.000000] CPU Clock: 880MHz
[ 0.000000] clocksource: GIC: mask: 0xffffffffffffffff max_cycles: 0xcaf478abb4, max_idle_ns: 440795247997 ns
[ 0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 4343773742 ns
[ 0.000009] sched_clock: 32 bits at 440MHz, resolution 2ns, wraps every 4880645118ns
[ 0.015491] Calibrating delay loop... 586.13 BogoMIPS (lpj=2930688)
[ 0.087819] pid_max: default: 32768 minimum: 301
[ 0.097149] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[ 0.111554] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[ 0.129612] rcu: Hierarchical SRCU implementation.
[ 0.139719] smp: Bringing up secondary CPUs ...
[ 0.149459] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[ 0.149469] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[ 0.149482] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[ 0.149582] CPU1 revision is: 0001992f (MIPS 1004Kc)
[ 0.209360] Synchronize counters for CPU 1: done.
[ 0.272962] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[ 0.272971] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[ 0.272979] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[ 0.273039] CPU2 revision is: 0001992f (MIPS 1004Kc)
[ 0.329826] Synchronize counters for CPU 2: done.
[ 0.390134] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[ 0.390143] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[ 0.390152] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[ 0.390213] CPU3 revision is: 0001992f (MIPS 1004Kc)
[ 0.449405] Synchronize counters for CPU 3: done.
[ 0.509008] smp: Brought up 1 node, 4 CPUs
[ 0.521294] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.540791] futex hash table entries: 1024 (order: 3, 32768 bytes, linear)
[ 0.554726] pinctrl core: initialized pinctrl subsystem
[ 0.566644] NET: Registered protocol family 16
[ 0.604384] random: fast init done
[ 0.613860] clocksource: Switched to clocksource GIC
[ 0.625548] NET: Registered protocol family 2
[ 0.635010] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
[ 0.651717] TCP established hash table entries: 2048 (order: 1, 8192 bytes, linear)
[ 0.666875] TCP bind hash table entries: 2048 (order: 2, 16384 bytes, linear)
[ 0.681012] TCP: Hash tables configured (established 2048 bind 2048)
[ 0.693768] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[ 0.706665] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[ 0.720781] NET: Registered protocol family 1
[ 0.729347] PCI: CLS 0 bytes, default 32
[ 0.973800] 4 CPUs re-calibrate udelay(lpj = 2924544)
[ 0.985369] workingset: timestamp_bits=14 max_order=16 bucket_order=2
[ 1.009498] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 1.021021] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[ 1.042744] GPIO line 487 (sfp_i2c_clk_gate) hogged as output/high
[ 1.055217] mt7621_gpio 1e000600.gpio: registering 32 gpios
[ 1.066455] mt7621_gpio 1e000600.gpio: registering 32 gpios
[ 1.077724] mt7621_gpio 1e000600.gpio: registering 32 gpios
[ 1.089412] Serial: 8250/16550 driver, 3 ports, IRQ sharing disabled
[ 1.103385] printk: console [ttyS0] disabled
[ 1.111820] 1e000c00.uartlite: ttyS0 at MMIO 0x1e000c00 (irq = 19, base_baud = 3125000) is a 16550A
[ 1.129751] printk: console [ttyS0] enabled
[ 1.129751] printk: console [ttyS0] enabled
[ 1.146312] printk: bootconsole [early0] disabled
[ 1.146312] printk: bootconsole [early0] disabled
[ 1.167103] mt7621-nand: NAND register bank at 0xbe003000
[ 1.177910] mt7621-nand: ECC register bank at 0xbe003800
[ 1.188595] nand: device found, Manufacturer ID: 0xc2, Chip ID: 0xda
[ 1.201247] nand: Macronix NAND 256MiB 3,3V 8-bit
[ 1.210613] nand: 256 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[ 1.225686] mt7621-nand: ecc bit: 4, spare_per_sector: 16
[ 1.237218] Bad block table found at page 131008, version 0x01
[ 1.250003] Bad block table found at page 130944, version 0x01
[ 1.262328] 6 fixed-partitions partitions found on MTD device MT7621-NAND
[ 1.275847] Creating 6 MTD partitions on "MT7621-NAND":
[ 1.286260] 0x000000000000-0x000000080000 : "u-boot"
[ 1.297345] 0x000000080000-0x0000000e0000 : "u-boot-env"
[ 1.308988] 0x0000000e0000-0x000000140000 : "factory"
[ 1.320141] 0x000000140000-0x000000440000 : "kernel1"
[ 1.331281] 0x000000440000-0x000000740000 : "kernel2"
[ 1.342414] 0x000000740000-0x00000ff00000 : "ubi"
[ 1.355283] libphy: Fixed MDIO Bus: probed
[ 1.404230] libphy: mdio: probed
[ 1.410874] mt7530 mdio-bus:00: MT7530 adapts as multi-chip module
[ 1.435753] mtk_soc_eth 1e100000.ethernet dsa: mediatek frame engine at 0xbe100000, irq 20
[ 1.453131] i2c-mt7621 1e000900.i2c: clock 100 kHz
[ 1.466482] NET: Registered protocol family 10
[ 1.476910] Segment Routing with IPv6
[ 1.484356] NET: Registered protocol family 17
[ 1.493461] 8021q: 802.1Q VLAN Support v1.8
[ 1.505024] mt7530 mdio-bus:00: MT7530 adapts as multi-chip module
[ 3.534169] libphy: dsa slave smi: probed
[ 3.563866] mt7530 mdio-bus:00 eth0 (uninitialized): PHY [dsa-0.0:00] driver [Generic PHY]
[ 3.613858] mt7530 mdio-bus:00 eth1 (uninitialized): PHY [dsa-0.0:01] driver [Generic PHY]
[ 3.663857] mt7530 mdio-bus:00 eth2 (uninitialized): PHY [dsa-0.0:02] driver [Generic PHY]
[ 3.713852] mt7530 mdio-bus:00 eth3 (uninitialized): PHY [dsa-0.0:03] driver [Generic PHY]
[ 3.763853] mt7530 mdio-bus:00 eth4 (uninitialized): PHY [dsa-0.0:04] driver [Generic PHY]
[ 3.813863] mt7530 mdio-bus:00 eth5 (uninitialized): PHY [mdio-bus:07] driver [Generic PHY]
[ 3.831634] mt7530 mdio-bus:00: configuring for fixed/trgmii link mode
[ 4.793844] mt7530 mdio-bus:00: Link is Up - 1Gbps/Full - flow control off
[ 5.043894] DSA: tree 0 setup
[ 5.050908] UBI: auto-attach mtd5
[ 5.057554] ubi0: attaching mtd5
[ 7.341014] ubi0: scanning is finished
[ 7.365874] ubi0: attached mtd5 (name "ubi", size 247 MiB)
[ 7.376842] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
[ 7.390528] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
[ 7.404047] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
[ 7.417904] ubi0: good PEBs: 1982, bad PEBs: 0, corrupted PEBs: 0
[ 7.430034] ubi0: user volume: 2, internal volumes: 1, max. volumes count: 128
[ 7.444417] ubi0: max/mean erase counter: 2/0, WL threshold: 4096, image sequence number: 1319621856
[ 7.462595] ubi0: available PEBs: 0, total reserved PEBs: 1982, PEBs reserved for bad PEB handling: 40
[ 7.481149] ubi0: background thread "ubi_bgt0d" started, PID 458
[ 7.483318] block ubiblock0_0: created from ubi0:0(rootfs)
[ 7.504084] ubiblock: device ubiblock0_0 (rootfs) set to be root filesystem
[ 7.517953] hctosys: unable to open rtc device (rtc0)
[ 7.533748] VFS: Mounted root (squashfs filesystem) readonly on device 254:0.
[ 7.552073] Freeing unused kernel memory: 1268K
[ 7.561144] This architecture does not have kernel memory protection.
[ 7.573970] Run /sbin/init as init process
[ 8.090548] init: Console is alive
[ 8.097630] init: - watchdog -
[ 8.784431] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[ 8.912409] libphy: SFP I2C Bus: probed
[ 8.922990] libphy: SFP I2C Bus: probed
[ 8.926598] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[ 8.964199] init: - preinit -
/etc/preinit: line 51: swconfig: not found
/etc/preinit: line 52: swconfig: not found
/etc/preinit: line 53: swconfig: not found
RTNETLINK answers: Network is down
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
sendto(): Network unreachable
sendto(): Network unreachable
[ 14.120942] UBIFS (ubi0:1): Mounting in unauthenticated mode
[ 14.132546] UBIFS (ubi0:1): background thread "ubifs_bgt0_1" started, PID 544
[ 14.206916] UBIFS (ubi0:1): recovery needed
[ 14.216829] random: procd: uninitialized urandom read (4 bytes read)
[ 14.384676] UBIFS (ubi0:1): recovery completed
[ 14.393733] UBIFS (ubi0:1): UBIFS: mounted UBI device 0, volume 1, name "rootfs_data"
[ 14.409330] UBIFS (ubi0:1): LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
[ 14.429068] UBIFS (ubi0:1): FS size: 238968832 bytes (227 MiB, 1882 LEBs), journal size 11935744 bytes (11 MiB, 94 LEBs)
[ 14.450699] UBIFS (ubi0:1): reserved for root: 4952683 bytes (4836 KiB)
[ 14.463869] UBIFS (ubi0:1): media format: w4/r0 (latest is w5/r0), UUID 5EB6F6B2-2297-4BDE-9801-9E0E3A60E5FC, small LPT model
[ 14.492349] mount_root: switching to ubifs overlay
[ 14.538165] overlayfs: upper fs does not support xattr, falling back to index=off and metacopy=off.
[ 14.561031] urandom-seed: Seeding with /etc/urandom.seed
[ 14.697706] procd: - early -
[ 14.703526] procd: - watchdog -
[ 15.244001] procd: - watchdog -
[ 15.250585] procd: - ubus -
[ 15.296352] random: ubusd: uninitialized urandom read (4 bytes read)
[ 15.315992] random: ubusd: uninitialized urandom read (4 bytes read)
[ 15.329101] random: ubusd: uninitialized urandom read (4 bytes read)
[ 15.342670] procd: - init -
Please press Enter to activate this console.
[ 15.981561] kmodloader: loading kernel modules from /etc/modules.d/*
[ 16.153729] urngd: v1.0.2 started.
[ 16.298306] random: crng init done
[ 16.305118] random: 6 urandom warning(s) missed due to ratelimiting
[ 16.773764] tun: Universal TUN/TAP device driver, 1.6
[ 16.795619] ipip: IPv4 and MPLS over IPv4 tunneling driver
[ 16.812670] l2tp_core: L2TP core driver, V2.0
[ 16.823122] l2tp_netlink: L2TP netlink interface
[ 16.834838] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[ 16.850296] l2tp_eth: L2TP ethernet pseudowire support (L2TPv3)
[ 16.864319] l2tp_ip: L2TP IP encapsulation support (L2TPv3)
[ 16.877452] l2tp_ip6: L2TP IP encapsulation support for IPv6 (L2TPv3)
[ 16.956581] i2c /dev entries driver
[ 16.967108] pca953x 0-0025: 0-0025 supply vcc not found, using dummy regulator
[ 17.154318] pca953x 0-0025: interrupt support not compiled in
[ 17.166431] libphy: SFP I2C Bus: probed
[ 17.170820] Mirror/redirect action on
[ 17.193125] u32 classifier
[ 17.198561] input device check on
[ 17.205848] Actions configured
[ 17.214247] sfp sfp: Host maximum power 1.0W
[ 17.240153] GACT probability on
[ 17.252020] Simple TC action Loaded
[ 17.284022] sfp sfp: No tx_disable pin: SFP modules will always be emitting.
[ 17.444469] xt_time: kernel timezone is -0000
[ 17.459640] PPP generic driver version 2.4.2
[ 17.469881] NET: Registered protocol family 24
[ 17.481872] kmodloader: done loading kernel modules from /etc/modules.d/*
[ 19.730852] sfp sfp: please wait, module slow to respond
[ 22.346344] mtk_soc_eth 1e100000.ethernet dsa: configuring for fixed/trgmii link mode
[ 22.362926] mtk_soc_eth 1e100000.ethernet dsa: Link is Up - 1Gbps/Full - flow control rx/tx
[ 22.543904] mt7530 mdio-bus:00 eth1: configuring for phy/gmii link mode
[ 22.624146] 8021q: adding VLAN 0 to HW filter on device eth1
[ 22.635788] IPv6: ADDRCONF(NETDEV_CHANGE): dsa: link becomes ready
[ 22.648841] br-lan: port 1(eth1) entered blocking state
[ 22.659341] br-lan: port 1(eth1) entered disabled state
[ 22.744012] device eth1 entered promiscuous mode
[ 22.753220] device dsa entered promiscuous mode
[ 23.083944] mt7530 mdio-bus:00 eth2: configuring for phy/gmii link mode
[ 23.164137] 8021q: adding VLAN 0 to HW filter on device eth2
[ 23.176345] br-lan: port 2(eth2) entered blocking state
[ 23.186810] br-lan: port 2(eth2) entered disabled state
[ 23.334001] device eth2 entered promiscuous mode
[ 23.703855] mt7530 mdio-bus:00 eth3: configuring for phy/gmii link mode
[ 23.784046] 8021q: adding VLAN 0 to HW filter on device eth3
[ 23.795955] br-lan: port 3(eth3) entered blocking state
[ 23.806447] br-lan: port 3(eth3) entered disabled state
[ 24.013926] device eth3 entered promiscuous mode
[ 24.373864] mt7530 mdio-bus:00 eth4: configuring for phy/gmii link mode
[ 24.464041] 8021q: adding VLAN 0 to HW filter on device eth4
[ 24.475950] br-lan: port 4(eth4) entered blocking state
[ 24.486397] br-lan: port 4(eth4) entered disabled state
[ 24.763885] device eth4 entered promiscuous mode
[ 25.453856] sfp sfp: module FINISAR CORP. H8521-3-H3C rev 4 sn P98125E dc 060225
[ 25.673850] mt7530 mdio-bus:00 eth5: configuring for phy/rgmii-rxid link mode
[ 25.754038] 8021q: adding VLAN 0 to HW filter on device eth5
[ 25.765901] br-lan: port 5(eth5) entered blocking state
[ 25.776370] br-lan: port 5(eth5) entered disabled state
[ 26.173870] device eth5 entered promiscuous mode
[ 26.513886] mt7530 mdio-bus:00 eth0: configuring for phy/gmii link mode
[ 26.614001] 8021q: adding VLAN 0 to HW filter on device eth0
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, r12557-5c2b130ec9
-----------------------------------------------------
root@OpenWrt:/# cd
root@OpenWrt:~# ip r
192.168.1.0/24 dev br-lan proto kernel scope link src 192.168.1.1 linkdown
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment