ひたすらSGMIIを有効化できず手詰まりになっていたけど、QCA9558側とAR8327側の両方でSGMIIを構成する必要があることを最終的に突き止め、なんとかSGMIIのeth1も動作するところまで到達した
initramfs-factoryは当初WR8750NやWR9500Nなどと同様にtpブロックにinitramfsイメージ本体、firmware領域にダミー用のlzma-loaderを入れていたが、自然な形にする為にtpブロックにダミーなlzma-loader、firmware領域にinitramfsイメージとし、tpブロックが読みだされた場合は無限ループでWDTによりリセットさせることで、NECのブートローダにおける "SOFT-RESET
" を発生させてtpのPOSTをスキップし、firmwareブロックのinitramfsイメージを読ませる形にした。
#### 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 stop wait 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 start wait 1 wmi_unified_vdev_stop_send STOPPED EVENT for vap 0 stop wait 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 start wait 1 wmi_unified_vdev_stop_send STOPPED EVENT for vap 0 stop wait 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 start wait 1 wmi_unified_vdev_install_key_send Setting Key for Macaddress:0xd30de0826610 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 0xc035e000 (10:66:82:e0:0d:d3): mcast key of type 0 FWLOG: [209566] WAL_DBGID_SECURITY_MCAST_KEY_SET ( 0x1 ) wmi_unified_vdev_stop_send STOPPED EVENT for vap 0 stop wait 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 start wait 1 vap_down 0 vap_down 0 DDR Activity - HIGH vap_down 0 vap_down 0 wmi_unified_vdev_stop_send beacon buffer av_wbuf is NULL - Ignoring SWBA event STOPPED EVENT for vap 0 vap_down 1 NetBSD/scorpimips (Amnesiac) (console) login: s/w clock, h/w clock diff s/w real_time 1356966181 sec h/w RTC 1356966184 sec IPL:SOFT-RESET memory test ... ok flinstall OK boot version: 1.0.0 PKG "2x2LIGHTNING" CPU "Atheros/QCA9558" Revision 113.0 CLOCK 720.0 MHz HEAP MEMORY 262144 bytes Boot:InitFilesystem RGMII calibration GE0 ... ETH_CFG: 00028001 ETH_XMII: 5a000000 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 Fri Jun 28 07:05:55 2024 [ 0.000000] printk: bootconsole [early0] enabled [ 0.000000] CPU0 revision is: 00019750 (MIPS 74Kc) [ 0.000000] MIPS: machine is NEC Aterm WG1400HP [ 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.092769] Calibrating delay loop... 358.80 BogoMIPS (lpj=1794048) [ 0.227751] pid_max: default: 32768 minimum: 301 [ 0.292867] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear) [ 0.380339] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear) [ 0.481375] RCU Tasks Trace: Setting shift to 0 and lim to 1 rcu_task_cb_adjust=1. [ 0.576626] 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.778078] pinctrl core: initialized pinctrl subsystem [ 0.842737] NET: Registered PF_NETLINK/PF_ROUTE protocol family [ 0.931414] clocksource: Switched to clocksource MIPS [ 1.002726] NET: Registered PF_INET protocol family [ 1.061266] IP idents hash table entries: 2048 (order: 2, 16384 bytes, linear) [ 1.148456] tcp_listen_portaddr_hash hash table entries: 1024 (order: 0, 4096 bytes, linear) [ 1.249507] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear) [ 1.342140] 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.518137] TCP: Hash tables configured (established 1024 bind 1024) [ 1.594261] UDP hash table entries: 256 (order: 0, 4096 bytes, linear) [ 1.672380] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes, linear) [ 1.756357] NET: Registered PF_UNIX/PF_LOCAL protocol family [ 1.824138] PCI: CLS 0 bytes, default 32 [ 1.901588] workingset: timestamp_bits=14 max_order=15 bucket_order=1 [ 1.980193] squashfs: version 4.0 (2009/01/31) Phillip Lougher [ 2.049973] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc. [ 2.379461] pinctrl-single 1804002c.pinmux: 544 pins, size 68 [ 2.449092] gpio gpiochip0: Static allocation of GPIO base is deprecated, use dynamic allocation. [ 2.556556] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled [ 2.633572] printk: console [ttyS0] disabled [ 2.685231] 18020000.uart: ttyS0 at MMIO 0x18020000 (irq = 11, base_baud = 2500000) is a 16550A [ 2.789343] printk: console [ttyS0] enabled [ 2.789343] printk: console [ttyS0] enabled [ 2.889326] printk: bootconsole [early0] disabled [ 2.889326] printk: bootconsole [early0] disabled [ 3.021170] spi-nor spi0.0: mx25l12805d (16384 Kbytes) [ 3.082895] 4 fixed-partitions partitions found on MTD device spi0.0 [ 3.158945] OF: Bad cell count for /ahb/spi@1f000000/flash@0/partitions [ 3.238060] OF: Bad cell count for /ahb/spi@1f000000/flash@0/partitions [ 3.317436] Creating 4 MTD partitions on "spi0.0": [ 3.374731] 0x000000000000-0x000000020000 : "bootloader" [ 3.441336] 0x000000020000-0x000000030000 : "config" [ 3.502786] OF: Bad cell count for /ahb/spi@1f000000/flash@0/partitions [ 3.582356] 0x000000030000-0x000000040000 : "art" [ 3.640952] OF: Bad cell count for /ahb/spi@1f000000/flash@0/partitions [ 3.720392] 0x000000040000-0x000001000000 : "firmware" [ 4.166651] switch0: Atheros AR8327 rev. 4 switch registered on mdio.0 [ 4.890897] ag71xx 19000000.eth: connected to PHY at mdio.0:00 [uid=004dd034, driver=Atheros AR8216/AR8236/AR8316] [ 5.015423] eth0: Atheros AG71xx at 0xb9000000, irq 4, mode: rgmii [ 5.442289] ag71xx 1a000000.eth: connected to PHY at fixed-0:00 [uid=00000000, driver=Generic PHY] [ 5.550271] eth1: Atheros AG71xx at 0xba000000, irq 5, mode: sgmii [ 5.624598] i2c_dev: i2c /dev entries driver [ 5.677932] NET: Registered PF_INET6 protocol family [ 5.744500] Segment Routing with IPv6 [ 5.788357] In-situ OAM (IOAM) with IPv6 [ 5.835465] NET: Registered PF_PACKET protocol family [ 5.895938] 8021q: 802.1Q VLAN Support v1.8 [ 5.962188] PCI host bridge to bus 0000:00 [ 6.011250] pci_bus 0000:00: root bus resource [mem 0x10000000-0x11ffffff] [ 6.093472] pci_bus 0000:00: root bus resource [io 0x0000] [ 6.160137] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff] [ 6.254940] pci 0000:00:00.0: [168c:003c] type 00 class 0x028000 [ 6.326787] pci 0000:00:00.0: reg 0x10: [mem 0x10000000-0x101fffff 64bit] [ 6.408038] pci 0000:00:00.0: reg 0x30: [mem 0x00000000-0x0000ffff pref] [ 6.488327] pci 0000:00:00.0: supports D1 [ 6.536302] pci 0000:00:00.0: PME# supported from D0 D1 D3hot [ 6.606420] pci_bus 0000:00: busn_res: [bus 00-ff] end is updated to 00 [ 6.685582] pci 0000:00:00.0: BAR 0: assigned [mem 0x10000000-0x101fffff 64bit] [ 6.773039] pci 0000:00:00.0: BAR 6: assigned [mem 0x10200000-0x1020ffff pref] [ 6.860567] pca953x 0-0020: supply vcc not found, using dummy regulator [ 6.940007] pca953x 0-0020: using no AI [ 6.989073] i2c-gpio i2c: using lines 20 (SDA) and 19 (SCL) [ 7.096382] clk: Disabling unused clocks [ 7.205319] Freeing unusedrnel image (mem) memory: 68K [ 7.266808] This architect does not haernel memory tection. [ 7.332105] Run /init as process [ 8.058489] init: Console alive [ 8.096418] init: - watchd- [ 8.130193] init: Watchdogs previouslyet the system[ 8.202854] kmodloader: long kernel mods from /etc/les-boot.d/* [ 8.283477] usbcore: regised new inter driver usbfs[ 8.335936] usbcore: regied new interf driver hub [ 8.391096] usbcore: regied new deviceiver usb [ 8.449486] gpio_button_houg: loading of-tree modulaints kernel[ 8.527283] ehci-platform 00000.usb: EHost Controll [ 8.584662] ehci-platform 00000.usb: nSB bus registd, assigned number 1 [ 8.663094] ehci-platform00000.usb: ir4, io mem 0x0000 [ 8.751434] ehci-platform 00000.usb: U.0 started, E 1.00 [ 8.816283] hub 1-0:1.0: Uhub found [ 8.856192] hub 1-0:1.0: rt detected [ 8.901628] kmodloader: doloading kerneodules from /modules-boot* [ 8.985109] init: - preini [ 9.231502] usb 1-1: new h-speed USB de number 2 us ehci-platfor[ 9.493183] hub 1-1:1.0: Uhub found [ 9.554552] hub 1-1:1.0: 4rts detected[ 10.861449] random: crng i done [ 12.530058] 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.753527] eth1: link dow[ 14.800981] procd: - early [ 14.832683] procd: - watch - [ 14.867457] procd: Watchdoas previouslset the syste[ 15.487716] procd: - watch - [ 15.522426] procd: Watchdoas previouslset the syste[ 15.575933] procd: - ubus[ 15.660091] procd: - init Please press Enter to activate this console. [ 16.490822] kmodloader: long kernel mods from /etc/les.d/* [ 17.608190] Loading moduleackported froinux version6.15-0-g51f3515c4 [ 17.684207] Backport generd by backporit 193becf2 [ 18.239665] PPP generic drr version 2. [ 18.382495] NET: RegistereF_PPPOX prot family [ 18.445744] urngd: v1.0.2 rted. [ 18.584780] ath10k 6.7 dri, optimized CT firmware, bing pci dev 0x3c. [ 18.774532] ath10k_pci 0000:00.0: pci legacy oper_imode 1 irq_m0 reset_mode [ 22.870965] ath10k_pci 0000:00.0: qca9hw2.0 target 100016c chip0x043222ff su000:0000 [ 22.962368] ath10k_pci 000:00.0: kconfdebug 0 debu1 tracing 0 d1 testmode 0[ 23.044581] 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 [ 23.980802] ath10k_pci 0000:00.0: boarle api 1 bmi_N/A crc32 be08 [ 25.008109] ath10k_pci 0000:00.0: 10.1 init: vdevs: peers: 127d: 256 [ 25.095012] ath10k_pci 0000:00.0: wmi t 'P 128 V 8 10' [ 25.156714] ath10k_pci 0000:00.0: wmi t 'msdu-desc:24 sw-cryptct-sta: 0' [ 25.235053] ath10k_pci 000:00.0: wmi pt 'alloc rem984 iram: 386 [ 25.356129] ath10k_pci 0000:00.0: htt-2.1 wmi-op 2 -op 2 cal nvmax-sta 128 r0 hwcrypto 1[ 25.447916] ath10k_pci 000:00.0: NOTE:irmware DBGLutput disablen debug_mask10000000 [ 25.795579] ieee80211 phy1theros AR955v:0 mem=0x8f03f, irq=16 [ 25.901850] kmodloader: doloading kernodules from //modules.d/*[ 47.500358] eth1: link up 00Mbps/Full ex) [ 47.565636] br-lan: port 1h1.1) entereocking state [ 47.617990] br-lan: port h1.1) enteredsabled state[ 47.673184] eth1.1: enterllmulticast m [ 47.721775] ag71xx 1a00000th eth1: ent allmulticastde [ 47.782451] eth1.1: entereromiscuous mo [ 47.827241] ag71xx 1a00000th eth1: ent promiscuous e [ 47.934749] br-lan: port 1h1.1) entereocking state [ 47.987107] br-lan: port h1.1) enteredrwarding sta[ 48.145574] Atheros AR82168236/AR8316 .0:00: Port 1 up [ 48.207473] Atheros AR82168236/AR8316 .0:00: Port 4 up [ 48.270428] eth0: link up 00Mbps/Full dex) BusyBox v1.36.1 (2024-06-28 07:05:55 UTC) built-in shell (ash) _______ ________ __ | |.-----.-----.-----.| | | |.----.| |_ | - || _ | -__| || | | || _|| _| |_______|| __|_____|__|__||________||__| |____| |__| W I R E L E S S F R E E D O M ----------------------------------------------------- OpenWrt SNAPSHOT, r26809+22-7c9644a7b5 ----------------------------------------------------- === 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 420 Jun 28 07:08 . drwxr-xr-x 1 root root 0 Jan 1 1970 .. drwx------ 2 root root 160 Jun 28 07:06 .uci ---------- 1 root root 0 Jun 28 07:08 .ujailnoafile -rw-r--r-- 1 root root 4 Jun 28 07:06 TZ -rw-r--r-- 1 root root 924 Jan 1 1970 board.json -rw-r--r-- 1 root root 0 Jun 28 07:06 dhcp.leases drwxr-xr-x 2 root root 40 Jun 28 07:06 dnsmasq.d drwxr-xr-x 3 root root 80 Jun 28 07:07 etc drwxr-xr-x 2 root root 80 Jun 28 07:07 hosts drwxr-xr-x 3 root root 60 Jun 28 07:06 lib drwxrwxrwt 2 root root 400 Jun 28 07:08 lock drwxr-xr-x 2 root root 80 Jun 28 07:05 log -rw-r--r-- 1 root root 6816545 Jun 28 09:31 openwrt-ath79-generic-nec_wg1400hp-squashfs-sysupgrade.bin -rw-r--r-- 1 root root 47 Jun 28 07:07 resolv.conf drwxr-xr-x 2 root root 60 Jun 28 07:07 resolv.conf.d drwxr-xr-x 4 root root 80 Jan 1 1970 root drwxr-xr-x 7 root root 260 Jun 28 07:07 run drwxrwxrwt 2 root root 40 Jun 28 07:06 shm drwxr-xr-x 2 root root 80 Jun 28 09:35 state drwxr-xr-x 2 root root 80 Jan 1 1970 sysinfo drwxr-xr-x 2 root root 40 Jun 28 07:05 tmp -rw-r--r-- 1 root root 129776 Jun 28 09:30 u-boot.bin root@OpenWrt:/# mtd write /tmp/u-boot.bin bootloader Unlocking bootloader ... Writing from /tmp/u-boot.bin to bootloader ... [w] root@OpenWrt:/# sysupgrade /tmp/openwrt-ath79-generic-nec_wg1400hp-squashfs-sysupgrade.bin Cannot save config while running from ramdisk. Fri Jun 28 09:31:30 UTC 2024 upgrade: Commencing upgrade. Closing all shell sessions. Command failed: Connection faileWatchdog handover: fd=3 - watchdog - Watchdog has previously reset the system Fri Jun 28 09:31:31 UTC 2024 upgrade: Sending TERM to remaining processes ... Fri Jun 28 09:31:36 UTC 2024 upgrade: Sending KILL to remaining processes ... [ 174.814990] stage2 (3237):op_caches: 3Fri Jun 28 09:31:42 UTC 2024 upgrade: Switching to ramdisk... Fri Jun 28 09:31:44 UTC 2024 upg[ 177.214845] do_stage2 (32 drop_caches: rade: Performing system upgrade... Unlocking firmware ... Writing from <stdin> to firmware ... [w] Appending jffs2 data from /tmp/sysupgrade.tgz to firmware.. .File /tmp/sysupgrade.tgz does not exist Fri Jun 28 09:32:41 UTC 2024 upgrade: Upgrade completed Fri Jun 28 09:32:42 UTC 2024 upg[ 235.669100] eboot: Restag system "" *&+ ' " #' <--- U-Boot, シリアルコンソールのbaudrateが9600bpsから115200bpsに切り替わる <--- 以下115200に切り替えた場合 U-Boot 2024.07-rc5+ (Jun 28 2024 - 16:12:50 +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: 2543184 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 Fri Jun 28 07:05:55 2024 [ 0.000000] printk: bootconsole [early0] enabled [ 0.000000] CPU0 revision is: 00019750 (MIPS 74Kc) [ 0.000000] MIPS: machine is NEC Aterm WG1400HP [ 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.090768] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear) [ 0.098948] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear) [ 0.115939] RCU Tasks Trace: Setting shift to 0 and lim to 1 rcu_task_cb_adjust=1. [ 0.128987] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns [ 0.140000] futex hash table entries: 256 (order: -1, 3072 bytes, linear) [ 0.150232] pinctrl core: initialized pinctrl subsystem [ 0.158234] NET: Registered PF_NETLINK/PF_ROUTE protocol family [ 0.182517] clocksource: Switched to clocksource MIPS [ 0.198984] NET: Registered PF_INET protocol family [ 0.204700] IP idents hash table entries: 2048 (order: 2, 16384 bytes, linear) [ 0.213582] tcp_listen_portaddr_hash hash table entries: 1024 (order: 0, 4096 bytes, linear) [ 0.223065] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear) [ 0.231710] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear) [ 0.240274] TCP bind hash table entries: 1024 (order: 1, 8192 bytes, linear) [ 0.248176] TCP: Hash tables configured (established 1024 bind 1024) [ 0.255405] UDP hash table entries: 256 (order: 0, 4096 bytes, linear) [ 0.262755] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes, linear) [ 0.271239] NET: Registered PF_UNIX/PF_LOCAL protocol family [ 0.277630] PCI: CLS 0 bytes, default 32 [ 0.286388] workingset: timestamp_bits=14 max_order=15 bucket_order=1 [ 0.295127] squashfs: version 4.0 (2009/01/31) Phillip Lougher [ 0.301637] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc. [ 0.319243] pinctrl-single 1804002c.pinmux: 544 pins, size 68 [ 0.326566] gpio gpiochip0: Static allocation of GPIO base is deprecated, use dynamic allocation. [ 0.337714] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled [ 0.345821] printk: console [ttyS0] disabled [ 0.351094] 18020000.uart: ttyS0 at MMIO 0x18020000 (irq = 11, base_baud = 2500000) is a 16550A [ 0.360880] printk: console [ttyS0] enabled [ 0.369790] printk: bootconsole [early0] disabled [ 0.398848] spi-nor spi0.0: mx25l12805d (16384 Kbytes) [ 0.404196] 4 fixed-partitions partitions found on MTD device spi0.0 [ 0.410675] OF: Bad cell count for /ahb/spi@1f000000/flash@0/partitions [ 0.417432] OF: Bad cell count for /ahb/spi@1f000000/flash@0/partitions [ 0.424416] Creating 4 MTD partitions on "spi0.0": [ 0.429293] 0x000000000000-0x000000020000 : "bootloader" [ 0.437636] 0x000000020000-0x000000030000 : "config" [ 0.444666] OF: Bad cell count for /ahb/spi@1f000000/flash@0/partitions [ 0.451740] 0x000000030000-0x000000040000 : "art" [ 0.458772] OF: Bad cell count for /ahb/spi@1f000000/flash@0/partitions [ 0.465830] 0x000000040000-0x000001000000 : "firmware" [ 0.473402] 2 uimage-fw partitions found on MTD device firmware [ 0.479425] Creating 2 MTD partitions on "firmware": [ 0.484506] 0x000000000000-0x000000270000 : "kernel" [ 0.491303] 0x000000270000-0x000000fc0000 : "rootfs" [ 0.498080] mtd: setting mtd5 (rootfs) as root device [ 0.503323] 1 squashfs-split partitions found on MTD device rootfs [ 0.509640] 0x000000680000-0x000000fc0000 : "rootfs_data" [ 0.868722] switch0: Atheros AR8327 rev. 4 switch registered on mdio.0 [ 1.521863] ag71xx 19000000.eth: connected to PHY at mdio.0:00 [uid=004dd034, driver=Atheros AR8216/AR8236/AR8316] [ 1.533066] eth0: Atheros AG71xx at 0xb9000000, irq 4, mode: rgmii [ 1.874641] ag71xx 1a000000.eth: connected to PHY at fixed-0:00 [uid=00000000, driver=Generic PHY] [ 1.884463] eth1: Atheros AG71xx at 0xba000000, irq 5, mode: sgmii [ 1.891088] i2c_dev: i2c /dev entries driver [ 1.895639] ath79-wdt 18060008.wdt: timeout value must be 0 < timeout < 14, using 14 [ 1.905628] NET: Registered PF_INET6 protocol family [ 1.917592] Segment Routing with IPv6 [ 1.921406] In-situ OAM (IOAM) with IPv6 [ 1.925608] NET: Registered PF_PACKET protocol family [ 1.930787] 8021q: 802.1Q VLAN Support v1.8 [ 1.960950] PCI host bridge to bus 0000:00 [ 1.965150] pci_bus 0000:00: root bus resource [mem 0x10000000-0x11ffffff] [ 1.972131] pci_bus 0000:00: root bus resource [io 0x0000] [ 1.977810] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff] [ 1.985899] pci 0000:00:00.0: [168c:003c] type 00 class 0x028000 [ 1.992031] pci 0000:00:00.0: reg 0x10: [mem 0x00000000-0x001fffff 64bit] [ 1.998979] pci 0000:00:00.0: reg 0x30: [mem 0x00000000-0x0000ffff pref] [ 2.005866] pci 0000:00:00.0: supports D1 [ 2.009936] pci 0000:00:00.0: PME# supported from D0 D1 D3hot [ 2.017161] pci_bus 0000:00: busn_res: [bus 00-ff] end is updated to 00 [ 2.023947] pci 0000:00:00.0: BAR 0: assigned [mem 0x10000000-0x101fffff 64bit] [ 2.031390] pci 0000:00:00.0: BAR 6: assigned [mem 0x10200000-0x1020ffff pref] [ 2.039837] pca953x 0-0020: supply vcc not found, using dummy regulator [ 2.046848] pca953x 0-0020: using no AI [ 2.053902] i2c-gpio i2c: using lines 20 (SDA) and 19 (SCL) [ 2.099271] clk: Disabling unused clocks [ 2.112801] VFS: Mounted root (squashfs filesystem) readonly on device 31:5. [ 2.124299] Freeing unused kernel image (initmem) memory: 1224K [ 2.130320] This architecture does not have kernel memory protection. [ 2.136883] Run /sbin/init as init process [ 2.141036] with arguments: [ 2.141040] /sbin/init [ 2.141046] with environment: [ 2.141051] HOME=/ [ 2.141056] TERM=linux [ 2.904496] init: Console is alive [ 2.908299] init: - watchdog - [ 4.437218] kmodloader: loading kernel modules from /etc/modules-boot.d/* [ 4.525939] usbcore: registered new interface driver usbfs [ 4.531647] usbcore: registered new interface driver hub [ 4.537158] usbcore: registered new device driver usb [ 4.546350] gpio_button_hotplug: loading out-of-tree module taints kernel. [ 4.566209] ehci-platform 1b000000.usb: EHCI Host Controller [ 4.571986] ehci-platform 1b000000.usb: new USB bus registered, assigned bus number 1 [ 4.580129] ehci-platform 1b000000.usb: irq 14, io mem 0x1b000000 [ 4.612537] ehci-platform 1b000000.usb: USB 2.0 started, EHCI 1.00 [ 4.620068] hub 1-0:1.0: USB hub found [ 4.624491] hub 1-0:1.0: 1 port detected [ 4.633593] kmodloader: done loading kernel modules from /etc/modules-boot.d/* [ 4.651690] init: - preinit - [ 5.000880] usb 1-1: new high-speed USB device number 2 using ehci-platform [ 5.487093] hub 1-1:1.0: USB hub found [ 5.491282] hub 1-1:1.0: 4 ports detected [ 7.832552] random: crng init done [ 9.930276] eth1: link up (1000Mbps/Full duplex) [ 12.178555] mount_root: jffs2 not ready yet, using temporary tmpfs overlay [ 12.189415] urandom-seed: Seed file not found (/etc/urandom.seed) [ 12.256474] eth1: link down [ 12.284775] procd: - early - [ 12.287996] procd: - watchdog - [ 13.000462] procd: - watchdog - [ 13.004544] procd: - ubus - [ 13.169439] procd: - init - [ 14.767594] kmodloader: loading kernel modules from /etc/modules.d/* [ 15.813486] Loading modules backported from Linux version v6.6.15-0-g51f354b815c4 [ 15.821095] Backport generated by backports.git 193becf2 [ 16.708733] PPP generic driver version 2.4.2 [ 16.733650] NET: Registered PF_PPPOX protocol family [ 16.785643] urngd: v1.0.2 started. [ 16.819649] ath10k 6.7 driver, optimized for CT firmware, probing pci device: 0x3c. [ 16.873373] ath10k_pci 0000:00:00.0: enabling device (0000 -> 0002) [ 16.879896] ath10k_pci 0000:00:00.0: pci irq legacy oper_irq_mode 1 irq_mode 0 reset_mode 0 [ 21.098530] ath10k_pci 0000:00:00.0: qca988x hw2.0 target 0x4100016c chip_id 0x043222ff sub 0000:0000 [ 21.107952] ath10k_pci 0000:00:00.0: kconfig debug 0 debugfs 1 tracing 0 dfs 1 testmode 0 [ 21.119956] 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.029326] ath10k_pci 0000:00:00.0: board_file api 1 bmi_id N/A crc32 bebc7c08 [ 22.986367] ath10k_pci 0000:00:00.0: 10.1 wmi init: vdevs: 16 peers: 127 tid: 256 [ 23.003794] ath10k_pci 0000:00:00.0: wmi print 'P 128 V 8 T 410' [ 23.010125] ath10k_pci 0000:00:00.0: wmi print 'msdu-desc: 1424 sw-crypt: 0 ct-sta: 0' [ 23.018289] ath10k_pci 0000:00:00.0: wmi print 'alloc rem: 24984 iram: 38672' [ 23.086991] 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.097188] ath10k_pci 0000:00:00.0: NOTE: Firmware DBGLOG output disabled in debug_mask: 0x10000000 [ 23.236435] ath: EEPROM regdomain: 0x88 [ 23.236457] ath: EEPROM indicates we should expect a direct regpair map [ 23.236470] ath: Country alpha2 being used: JP [ 23.236478] ath: Regpair used: 0x88 [ 23.329321] ath: EEPROM regdomain: 0x88 [ 23.329345] ath: EEPROM indicates we should expect a direct regpair map [ 23.329359] ath: Country alpha2 being used: JP [ 23.329366] ath: Regpair used: 0x88 [ 23.346571] ieee80211 phy1: Selected rate control algorithm 'minstrel_ht' [ 23.347433] ieee80211 phy1: Atheros AR9550 Rev:0 mem=0xd27f7618, irq=16 [ 23.390289] kmodloader: done loading kernel modules from /etc/modules.d/* [ 84.590602] jffs2_scan_eraseblock(): End of filesystem marker found at 0x0 [ 84.642618] jffs2_build_filesystem(): unlocking the mtd device... [ 84.642665] done. [ 84.650880] jffs2_build_filesystem(): erasing all blocks after the end marker... [ 86.055378] eth1: link up (1000Mbps/Full duplex) [ 86.077297] br-lan: port 1(eth1.1) entered blocking state [ 86.082849] br-lan: port 1(eth1.1) entered disabled state [ 86.088356] eth1.1: entered allmulticast mode [ 86.092804] ag71xx 1a000000.eth eth1: entered allmulticast mode [ 86.099045] eth1.1: entered promiscuous mode [ 86.103424] ag71xx 1a000000.eth eth1: entered promiscuous mode [ 86.165198] br-lan: port 1(eth1.1) entered blocking state [ 86.170724] br-lan: port 1(eth1.1) entered forwarding state [ 86.321626] Atheros AR8216/AR8236/AR8316 mdio.0:00: Port 1 is up [ 86.328196] Atheros AR8216/AR8236/AR8316 mdio.0:00: Port 4 is up [ 86.335823] eth0: link up (1000Mbps/Full duplex) [ 143.328789] done. [ 143.330773] jffs2: notice: (2273) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found. [ 143.532274] overlayfs: upper fs does not support tmpfile. BusyBox v1.36.1 (2024-06-28 07:05:55 UTC) built-in shell (ash) _______ ________ __ | |.-----.-----.-----.| | | |.----.| |_ | - || _ | -__| || | | || _|| _| |_______|| __|_____|__|__||________||__| |____| |__| W I R E L E S S F R E E D O M ----------------------------------------------------- OpenWrt SNAPSHOT, r26809+22-7c9644a7b5 ----------------------------------------------------- === 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 WG1400HP", "board_name": "nec,wg1400hp", "rootfs_type": "squashfs", "release": { "distribution": "OpenWrt", "version": "SNAPSHOT", "revision": "r26809+22-7c9644a7b5", "target": "ath79/generic", "description": "OpenWrt SNAPSHOT r26809+22-7c9644a7b5" } } root@OpenWrt:/# ubus call system info { "localtime": 1719567425, "uptime": 256, "load": [ 14400, 28960, 14176 ], "memory": { "total": 124252160, "free": 78188544, "shared": 258048, "buffered": 0, "available": 65454080, "cached": 23220224 }, "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:/#