Skip to content

Instantly share code, notes, and snippets.

@ptpt52
Created March 9, 2020 17:47
Show Gist options
  • Save ptpt52/2d12376b1487a412ebf76acc18cf9dbe to your computer and use it in GitHub Desktop.
Save ptpt52/2d12376b1487a412ebf76acc18cf9dbe to your computer and use it in GitHub Desktop.
## Booting image at 80a00000 ...
Image Name: MIPS OpenWrt Linux-5.4.24
Image Type: MIPS Linux Kernel Image (lzma compressed)
Data Size: 7676357 Bytes = 7.3 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.24 (LGA1150@Haswell) (gcc version 9.2.0 (OpenWrt GCC 9.2.0 r12425-d83150e3fb)) #0 SMP Mon Mar 9 17:20:43 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] On node 0 totalpages: 65536
[ 0.000000] Normal zone: 576 pages used for memmap
[ 0.000000] Normal zone: 0 pages reserved
[ 0.000000] Normal zone: 65536 pages, LIFO batch:15
[ 0.000000] percpu: Embedded 14 pages/cpu s26960 r8192 d22192 u57344
[ 0.000000] pcpu-alloc: s26960 r8192 d22192 u57344 alloc=14*4096
[ 0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 64960
[ 0.000000] Kernel command line: console=ttyS0,57600 debug 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=0000a0c0
[ 0.000000] Readback ErrCtl register=0000a0c0
[ 0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[ 0.000000] Memory: 245484K/262144K available (5916K kernel code, 215K rwdata, 1248K rodata, 6240K init, 232K bss, 16660K 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.015489] Calibrating delay loop... 586.13 BogoMIPS (lpj=2930688)
[ 0.087819] pid_max: default: 32768 minimum: 301
[ 0.097147] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[ 0.111551] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[ 0.129594] rcu: Hierarchical SRCU implementation.
[ 0.139696] smp: Bringing up secondary CPUs ...
[ 0.149436] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[ 0.149447] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[ 0.149459] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[ 0.149559] CPU1 revision is: 0001992f (MIPS 1004Kc)
[ 0.209342] Synchronize counters for CPU 1: done.
[ 0.272943] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[ 0.272951] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[ 0.272960] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[ 0.273017] CPU2 revision is: 0001992f (MIPS 1004Kc)
[ 0.329811] Synchronize counters for CPU 2: done.
[ 0.390114] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[ 0.390123] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[ 0.390132] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[ 0.390192] CPU3 revision is: 0001992f (MIPS 1004Kc)
[ 0.449389] Synchronize counters for CPU 3: done.
[ 0.508997] smp: Brought up 1 node, 4 CPUs
[ 0.521297] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.540795] futex hash table entries: 1024 (order: 3, 32768 bytes, linear)
[ 0.554724] pinctrl core: initialized pinctrl subsystem
[ 0.566632] NET: Registered protocol family 16
[ 0.585708] FPU Affinity set after 11720 emulations
[ 0.612314] random: fast init done
[ 0.623181] clocksource: Switched to clocksource GIC
[ 0.634753] NET: Registered protocol family 2
[ 0.644548] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
[ 0.661128] TCP established hash table entries: 2048 (order: 1, 8192 bytes, linear)
[ 0.676281] TCP bind hash table entries: 2048 (order: 2, 16384 bytes, linear)
[ 0.690441] TCP: Hash tables configured (established 2048 bind 2048)
[ 0.703216] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[ 0.716104] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[ 0.730212] NET: Registered protocol family 1
[ 0.738779] PCI: CLS 0 bytes, default 32
[ 7.183139] 4 CPUs re-calibrate udelay(lpj = 2924544)
[ 7.194689] workingset: timestamp_bits=14 max_order=16 bucket_order=2
[ 7.219209] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 7.230739] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[ 7.252957] mt7621_gpio 1e000600.gpio: registering 32 gpios
[ 7.264279] mt7621_gpio 1e000600.gpio: registering 32 gpios
[ 7.275502] mt7621_gpio 1e000600.gpio: registering 32 gpios
[ 7.287317] Serial: 8250/16550 driver, 3 ports, IRQ sharing disabled
[ 7.301236] printk: console [ttyS0] disabled
[ 7.309674] 1e000c00.uartlite: ttyS0 at MMIO 0x1e000c00 (irq = 19, base_baud = 3125000) is a 16550A
[ 7.327610] printk: console [ttyS0] enabled
[ 7.327610] printk: console [ttyS0] enabled
[ 7.344156] printk: bootconsole [early0] disabled
[ 7.344156] printk: bootconsole [early0] disabled
[ 7.364952] mt7621-nand: NAND register bank at 0xbe003000
[ 7.375748] mt7621-nand: ECC register bank at 0xbe003800
[ 7.386524] nand: device found, Manufacturer ID: 0xc2, Chip ID: 0xda
[ 7.399175] nand: Macronix NAND 256MiB 3,3V 8-bit
[ 7.408537] nand: 256 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[ 7.423604] mt7621-nand: ecc bit: 4, spare_per_sector: 16
[ 7.435033] Bad block table found at page 131008, version 0x01
[ 7.447793] Bad block table found at page 130944, version 0x01
[ 7.460097] 6 fixed-partitions partitions found on MTD device MT7621-NAND
[ 7.473607] Creating 6 MTD partitions on "MT7621-NAND":
[ 7.484011] 0x000000000000-0x000000080000 : "u-boot"
[ 7.495087] 0x000000080000-0x0000000e0000 : "u-boot-env"
[ 7.506725] 0x0000000e0000-0x000000140000 : "factory"
[ 7.517796] 0x000000140000-0x000000440000 : "kernel1"
[ 7.529061] 0x000000440000-0x000000740000 : "kernel2"
[ 7.540343] 0x000000740000-0x00000ff00000 : "ubi"
[ 7.554104] libphy: Fixed MDIO Bus: probed
[ 7.603624] libphy: mdio: probed
[ 7.610245] mt7530 mdio-bus:00: MT7530 adapts as multi-chip module
[ 7.694686] mtk_soc_eth 1e100000.ethernet dsa: mediatek frame engine at 0xbe100000, irq 20
[ 7.712003] i2c-mt7621 1e000900.i2c: clock 100 kHz
[ 7.725121] NET: Registered protocol family 10
[ 7.735512] Segment Routing with IPv6
[ 7.742890] NET: Registered protocol family 17
[ 7.752057] 8021q: 802.1Q VLAN Support v1.8
[ 7.763827] libphy: SFP I2C Bus: probed
[ 7.771714] mt7530 mdio-bus:00: MT7530 adapts as multi-chip module
[ 10.015166] libphy: dsa slave smi: probed
[ 10.053199] mt7530 mdio-bus:00 eth0 (uninitialized): PHY [dsa-0.0:00] driver [Generic PHY]
[ 10.103178] mt7530 mdio-bus:00 eth1 (uninitialized): PHY [dsa-0.0:01] driver [Generic PHY]
[ 10.153180] mt7530 mdio-bus:00 eth2 (uninitialized): PHY [dsa-0.0:02] driver [Generic PHY]
[ 10.203180] mt7530 mdio-bus:00 eth3 (uninitialized): PHY [dsa-0.0:03] driver [Generic PHY]
[ 10.253179] mt7530 mdio-bus:00 eth4 (uninitialized): PHY [dsa-0.0:04] driver [Generic PHY]
[ 10.343178] mt7530 mdio-bus:00 eth5 (uninitialized): PHY [mdio-bus:07] driver [Atheros 8031 ethernet]
[ 10.362675] mt7530 mdio-bus:00: configuring for fixed/trgmii link mode
[ 11.323169] mt7530 mdio-bus:00: Link is Up - 1Gbps/Full - flow control off
[ 11.573202] DSA: tree 0 setup
[ 11.579498] libphy: SFP I2C Bus: probed
[ 11.587605] libphy: SFP I2C Bus: probed
[ 11.596377] UBI: auto-attach mtd5
[ 11.602976] ubi0: attaching mtd5
[ 13.885092] ubi0: scanning is finished
[ 13.909877] ubi0: attached mtd5 (name "ubi", size 247 MiB)
[ 13.920826] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
[ 13.934512] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
[ 13.948017] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
[ 13.961868] ubi0: good PEBs: 1982, bad PEBs: 0, corrupted PEBs: 0
[ 13.973995] ubi0: user volume: 2, internal volumes: 1, max. volumes count: 128
[ 13.988367] ubi0: max/mean erase counter: 2/0, WL threshold: 4096, image sequence number: 1319621856
[ 14.006543] ubi0: available PEBs: 0, total reserved PEBs: 1982, PEBs reserved for bad PEB handling: 40
[ 14.025089] ubi0: background thread "ubi_bgt0d" started, PID 469
[ 14.027253] block ubiblock0_0: created from ubi0:0(rootfs)
[ 14.048000] ubiblock: device ubiblock0_0 (rootfs) set to be root filesystem
[ 14.061863] hctosys: unable to open rtc device (rtc0)
[ 14.095632] Freeing unused kernel memory: 6240K
[ 14.104677] This architecture does not have kernel memory protection.
[ 14.117490] Run /init as init process
[ 14.187173] init: Console is alive
[ 14.194276] init: - watchdog -
[ 14.232370] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[ 14.282808] libphy: SFP I2C Bus: probed
[ 14.285654] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[ 14.291047] libphy: SFP I2C Bus: probed
[ 14.313536] 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
[ 18.575014] procd: - early -
[ 18.580841] procd: - watchdog -
[ 19.123326] procd: - watchdog -
[ 19.129909] procd: - ubus -
[ 19.140536] random: ubusd: uninitialized urandom read (4 bytes read)
[ 19.193720] random: ubusd: uninitialized urandom read (4 bytes read)
[ 19.206767] random: ubusd: uninitialized urandom read (4 bytes read)
[ 19.220304] procd: - init -
Please press Enter to activate this console.
[ 19.497895] kmodloader: loading kernel modules from /etc/modules.d/*
[ 19.692328] urngd: v1.0.2 started.
[ 19.844247] random: crng init done
[ 19.851028] random: 7 urandom warning(s) missed due to ratelimiting
[ 20.271740] tun: Universal TUN/TAP device driver, 1.6
[ 20.291860] ipip: IPv4 and MPLS over IPv4 tunneling driver
[ 20.308967] l2tp_core: L2TP core driver, V2.0
[ 20.319312] l2tp_netlink: L2TP netlink interface
[ 20.330603] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[ 20.345616] l2tp_eth: L2TP ethernet pseudowire support (L2TPv3)
[ 20.359801] l2tp_ip: L2TP IP encapsulation support (L2TPv3)
[ 20.372542] l2tp_ip6: L2TP IP encapsulation support for IPv6 (L2TPv3)
[ 20.452011] i2c /dev entries driver
[ 20.462341] pca953x 0-0025: 0-0025 supply vcc not found, using dummy regulator
[ 20.653635] pca953x 0-0025: interrupt support not compiled in
[ 20.665815] libphy: SFP I2C Bus: probed
[ 20.670038] Mirror/redirect action on
[ 20.691088] u32 classifier
[ 20.696532] input device check on
[ 20.703820] Actions configured
[ 20.713632] sfp sfp_lan5: Host maximum power 1.0W
[ 20.736139] GACT probability on
[ 20.747658] Simple TC action Loaded
[ 20.783302] sfp sfp_lan5: No tx_disable pin: SFP modules will always be emitting.
[ 20.923570] xt_time: kernel timezone is -0000
[ 20.938133] PPP generic driver version 2.4.2
[ 20.948307] NET: Registered protocol family 24
[ 20.960018] kmodloader: done loading kernel modules from /etc/modules.d/*
[ 21.623187] sfp sfp_lan5: module FINISAR CORP. H8521-3-H3C rev 4 sn P98125E dc 060225
[ 21.642612] Atheros 8031 ethernet mdio-bus:07: SFP interface sgmii
config interface 'loopback'
option ifname 'lo'
option proto 'static'
option ipaddr '127.0.0.1'
option netmask '255.0.0.0'
config globals 'globals'
config interface 'lan'
option type 'bridge'
option ifname 'eth1 eth2 eth3 eth4 eth5'
option proto 'static'
option ipaddr '192.168.1.1'
option netmask '255.255.255.0'
option ip6assign '60'
config interface 'wan'
option ifname 'eth0'
option proto 'dhcp'
config device 'wan_eth0_dev'
option name 'eth0'
option macaddr '18:e8:29:25:17:9a'
config interface 'wan6'
option ifname 'eth0'
option proto 'dhcpv6'
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
root@OpenWrt:~# /etc/init
init.d/ inittab
root@OpenWrt:~# /etc/init.d/network reload
[ 135.273199] mt7530 mdio-bus:00 eth5: configuring for phy/rgmii-rxid link mode
[ 135.393372] 8021q: adding VLAN 0 to HW filter on device eth5
[ 135.405286] br-lan: port 5(eth5) entered blocking state
[ 135.415745] br-lan: port 5(eth5) entered disabled state
[ 135.426598] at803x_config_aneg: fiber
[ 135.803212] device eth5 entered promiscuous mode
root@OpenWrt:~# [ 136.093230] mt7530 mdio-bus:00 eth5: Link is Up - 1Gbps/Full - flow control rx/tx
[ 136.143578] br-lan: port 5(eth5) entered blocking state
[ 136.154015] br-lan: port 5(eth5) entered forwarding state
[ 136.283235] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
root@OpenWrt:~#
root@OpenWrt:~# ip r
192.168.1.0/24 dev br-lan proto kernel scope link src 192.168.1.1
root@OpenWrt:~# ping 192.168.1.218
PING 192.168.1.218 (192.168.1.218): 56 data bytes
^C
--- 192.168.1.218 ping statistics ---
2 packets transmitted, 0 packets received, 100% packet loss
root@OpenWrt:~# cat /proc/interrupts
CPU0 CPU1 CPU2 CPU3
8: 15965 15950 15928 15931 MIPS GIC Local 1 timer
9: 7755 0 0 0 MIPS GIC 63 IPI call
10: 0 1854 0 0 MIPS GIC 64 IPI call
11: 0 0 9732 0 MIPS GIC 65 IPI call
12: 0 0 0 1862 MIPS GIC 66 IPI call
13: 1715 0 0 0 MIPS GIC 67 IPI resched
14: 0 1852 0 0 MIPS GIC 68 IPI resched
15: 0 0 1651 0 MIPS GIC 69 IPI resched
16: 0 0 0 1970 MIPS GIC 70 IPI resched
17: 0 0 0 0 MIPS GIC 19 1e000600.gpio-bank0, 1e000600.gpio-bank1, 1e000600.gpio-bank2
19: 633 0 0 0 MIPS GIC 33 ttyS0
20: 98 0 0 0 MIPS GIC 10 1e100000.ethernet
22: 0 0 0 0 1e000600.gpio 12 keys
ERR: 0
root@OpenWrt:~# cat /sys/kernel/debug/gpio
gpiochip3: GPIOs 400-415, parent: i2c/0-0025, 0-0025, can sleep:
gpio-405 ( |mod-def0 ) in lo ACTIVE LOW
gpiochip2: GPIOs 416-447, parent: platform/1e000600.gpio, 1e000600.gpio-bank2:
gpiochip1: GPIOs 448-479, parent: platform/1e000600.gpio, 1e000600.gpio-bank1:
gpiochip0: GPIOs 480-511, parent: platform/1e000600.gpio, 1e000600.gpio-bank0:
gpio-487 ( |sfp:i2c ) out lo ACTIVE LOW
gpio-492 ( |reset ) in hi IRQ
gpio-496 ( |sysfs ) out hi
gpio-497 ( |sysfs ) out lo
gpio-498 ( |sysfs ) out hi
gpio-499 ( |sysfs ) out lo
gpio-500 ( |sysfs ) out hi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment