Skip to content

Instantly share code, notes, and snippets.

@cjdelisle
Created February 19, 2025 22:57
Show Gist options
  • Save cjdelisle/c63a2cb9b001fc125a5e36b9103dcb14 to your computer and use it in GitHub Desktop.
Save cjdelisle/c63a2cb9b001fc125a5e36b9103dcb14 to your computer and use it in GitHub Desktop.
[ 0.000000] Linux version 5.15.104 (user@cjd-dev) (mips-openwrt-linux-musl-gcc (OpenWrt GCC 12.2.0 r22407-4c4ab86c1e) 12.2.0, GNU ld (GNU Binutils) 2.40.0)
#0 SMP Thu May 25 09:09:10 2023
[ 0.000000] ISPRAM0: PA=1c000000,Size=00010000,enabled
[ 0.000000] EcoNet SoC: RAM: DDR3 128 MB
[ 0.000000] CPU/SYS frequency: 900/225 MHz
[ 0.000000] printk: bootconsole [early0] enabled
[ 0.000000] CPU0 revision is: 00019558 (MIPS 34Kc)
[ 0.000000] Initrd not found or empty - disabling initrd
[ 0.000000] Detected 1 available secondary CPU(s)
[ 0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
[ 0.000000] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
[ 0.000000] Zone ranges:
[ 0.000000] Normal [mem 0x0000000000000000-0x0000000007ffffff]
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x0000000000000000-0x0000000007ffffff]
[ 0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000007ffffff]
[ 0.000000] percpu: Embedded 11 pages/cpu s12752 r8192 d24112 u45056
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 32480
[ 0.000000] Kernel command line: console=ttyS0,115200
[ 0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes, linear)
[ 0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes, linear)
[ 0.000000] Writing ErrCtl register=000568c6
[ 0.000000] Readback ErrCtl register=000568c6
[ 0.000000] NMI base is 81364200
[ 0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[ 0.000000] Memory: 107136K/131072K available (5694K kernel code, 555K rwdata, 1072K rodata, 10780K init, 355K bss, 23936K reserved, 0K cma-reserved)
[ 0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[ 0.000000] rcu: Hierarchical RCU implementation.
[ 0.000000] Tracing variant of Tasks RCU enabled.
[ 0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 25 jiffies.
[ 0.000000] NR_IRQS: 41
[ 0.000000] hpt: using 200.000 MHz high precision timer
[ 0.000000] ------------[ cut here ]------------
[ 0.000000] WARNING: CPU: 0 PID: 0 at kernel/irq/manage.c:1785 __setup_irq+0x7c4/0x834
[ 0.000000] Modules linked in:
[ 0.000000] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 5.15.104 #0
[ 0.000000] Stack : 00000008 8009e2f8 00000000 00000004 00000000 00000000 806bfd64 811d0000
[ 0.000000] 806d0000 8063af48 806c8fc8 806c8ae3 00000000 11000300 806bfd10 00000000
[ 0.000000] 00000000 00000000 8063af48 806bfbb0 ffffefff 00000000 00000000 ffffffea
[ 0.000000] 00000026 806bfbbc 00000026 806ce950 8063af48 00000000 00000000 800a3538
[ 0.000000] 00000009 806c446c 806c4440 0000000d 00000018 00000030 82014fcc 82014fcc
[ 0.000000] ...
[ 0.000000] Call Trace:
[ 0.000000] [<800288e8>] show_stack+0x28/0xf0
[ 0.000000] [<80333618>] dump_stack_lvl+0x60/0x80
[ 0.000000] [<80049764>] __warn+0x9c/0x124
[ 0.000000] [<80049848>] warn_slowpath_fmt+0x5c/0xac
[ 0.000000] [<800a3538>] __setup_irq+0x7c4/0x834
[ 0.000000] [<800a3ac0>] setup_percpu_irq+0x60/0xc0
[ 0.000000] [<8002167c>] r4k_clockevent_init+0x120/0x184
[ 0.000000] [<8074d8e4>] time_init+0x18/0x88
[ 0.000000] [<80749ca4>] start_kernel+0x538/0x764
[ 0.000000]
[ 0.000000] ---[ end trace 13b113a71737de18 ]---
[ 0.000000] clocksource: hpt: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 9556302233 ns
[ 0.000002] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 10737418237ns
[ 0.007909] printk: console [ttyS0] enabled
[ 0.007909] printk: console [ttyS0] enabled
[ 0.016143] printk: bootconsole [early0] disabled
[ 0.016143] printk: bootconsole [early0] disabled
[ 0.025539] Calibrating delay loop... 599.04 BogoMIPS (lpj=1198080)
[ 0.059639] pid_max: default: 32768 minimum: 301
[ 0.064456] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[ 0.071636] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[ 0.082316] rcu: Hierarchical SRCU implementation.
[ 0.087416] dyndbg: Ignore empty _ddebug table in a CONFIG_DYNAMIC_DEBUG_CORE build
[ 0.095365] smp: Bringing up secondary CPUs ...
[ 0.100677] ISPRAM0: PA=1c000000,Size=00010000,enabled
[ 0.100721] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
[ 0.100731] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
[ 0.100827] CPU1 revision is: 00019558 (MIPS 34Kc)
[ 0.131956] Synchronize counters for CPU 1: done.
[ 0.161026] smp: Brought up 1 node, 2 CPUs
[ 0.166476] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[ 0.176115] futex hash table entries: 512 (order: 2, 16384 bytes, linear)
[ 0.184013] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[ 0.571039] PCI host bridge to bus 0000:00
[ 0.575074] pci_bus 0000:00: root bus resource [mem 0x20000000-0x2fffffff]
[ 0.581909] pci_bus 0000:00: root bus resource [io 0x1f600000-0x1f60ffff]
[ 0.588718] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[ 0.596808] pci 0000:00:00.0: [14c3:0810] type 01 class 0x060400
[ 0.604004] pci 0000:00:01.0: [14c3:0811] type 01 class 0x060400
[ 0.611063] pci 0000:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[ 0.619035] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[ 0.627546] pci 0000:01:00.0: [14c3:7603] type 00 class 0x028000
[ 0.633566] pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x000fffff]
[ 0.640522] pci 0000:01:00.0: PME# supported from D0 D3hot D3cold
[ 0.646884] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[ 0.653985] pci 0000:02:00.0: [14c3:7663] type 00 class 0x000280
[ 0.660047] pci 0000:02:00.0: reg 0x10: [mem 0x00000000-0x000fffff 64bit pref]
[ 0.667235] pci 0000:02:00.0: reg 0x18: [mem 0x00000000-0x00003fff 64bit pref]
[ 0.674424] pci 0000:02:00.0: reg 0x20: [mem 0x00000000-0x00000fff 64bit pref]
[ 0.682116] pci 0000:02:00.0: supports D1 D2
[ 0.686235] pci 0000:02:00.0: PME# supported from D0 D1 D2 D3hot D3cold
[ 0.693027] pci 0000:02:00.0: 2.000 Gb/s available PCIe bandwidth, limited by 2.5 GT/s PCIe x1 link at 0000:00:01.0 (capable of 4.000 Gb/s with 5.0 GT/s PC
Ie x1 link)
[ 0.707979] pci_bus 0000:02: busn_res: [bus 02-ff] end is updated to 02
[ 0.714516] pci_bus 0000:00: busn_res: [bus 00-ff] end is updated to 02
[ 0.721088] pci 0000:00:00.0: BAR 8: assigned [mem 0x20000000-0x200fffff]
[ 0.727825] pci 0000:00:01.0: BAR 8: assigned [mem 0x20100000-0x202fffff]
[ 0.734600] pci 0000:01:00.0: BAR 0: assigned [mem 0x20000000-0x200fffff]
[ 0.741395] pci 0000:00:00.0: PCI bridge to [bus 01]
[ 0.746348] pci 0000:00:00.0: bridge window [mem 0x20000000-0x200fffff]
[ 0.753171] pci 0000:02:00.0: BAR 0: assigned [mem 0x20100000-0x201fffff 64bit pref]
[ 0.760908] pci 0000:02:00.0: BAR 2: assigned [mem 0x20200000-0x20203fff 64bit pref]
[ 0.768643] pci 0000:02:00.0: BAR 4: assigned [mem 0x20204000-0x20204fff 64bit pref]
[ 0.776364] pci 0000:00:01.0: PCI bridge to [bus 02]
[ 0.781249] pci 0000:00:01.0: bridge window [mem 0x20100000-0x202fffff]
[ 0.788281] clocksource: Switched to clocksource hpt
[ 0.794068] NET: Registered PF_INET protocol family
[ 0.799108] IP idents hash table entries: 2048 (order: 2, 16384 bytes, linear)
[ 0.806945] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
[ 0.815230] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[ 0.822928] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
[ 0.830574] TCP bind hash table entries: 1024 (order: 1, 8192 bytes, linear)
[ 0.837598] TCP: Hash tables configured (established 1024 bind 1024)
[ 0.844079] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[ 0.850534] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[ 0.857813] NET: Registered PF_UNIX/PF_LOCAL protocol family
[ 0.863525] PCI: CLS 0 bytes, default 32
[ 0.873363] workingset: timestamp_bits=14 max_order=15 bucket_order=1
[ 0.886065] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.891845] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[ 0.904584] tc3162_uart: UART driver for EN751x SoC, buffer size is 4096 bytes
[ 0.912739] ttyS0 at I/O 0xbfbf0003 (irq = 1, base_baud = 7200) is a TC3162
[ 0.920990] EcoNET SPI NAND driver init
[ 0.921116] Set SPI Clock to 50 Mhz
[ 0.921157] Using Flash ECC
[ 0.921170] Detected SPI NAND Flash: F50L1G41LB, Flash Size: 128 MB
[ 0.921505] nand: device found, Manufacturer ID: 0xc8, Chip ID: 0x01
[ 0.921529] nand: ESMT F50L1G41LB
[ 0.921540] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[ 0.952460] BMT pool size: 81
[ 0.952513] Init bmt table, size: 81
[ 0.952526] bmt count: 81, system count: 943
[ 0.952539] begin to search BMT from block 1023
[ 0.953303] Match bmt signature @ block: 1023
[ 0.953358] Valid BMT, version v1
[ 0.953370] bmt found at block: 1023, mapped block: 0
[ 0.953384] Load bmt data success @ block 1023
[ 0.953396] BMT v1.
[ 0.953401] total 0 mapping
[ 0.954202] Match bbt signature
[ 0.954243] BBT Checksum is: 0x1
[ 0.954254] Valid BBT, version v1
[ 0.954265] BBT found, bad block count: 0
[ 0.954276] Load bbt data fail!
Editor's note, I patched the kernel to fail the bbt every time while I was debugging on another device
this one is showing fail only because I reused the same kerel.
[ 1.297224] BBT: 5241 5742 0000 0001 0100 ffff 0000 0000
[ 1.297283] BBT: 0000 0000 0000 0000 0000 0000 0000 0000
[ 1.297303] BBT: 0000 0000 0000 0000 0000 0000 0000 0000
[ 1.297321] BBT: 0000 0000 0000 0000 0000 0000 0000 0000
[ 1.297339] BBT: 0000 0000 0000 0000 0000 0000 0000 0000
[ 1.297357] BBT: 0000 0000 0000 0000 0000 0000 0000 0000
[ 1.297374] BBT: 0000 0000 0000 0000 0000 0000 0000 0000
[ 1.297392] BBT: 0000 0000 0000 0000 0000 0000 0000 0000
[ 1.297410] BBT: 0000 0000 0000 0000 0000 0000 0000 0000
[ 1.297427] BBT: 0000 0000 0000 0000 0000 0000 0000 0000
[ 1.297445] BBT: 0000 0000 0000 0000 0000 0000 0000 0000
[ 1.297463] BBT: 0000 0000 0000 0000 0000 0000 0000 0000
[ 1.297480] BBT: 0000 0000 0000 0000 0000 0000 0000 0000
[ 1.297498] BBT: 0000 0000 0000 0000 0000 0000 0000 0000
[ 1.297515] BBT: 0000 0000 0000 0000 0000 0000 0000 0000
[ 1.297533] BBT: 0000 0000 0000 0000 0000 0000 0000 0000
[ 1.297551] BBT: 0000 0000 0000 0000 0000 0000 0000 0000
[ 1.297568] BBT: 0000 0000 0000 0000 0000 0000 0000 0000
[ 1.297586] BBT: 0000 0000 0000 0000 0000 0000 0000 0000
[ 1.297604] BBT: 0000 0000 0000 0000 0000 0000 0000 0000
[ 1.297621] BBT: 0000 0000 0000 0000 0000 0000 0000 0000
[ 1.297639] BBT: 0000 0000 0000 0000 0000 0000 0000 0000
[ 1.297656] BBT: 0000 0000 0000 0000 0000 0000 0000 0000
[ 1.297674] BBT: 0000 0000 0000 0000 0000 0000 0000 0000
[ 1.297691] BBT: 0000 0000 0000 0000 0000 0000 0000 0000
[ 1.297709] BBT: 0000 0000 0000 0000 0000 0000 0000 0000
[ 1.297727] BBT: 0000 0000 0000 0000 0000 0000 0000 0000
[ 1.297744] BBT: 0000 0000 0000 0000 0000 0000 0000 0000
[ 1.297762] BBT: 0000 0000 0000 0000 0000 0000 0000 0000
[ 1.297779] BBT: 0000 0000 0000 0000 0000 0000 0000 0000
[ 1.297797] BBT: 0000 0000 0000 0000 0000 0000 0000 0000
[ 1.297814] BBT: 0000 0000 0000 0000 0000 0000 0000 0000
[ 1.297826] Try to find_available_block, pool_erase: 0
[ 1.297836] Skip bbt block 943
[ 1.562747] Skip bmt block 1023
[ 1.562779] Skip bbt block 943
[ 1.563688] Find block 944 available
[ 1.564534] Write BBT to block 944 success
[ 1.564555] BMT & BBT init success
[ 1.617199] NET: Registered PF_INET6 protocol family
[ 1.619608] Segment Routing with IPv6
[ 1.619721] In-situ OAM (IOAM) with IPv6
[ 1.619838] NET: Registered PF_PACKET protocol family
[ 1.619935] 8021q: 802.1Q VLAN Support v1.8
[ 1.655875] Freeing unused kernel image (initmem) memory: 10780K
[ 1.655936] This architecture does not have kernel memory protection.
[ 1.655964] Run /init as init process
[ 2.106542] init: Console is alive
[ 2.131978] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[ 2.135645] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[ 2.138317] init: - preinit -
[ 2.354560] random: jshn: uninitialized urandom read (4 bytes read)
[ 2.374326] random: jshn: uninitialized urandom read (4 bytes read)
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
[ 4.531310] procd: - early -
[ 5.065898] procd: - ubus -
[ 5.075703] random: ubusd: uninitialized urandom read (4 bytes read)
[ 5.116657] random: ubusd: uninitialized urandom read (4 bytes read)
[ 5.117333] random: ubusd: uninitialized urandom read (4 bytes read)
[ 5.121437] procd: - init -
Please press Enter to activate this console.
[ 5.669860] kmodloader: loading kernel modules from /etc/modules.d/*
[ 5.891895] urngd: v1.0.2 started.
[ 5.953611] Loading modules backported from Linux version v6.1-rc8-0-g76dcd734eca2
[ 5.953703] Backport generated by backports.git v5.15.81-1-41-g02e352527db5
[ 6.053458] pci 0000:00:00.0: enabling device (0000 -> 0002)
[ 6.054731] mt7603e 0000:01:00.0: enabling device (0000 -> 0002)
[ 6.055067] mt7603e 0000:01:00.0: ASIC revision: 76030010
[ 6.056580] mt7603e 0000:01:00.0: Invalid MAC address, using random address 9a:b0:82:51:59:6f
[ 6.132869] random: crng init done
[ 6.132925] random: 22 urandom warning(s) missed due to ratelimiting
[ 7.078278] mt7603e 0000:01:00.0: Firmware Version: ap_pcie
[ 7.078338] mt7603e 0000:01:00.0: Build Time: 20160107100755
[ 7.116290] mt7603e 0000:01:00.0: firmware init done
[ 7.370831] PPP generic driver version 2.4.2
[ 7.373904] NET: Registered PF_PPPOX protocol family
[ 7.386130] kmodloader: done loading kernel modules from /etc/modules.d/*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment