大破雑記帳

個人用メモな雑記ブログ いろんなことをざっくりと。

WG1800HP2 stock -> OpenWrt

WG1400HPからの差分のみなので、さっくりサポートを追加してテスト。

#### cwm_action_mac40to20: ht40 -> ht20
#### osif_vap_init_sub: IEEE80211_F_COEXT_DISABLE skip wlan_determine_cw()
mlme_create_infra_bss : Overriding HT40 channel with HT20 channel
#### cwm_action_mac40to20: ht40 -> ht20
#### osif_vap_init_sub: IEEE80211_F_COEXT_DISABLE skip wlan_determine_cw()
mlme_create_infra_bss : Overriding HT40 channel with HT20 channel
#### cwm_action_mac40to20: ht40 -> ht20
#### osif_vap_init_sub: IEEE80211_F_COEXT_DISABLE skip wlan_determine_cw()
mlme_create_infra_bss : Overriding HT40 channel with HT20 channel
#### cwm_action_mac40to20: ht40 -> ht20
#### osif_vap_init_sub: IEEE80211_F_COEXT_DISABLE skip wlan_determine_cw()
mlme_create_infra_bss : Overriding HT40 channel with HT20 channel
#### cwm_action_mac40to20: ht40 -> ht20
#### osif_vap_init_sub: IEEE80211_F_COEXT_DISABLE skip wlan_determine_cw()
mlme_create_infra_bss : Overriding HT40 channel with HT20 channel
#### cwm_action_mac40to20: ht40 -> ht20
#### osif_vap_init_sub: IEEE80211_F_COEXT_DISABLE skip wlan_determine_cw()
wmi_unified_vdev_stop_send for vap 0 (0xc02e9000)
beacon buffer av_wbuf is NULL - Ignoring SWBA event 
STOPPED EVENT for vap 0 (0xc02e9000)
OL vap_start +
wmi_unified_vdev_start_send for vap 0 (0xc02e9000)
OL vap_start -
ol_vdev_start_resp_ev for vap 0 (0xc02e9000)
ol_ath_vap_join: join operation is only for STA/IBSS mode
ol_ath_wmm_update:
ol_if_dfs_configure: called
ol_if_dfs_configure: MKK4 domain
ol_if_dfs_disable: called
ol_ath_vap_set_param: VAP param is now supported param:11 value:3
wmi_unified_vdev_up_send for vap 0 (0xc02e9000)
Notification to UMAC VAP layer
wmi_unified_vdev_stop_send for vap 0 (0xc02e9000)
STOPPED EVENT for vap 0 (0xc02e9000)
OL vap_start +
wmi_unified_vdev_start_send for vap 0 (0xc02e9000)
OL vap_start -
ol_vdev_start_resp_ev for vap 0 (0xc02e9000)
ol_ath_vap_join: join operation is only for STA/IBSS mode
ol_if_dfs_configure: called
ol_if_dfs_configure: MKK4 domain
ol_if_dfs_disable: called
ol_ath_vap_set_param: VAP param is now supported param:11 value:3
wmi_unified_vdev_up_send for vap 0 (0xc02e9000)
Notification to UMAC VAP layer
wmi_unified_vdev_stop_send for vap 0 (0xc02e9000)
STOPPED EVENT for vap 0 (0xc02e9000)
OL vap_start +
wmi_unified_vdev_start_send for vap 0 (0xc02e9000)
OL vap_start -
ol_vdev_start_resp_ev for vap 0 (0xc02e9000)
ol_ath_vap_join: join operation is only for STA/IBSS mode
ol_ath_wmm_update:
ol_if_dfs_configure: called
ol_if_dfs_configure: MKK4 domain
ol_if_dfs_disable: called
ol_ath_vap_set_param: VAP param is now supported param:11 value:3
wmi_unified_vdev_up_send for vap 0 (0xc02e9000)
Notification to UMAC VAP layer
wmi_unified_vdev_stop_send for vap 0 (0xc02e9000)
STOPPED EVENT for vap 0 (0xc02e9000)
OL vap_start +
wmi_unified_vdev_start_send for vap 0 (0xc02e9000)
OL vap_start -
ol_vdev_start_resp_ev for vap 0 (0xc02e9000)
ol_ath_vap_join: join operation is only for STA/IBSS mode
ol_ath_wmm_update:
ol_if_dfs_configure: called
ol_if_dfs_configure: MKK4 domain
ol_if_dfs_disable: called
ol_ath_vap_set_param: VAP param is now supported param:11 value:3
wmi_unified_vdev_up_send for vap 0 (0xc02e9000)
Notification to UMAC VAP layer
vap_down 0
vap_down 0
FWLOG: [247547] WAL_DBGID_SECURITY_MCAST_KEY_SET ( 0x1 )
mlme_create_infra_bss : Overriding HT40 channel with HT20 channel
#### cwm_action_mac40to20: ht40 -> ht20
#### osif_vap_init_sub: IEEE80211_F_COEXT_DISABLE skip wlan_determine_cw()
vap_down 0
wmi_unified_vdev_stop_send for vap 0 (0xc02e9000)
beacon buffer av_wbuf is NULL - Ignoring SWBA event 
STOPPED EVENT for vap 0 (0xc02e9000)
vap_down 1

NetBSD/scorpimips (Amnesiac) (console)

login: s/w clock, h/w clock diff
 s/w real_time 1420038217 sec
 h/w RTC       1420038221 sec

IPL:SOFT-RESET
memory test ... ok
flinstall OK

boot version: 1.0.0

PKG "3x3LIGHTNING"
CPU "Atheros/QCA9558"
Revision 113.0 CLOCK 720.0 MHz
HEAP MEMORY 262144 bytes
Boot:InitFilesystem
RGMII calibration GE0 ... ETH_CFG: 00028001 ETH_XMII: 96000000
phy0.0: "Atheros/AR8327(phy)"
phy0.1: "Atheros/AR8327(SW)"
active ch:1
now booting Firmware ...
loaded Firmware
NEC Aterm series (QCA9558)

Calibrating SGMII
SGMII cal value = 0xe

Configuring SGMII force mode
  SGMII_CONFIG : 0x000000a2
  MR_AN_CONTROL: 0x00008140
  MR_AN_CONTROL: 0x00000140


OpenWrt kernel loader for AR7XXX/AR9XXX
Copyright (C) 2011 Gabor Juhos <juhosg@openwrt.org>
Decompressing kernel... done!
Starting kernel at 80060000...

[    0.000000] Linux version 6.6.35 (musashino205@TAIHA.NET) (mips-openwrt-linux-musl-gcc (OpenWrt GCC 13.3.0 r26434+140-0a861a0c0f) 13.3.0, GNU ld (GNU Binutils) 2.42) #0 Sat Jun 29 13:33:01 2024
[    0.000000] printk: bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 00019750 (MIPS 74Kc)
[    0.000000] MIPS: machine is NEC Aterm WG1800HP2
[    0.000000] SoC: Qualcomm Atheros QCA9558 ver 1 rev 0
[    0.000000] Initrd not found or empty - disabling initrd
[    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] Kernel command line: rootfstype=squashfs,jffs2
[    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=00000000
[    0.000000] Readback ErrCtl register=00000000
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 32480
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 104372K/131072K available (6152K kernel code, 597K rwdata, 1424K rodata, 16968K init, 204K bss, 26700K reserved, 0K cma-reserved)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS: 51
[    0.000000] CPU clock: 720.000 MHz
[    0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 5309056796 ns
[    0.000001] sched_clock: 32 bits at 360MHz, resolution 2ns, wraps every 5965232126ns
[    0.092768] Calibrating delay loop... 358.80 BogoMIPS (lpj=1794048)
[    0.227751] pid_max: default: 32768 minimum: 301
[    0.292871] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.380340] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.481388] RCU Tasks Trace: Setting shift to 0 and lim to 1 rcu_task_cb_adjust=1.
[    0.576615] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.694228] futex hash table entries: 256 (order: -1, 3072 bytes, linear)
[    0.778076] pinctrl core: initialized pinctrl subsystem
[    0.842738] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    0.931435] clocksource: Switched to clocksource MIPS
[    1.002728] NET: Registered PF_INET protocol family
[    1.061265] IP idents hash table entries: 2048 (order: 2, 16384 bytes, linear)
[    1.148455] tcp_listen_portaddr_hash hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    1.249506] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    1.342139] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    1.433759] TCP bind hash table entries: 1024 (order: 1, 8192 bytes, linear)
[    1.518138] TCP: Hash tables configured (established 1024 bind 1024)
[    1.594264] UDP hash table entries: 256 (order: 0, 4096 bytes, linear)
[    1.672379] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes, linear)
[    1.756358] NET: Registered PF_UNIX/PF_LOCAL protocol family
[    1.824139] PCI: CLS 0 bytes, default 32
[    1.901602] workingset: timestamp_bits=14 max_order=15 bucket_order=1
[    1.980300] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    2.050077] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    2.380951] pinctrl-single 1804002c.pinmux: 544 pins, size 68
[    2.450649] gpio gpiochip0: Static allocation of GPIO base is deprecated, use dynamic allocation.
[    2.558123] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
[    2.635130] printk: console [ttyS0] disabled
[    2.686797] 18020000.uart: ttyS0 at MMIO 0x18020000 (irq = 11, base_baud = 2500000) is a 16550A
[    2.790904] printk: console [ttyS0] enabled
[    2.790904] printk: console [ttyS0] enabled
[    2.890888] printk: bootconsole [early0] disabled
[    2.890888] printk: bootconsole [early0] disabled
[    3.022765] spi-nor spi0.0: mx25l12805d (16384 Kbytes)
[    3.084391] 4 fixed-partitions partitions found on MTD device spi0.0
[    3.160399] OF: Bad cell count for /ahb/spi@1f000000/flash@0/partitions
[    3.239516] OF: Bad cell count for /ahb/spi@1f000000/flash@0/partitions
[    3.318894] Creating 4 MTD partitions on "spi0.0":
[    3.376191] 0x000000000000-0x000000020000 : "bootloader"
[    3.442842] 0x000000020000-0x000000030000 : "config"
[    3.504204] OF: Bad cell count for /ahb/spi@1f000000/flash@0/partitions
[    3.583712] 0x000000030000-0x000000040000 : "art"
[    3.642351] OF: Bad cell count for /ahb/spi@1f000000/flash@0/partitions
[    3.721848] 0x000000040000-0x000001000000 : "firmware"
[    4.166812] switch0: Atheros AR8327 rev. 4 switch registered on mdio.0
[    4.890916] ag71xx 19000000.eth: connected to PHY at mdio.0:00 [uid=004dd034, driver=Atheros AR8216/AR8236/AR8316]
[    5.015422] eth0: Atheros AG71xx at 0xb9000000, irq 4, mode: rgmii
[    5.442155] ag71xx 1a000000.eth: connected to PHY at fixed-0:00 [uid=00000000, driver=Generic PHY]
[    5.550065] eth1: Atheros AG71xx at 0xba000000, irq 5, mode: sgmii
[    5.624385] i2c_dev: i2c /dev entries driver
[    5.677726] NET: Registered PF_INET6 protocol family
[    5.744258] Segment Routing with IPv6
[    5.788152] In-situ OAM (IOAM) with IPv6
[    5.835257] NET: Registered PF_PACKET protocol family
[    5.895730] 8021q: 802.1Q VLAN Support v1.8
[    5.961557] PCI host bridge to bus 0000:00
[    6.010503] pci_bus 0000:00: root bus resource [mem 0x10000000-0x11ffffff]
[    6.092744] pci_bus 0000:00: root bus resource [io  0x0000]
[    6.159410] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[    6.254212] pci 0000:00:00.0: [168c:003c] type 00 class 0x028000
[    6.326061] pci 0000:00:00.0: reg 0x10: [mem 0x10000000-0x101fffff 64bit]
[    6.407311] pci 0000:00:00.0: reg 0x30: [mem 0x00000000-0x0000ffff pref]
[    6.487600] pci 0000:00:00.0: supports D1
[    6.535576] pci 0000:00:00.0: PME# supported from D0 D1 D3hot
[    6.605694] pci_bus 0000:00: busn_res: [bus 00-ff] end is updated to 00
[    6.684855] pci 0000:00:00.0: BAR 0: assigned [mem 0x10000000-0x101fffff 64bit]
[    6.772311] pci 0000:00:00.0: BAR 6: assigned [mem 0x10200000-0x1020ffff pref]
[    6.859849] pca953x 0-0020: supply vcc not found, using dummy regulator
[    6.939282] pca953x 0-0020: using no AI
[    6.988346] i2c-gpio i2c: using lines 20 (SDA) and 19 (SCL)
[    7.095903] clk: Disabling unused clocks
[    7.205482] Freeing unusedrnel image (mem) memory: 68K
[    7.266915] This architect does not haernel memory tection.
[    7.332214] Run /init as  process
[    8.055375] init: Console alive
[    8.093294] init: - watchd-
[    8.387249] usbcore: regied new deviceiver usbusbfs[    8.332126] usbcore: regied new interf driver hubc/les-boot.d/*
[    8.445601] gpio_button_houg: loading of-tree modulaints kernel[    8.523431] ehci-platform 00000.usb: EHost Controll
                                                                                                                        [    8.580800] ehci-platform 00000.usb: neSB bus regisd, assigned bnumber 1
[    8.659239] ehci-platform00000.usb: ir4, io mem 0x0000
[    8.751454] ehci-platform 00000.usb: U.0 started, E 1.00
[    8.816389] hub 1-0:1.0: Uhub found
[    8.856299] hub 1-0:1.0: rt detected
[    8.901752] kmodloader: doloading kernodules from //modules-boo*
[    8.984301] init: - preini
[    9.231536] usb 1-1: new h-speed USB de number 2 us ehci-platfo[    9.501952] hub 1-1:1.0: Uhub found
[    9.560999] hub 1-1:1.0: 4rts detected[   10.851469] random: crng i done
[   12.520174] eth1: link up 00Mbps/Full ex)
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
[   14.732912] eth1: link dow[   14.780307] procd: - early
                                                          [   14.812006] procd: - watch -
[   14.846768] procd: Watchdoas previouslset the syste[   15.465544] procd: - watch -
[   15.500278] procd: Watchdoas previouslset the syste[   15.553777] procd: - ubus[   15.638257] procd: - init Please press Enter to activate this console.
[   16.465642] kmodloader: long kernel mos from /etc/mles.d/*
[   17.581463] Loading moduleackported frinux version 6.15-0-g51f3515c4
[   17.657457] Backport generd by backporit 193becf2
[   18.184591] PPP generic drr version 2.
                                         [   18.332865] NET: RegistereF_PPPOX proto family
[   18.462467] urngd: v1.0.2 rted.
[   18.551860] ath10k 6.7 dri, optimized CT firmware, bing pci dev 0x3c.
[   18.734450] ath10k_pci 0000:00.0: pci legacy oper_imode 1 irq_m0 reset_mode [   22.915158] ath10k_pci 0000:00.0: qca9hw2.0 target 100016c chip0x043202ff su000:0000
[   23.006567] ath10k_pci 000:00.0: kconfdebug 0 debu1 tracing 0 d1 testmode 0[   23.088758] ath10k_pci 0000:00.0: firm ver 10.1-ct-__fW-022-eca8 api 2 featu wmi-10.x,hai-mgmt-tx,mfpstatus-noack-10.x-CT,ratek-CT,txrate-et-temp-CT,tx-CT,cust-staT,retry-gt2-Cxrate2-CT,be-cb-CT,wmi-bl-ack-CT crc34cf97f
[   24.024759] ath10k_pci 0000:00.0: boarle api 1 bmi_N/A crc32 be08
[   25.051821] ath10k_pci 0000:00.0: 10.1 init: vdevs:  peers: 127d: 256
[   25.138099] ath10k_pci 0000:00.0: wmi t 'P 128 V 8 10'
[   25.199774] ath10k_pci 0000:00.0: wmi t 'msdu-desc:24  sw-crypt0ct-sta: 0'
[   25.278114] ath10k_pci 000:00.0: wmi pt 'alloc rem984 iram: 386
[   25.395987] ath10k_pci 0000:00.0: htt-2.1 wmi-op 2 -op 2 cal nvmax-sta 128 r0 hwcrypto 1[   25.487798] ath10k_pci 000:00.0: NOTE:irmware DBGLutput disablen debug_mask10000000
[   25.826208] ieee80211 phy1theros AR955v:0 mem=0x884fa, irq=16
[   25.931843] kmodloader: doloading kernodules from //modules.d/*[   87.665347] eth1: link up 00Mbps/Full ex)
[   87.770407] br-lan: port h1.1) enteredsabled state[   87.825608] eth1.1: enterllmulticast m
[   87.874198] ag71xx 1a00000th eth1: ent allmulticastde
[   87.934879] eth1.1: entereromiscuous mo
                                          [   87.979666] ag71xx 1a00000th eth1: ent promiscuous e
[   88.141128] br-lan: port h1.1) enteredrwarding sta[   88.316582] Atheros AR82168236/AR8316 .0:00: Port 1 up
[   88.378373] Atheros AR82168236/AR8316 .0:00: Port 3 up
[   88.441511] eth0: link up 00Mbps/Full ex)



BusyBox v1.36.1 (2024-06-29 13:33:01 UTC) built-in shell (ash)

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 -----------------------------------------------------
 OpenWrt SNAPSHOT, r26812+25-75081235b8
 -----------------------------------------------------
=== 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:/# ls -al /tmp/
drwxrwxrwt   16 root     root           460 Jun 30 06:28 .
drwxr-xr-x    1 root     root             0 Jan  1  1970 ..
drwx------    2 root     root            40 Jun 29 13:34 .uci
----------    1 root     root             0 Jun 30 06:25 .ujailnoafile
-rw-r--r--    1 root     root             4 Jun 29 13:35 TZ
-rw-r--r--    1 root     root           926 Jan  1  1970 board.json
-rw-r--r--    1 root     root             0 Jun 29 13:35 dhcp.leases
drwxr-xr-x    2 root     root            40 Jun 29 13:35 dnsmasq.d
drwxr-xr-x    3 root     root            80 Jun 30 06:25 etc
drwxr-xr-x    2 root     root            60 Jun 30 06:25 hosts
drwxr-xr-x    3 root     root            60 Jun 29 13:35 lib
drwxrwxrwt    2 root     root           380 Jun 29 13:35 lock
drwxr-xr-x    2 root     root            80 Jun 29 13:34 log
-rw-r--r--    1 root     root       6816547 Jun 30 06:28 openwrt-ath79-generic-nec_wg1800hp2-squashfs-sysupgrade.bin
drwxr-xr-x    2 root     root            40 Jan  1  1970 overlay
-rw-r--r--    1 root     root            47 Jun 30 06:25 resolv.conf
drwxr-xr-x    2 root     root            60 Jun 29 13:35 resolv.conf.d
drwxr-xr-x    7 root     root           260 Jun 30 06:27 run
drwxrwxrwt    2 root     root            40 Jun 29 13:35 shm
drwxr-xr-x    2 root     root            80 Jun 30 06:26 state
drwxr-xr-x    2 root     root            80 Jan  1  1970 sysinfo
drwxr-xr-x    2 root     root            40 Jun 29 13:34 tmp
-rw-r--r--    1 root     root        129776 Jun 30 06:28 u-boot.bin
root@OpenWrt:/# mtd write /tmp/u-boot.bin bootloader
Unlocking bootloader ...

Writing from /tmp/u-boot.bin to bootloader ...     
root@OpenWrt:/# sysupgrade /tmp/openwrt-ath79-generic-nec_wg1800hp2-squashfs-sys
upgrade.bin 
Cannot save config while running from ramdisk.
Sun Jun 30 06:19:08 UTC 2024 upgrade: Commencing upgrade. Closing all shell sessions.
Command failed: Connection faileWatchdog handover: fd=3
- watchdog -
Watchdog has previously reset the system
Sun Jun 30 06:19:10 UTC 2024 upgrade: Sending TERM to remaining processes ...
Sun Jun 30 06:19:14 UTC 2024 upgrade: Sending KILL to remaining processes ...
[  278.481512] stage2 (3238):op_caches: 3Sun Jun 30 06:19:20 UTC 2024 upgrade: Switching to ramdisk...
Sun Jun 30 06:19:22 UTC 2024 upg[  280.878800] do_stage2 (32 drop_caches:
                                                                         rade: Performing system upgrade...
Unlocking firmware ...

Writing from <stdin> to firmware ...
Appending jffs2 data from /tmp/sysupgrade.tgz to firmware..
.File /tmp/sysupgrade.tgz does not exist                                                                                                         
Sun Jun 30 06:20:25 UTC 2024 upgrade: Upgrade completed
**:&+?3 30 06:20:26 UTC 2024 upg[  344.295117] eboot: Restag system
       '3                 <--- U-Boot, シリアルコンソールのbaudrateが9600bpsから115200bpsに切り替わる


              <--- 以下115200に切り替えた場合


U-Boot 2024.07-rc5+ (Jun 29 2024 - 22:35:55 +0900)

DRAM:  128 MiB
Core:  5 devices, 4 uclasses, devicetree: separate
Loading Environment from <NULL>... OK
In:    uart@18020000
Out:   uart@18020000
Err:   uart@18020000
Hit any key to stop autoboot:  0 
## Booting kernel from Legacy Image at 9f040000 ...
   Image Name:   MIPS OpenWrt Linux-6.6.35
   Image Type:   MIPS Linux Kernel Image (uncompressed)
   Data Size:    2543189 Bytes = 2.4 MiB
   Load Address: 80060000
   Entry Point:  80060000
   Verifying Checksum ... OK
   Loading Kernel Image to 80060000
NEC Aterm series (QCA9558)

Calibrating SGMII
SGMII cal value = 0xe

Configuring SGMII force mode
  SGMII_CONFIG : 0x000000a2
  MR_AN_CONTROL: 0x00008140
  MR_AN_CONTROL: 0x00000140


OpenWrt kernel loader for AR7XXX/AR9XXX
Copyright (C) 2011 Gabor Juhos <juhosg@openwrt.org>
Decompressing kernel... done!
Starting kernel at 80060000...

[    0.000000] Linux version 6.6.35 (musashino205@TAIHA.NET) (mips-openwrt-linux-musl-gcc (OpenWrt GCC 13.3.0 r26434+140-0a861a0c0f) 13.3.0, GNU ld (GNU Binutils) 2.42) #0 Sat Jun 29 13:33:01 2024
[    0.000000] printk: bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 00019750 (MIPS 74Kc)
[    0.000000] MIPS: machine is NEC Aterm WG1800HP2
[    0.000000] SoC: Qualcomm Atheros QCA9558 ver 1 rev 0
[    0.000000] Initrd not found or empty - disabling initrd
[    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] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[    0.000000] pcpu-alloc: [0] 0 
[    0.000000] Kernel command line: console=ttyS0,115200 rootfstype=squashfs,jffs2
[    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=00000000
[    0.000000] Readback ErrCtl register=00000000
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 32480
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 120116K/131072K available (6152K kernel code, 597K rwdata, 1424K rodata, 1224K init, 204K bss, 10956K reserved, 0K cma-reserved)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS: 51
[    0.000000] CPU clock: 720.000 MHz
[    0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 5309056796 ns
[    0.000001] sched_clock: 32 bits at 360MHz, resolution 2ns, wraps every 5965232126ns
[    0.008743] Calibrating delay loop... 358.80 BogoMIPS (lpj=1794048)
[    0.075720] pid_max: default: 32768 minimum: 301
[    0.090737] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.098914] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.115885] RCU Tasks Trace: Setting shift to 0 and lim to 1 rcu_task_cb_adjust=1.
[    0.128924] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.139938] futex hash table entries: 256 (order: -1, 3072 bytes, linear)
[    0.150172] pinctrl core: initialized pinctrl subsystem
[    0.158171] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    0.182432] clocksource: Switched to clocksource MIPS
[    0.198894] NET: Registered PF_INET protocol family
[    0.204610] IP idents hash table entries: 2048 (order: 2, 16384 bytes, linear)
[    0.213485] tcp_listen_portaddr_hash hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.222968] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.231614] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.240178] TCP bind hash table entries: 1024 (order: 1, 8192 bytes, linear)
[    0.248078] TCP: Hash tables configured (established 1024 bind 1024)
[    0.255308] UDP hash table entries: 256 (order: 0, 4096 bytes, linear)
[    0.262659] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes, linear)
[    0.271141] NET: Registered PF_UNIX/PF_LOCAL protocol family
[    0.277534] PCI: CLS 0 bytes, default 32
[    0.286286] workingset: timestamp_bits=14 max_order=15 bucket_order=1
[    0.295019] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.301531] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.319134] pinctrl-single 1804002c.pinmux: 544 pins, size 68
[    0.326462] gpio gpiochip0: Static allocation of GPIO base is deprecated, use dynamic allocation.
[    0.337610] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
[    0.345717] printk: console [ttyS0] disabled
[    0.350986] 18020000.uart: ttyS0 at MMIO 0x18020000 (irq = 11, base_baud = 2500000) is a 16550A
[    0.360774] printk: console [ttyS0] enabled
[    0.369684] printk: bootconsole [early0] disabled
[    0.398823] spi-nor spi0.0: mx25l12805d (16384 Kbytes)
[    0.404178] 4 fixed-partitions partitions found on MTD device spi0.0
[    0.410659] OF: Bad cell count for /ahb/spi@1f000000/flash@0/partitions
[    0.417415] OF: Bad cell count for /ahb/spi@1f000000/flash@0/partitions
[    0.424399] Creating 4 MTD partitions on "spi0.0":
[    0.429276] 0x000000000000-0x000000020000 : "bootloader"
[    0.437620] 0x000000020000-0x000000030000 : "config"
[    0.444639] OF: Bad cell count for /ahb/spi@1f000000/flash@0/partitions
[    0.451703] 0x000000030000-0x000000040000 : "art"
[    0.458744] OF: Bad cell count for /ahb/spi@1f000000/flash@0/partitions
[    0.465792] 0x000000040000-0x000001000000 : "firmware"
[    0.473360] 2 uimage-fw partitions found on MTD device firmware
[    0.479390] Creating 2 MTD partitions on "firmware":
[    0.484471] 0x000000000000-0x000000270000 : "kernel"
[    0.491270] 0x000000270000-0x000000fc0000 : "rootfs"
[    0.498033] mtd: setting mtd5 (rootfs) as root device
[    0.503279] 1 squashfs-split partitions found on MTD device rootfs
[    0.509596] 0x000000680000-0x000000fc0000 : "rootfs_data"
[    0.868634] switch0: Atheros AR8327 rev. 4 switch registered on mdio.0
[    1.521777] ag71xx 19000000.eth: connected to PHY at mdio.0:00 [uid=004dd034, driver=Atheros AR8216/AR8236/AR8316]
[    1.532980] eth0: Atheros AG71xx at 0xb9000000, irq 4, mode: rgmii
[    1.874552] ag71xx 1a000000.eth: connected to PHY at fixed-0:00 [uid=00000000, driver=Generic PHY]
[    1.884373] eth1: Atheros AG71xx at 0xba000000, irq 5, mode: sgmii
[    1.890999] i2c_dev: i2c /dev entries driver
[    1.895547] ath79-wdt 18060008.wdt: timeout value must be 0 < timeout < 14, using 14
[    1.905536] NET: Registered PF_INET6 protocol family
[    1.917491] Segment Routing with IPv6
[    1.921298] In-situ OAM (IOAM) with IPv6
[    1.925503] NET: Registered PF_PACKET protocol family
[    1.930682] 8021q: 802.1Q VLAN Support v1.8
[    1.960960] PCI host bridge to bus 0000:00
[    1.965160] pci_bus 0000:00: root bus resource [mem 0x10000000-0x11ffffff]
[    1.972139] pci_bus 0000:00: root bus resource [io  0x0000]
[    1.977811] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[    1.985901] pci 0000:00:00.0: [168c:003c] type 00 class 0x028000
[    1.992030] pci 0000:00:00.0: reg 0x10: [mem 0x00000000-0x001fffff 64bit]
[    1.998980] pci 0000:00:00.0: reg 0x30: [mem 0x00000000-0x0000ffff pref]
[    2.005865] pci 0000:00:00.0: supports D1
[    2.009936] pci 0000:00:00.0: PME# supported from D0 D1 D3hot
[    2.017170] pci_bus 0000:00: busn_res: [bus 00-ff] end is updated to 00
[    2.023956] pci 0000:00:00.0: BAR 0: assigned [mem 0x10000000-0x101fffff 64bit]
[    2.031400] pci 0000:00:00.0: BAR 6: assigned [mem 0x10200000-0x1020ffff pref]
[    2.039848] pca953x 0-0020: supply vcc not found, using dummy regulator
[    2.046870] pca953x 0-0020: using no AI
[    2.053930] i2c-gpio i2c: using lines 20 (SDA) and 19 (SCL)
[    2.099224] clk: Disabling unused clocks
[    2.112751] VFS: Mounted root (squashfs filesystem) readonly on device 31:5.
[    2.124225] Freeing unused kernel image (initmem) memory: 1224K
[    2.130241] This architecture does not have kernel memory protection.
[    2.136803] Run /sbin/init as init process
[    2.140957]   with arguments:
[    2.140962]     /sbin/init
[    2.140968]   with environment:
[    2.140972]     HOME=/
[    2.140977]     TERM=linux
[    2.904291] init: Console is alive
[    2.908085] init: - watchdog -
[    4.436633] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    4.524874] usbcore: registered new interface driver usbfs
[    4.530543] usbcore: registered new interface driver hub
[    4.536066] usbcore: registered new device driver usb
[    4.545238] gpio_button_hotplug: loading out-of-tree module taints kernel.
[    4.564978] ehci-platform 1b000000.usb: EHCI Host Controller
[    4.570755] ehci-platform 1b000000.usb: new USB bus registered, assigned bus number 1
[    4.578899] ehci-platform 1b000000.usb: irq 14, io mem 0x1b000000
[    4.612452] ehci-platform 1b000000.usb: USB 2.0 started, EHCI 1.00
[    4.619991] hub 1-0:1.0: USB hub found
[    4.624413] hub 1-0:1.0: 1 port detected
[    4.633525] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    4.651599] init: - preinit -
[    5.000669] usb 1-1: new high-speed USB device number 2 using ehci-platform
[    5.422515] hub 1-1:1.0: USB hub found
[    5.490899] hub 1-1:1.0: 4 ports detected
[    7.812468] random: crng init done
[    9.900022] eth1: link up (1000Mbps/Full duplex)
[   12.151168] mount_root: jffs2 not ready yet, using temporary tmpfs overlay
[   12.162052] urandom-seed: Seed file not found (/etc/urandom.seed)
[   12.229471] eth1: link down
[   12.257819] procd: - early -
[   12.261028] procd: - watchdog -
[   12.968598] procd: - watchdog -
[   12.972703] procd: - ubus -
[   13.137559] procd: - init -
[   14.773041] kmodloader: loading kernel modules from /etc/modules.d/*
[   15.813285] Loading modules backported from Linux version v6.6.15-0-g51f354b815c4
[   15.820894] Backport generated by backports.git 193becf2
[   16.716568] urngd: v1.0.2 started.
[   16.773120] PPP generic driver version 2.4.2
[   16.783556] NET: Registered PF_PPPOX protocol family
[   16.889176] ath10k 6.7 driver, optimized for CT firmware, probing pci device: 0x3c.
[   16.943270] ath10k_pci 0000:00:00.0: enabling device (0000 -> 0002)
[   16.949821] ath10k_pci 0000:00:00.0: pci irq legacy oper_irq_mode 1 irq_mode 0 reset_mode 0
[   21.123700] ath10k_pci 0000:00:00.0: qca988x hw2.0 target 0x4100016c chip_id 0x043202ff sub 0000:0000
[   21.133111] ath10k_pci 0000:00:00.0: kconfig debug 0 debugfs 1 tracing 0 dfs 1 testmode 0
[   21.145101] ath10k_pci 0000:00: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
[   22.037550] ath10k_pci 0000:00:00.0: board_file api 1 bmi_id N/A crc32 bebc7c08
[   22.999824] ath10k_pci 0000:00:00.0: 10.1 wmi init: vdevs: 16  peers: 127  tid: 256
[   23.016637] ath10k_pci 0000:00:00.0: wmi print 'P 128 V 8 T 410'
[   23.022977] ath10k_pci 0000:00:00.0: wmi print 'msdu-desc: 1424  sw-crypt: 0 ct-sta: 0'
[   23.031106] ath10k_pci 0000:00:00.0: wmi print 'alloc rem: 24984 iram: 38672'
[   23.095005] ath10k_pci 0000:00:00.0: htt-ver 2.1 wmi-op 2 htt-op 2 cal nvmem max-sta 128 raw 0 hwcrypto 1
[   23.105197] ath10k_pci 0000:00:00.0: NOTE:  Firmware DBGLOG output disabled in debug_mask: 0x10000000
[   23.246365] ath: EEPROM regdomain: 0x88
[   23.246388] ath: EEPROM indicates we should expect a direct regpair map
[   23.246401] ath: Country alpha2 being used: JP
[   23.246408] ath: Regpair used: 0x88
[   23.340831] ath: EEPROM regdomain: 0x88
[   23.340855] ath: EEPROM indicates we should expect a direct regpair map
[   23.340869] ath: Country alpha2 being used: JP
[   23.340877] ath: Regpair used: 0x88
[   23.357742] ieee80211 phy1: Selected rate control algorithm 'minstrel_ht'
[   23.358595] ieee80211 phy1: Atheros AR9550 Rev:0 mem=0x7c543c70, irq=16
[   23.398829] kmodloader: done loading kernel modules from /etc/modules.d/*
[   56.420719] jffs2_scan_eraseblock(): End of filesystem marker found at 0x0
[   56.452524] jffs2_build_filesystem(): unlocking the mtd device... 
[   56.452568] done.
[   56.460785] jffs2_build_filesystem(): erasing all blocks after the end marker... 
[   57.696283] eth1: link up (1000Mbps/Full duplex)
[   57.735472] br-lan: port 1(eth1.1) entered blocking state
[   57.740978] br-lan: port 1(eth1.1) entered disabled state
[   57.746535] eth1.1: entered allmulticast mode
[   57.750968] ag71xx 1a000000.eth eth1: entered allmulticast mode
[   57.757230] eth1.1: entered promiscuous mode
[   57.761581] ag71xx 1a000000.eth eth1: entered promiscuous mode
[   57.815052] br-lan: port 1(eth1.1) entered blocking state
[   57.820557] br-lan: port 1(eth1.1) entered forwarding state
[   58.023808] Atheros AR8216/AR8236/AR8316 mdio.0:00: Port 1 is up
[   58.030203] Atheros AR8216/AR8236/AR8316 mdio.0:00: Port 3 is up
[   58.037967] eth0: link up (1000Mbps/Full duplex)
[  127.213251] done.
[  127.215237] jffs2: notice: (2275) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
[  127.430860] overlayfs: upper fs does not support tmpfile.



BusyBox v1.36.1 (2024-06-29 13:33:01 UTC) built-in shell (ash)

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 -----------------------------------------------------
 OpenWrt SNAPSHOT, r26812+25-75081235b8
 -----------------------------------------------------
=== 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": "6.6.35",
        "hostname": "OpenWrt",
        "system": "Qualcomm Atheros QCA9558 ver 1 rev 0",
        "model": "NEC Aterm WG1800HP2",
        "board_name": "nec,wg1800hp2",
        "rootfs_type": "squashfs",
        "release": {
                "distribution": "OpenWrt",
                "version": "SNAPSHOT",
                "revision": "r26812+25-75081235b8",
                "target": "ath79/generic",
                "description": "OpenWrt SNAPSHOT r26812+25-75081235b8"
        }
}
root@OpenWrt:/# ubus call system info
{
        "localtime": 1719728573,
        "uptime": 140,
        "load": [
                85856,
                41024,
                15872
        ],
        "memory": {
                "total": 124252160,
                "free": 78319616,
                "shared": 258048,
                "buffered": 0,
                "available": 65585152,
                "cached": 23216128
        },
        "root": {
                "total": 9472,
                "free": 9052,
                "used": 420,
                "avail": 9052
        },
        "tmp": {
                "total": 60668,
                "free": 60464,
                "used": 204,
                "avail": 60464
        },
        "swap": {
                "total": 0,
                "free": 0
        }
}
root@OpenWrt:/# df -h
Filesystem                Size      Used Available Use% Mounted on
/dev/root                 4.3M      4.3M         0 100% /rom
tmpfs                    59.2M    204.0K     59.0M   0% /tmp
tmpfs                    59.2M     48.0K     59.2M   0% /tmp/root
tmpfs                   512.0K         0    512.0K   0% /dev
/dev/mtdblock6            9.3M    420.0K      8.8M   4% /overlay
overlayfs:/overlay        9.3M    420.0K      8.8M   4% /
root@OpenWrt:/#