Adding OpenWrt support for IIJ SA-W2 (mvebu)

Hi, I'm trying to add support for IIJ SA-W2.

SoC: Marvell 88F6810 (mvebu/cortexa9)
RAM: DDR3 256 MiB
Flash: SPI-NOR 32 MiB
Switch: 88E6172
stock: NetBSD based

Product Info (lang: ja): https://www.seil.jp/saw-mpc/doc/sa/hardware/saw2.html
Hardware Specs: https://www.netbsd.org/gallery/presentations/msaitoh/2016_AsiaBSDCon/AsiaBSDCon2016-BoF-W2.pdf
Hardware Notes: https://memo205.wordpress.com/2022/11/13/sa-w2/
repository:

Currently, I'm trying to boot initramfs image on the device, but it's stuck.

General initialization - Version: 1.0.0
Detected Device ID 6810
High speed PHY - Version: 2.0

Init Customer board board SerDes lanes topology details:
 | Lane # | Speed|    Type     |
 ------------------------------|
 |   0    |  5   |  PCIe0      |
 |   5    |  5   |  PCIe2      |
 -------------------------------
:** Link is Gen1, check the EP capability 
PCIe, Idx 0: remains Gen1
:** Link is Gen1, check the EP capability 
PCIe, Idx 2: remains Gen1
High speed PHY - Ended Successfully
DDR3 Training Sequence - Ver TIP-1.39.0
DDR3 Training Sequence - Switching XBAR Window to FastPath Window 
DDR3 Training Sequence - Ended Successfully

SA-W2 IPL Monitor version 1.20
Copyright 2003-2016 Internet Initiative Japan Inc.

boot:  7
AUTOMATIC BOOT WAS STOPPED! GO TO IPL MONITOR OR EASY UPDATE? [y/N/u] ...19 ? y
IPL ver  : 1.20
H/W type : SA-W2
CPU type : ARMADA 38x
H/W rev  : E
lan0     : 00:e0:4d:3c:b7:18
lan1     : 00:e0:4d:3c:b7:19
flash0   : device W25Q256, base 0xd4000000, size 0x2000000
bootdev  : flash
dipsw    : 0xff
#address 192.168.0.1
#tftpload 192.168.0.10 sa-w2-initramfs.bin
Loading sa-w2-initramfs.bin 
loaded 7063542 byte(s)
#go
DTB:0x008B8678 (0x0000417E)
C:0x00200180-0x008BC800->0x01AAAA00-0x02167080
DTB:0x02162EF8 (0x0000417E)
Uncompressing Linux... done, booting the kernel.
(stuck)

diffconfig:

$ ./scripts/diffconfig.sh
CONFIG_TARGET_mvebu=y
CONFIG_TARGET_mvebu_cortexa9=y
CONFIG_TARGET_mvebu_cortexa9_DEVICE_iij_sa-w2=y
CONFIG_KERNEL_DEBUG_LL=y
CONFIG_KERNEL_DEBUG_LL_UART_NONE=y
CONFIG_KERNEL_DYNAMIC_DEBUG=y
CONFIG_KERNEL_EARLY_PRINTK=y

How should I debug this?

Try disabling early printk. That broke booting for me on my WRT1200AC.

Some Kconfig defaults were disabled too recently (and reverted again), are you on latest master?

Hmm, I tried without earlyprintk, but it is still stuck...
It seems to me that it is stuck in the same place as DEBUG_LL.

#address 192.168.0.1
#tftpload 192.168.0.10 sa-w2-initramfs.bin
Loading sa-w2-initramfs.bin 
loaded 6966406 byte(s)
#go
(stuck)

The repository is not based on the latest, but 721206a1b1 (kernel: set default values for ARM low level debugging symbols)...
I manually enabled DEBUG_LL* options in menuconfig to output messages while decompressing by loader of zImage.

Yes that was the fix I was referring to. Out of ideas then, sorry.

1 Like

Yeah, I succeeded to start kernel with the console!
earlycon in bootargs had to be specified manually...

bootargs = "console=ttyS0,115200n8 earlycon=uart8250,mmio32,0xd0012000";

earlycon and stdout-path pair didn't work on this device.

General initialization - Version: 1.0.0
Detected Device ID 6810
High speed PHY - Version: 2.0

Init Customer board board SerDes lanes topology details:
 | Lane # | Speed|    Type     |
 ------------------------------|
 |   0    |  5   |  PCIe0      |
 |   5    |  5   |  PCIe2      |
 -------------------------------
:** Link is Gen1, check the EP capability 
PCIe, Idx 0: remains Gen1
:** Link is Gen1, check the EP capability 
PCIe, Idx 2: remains Gen1
High speed PHY - Ended Successfully
DDR3 Training Sequence - Ver TIP-1.39.0
DDR3 Training Sequence - Switching XBAR Window to FastPath Window 
DDR3 Training Sequence - Ended Successfully

SA-W2 IPL Monitor version 1.20
Copyright 2003-2016 Internet Initiative Japan Inc.

boot: 10
AUTOMATIC BOOT WAS STOPPED! GO TO IPL MONITOR OR EASY UPDATE? [y/N/u] ...19 ? y
IPL ver  : 1.20
H/W type : SA-W2
CPU type : ARMADA 38x
H/W rev  : E
lan0     : 00:e0:4d:3c:b7:18
lan1     : 00:e0:4d:3c:b7:19
flash0   : device W25Q256, base 0xd4000000, size 0x2000000
bootdev  : flash
dipsw    : 0xff
#address 192.168.0.1 
#tftpload 192.168.0.10 sa-w2-initramfs.bin
Loading sa-w2-initramfs.bin 
loaded 7056012 byte(s)
#go  
DTB:0x008B72A8 (0x000037E4)
C:0x00200180-0x008BAAA0->0x01AAAA00-0x02165320
DTB:0x02161B28 (0x000037E4)
Uncompressing Linux... done, booting the kernel.
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 5.15.92 (musashino205@TAIHA.NET) (arm-openwrt-linux-muslgnueabi-gcc (OpenWrt GCC 12.2.0 r21272+750-b97e5ac785) 12.2.0, GNU ld (GNU Binutils) 2.39) #0 SMP Thu Feb 9 07:53:52 2023
[    0.000000] CPU: ARMv7 Processor [414fc091] revision 1 (ARMv7), cr=10c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] OF: fdt: Machine model: IIJ SA-W2
[    0.000000] earlycon: uart8250 at MMIO32 0xd0012000 (options '')
[    0.000000] printk: bootconsole [uart8250] enabled
[    0.000000] Memory policy: Data cache writealloc
[    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 11 pages/cpu s14028 r8192 d22836 u45056
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 64960
[    0.000000] Kernel command line: console=ttyS0,115200n8 earlycon=uart8250,mmio32,0xd0012000
[    0.000000] Bootloader command line not present
[    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] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 232980K/262144K available (8192K kernel code, 679K rwdata, 2008K rodata, 14336K init, 232K bss, 29164K reserved, 0K cma-reserved, 0K highmem)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] rcu: Hierarchical RCU implementation.
[    0.000000] rcu:     RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=1.
[    0.000000]  Tracing variant of Tasks RCU enabled.
[    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=1
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] 8<--- cut here ---
[    0.000000] Unhandled fault: imprecise external abort (0x1406) at 0xc67ad193
[    0.000000] pgd = (ptrval)
[    0.000000] [c67ad193] *pgd=0661141e(bad)
[    0.000000] Internal error: : 1406 [#1] SMP ARM
[    0.000000] Modules linked in:
[    0.000000] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 5.15.92 #0
[    0.000000] Hardware name: Marvell Armada 380/385 (Device Tree)
[    0.000000] PC is at gic_init_bases+0x5c/0x288
[    0.000000] LR is at __gic_init_bases+0x1fc/0x2c0
[    0.000000] pc : [<c04f6658>]    lr : [<c0c1b224>]    psr: a00000d3
[    0.000000] sp : c1a01e68  ip : c1a053c0  fp : c04f5b24
[    0.000000] r10: c04f5c7c  r9 : c04f5fa0  r8 : c04f69d4
[    0.000000] r7 : c04f5bc0  r6 : cfdb02cc  r5 : c1a05330  r4 : c1a05330
[    0.000000] r3 : d0800000  r2 : 000003fc  r1 : 000003fc  r0 : cfdb02cc
[    0.000000] Flags: NzCv  IRQs off  FIQs off  Mode SVC_32  ISA ARM  Segment none
[    0.000000] Control: 10c5387d  Table: 0000404a  DAC: 00000051
[    0.000000] Register r0 information: non-slab/vmalloc memory
[    0.000000] Register r1 information: non-paged memory
[    0.000000] Register r2 information: non-paged memory
[    0.000000] Register r3 information: 0-page vmalloc region starting at 0xd0800000 allocated at gic_of_setup+0x30/0xf0
[    0.000000] Register r4 information: non-slab/vmalloc memory
[    0.000000] Register r5 information: non-slab/vmalloc memory
[    0.000000] Register r6 information: non-slab/vmalloc memory
[    0.000000] Register r7 information: non-slab/vmalloc memory
[    0.000000] Register r8 information: non-slab/vmalloc memory
[    0.000000] Register r9 information: non-slab/vmalloc memory
[    0.000000] Register r10 information: non-slab/vmalloc memory
[    0.000000] Register r11 information: non-slab/vmalloc memory
[    0.000000] Register r12 information: non-slab/vmalloc memory
[    0.000000] Process swapper/0 (pid: 0, stack limit = 0x(ptrval))
[    0.000000] Stack: (0xc1a01e68 to 0xc1a02000)
[    0.000000] 1e60:                   00000001 c1a05330 c1a05330 c1a05330 c1c04440 c0c1b224
[    0.000000] 1e80: ffffffff 00000001 00000001 00000001 00000001 cfdb02cc 00c100f1 00c10000
[    0.000000] 1ea0: ff8624cc 00000001 00000001 c1a01f10 cfdb02c0 ff8624cc 00000001 00000000
[    0.000000] 1ec0: 00000000 c0a90de4 00000100 c06e386c c1a01ee4 c1a05330 c1aa8d08 00000200
[    0.000000] 1ee0: 00000000 cfdb02c0 c0c42c2c c1a05330 c1a05330 00000000 00000000 c0a90de4
[    0.000000] 1f00: 00000100 c0c1b56c c0a36628 00000000 f100c100 f100c1ff cfdb032c 00000200
[    0.000000] 1f20: 00000000 00000000 00000000 00000000 a00000d3 c1c04300 00000000 c1a01f68
[    0.000000] 1f40: c1a01f70 c1aa8d08 c1c04340 c0a90de4 00000100 c0c268b4 c1c08700 00000000
[    0.000000] 1f60: c1a04f2c 00000000 c1c04340 c1c04340 c1a01f70 c1a01f70 c1c08700 c0c3ea4c
[    0.000000] 1f80: c1aaa01c c1aaa020 00000000 02161b28 c1aaa010 c1a04ec8 00000000 c0c09978
[    0.000000] 1fa0: c0c3ea4c c0c03360 c1ad63c0 c0c0105c ffffffff ffffffff 00000000 c0c006d8
[    0.000000] 1fc0: 00000000 00000000 c0c3ea50 00000000 00000000 c0c00470 00000051 10c0387d
[    0.000000] 1fe0: 0007b3d4 02161b28 414fc091 10c5387d 00000000 00000000 00000000 00000000
[    0.000000] [<c04f6658>] (gic_init_bases) from [<c0c1b224>] (__gic_init_bases+0x1fc/0x2c0)
[    0.000000] [<c0c1b224>] (__gic_init_bases) from [<c0c1b56c>] (gic_of_init+0x25c/0x314)
[    0.000000] [<c0c1b56c>] (gic_of_init) from [<c0c268b4>] (of_irq_init+0x1cc/0x2d0)
[    0.000000] [<c0c268b4>] (of_irq_init) from [<c0c09978>] (mvebu_init_irq+0x8/0x5c)
[    0.000000] [<c0c09978>] (mvebu_init_irq) from [<c0c03360>] (init_IRQ+0x28/0x74)
[    0.000000] [<c0c03360>] (init_IRQ) from [<c0c0105c>] (start_kernel+0x568/0x73c)
[    0.000000] [<c0c0105c>] (start_kernel) from [<00000000>] (0x0)
[    0.000000] Code: 0a000044 e1a01002 e1a00006 e58d4004 (e30f378c) 
[    0.000000] ---[ end trace 58996bc4bee07162 ]---
[    0.000000] Kernel panic - not syncing: Fatal exception
[    0.000000] Rebooting in 1 seconds..
[    0.000000] Cannot restart, system-controller not available: check the device tree

## Next Problem: kernel panics on gic_init_bases

1 Like

Ah, the console issue was caused by the wrong configuration of ranges property in /soc node...

On this device, the bootloader maps internal-regs to 0xd0000000, so ranges had to be configured on that basis.

BTW, the recent console issue on mvebu devices may be caused by CONFIG_DEBUG_MVEBU_UART0 option.
KERNEL_DEBUG_LL option in OpenWrt enables KERNEL_DEBUG_LL_UART_NONE, but it will be overwritten by CONFIG_DEBUG_MVEBU_UART0 in config-5.15 in mvebu target.
On many devices, internal-regs is mapped to 0xf1000000 and uart0 will be mapped to 0xf1012000. So 0xd0012000 is wrong for those devices and console will be broken. (ref: description in kconfig.debug)

I succeeded to make almost functions on this device working.
The spi-nor flash is on spi1 instead of spi0, and new mtdsplit parser was required to boot from flash.

General initialization - Version: 1.0.0
Detected Device ID 6810
High speed PHY - Version: 2.0
 
Init Customer board board SerDes lanes topology details:
 | Lane # | Speed|    Type     |
 ------------------------------|
 |   0    |  5   |  PCIe0      |
 |   5    |  5   |  PCIe2      |
 -------------------------------
:** Link is Gen1, check the EP capability 
PCIe, Idx 0: remains Gen1
:** Link is Gen1, check the EP capability 
PCIe, Idx 2: remains Gen1
High speed PHY - Ended Successfully
DDR3 Training Sequence - Ver TIP-1.39.0
DDR3 Training Sequence - Switching XBAR Window to FastPath Window 
DDR3 Training Sequence - Ended Successfully
 
SA-W2 IPL Monitor version 1.20
Copyright 2003-2016 Internet Initiative Japan Inc.
 
boot: Boot from Flash... 
Reading FLASH. Done.
Firmware checksum is correct.
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 5.15.92 (musashino205@TAIHA.NET) (arm-openwrt-linux-muslgnueabi-gcc (OpenWrt GCC 12.2.0 r21272+750-b97e5ac785) 12.2.0, GNU ld (GNU Binutils) 2.39) #0 SMP Sat Feb 11 07:41:35 2023
[    0.000000] CPU: ARMv7 Processor [414fc091] revision 1 (ARMv7), cr=10c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] OF: fdt: Machine model: IIJ SA-W2
[    0.000000] Memory policy: Data cache writealloc
[    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 11 pages/cpu s14028 r8192 d22836 u45056
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 64960
[    0.000000] Kernel command line: console=ttyS0,115200n8
[    0.000000] Bootloader command line not present
[    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] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 246328K/262144K available (8192K kernel code, 631K rwdata, 1884K rodata, 1024K init, 232K bss, 15816K reserved, 0K cma-reserved, 0K highmem)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] rcu: Hierarchical RCU implementation.
[    0.000000] rcu:     RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=1.
[    0.000000]  Tracing variant of Tasks RCU enabled.
[    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=1
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] L2C: DT/platform modifies aux control register: 0x06070000 -> 0x16070000
[    0.000000] L2C-310 enabling early BRESP for Cortex-A9
[    0.000000] L2C-310 full line of zeros enabled for Cortex-A9
[    0.000000] L2C-310 D prefetch enabled, offset 1 lines
[    0.000000] L2C-310 dynamic clock gating enabled, standby mode enabled
[    0.000000] L2C-310 Coherent cache controller enabled, 16 ways, 1024 kB
[    0.000000] L2C-310 Coherent: CACHE_ID 0x410054c9, AUX_CTRL 0x56070001
[    0.000001] sched_clock: 64 bits at 533MHz, resolution 1ns, wraps every 2199023255551ns
[    0.000022] clocksource: arm_global_timer: mask: 0xffffffffffffffff max_cycles: 0x7aed16d152, max_idle_ns: 440795225656 ns
[    0.000043] Switching to timer-based delay loop, resolution 1ns
[    0.000215] Ignoring duplicate/late registration of read_current_timer delay
[    0.000224] clocksource: armada_370_xp_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 76450417870 ns
[    0.000445] Calibrating delay loop (skipped), value calculated using timer frequency.. 1066.00 BogoMIPS (lpj=5330000)
[    0.000458] pid_max: default: 32768 minimum: 301
[    0.000578] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.000590] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.001095] CPU: Testing write buffer coherency: ok
[    0.001115] CPU0: Spectre v2: using BPIALL workaround
[    0.001237] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.001659] Setting up static identity map for 0x100000 - 0x100060
[    0.001762] mvebu-soc-id: MVEBU SoC ID=0x6810, Rev=0x4
[    0.001869] mvebu-pmsu: Initializing Power Management Service Unit
[    0.001956] rcu: Hierarchical SRCU implementation.
[    0.002062] dyndbg: Ignore empty _ddebug table in a CONFIG_DYNAMIC_DEBUG_CORE build
[    0.002123] smp: Bringing up secondary CPUs ...
[    0.002129] smp: Brought up 1 node, 1 CPU
[    0.002136] SMP: Total of 1 processors activated (1066.00 BogoMIPS).
[    0.002144] CPU: All CPU(s) started in SVC mode.
[    0.004466] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
[    0.004533] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.004548] futex hash table entries: 256 (order: 2, 16384 bytes, linear)
[    0.004618] pinctrl core: initialized pinctrl subsystem
[    0.005311] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    0.005925] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.006484] thermal_sys: Registered thermal governor 'step_wise'
[    0.006542] cpuidle: using governor ladder
[    0.006700] mvebu-pmsu: CPU hotplug support is currently broken on Armada 38x: disabling
[    0.006709] mvebu-pmsu: CPU idle is currently broken on Armada 38x: disabling
[    0.016828] cryptd: max_cpu_qlen set to 1000
[    0.018375] SCSI subsystem initialized
[    0.018594] usbcore: registered new interface driver usbfs
[    0.018624] usbcore: registered new interface driver hub
[    0.018647] usbcore: registered new device driver usb
[    0.019384] clocksource: Switched to clocksource arm_global_timer
[    0.019853] NET: Registered PF_INET protocol family
[    0.019961] IP idents hash table entries: 4096 (order: 3, 32768 bytes, linear)
[    0.020344] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
[    0.020373] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.020384] TCP established hash table entries: 2048 (order: 1, 8192 bytes, linear)
[    0.020404] TCP bind hash table entries: 2048 (order: 2, 16384 bytes, linear)
[    0.020434] TCP: Hash tables configured (established 2048 bind 2048)
[    0.020476] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.020500] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.020624] NET: Registered PF_UNIX/PF_LOCAL protocol family
[    0.020648] PCI: CLS 0 bytes, default 64
[    0.022327] workingset: timestamp_bits=14 max_order=16 bucket_order=2
[    0.025061] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.025069] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.027235] armada-38x-pinctrl d0018000.pinctrl: registered pinctrl driver
[    0.027748] gpio-2 (usb-hub-reset): hogged as output/high
[    0.027866] debugfs: Directory 'd0018100.gpio' with parent 'regmap' already present!
[    0.028192] debugfs: Directory 'd0018140.gpio' with parent 'regmap' already present!
[    0.028515] mvebu-pcie soc:pcie: host bridge /soc/pcie ranges:
[    0.028549] mvebu-pcie soc:pcie:      MEM 0x00d0080000..0x00d0081fff -> 0x0000080000
[    0.028572] mvebu-pcie soc:pcie:      MEM 0x00d0040000..0x00d0041fff -> 0x0000040000
[    0.028592] mvebu-pcie soc:pcie:      MEM 0x00d0044000..0x00d0045fff -> 0x0000044000
[    0.028610] mvebu-pcie soc:pcie:      MEM 0x00d0048000..0x00d0049fff -> 0x0000048000
[    0.028628] mvebu-pcie soc:pcie:      MEM 0xffffffffffffffff..0x00fffffffe -> 0x0100000000
[    0.028646] mvebu-pcie soc:pcie:       IO 0xffffffffffffffff..0x00fffffffe -> 0x0100000000
[    0.028663] mvebu-pcie soc:pcie:      MEM 0xffffffffffffffff..0x00fffffffe -> 0x0200000000
[    0.028679] mvebu-pcie soc:pcie:       IO 0xffffffffffffffff..0x00fffffffe -> 0x0200000000
[    0.028696] mvebu-pcie soc:pcie:      MEM 0xffffffffffffffff..0x00fffffffe -> 0x0300000000
[    0.028709] mvebu-pcie soc:pcie:       IO 0xffffffffffffffff..0x00fffffffe -> 0x0300000000
[    0.028867] mvebu-pcie soc:pcie: PCI host bridge to bus 0000:00
[    0.028878] pci_bus 0000:00: root bus resource [bus 00-ff]
[    0.028890] pci_bus 0000:00: root bus resource [mem 0xd0080000-0xd0081fff] (bus address [0x00080000-0x00081fff])
[    0.028900] pci_bus 0000:00: root bus resource [mem 0xd0040000-0xd0041fff] (bus address [0x00040000-0x00041fff])
[    0.028909] pci_bus 0000:00: root bus resource [mem 0xd0044000-0xd0045fff] (bus address [0x00044000-0x00045fff])
[    0.028918] pci_bus 0000:00: root bus resource [mem 0xd0048000-0xd0049fff] (bus address [0x00048000-0x00049fff])
[    0.028927] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xe7ffffff]
[    0.028934] pci_bus 0000:00: root bus resource [io  0x1000-0xeffff]
[    0.029028] pci 0000:00:01.0: [11ab:6810] type 01 class 0x060400
[    0.029279] pci 0000:00:03.0: [11ab:6810] type 01 class 0x060400
[    0.030432] PCI: bus0: Fast back to back transfers disabled
[    0.030443] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    0.030456] pci 0000:00:03.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    0.030552] pci 0000:01:00.0: [168c:002e] type 00 class 0x028000
[    0.030578] pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x0000ffff 64bit]
[    0.030687] pci 0000:01:00.0: supports D1
[    0.030695] pci 0000:01:00.0: PME# supported from D0 D1 D3hot
[    0.031889] PCI: bus1: Fast back to back transfers disabled
[    0.031899] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[    0.031988] pci 0000:02:00.0: [168c:003c] type 00 class 0x028000
[    0.032013] pci 0000:02:00.0: reg 0x10: [mem 0x00000000-0x001fffff 64bit]
[    0.032047] pci 0000:02:00.0: reg 0x30: [mem 0x00000000-0x0000ffff pref]
[    0.032125] pci 0000:02:00.0: supports D1
[    0.032132] pci 0000:02:00.0: PME# supported from D0 D1 D3hot
[    0.033319] PCI: bus2: Fast back to back transfers disabled
[    0.033329] pci_bus 0000:02: busn_res: [bus 02-ff] end is updated to 02
[    0.033370] pci 0000:00:01.0: BAR 8: assigned [mem 0xe0000000-0xe00fffff]
[    0.033383] pci 0000:00:03.0: BAR 8: assigned [mem 0xe0200000-0xe04fffff]
[    0.033394] pci 0000:01:00.0: BAR 0: assigned [mem 0xe0000000-0xe000ffff 64bit]
[    0.033410] pci 0000:00:01.0: PCI bridge to [bus 01]
[    0.033420] pci 0000:00:01.0:   bridge window [mem 0xe0000000-0xe00fffff]
[    0.033439] pci 0000:02:00.0: BAR 0: assigned [mem 0xe0200000-0xe03fffff 64bit]
[    0.033455] pci 0000:02:00.0: BAR 6: assigned [mem 0xe0400000-0xe040ffff pref]
[    0.033464] pci 0000:00:03.0: PCI bridge to [bus 02]
[    0.033473] pci 0000:00:03.0:   bridge window [mem 0xe0200000-0xe04fffff]
[    0.033805] mv_xor d0060800.xor: Marvell shared XOR driver
[    0.099963] mv_xor d0060800.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[    0.100144] mv_xor d0060900.xor: Marvell shared XOR driver
[    0.159958] mv_xor d0060900.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[    0.160176] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    0.160558] printk: console [ttyS0] disabled
[    0.180673] d0012000.serial: ttyS0 at MMIO 0xd0012000 (irq = 29, base_baud = 15625000) is a 16550A
[    1.131419] printk: console [ttyS0] enabled
[    1.139287] loop: module loaded
[    1.147087] spi-nor spi1.0: w25q256 (32768 Kbytes)
[    1.152239] 5 fixed-partitions partitions found on MTD device spi1.0
[    1.158636] OF: Bad cell count for /soc/spi@10680/flash@0/partitions
[    1.165067] OF: Bad cell count for /soc/spi@10680/flash@0/partitions
[    1.171679] OF: Bad cell count for /soc/spi@10680/flash@0/partitions
[    1.178073] OF: Bad cell count for /soc/spi@10680/flash@0/partitions
[    1.184554] Creating 5 MTD partitions on "spi1.0":
[    1.189364] 0x000000000000-0x000000100000 : "bootloader"
[    1.195773] 0x000000100000-0x000000110000 : "bootloader-env"
[    1.201817] 0x000000110000-0x000000200000 : "board_info"
[    1.207838] 0x000000200000-0x000001100000 : "firmware"
[    1.213944] 2 seil-fw partitions found on MTD device firmware
[    1.219740] Creating 2 MTD partitions on "firmware":
[    1.224723] 0x000000000000-0x000000370000 : "kernel"
[    1.230260] 0x000000370000-0x000000f00000 : "rootfs"
[    1.235531] mtd: setting mtd5 (rootfs) as root device
[    1.240947] 1 squashfs-split partitions found on MTD device rootfs
[    1.247152] 0x000000800000-0x000000f00000 : "rootfs_data"
[    1.252952] 0x000001100000-0x000002000000 : "rescue"
[    1.265188] mv88e6085 d0072004.mdio-mii:00: switch 0x1720 detected: Marvell 88E6172, revision 1
[    1.443907] mvneta_bm d00c8000.bm: Buffer Manager for network controller enabled
[    1.454326] mvneta d0070000.ethernet eth0: Using device tree mac address 00:e0:4d:3c:b7:18
[    1.462841] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.469405] ehci-platform: EHCI generic platform driver
[    1.474747] ehci-orion: EHCI orion driver
[    1.478926] orion-ehci d0058000.usb: EHCI Host Controller
[    1.484369] orion-ehci d0058000.usb: new USB bus registered, assigned bus number 1
[    1.492027] orion-ehci d0058000.usb: irq 45, io mem 0xd0058000
[    1.519431] orion-ehci d0058000.usb: USB 2.0 started, EHCI 1.00
[    1.525752] hub 1-0:1.0: USB hub found
[    1.529746] hub 1-0:1.0: 1 port detected
[    1.534267] usbcore: registered new interface driver usb-storage
[    1.540841] armada38x-rtc d00a3800.rtc: registered as rtc0
[    1.546421] armada38x-rtc d00a3800.rtc: setting system clock to 2003-08-17T08:39:27 UTC (1061109567)
[    1.555777] i2c_dev: i2c /dev entries driver
[    1.562692] orion_wdt: Initial timeout 171 sec
[    1.567436] sdhci: Secure Digital Host Controller Interface driver
[    1.573674] sdhci: Copyright(c) Pierre Ossman
[    1.578170] sdhci-pltfm: SDHCI platform and OF driver helper
[    1.589004] marvell-cesa d0090000.crypto: CESA device successfully registered
[    1.596809] NET: Registered PF_INET6 protocol family
[    1.603097] Segment Routing with IPv6
[    1.606809] In-situ OAM (IOAM) with IPv6
[    1.610835] NET: Registered PF_PACKET protocol family
[    1.616270] 8021q: 802.1Q VLAN Support v1.8
[    1.620542] Registering SWP/SWPB emulation handler
[    1.629518] mv88e6085 d0072004.mdio-mii:00: switch 0x1720 detected: Marvell 88E6172, revision 1
[    1.819390] usb 1-1: new high-speed USB device number 2 using orion-ehci
[    2.020176] hub 1-1:1.0: USB hub found
[    2.024130] hub 1-1:1.0: 2 ports detected
[    2.085576] mv88e6085 d0072004.mdio-mii:00: configuring for fixed/rgmii-id link mode
[    2.096704] mv88e6085 d0072004.mdio-mii:00: Link is Up - 1Gbps/Full - flow control off
[    2.197108] mv88e6085 d0072004.mdio-mii:00 ge1_0 (uninitialized): PHY [mv88e6xxx-1:00] driver [Marvell 88E1540] (irq=62)
[    2.311352] mv88e6085 d0072004.mdio-mii:00 ge1_1 (uninitialized): PHY [mv88e6xxx-1:01] driver [Marvell 88E1540] (irq=63)
[    2.419169] mv88e6085 d0072004.mdio-mii:00 ge1_2 (uninitialized): PHY [mv88e6xxx-1:02] driver [Marvell 88E1540] (irq=64)
[    2.531349] mv88e6085 d0072004.mdio-mii:00 ge1_3 (uninitialized): PHY [mv88e6xxx-1:03] driver [Marvell 88E1540] (irq=65)
[    2.639227] mv88e6085 d0072004.mdio-mii:00 ge0 (uninitialized): PHY [mv88e6xxx-1:04] driver [Marvell 88E1540] (irq=66)
[    2.653419] DSA: tree 0 setup
[    2.680484] VFS: Mounted root (squashfs filesystem) readonly on device 31:5.
[    2.688365] Freeing unused kernel image (initmem) memory: 1024K
[    2.694575] Run /sbin/init as init process
[    3.567347] init: Console is alive
[    3.570927] init: - watchdog -
[    5.646326] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    5.743371] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    5.753290] init: - preinit -
[    7.835269] random: jshn: uninitialized urandom read (4 bytes read)
[    7.945738] random: jshn: uninitialized urandom read (4 bytes read)
[    7.965435] random: jshn: uninitialized urandom read (4 bytes read)
[    8.751669] mvneta d0070000.ethernet eth0: configuring for fixed/rgmii link mode
[    8.759699] mvneta d0070000.ethernet eth0: Link is Up - 1Gbps/Full - flow control off
[    8.767585] mv88e6085 d0072004.mdio-mii:00 ge1_0: configuring for phy/gmii link mode
[    8.777979] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
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
[   10.980081] mount_root: jffs2 not ready yet, using temporary tmpfs overlay
[   11.002544] urandom-seed: Seed file not found (/etc/urandom.seed)
[   11.122461] procd: - early -
[   11.125424] procd: - watchdog -
[   11.764857] procd: - watchdog -
[   11.768237] procd: - ubus -
[   11.876687] random: ubusd: uninitialized urandom read (4 bytes read)
[   11.883810] random: ubusd: uninitialized urandom read (4 bytes read)
[   11.975926] random: ubusd: uninitialized urandom read (4 bytes read)
[   11.984184] procd: - init -
Please press Enter to activate this console.
[   12.912244] random: jshn: uninitialized urandom read (4 bytes read)
[   12.936750] random: ubusd: uninitialized urandom read (4 bytes read)
[   12.949554] random: ubus: uninitialized urandom read (4 bytes read)
[   12.988966] urngd: v1.0.2 started.
[   13.044494] kmodloader: loading kernel modules from /etc/modules.d/*
[   13.157079] random: crng init done
[   13.160530] random: 25 urandom warning(s) missed due to ratelimiting
[   13.252877] Loading modules backported from Linux version v6.1-rc8-0-g76dcd734eca2
[   13.260508] Backport generated by backports.git v5.15.81-1-41-g02e352527db5
[   13.687146] PPP generic driver version 2.4.2
[   13.692933] NET: Registered PF_PPPOX protocol family
[   13.707289] ath10k 5.15 driver, optimized for CT firmware, probing pci device: 0x3c.
[   13.715488] pci 0000:00:03.0: enabling device (0140 -> 0142)
[   13.721222] ath10k_pci 0000:02:00.0: enabling device (0140 -> 0142)
[   13.727733] ath10k_pci 0000:02:00.0: pci irq msi oper_irq_mode 2 irq_mode 0 reset_mode 0
[   14.103519] ath10k_pci 0000:02:00.0: qca988x hw2.0 target 0x4100016c chip_id 0x043202ff sub 0000:0000
[   14.112845] ath10k_pci 0000:02:00.0: kconfig debug 0 debugfs 1 tracing 0 dfs 1 testmode 0
[   14.122764] ath10k_pci 0000:02:00.0: firmware ver 10.1-ct-8x-__fW-022-ecad3248 api 2 features wmi-10.x,has-wmi-mgmt-tx,mfp,txstatus-noack,wmi-10.x-CT,ratemask-CT,txrate-CT,get-temp-CT,tx-rc-CT,cust-stats-CT,retry-gt2-CT,txrate2-CT,beacon-cb-CT,wmi-block-ack-CT crc32 3e4cf97f
[   14.172961] ath10k_pci 0000:02:00.0: Loading BDF type 0
[   14.419606] ath10k_pci 0000:02:00.0: board_file api 1 bmi_id N/A crc32 bebc7c08
[   15.279325] ath10k_pci 0000:02:00.0: 10.1 wmi init: vdevs: 16  peers: 127  tid: 256
[   15.296045] ath10k_pci 0000:02:00.0: wmi print 'P 128 V 8 T 410'
[   15.302123] ath10k_pci 0000:02:00.0: wmi print 'msdu-desc: 1424  sw-crypt: 0 ct-sta: 0'
[   15.310165] ath10k_pci 0000:02:00.0: wmi print 'alloc rem: 24984 iram: 38672'
[   15.373658] ath10k_pci 0000:02:00.0: htt-ver 2.1 wmi-op 2 htt-op 2 cal otp max-sta 128 raw 0 hwcrypto 1
[   15.383377] ath10k_pci 0000:02:00.0: NOTE:  Firmware DBGLOG output disabled in debug_mask: 0x10000000
[   15.532803] pci 0000:00:01.0: enabling device (0140 -> 0142)
[   15.538503] ath9k 0000:01:00.0: enabling device (0140 -> 0142)
[   15.644808] ieee80211 phy1: Atheros AR9287 Rev:2 mem=0xd0c80000, irq=81
[   15.654475] ath10k_pci 0000:02:00.0: DFS region 0x0 not supported, will trigger radar for every pulse
[   15.999865] kmodloader: done loading kernel modules from /etc/modules.d/*
[   33.774300] mvneta d0070000.ethernet eth0: Link is Down
[   33.795897] mvneta d0070000.ethernet eth0: configuring for fixed/rgmii link mode
[   33.803677] mvneta d0070000.ethernet eth0: Link is Up - 1Gbps/Full - flow control off
[   33.826372] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   33.848491] mv88e6085 d0072004.mdio-mii:00 ge1_0: configuring for phy/gmii link mode
[   33.879970] br-lan: port 1(ge1_0) entered blocking state
[   33.885324] br-lan: port 1(ge1_0) entered disabled state
[   33.932226] device ge1_0 entered promiscuous mode
[   33.936961] device eth0 entered promiscuous mode
[   34.069910] mv88e6085 d0072004.mdio-mii:00 ge1_1: configuring for phy/gmii link mode
[   34.099026] br-lan: port 2(ge1_1) entered blocking state
[   34.104412] br-lan: port 2(ge1_1) entered disabled state
[   34.176390] device ge1_1 entered promiscuous mode
[   34.188374] jffs2_scan_eraseblock(): End of filesystem marker found at 0x0
[   34.215252] jffs2_build_filesystem(): unlocking the mtd device... 
[   34.215262] done.
[   34.223434] jffs2_build_filesystem(): erasing all blocks after the end marker... 
[   34.226063] mv88e6085 d0072004.mdio-mii:00 ge1_2: configuring for phy/gmii link mode
[   34.318906] br-lan: port 3(ge1_2) entered blocking state
[   34.324286] br-lan: port 3(ge1_2) entered disabled state
[   34.369661] device ge1_2 entered promiscuous mode
[   34.388467] mv88e6085 d0072004.mdio-mii:00 ge1_3: configuring for phy/gmii link mode
[   34.536144] br-lan: port 4(ge1_3) entered blocking state
[   34.541535] br-lan: port 4(ge1_3) entered disabled state
[   34.604326] device ge1_3 entered promiscuous mode
[   34.639419] mv88e6085 d0072004.mdio-mii:00 ge0: configuring for phy/gmii link mode
[   38.135669] mv88e6085 d0072004.mdio-mii:00 ge0: Link is Up - 1Gbps/Full - flow control rx/tx
[   38.144192] IPv6: ADDRCONF(NETDEV_CHANGE): ge0: link becomes ready
[   63.117643] done.
[   63.119596] jffs2: notice: (2257) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
[   63.272817] overlayfs: upper fs does not support tmpfile.
 
 
 
BusyBox v1.36.0 (2023-02-11 07:41:35 UTC) built-in shell (ash)
 
  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 -----------------------------------------------------
 OpenWrt SNAPSHOT, r22041+7-b932285141
 -----------------------------------------------------
=== 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:/# ubus call system board
{
        "kernel": "5.15.92",
        "hostname": "OpenWrt",
        "system": "ARMv7 Processor rev 1 (v7l)",
        "model": "IIJ SA-W2",
        "board_name": "iij,sa-w2",
        "rootfs_type": "squashfs",
        "release": {
                "distribution": "OpenWrt",
                "version": "SNAPSHOT",
                "revision": "r22041+7-b932285141",
                "target": "mvebu/cortexa9",
                "description": "OpenWrt SNAPSHOT r22041+7-b932285141"
        }
}
root@OpenWrt:/# 
1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.