大破雑記帳

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

WF1200HP stock -> OpenWrt

U-BootとOpenWrtでざっくりサポート追加したのでテスト(v1.0.5から)

追記: 最新のv1.0.16でも問題無し

最後の df の出力は、USBポートを搭載しているWR8750N等と一緒にビルドした関係上WF1200HPには不要なパッケージもいくらか含まれ、Flash残容量が圧迫されているが、公式ビルドでは含まれない形になる為実際にはもう少し余裕が出る

#### cwm_action_mac40to20: ht40 -> ht20
#### osif_vap_init: IEEE80211_F_COEXT_DISABLE skip wlan_determine_cw()
#### cwm_action_mac40to20: ht40 -> ht20
#### osif_vap_init: IEEE80211_F_COEXT_DISABLE skip wlan_determine_cw()
#### cwm_action_mac40to20: ht40 -> ht20
#### osif_vap_init: IEEE80211_F_COEXT_DISABLE skip wlan_determine_cw()
#### cwm_action_mac40to20: ht40 -> ht20
#### osif_vap_init: IEEE80211_F_COEXT_DISABLE skip wlan_determine_cw()
#### cwm_action_mac40to20: ht40 -> ht20
#### osif_vap_init: IEEE80211_F_COEXT_DISABLE skip wlan_determine_cw()
#### cwm_action_mac40to20: ht40 -> ht20
#### osif_vap_init: IEEE80211_F_COEXT_DISABLE skip wlan_determine_cw()
wmi_unified_vdev_stop_send 
STOPPED EVENT for vap 0 
OL vap_start +
OL vap_start -
ol_vdev_start_resp_ev
ol_ath_vap_join: join operation is only for STA/IBSS mode
ol_ath_wmm_update:
Setting vdev param = 3, value = 100
Setting vdev param = 22, value = 3
ol_ath_vap_set_param: VAP param is now supported param:11 value:3
Notification to UMAC VAP layer
wmi_unified_vdev_stop_send 
STOPPED EVENT for vap 0 
OL vap_start +
OL vap_start -
ol_vdev_start_resp_ev
ol_ath_vap_join: join operation is only for STA/IBSS mode
Setting vdev param = 3, value = 100
Setting vdev param = 22, value = 3
ol_ath_vap_set_param: VAP param is now supported param:11 value:3
Notification to UMAC VAP layer
wmi_unified_vdev_stop_send 
STOPPED EVENT for vap 0 
OL vap_start +
OL vap_start -
ol_vdev_start_resp_ev
ol_ath_vap_join: join operation is only for STA/IBSS mode
ol_ath_wmm_update:
Setting vdev param = 3, value = 100
Setting vdev param = 22, value = 3
ol_ath_vap_set_param: VAP param is now supported param:11 value:3
Notification to UMAC VAP layer
wmi_unified_vdev_install_key_send Setting Key for Macaddress:0x47295aa225c0 
Keyix=1 Keylen=16 Keyflags=1 Cipher=0 
 Keydata=0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 
TXRX: sec spec for peer 0xc0346000 (c0:25:a2:5a:29:47): mcast key of type 0
wmi_unified_vdev_stop_send 
STOPPED EVENT for vap 0 
OL vap_start +
OL vap_start -
ol_vdev_start_resp_ev
ol_ath_vap_join: join operation is only for STA/IBSS mode
ol_ath_wmm_update:
Setting vdev param = 3, value = 100
Setting vdev param = 22, value = 3
ol_ath_vap_set_param: VAP param is now supported param:11 value:3
Notification to UMAC VAP layer
vap_down 0
vap_down 0
#### cwm_action_mac40to20: ht40 -> ht20
#### osif_vap_init: IEEE80211_F_COEXT_DISABLE skip wlan_determine_cw()
vap_down 0
wmi_unified_vdev_stop_send 
STOPPED EVENT for vap 0 
vap_down 34
FWLOG: [282018] WAL_DBGID_SECURITY_MCAST_KEY_SET ( 0x1 )

NetBSD/messimips (Amnesiac) (console)

login: s/w clock, h/w clock diff
 s/w real_time 1388502258 sec
 h/w RTC       1388502261 sec

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

boot version: 1.0.1

PKG "Jelly-HP"
CPU "Atheros/AR9344"
Revision 212.3 CLOCK 560.0 MHz
HEAP MEMORY 262144 bytes
Boot:InitFilesystem
phy1.0: "Atheros/AR934x(SW)"
phy1.4: "Atheros/AR934x(phy)"
active ch:1
now booting Firmware ...
loaded Firmware
NEC Aterm series (AR9344)


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.12.51 (musashino205@TAIHA.NET) (mips-openwrt-linux-musl-gcc (OpenWrt GCC 14.3.0 r30367-a89eced3ab) 14.3.0, GNU ld (GNU Binutils) 2.44) #0 Thu Oct 30 11:53:04 2025
[    0.000000] printk: legacy bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 0001974c (MIPS 74Kc)
[    0.000000] MIPS: machine is NEC Aterm WF1200HP
[    0.000000] SoC: Atheros AR9344 rev 3
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] OF: reserved mem: Reserved memory: No reserved-memory node in the DT
[    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: 32768
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] RCU Tasks Trace: Setting shift to 0 and lim to 1 rcu_task_cb_adjust=1 rcu_task_cpu_ids=1.
[    0.000000] NR_IRQS: 51
[    0.000000] CPU clock: 560.000 MHz
[    0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 6825930166 ns
[    0.000001] sched_clock: 32 bits at 280MHz, resolution 3ns, wraps every 7669584382ns
[    0.092853] Calibrating delay loop... 278.93 BogoMIPS (lpj=1394688)
[    0.237628] pid_max: default: 32768 minimum: 301
[    0.302793] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.390318] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.494966] Memory: 103768K/131072K available (4796K kernel code, 544K rwdata, 768K rodata, 19292K init, 197K bss, 26808K reserved, 0K cma-reserved)
[    0.660102] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.777768] futex hash table entries: 256 (order: -1, 3072 bytes, linear)
[    0.864931] pinctrl core: initialized pinctrl subsystem
[    0.930761] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    1.020566] clocksource: Switched to clocksource MIPS
[    1.094771] NET: Registered PF_INET protocol family
[    1.153530] IP idents hash table entries: 2048 (order: 2, 16384 bytes, linear)
[    1.241200] tcp_listen_portaddr_hash hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    1.342301] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    1.435032] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    1.526649] TCP bind hash table entries: 1024 (order: 1, 8192 bytes, linear)
[    1.611024] TCP: Hash tables configured (established 1024 bind 1024)
[    1.687183] UDP hash table entries: 256 (order: 0, 4096 bytes, linear)
[    1.765378] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes, linear)
[    1.849697] NET: Registered PF_UNIX/PF_LOCAL protocol family
[    1.917559] PCI: CLS 0 bytes, default 32
[    2.001083] workingset: timestamp_bits=30 max_order=15 bucket_order=0
[    2.079063] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    2.148894] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    2.525427] pinctrl-single 1804002c.pinmux: 544 pins, size 68
[    2.595959] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
[    2.673538] printk: legacy console [ttyS0] disabled
[    2.732860] 18020000.uart: ttyS0 at MMIO 0x18020000 (irq = 11, base_baud = 2500000) is a 16550A
[    2.837115] printk: legacy console [ttyS0] enabled
[    2.837115] printk: legacy console [ttyS0] enabled
[    2.951731] printk: legacy bootconsole [early0] disabled
[    2.951731] printk: legacy bootconsole [early0] disabled
[    3.092390] 4 fixed-partitions partitions found on MTD device spi0.0
[    3.168576] OF: Bad cell count for /ahb/spi@1f000000/flash@0/partitions
[    3.247745] OF: Bad cell count for /ahb/spi@1f000000/flash@0/partitions
[    3.327226] Creating 4 MTD partitions on "spi0.0":
[    3.384624] 0x000000000000-0x000000020000 : "bootloader"
[    3.451060] 0x000000020000-0x000000030000 : "config"
[    3.512360] OF: Bad cell count for /ahb/spi@1f000000/flash@0/partitions
[    3.592011] 0x000000030000-0x000000040000 : "art"
[    3.650474] OF: Bad cell count for /ahb/spi@1f000000/flash@0/partitions
[    3.730167] 0x000000040000-0x000000800000 : "firmware"
[    3.897361] mtdsplit_uimage: no uImage found in "firmware"
[    4.281702] ag71xx-legacy 19000000.eth: Could not connect to PHY device. Deferring probe.
[    5.089046] switch0: Atheros AR8229 rev. 1 switch registered on mdio.0
[    5.233936] ag71xx-legacy 1a000000.eth: connected to PHY at fixed-0:00 [uid=00000000, driver=Generic PHY]
[    5.349551] eth0: Atheros AG71xx at 0xba000000, irq 5, mode: gmii
[    5.426113] NET: Registered PF_INET6 protocol family
[    5.492050] Segment Routing with IPv6
[    5.536009] In-situ OAM (IOAM) with IPv6
[    5.583209] NET: Registered PF_PACKET protocol family
[    5.643744] 8021q: 802.1Q VLAN Support v1.8
[    5.715190] PCI host bridge to bus 0000:00
[    5.764273] pci_bus 0000:00: root bus resource [mem 0x10000000-0x13ffffff]
[    5.846589] pci_bus 0000:00: root bus resource [io  0x0000]
[    5.913253] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[    6.008083] pci 0000:00:00.0: [168c:003c] type 00 class 0x028000 PCIe Endpoint
[    6.094571] pci 0000:00:00.0: BAR 0 [mem 0x10000000-0x101fffff 64bit]
[    6.171765] pci 0000:00:00.0: ROM [mem 0x00000000-0x0000ffff pref]
[    6.245838] pci 0000:00:00.0: supports D1
[    6.293788] pci 0000:00:00.0: PME# supported from D0 D1 D3hot
[    6.364211] pci_bus 0000:00: busn_res: [bus 00-ff] end is updated to 00
[    6.443389] pci 0000:00:00.0: BAR 0 [mem 0x10000000-0x101fffff 64bit]: assigned
[    6.530940] pci 0000:00:00.0: ROM [mem 0x10200000-0x1020ffff pref]: assigned
[    7.001649] ag71xx-legacy 19000000.eth: connected to PHY at mdio.0:1f:04 [uid=004dd042, driver=Qualcomm Atheros QCA9561 built-in PHY]
[    7.146773] eth1: Atheros AG71xx at 0xb9000000, irq 4, mode: mii
[    7.222478] clk: Disabling unused clocks
[    7.361249] Freeing unused kernel image (initmem) memory: 19292K
[    7.433131] This architecture does not have kernel memory protection.
[    7.510177] Run /init as init process
[    8.400191] init: Console is alive
[    8.441493] init: - watchdog -
[    8.478483] init: Watchdog has previously reset the system
[    8.577508] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    8.678193] usbcore: registered new interface driver usbfs
[    8.744061] usbcore: registered new interface driver hub
[    8.807751] usbcore: registered new device driver usb
[    8.937580] gpio_button_hotplug: loading out-of-tree module taints kernel.
[    9.040281] SCSI subsystem initialized
[    9.103641] usbcore: registered new interface driver usb-storage
[    9.176932] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    9.274113] init: - preinit -
[   12.220614] random: crng init done
[   13.062583] eth0: link up (1000Mbps/Full duplex)
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
[   17.359421] eth0: link down
[   17.420537] procd: - early -
[   17.455508] procd: - watchdog -
[   17.493478] procd: Watchdog has previously reset the system
[   18.137090] procd: - watchdog -
[   18.175054] procd: Watchdog has previously reset the system
[   18.244352] procd: - ubus -
[   18.336317] procd: - init -
Please press Enter to activate this console.
[   19.437578] kmodloader: loading kernel modules from /etc/modules.d/*
[   20.713243] i2c_dev: i2c /dev entries driver
[   20.827565] Loading modules backported from Linux version v6.16-0-g038d61fd6422
[   20.915123] Backport generated by backports.git v6.1.145-1-47-g6194bf852a3e
[   21.650631] PPP generic driver version 2.4.2
[   21.812010] NET: Registered PF_PPPOX protocol family
[   21.907941] urngd: v1.0.2 started.
[   22.056341] ath10k 6.14 driver, optimized for CT firmware, probing pci device: 0x3c.
[   22.351818] ath10k_pci 0000:00:00.0: pci irq legacy oper_irq_mode 1 irq_mode 0 reset_mode 0
[   26.043881] ath10k_pci 0000:00:00.0: qca988x hw2.0 target 0x4100016c chip_id 0x043222ff sub 0000:0000
[   26.154331] ath10k_pci 0000:00:00.0: kconfig debug 0 debugfs 1 tracing 0 dfs 1 testmode 0
[   26.255051] ath10k_pci 0000:00:00.0: firmware ver 10.1-ct-8x-__fW-023-23ea9f8e api 2 features wmi-10.x,has-wmi-mgmt-tx,mfp,peer-fixed-rate,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 42c82ae5
[   27.095111] ath10k_pci 0000:00:00.0: board_file api 1 bmi_id N/A crc32 bebc7c08
[   28.122487] ath10k_pci 0000:00:00.0: 10.1 wmi init: vdevs: 16  peers: 127  tid: 256
[   28.224254] ath10k_pci 0000:00:00.0: wmi print 'P 128 V 8 T 410'
[   28.296235] ath10k_pci 0000:00:00.0: wmi print 'msdu-desc: 1424  sw-crypt: 0 ct-sta: 0'
[   28.392047] ath10k_pci 0000:00:00.0: wmi print 'alloc rem: 23808 iram: 38144'
[   28.519576] 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
[   28.634776] ath10k_pci 0000:00:00.0: NOTE:  Firmware DBGLOG output disabled in debug_mask: 0x10000000
[   28.988090] ieee80211 phy1: Atheros AR9340 Rev:3 mem=0xa9897795, irq=17
[   29.151099] kmodloader: done loading kernel modules from /etc/modules.d/*
[   61.297570] eth0: link up (1000Mbps/Full duplex)
[   61.364938] br-lan: port 1(eth0.1) entered blocking state
[   61.429662] br-lan: port 1(eth0.1) entered disabled state
[   61.494343] eth0.1: entered allmulticast mode
[   61.546511] ag71xx-legacy 1a000000.eth eth0: entered allmulticast mode
[   61.624936] eth0.1: entered promiscuous mode
[   61.676112] ag71xx-legacy 1a000000.eth eth0: entered promiscuous mode
[   61.980826] br-lan: port 1(eth0.1) entered blocking state
[   62.045527] br-lan: port 1(eth0.1) entered forwarding state
[   64.463577] eth1: link up (100Mbps/Full duplex)



BusyBox v1.37.0 (2025-10-30 11:53:04 UTC) built-in shell (ash)

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 -----------------------------------------------------
 OpenWrt SNAPSHOT, r31466+2-73fe1b8257
 -----------------------------------------------------
=== 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.
--------------------------------------------------

 OpenWrt recently switched to the "apk" package manager!

 OPKG Command           APK Equivalent      Description
 ------------------------------------------------------------------
 opkg install <pkg>     apk add <pkg>       Install a package
 opkg remove <pkg>      apk del <pkg>       Remove a package
 opkg upgrade           apk upgrade         Upgrade all packages
 opkg files <pkg>       apk info -L <pkg>   List package contents
 opkg list-installed    apk info            List installed packages
 opkg update            apk update          Update package lists
 opkg search <pkg>      apk search <pkg>    Search for packages
 ------------------------------------------------------------------

For more https://openwrt.org/docs/guide-user/additional-software/opkg-to-apk-cheatsheet

root@OpenWrt:~# vi /etc/config/firewall 
root@OpenWrt:~# /etc/init.d/firewall reload
root@OpenWrt:~# ls -al /tmp/openwrt-ath79-tiny-*.bin
-rw-r--r--    1 root     root       6413160 Oct 30 17:49 /tmp/openwrt-ath79-tiny-nec_wf1200hp-initramfs-factory.bin
-rw-r--r--    1 root     root       6410484 Oct 30 17:49 /tmp/openwrt-ath79-tiny-nec_wf1200hp-initramfs-kernel.bin
-rw-r--r--    1 root     root       7074057 Oct 30 17:50 /tmp/openwrt-ath79-tiny-nec_wf1200hp-squashfs-sysupgrade.bin
-rw-r--r--    1 root     root        121332 Oct 30 17:50 /tmp/openwrt-ath79-tiny-nec_wf1200hp-uboot.bin
root@OpenWrt:~# mtd write /tmp/openwrt-ath79-tiny-nec_wf1200hp-uboot.bin bootloa
der
Unlocking bootloader ...

Writing from /tmp/openwrt-ath79-tiny-nec_wf1200hp-uboot.bin to bootloader ...
root@OpenWrt:~# sysupgrade /tmp/openwrt-ath79-tiny-nec_wf1200hp-squashfs-sysupgr
ade.bin 
Cannot save config while running from ramdisk.
Thu Oct 30 17:51:22 GMT 2025 upgrade: Commencing upgrade. Closing all shell sessions.
Watchdog handover: fd=3
- watchdog -
Watchdog has previously reset the system
Thu Oct 30 17:51:23 GMT 2025 upgrade: Sending TERM to remaining processes ...
Thu Oct 30 17:51:27 GMT 2025 upgrade: Sending KILL to remaining processes ...
[  267.611895] stage2 (3027): drop_caches: 3
Thu Oct 30 17:51:33 GMT 2025 upgrade: Switching to ramdisk...
Thu Oct 30 17:51:36 UTC 2025 upgrade: Performing[  270.662758] do_stage2 (3027): drop_caches: 3
 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                                                                                                         
Thu Oct 30 17:53:12 UTC 2025 upgrade: Upgrade completed
Thu Oct 30 17:53:13 UTC 2025 upg[  367.320327] reboot: Restarting system
ra"6""'?"
         #;?7            <--- U-Boot, シリアルコンソールのbaudrateが9600bpsから115200bpsに切り替わる為乱れる

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


U-Boot 2025.10-OpenWrt-r31466+2-73fe1b8257 (Oct 30 2025 - 11:53:04 +0000)

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.12.51
   Created:      2025-10-30  11:53:04 UTC
   Image Type:   MIPS Linux Kernel Image (uncompressed)
   Data Size:    1951654 Bytes = 1.9 MiB
   Load Address: 80060000
   Entry Point:  80060000
   Verifying Checksum ... OK
   Loading Kernel Image to 80060000
NEC Aterm series (AR9344)


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.12.51 (musashino205@TAIHA.NET) (mips-openwrt-linux-musl-gcc (OpenWrt GCC 14.3.0 r30367-a89eced3ab) 14.3.0, GNU ld (GNU Binutils) 2.44) #0 Thu Oct 30 11:53:04 2025
[    0.000000] printk: legacy bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 0001974c (MIPS 74Kc)
[    0.000000] MIPS: machine is NEC Aterm WF1200HP
[    0.000000] SoC: Atheros AR9344 rev 3
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] OF: reserved mem: Reserved memory: No reserved-memory node in the DT
[    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: 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: 32768
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] RCU Tasks Trace: Setting shift to 0 and lim to 1 rcu_task_cb_adjust=1 rcu_task_cpu_ids=1.
[    0.000000] NR_IRQS: 51
[    0.000000] CPU clock: 560.000 MHz
[    0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 6825930166 ns
[    0.000001] sched_clock: 32 bits at 280MHz, resolution 3ns, wraps every 7669584382ns
[    0.008776] Calibrating delay loop... 278.93 BogoMIPS (lpj=1394688)
[    0.085691] pid_max: default: 32768 minimum: 301
[    0.100839] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.109036] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.129529] Memory: 121824K/131072K available (4796K kernel code, 544K rwdata, 768K rodata, 1244K init, 197K bss, 8760K reserved, 0K cma-reserved)
[    0.150061] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.161112] futex hash table entries: 256 (order: -1, 3072 bytes, linear)
[    0.174664] pinctrl core: initialized pinctrl subsystem
[    0.183801] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    0.209136] clocksource: Switched to clocksource MIPS
[    0.228511] NET: Registered PF_INET protocol family
[    0.234330] IP idents hash table entries: 2048 (order: 2, 16384 bytes, linear)
[    0.243564] tcp_listen_portaddr_hash hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.253092] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.261781] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.270370] TCP bind hash table entries: 1024 (order: 1, 8192 bytes, linear)
[    0.278271] TCP: Hash tables configured (established 1024 bind 1024)
[    0.285562] UDP hash table entries: 256 (order: 0, 4096 bytes, linear)
[    0.292952] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes, linear)
[    0.301708] NET: Registered PF_UNIX/PF_LOCAL protocol family
[    0.308091] PCI: CLS 0 bytes, default 32
[    0.316077] workingset: timestamp_bits=30 max_order=15 bucket_order=0
[    0.324180] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.330747] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.348888] pinctrl-single 1804002c.pinmux: 544 pins, size 68
[    0.357056] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
[    0.365652] printk: legacy console [ttyS0] disabled
[    0.372072] 18020000.uart: ttyS0 at MMIO 0x18020000 (irq = 11, base_baud = 2500000) is a 16550A
[    0.381916] printk: legacy console [ttyS0] enabled
[    0.381916] printk: legacy console [ttyS0] enabled
[    0.392162] printk: legacy bootconsole [early0] disabled
[    0.392162] printk: legacy bootconsole [early0] disabled
[    0.416885] 4 fixed-partitions partitions found on MTD device spi0.0
[    0.423469] OF: Bad cell count for /ahb/spi@1f000000/flash@0/partitions
[    0.430259] OF: Bad cell count for /ahb/spi@1f000000/flash@0/partitions
[    0.437390] Creating 4 MTD partitions on "spi0.0":
[    0.442340] 0x000000000000-0x000000020000 : "bootloader"
[    0.450706] 0x000000020000-0x000000030000 : "config"
[    0.457572] OF: Bad cell count for /ahb/spi@1f000000/flash@0/partitions
[    0.464801] 0x000000030000-0x000000040000 : "art"
[    0.471707] OF: Bad cell count for /ahb/spi@1f000000/flash@0/partitions
[    0.478913] 0x000000040000-0x000000800000 : "firmware"
[    0.486275] 2 uimage-fw partitions found on MTD device firmware
[    0.492381] Creating 2 MTD partitions on "firmware":
[    0.497436] 0x000000000000-0x0000001dd000 : "kernel"
[    0.504131] 0x0000001dd000-0x0000007c0000 : "rootfs"
[    0.510772] mtd: setting mtd5 (rootfs) as root device
[    0.516009] 1 squashfs-split partitions found on MTD device rootfs
[    0.522351] 0x0000006bf000-0x0000007c0000 : "rootfs_data"
[    0.850269] ag71xx-legacy 19000000.eth: Could not connect to PHY device. Deferring probe.
[    1.506186] switch0: Atheros AR8229 rev. 1 switch registered on mdio.0
[    1.551595] ag71xx-legacy 1a000000.eth: connected to PHY at fixed-0:00 [uid=00000000, driver=Generic PHY]
[    1.562280] eth0: Atheros AG71xx at 0xba000000, irq 5, mode: gmii
[    1.572121] NET: Registered PF_INET6 protocol family
[    1.583628] Segment Routing with IPv6
[    1.587507] In-situ OAM (IOAM) with IPv6
[    1.591789] NET: Registered PF_PACKET protocol family
[    1.596973] 8021q: 802.1Q VLAN Support v1.8
[    1.642215] PCI host bridge to bus 0000:00
[    1.646413] pci_bus 0000:00: root bus resource [mem 0x10000000-0x13ffffff]
[    1.653464] pci_bus 0000:00: root bus resource [io  0x0000]
[    1.659163] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[    1.667296] pci 0000:00:00.0: [168c:003c] type 00 class 0x028000 PCIe Endpoint
[    1.674727] pci 0000:00:00.0: BAR 0 [mem 0x00000000-0x001fffff 64bit]
[    1.681363] pci 0000:00:00.0: ROM [mem 0x00000000-0x0000ffff pref]
[    1.687750] pci 0000:00:00.0: supports D1
[    1.691861] pci 0000:00:00.0: PME# supported from D0 D1 D3hot
[    1.699424] pci_bus 0000:00: busn_res: [bus 00-ff] end is updated to 00
[    1.706194] pci 0000:00:00.0: BAR 0 [mem 0x10000000-0x101fffff 64bit]: assigned
[    1.713687] pci 0000:00:00.0: ROM [mem 0x10200000-0x1020ffff pref]: assigned
[    2.110192] ag71xx-legacy 19000000.eth: connected to PHY at mdio.0:1f:04 [uid=004dd042, driver=Qualcomm Atheros QCA9561 built-in PHY]
[    2.123754] eth1: Atheros AG71xx at 0xb9000000, irq 4, mode: mii
[    2.131793] clk: Disabling unused clocks
[    2.143544] VFS: Mounted root (squashfs filesystem) readonly on device 31:5.
[    2.156101] Freeing unused kernel image (initmem) memory: 1244K
[    2.162174] This architecture does not have kernel memory protection.
[    2.168731] Run /sbin/init as init process
[    2.918865] init: Console is alive
[    2.922961] init: - watchdog -
[    5.086623] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    5.157001] usbcore: registered new interface driver usbfs
[    5.162775] usbcore: registered new interface driver hub
[    5.168341] usbcore: registered new device driver usb
[    5.324780] gpio_button_hotplug: loading out-of-tree module taints kernel.
[    5.352066] SCSI subsystem initialized
[    5.373467] usbcore: registered new interface driver usb-storage
[    5.380776] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    5.390636] init: - preinit -
[    8.759188] random: crng init done
[    9.612360] eth0: link up (1000Mbps/Full duplex)
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
[   13.872554] mount_root: jffs2 not ready yet, using temporary tmpfs overlay
[   13.884689] urandom-seed: Seed file not found (/etc/urandom.seed)
[   13.947676] eth0: link down
[   13.977123] procd: - early -
[   13.980576] procd: - watchdog -
[   14.612822] procd: - watchdog -
[   14.648104] procd: - ubus -
[   14.721580] procd: - init -
Please press Enter to activate this console.
[   16.076666] kmodloader: loading kernel modules from /etc/modules.d/*
[   17.280773] i2c_dev: i2c /dev entries driver
[   17.306539] Loading modules backported from Linux version v6.16-0-g038d61fd6422
[   17.314045] Backport generated by backports.git v6.1.145-1-47-g6194bf852a3e
[   17.953615] PPP generic driver version 2.4.2
[   17.982430] NET: Registered PF_PPPOX protocol family
[   18.183008] ath10k 6.14 driver, optimized for CT firmware, probing pci device: 0x3c.
[   18.220194] ath10k_pci 0000:00:00.0: enabling device (0000 -> 0002)
[   18.226757] ath10k_pci 0000:00:00.0: pci irq legacy oper_irq_mode 1 irq_mode 0 reset_mode 0
[   18.602105] urngd: v1.0.2 started.
[   22.726601] ath10k_pci 0000:00:00.0: qca988x hw2.0 target 0x4100016c chip_id 0x043222ff sub 0000:0000
[   22.736069] ath10k_pci 0000:00:00.0: kconfig debug 0 debugfs 1 tracing 0 dfs 1 testmode 0
[   22.747229] ath10k_pci 0000:00:00.0: firmware ver 10.1-ct-8x-__fW-023-23ea9f8e api 2 features wmi-10.x,has-wmi-mgmt-tx,mfp,peer-fixed-rate,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 42c82ae5
[   23.194100] ath10k_pci 0000:00:00.0: board_file api 1 bmi_id N/A crc32 bebc7c08
[   24.116181] ath10k_pci 0000:00:00.0: 10.1 wmi init: vdevs: 16  peers: 127  tid: 256
[   24.134079] ath10k_pci 0000:00:00.0: wmi print 'P 128 V 8 T 410'
[   24.140318] ath10k_pci 0000:00:00.0: wmi print 'msdu-desc: 1424  sw-crypt: 0 ct-sta: 0'
[   24.148469] ath10k_pci 0000:00:00.0: wmi print 'alloc rem: 23808 iram: 38144'
[   24.197858] 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
[   24.220691] ath10k_pci 0000:00:00.0: NOTE:  Firmware DBGLOG output disabled in debug_mask: 0x10000000
[   24.479546] ieee80211 phy1: Atheros AR9340 Rev:3 mem=0x0f11495d, irq=17
[   24.509664] kmodloader: done loading kernel modules from /etc/modules.d/*
[   67.610994] eth0: link up (1000Mbps/Full duplex)
[   67.634713] br-lan: port 1(eth0.1) entered blocking state
[   67.640289] br-lan: port 1(eth0.1) entered disabled state
[   67.645822] eth0.1: entered allmulticast mode
[   67.650322] ag71xx-legacy 1a000000.eth eth0: entered allmulticast mode
[   67.657298] eth0.1: entered promiscuous mode
[   67.661729] ag71xx-legacy 1a000000.eth eth0: entered promiscuous mode
[   67.755442] br-lan: port 1(eth0.1) entered blocking state
[   67.761020] br-lan: port 1(eth0.1) entered forwarding state
[   69.953051] eth1: link up (100Mbps/Full duplex)
[   75.061077] jffs2_scan_eraseblock(): End of filesystem marker found at 0x0
[   75.068139] jffs2_build_filesystem(): unlocking the mtd device... 
[   75.068165] done.
[   75.076463] jffs2_build_filesystem(): erasing all blocks after the end marker... 
[   86.568764] done.
[   86.578392] jffs2: notice: (2244) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
[   86.800572] overlayfs: upper fs does not support tmpfile.



BusyBox v1.37.0 (2025-10-30 11:53:04 UTC) built-in shell (ash)

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 -----------------------------------------------------
 OpenWrt SNAPSHOT, r31466+2-73fe1b8257
 -----------------------------------------------------
=== 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.
--------------------------------------------------

 OpenWrt recently switched to the "apk" package manager!

 OPKG Command           APK Equivalent      Description
 ------------------------------------------------------------------
 opkg install <pkg>     apk add <pkg>       Install a package
 opkg remove <pkg>      apk del <pkg>       Remove a package
 opkg upgrade           apk upgrade         Upgrade all packages
 opkg files <pkg>       apk info -L <pkg>   List package contents
 opkg list-installed    apk info            List installed packages
 opkg update            apk update          Update package lists
 opkg search <pkg>      apk search <pkg>    Search for packages
 ------------------------------------------------------------------

For more https://openwrt.org/docs/guide-user/additional-software/opkg-to-apk-cheatsheet

root@OpenWrt:~# ubus call system board
{
        "kernel": "6.12.51",
        "hostname": "OpenWrt",
        "system": "Atheros AR9344 rev 3",
        "model": "NEC Aterm WF1200HP",
        "board_name": "nec,wf1200hp",
        "rootfs_type": "squashfs",
        "release": {
                "distribution": "OpenWrt",
                "version": "SNAPSHOT",
                "firmware_url": "https://downloads.openwrt.org/",
                "revision": "r31466+2-73fe1b8257",
                "target": "ath79/tiny",
                "description": "OpenWrt SNAPSHOT r31466+2-73fe1b8257",
                "builddate": "1761825184"
        }
}
root@OpenWrt:~# ubus call system info
{
        "localtime": 1761846946,
        "uptime": 145,
        "load": [
                55488,
                33536,
                13152
        ],
        "memory": {
                "total": 126521344,
                "free": 90603520,
                "shared": 258048,
                "buffered": 0,
                "available": 74764288,
                "cached": 17317888
        },
        "root": {
                "total": 1028,
                "free": 948,
                "used": 80,
                "avail": 948
        },
        "tmp": {
                "total": 61776,
                "free": 61568,
                "used": 208,
                "avail": 61568
        },
        "swap": {
                "total": 0,
                "free": 0
        }
}
root@OpenWrt:~# df -h
Filesystem                Size      Used Available Use% Mounted on
/dev/root                 4.9M      4.9M         0 100% /rom
tmpfs                    60.3M    208.0K     60.1M   0% /tmp
tmpfs                    60.3M     44.0K     60.3M   0% /tmp/root
tmpfs                   512.0K         0    512.0K   0% /dev
/dev/mtdblock6            1.0M     80.0K    948.0K   8% /overlay
overlayfs:/overlay        1.0M     80.0K    948.0K   8% /
root@OpenWrt:~#