カテゴリー: mediatek

WRC-X3200GST3 stock -> OpenWrt(non-UBI)

RootFSにUBIを使用しない構成の場合

[ 2528.639914] IDPfw: Exit IDPfw
[ 2528.643092] mod epilog takes 0 jiffies
[ 2528.646865] IDPfw: Exit IDPfw
[ 2528.667556] Exit chrdev /dev/idpfw with major 191
[ 2528.695567] Exit chrdev /dev/detector with major 190
XXX Begin firmware upgrade..., size(8519775)
dump: [4D 54 37 36 32 32 5F 45 4C 45 43 4F 4D 5F 57 52 43 2D 58 33 32 30 30 47 53 54 33 ]
check_hw_id_from_last_len = 27
image hw id [MT7622_ELECOM_WRC-X3200GST3]
sys_fw_hwid [MT7622_ELECOM_WRC-X3200GST3]
dump: [4D 54 37 36 32 32 5F 45 4C 45 43 4F 4D 5F 57 52 43 2D 58 33 32 30 30 47 53 54 33 ]
XX /sbin/sysupgrade_md5.sh 8519684 /tmp/filecIssN2 XX
Done, reboot now
upgrade_allow: TRUE
allow upgrade, return count_down.html page.
XXXXXX update_firmware 375: return count_down.html
XXX sysupgrade_new -c /tmp/fw.bin 1>/dev/null XXX
[ 2535.161037] no net device found for eth0 or
[ 2535.167236] no net device found for ra1 or apcli0
[ 2535.176785] no net device found for ra2 or apcli0
[ 2535.194696] Set_HotSpot_OnOff ==> wdev[0] is already in [OFF] STATE , skip.
[ 2535.217980] no net device found for ra3 or apcli0
[ 2535.227106] no net device found for ra4 or apcli0
[ 2535.236063] no net device found for ra5 or apcli0
[ 2535.241637] no net device found for ra6 or apcli0
[ 2535.246772] no net device found for ra7 or apcli0
[ 2535.251605] no net device found for ra8 or apcli0
[ 2535.256330] no net device found for ra9 or apcli0
[ 2535.261042] no net device found for ra10 or apcli0
[ 2535.265845] no net device found for ra11 or apcli0
[ 2535.270642] no net device found for ra12 or apcli0
[ 2535.275441] no net device found for ra13 or apcli0
[ 2535.280244] no net device found for ra14 or apcli0
[ 2535.285044] no net device found for ra15 or apcli0
[ 2535.289895] no net device found for rai1 or apclii0
[ 2535.294781] no net device found for rai2 or apclii0
[ 2535.299662] no net device found for rai3 or apclii0
[ 2535.304550] no net device found for rai4 or apclii0
[ 2535.309435] no net device found for rai5 or apclii0
[ 2535.314320] no net device found for rai6 or apclii0
[ 2535.319210] no net device found for rai7 or apclii0
[ 2535.324136] no net device found for rai8 or apclii0
[ 2535.329029] no net device found for rai9 or apclii0
[ 2535.333915] no net device found for rai10 or apclii0
[ 2535.338886] no net device found for rai11 or apclii0
[ 2535.343859] no net device found for rai12 or apclii0
[ 2535.348829] no net device found for rai13 or apclii0
[ 2535.353802] no net device found for rai14 or apclii0
[ 2535.358773] no net device found for rai15 or apclii0
[ 2535.363746] no net device found for rax0 or apclix0
[ 2535.368632] no net device found for rax1 or apclix0
[ 2535.373518] no net device found for rax2 or apclix0
[ 2535.378400] no net device found for rax3 or apclix0
[ 2535.383286] no net device found for rax4 or apclix0
[ 2535.388166] no net device found for rax5 or apclix0
[ 2535.393102] no net device found for rax6 or apclix0
[ 2535.397989] no net device found for rax7 or apclix0
[ 2535.402868] no net device found for rax8 or apclix0
[ 2535.407754] no net device found for rax9 or apclix0
[ 2535.412633] no net device found for rax10 or apclix0
[ 2535.417606] no net device found for rax11 or apclix0
[ 2535.422573] no net device found for rax12 or apclix0
[ 2535.427546] no net device found for rax13 or apclix0
[ 2535.432515] no net device found for rax14 or apclix0
[ 2535.437486] no net device found for rax15 or apclix0
[ 2535.442454] no net device found for wlan0 or wlan-apcli0
[ 2535.447781] no net device found for apclix0
[ 2535.451967] no net device found for wlan-apcli0
Please press Enter to activate this console.
Please press Enter to activate this console.
dnsmasq
dnsmasq [br-lan]
[ 2540.391356] br-lan: port 1(eth0) entered disabled state
[ 2540.400019] device eth0 left promiscuous mode
[ 2540.406957] br-lan: port 1(eth0) entered disabled state
[ 2540.415424] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 2540.434125] br-lan: port 3(rai0) entered disabled state
[ 2540.439438] br-lan: port 2(ra0) entered disabled state
[ 2540.446851] device rai0 left promiscuous mode
[ 2540.451497] br-lan: port 3(rai0) entered disabled state
[ 2540.457019] device ra0 left promiscuous mode
[ 2540.461385] br-lan: port 2(ra0) entered disabled state
[ 2540.496031] mtk_soc_eth 1b100000.ethernet eth0: RX flow is programmed, LRO should keep on
[ 2540.504820] device eth0 entered promiscuous mode
[ 2540.515667] br-lan: port 1(eth0) entered forwarding state
[ 2540.521134] br-lan: port 1(eth0) entered forwarding state
[ 2540.796486] mtk_soc_eth 1b100000.ethernet: path gmac1_sgmii in set_mux_gdm1_to_gmac1_esw updated = 1
[ 2540.809031] mtk_soc_eth 1b100000.ethernet: mux mux_gmac2_gmac0_to_gephy isn't present on the SoC
[ 2540.829058] mtk_soc_eth 1b100000.ethernet: mux mux_u3_gmac2_to_qphy isn't present on the SoC
[ 2540.845738] mtk_soc_eth 1b100000.ethernet: path gmac1_sgmii in set_mux_gmac1_gmac2_to_sgmii_rgmii updated = 1
[ 2540.859046] mtk_soc_eth 1b100000.ethernet: mux mux_gmac12_to_gephy_sgmii isn't present on the SoC
[ 2540.873916] mtk_soc_eth 1b100000.ethernet: path gmac2_rgmii in set_mux_gdm1_to_gmac1_esw updated = 0
[ 2540.887211] mtk_soc_eth 1b100000.ethernet: mux mux_gmac2_gmac0_to_gephy isn't present on the SoC
[ 2540.902179] mtk_soc_eth 1b100000.ethernet: mux mux_u3_gmac2_to_qphy isn't present on the SoC
[ 2540.911766] mtk_soc_eth 1b100000.ethernet: path gmac2_rgmii in set_mux_gmac1_gmac2_to_sgmii_rgmii updated = 0
[ 2540.922566] mtk_soc_eth 1b100000.ethernet: mux mux_gmac12_to_gephy_sgmii isn't present on the SoC
[ 2541.175432] Device Instance
[ 2541.178945]  WDEV 00:, Name:ra0, Wdev(list) Idx:0
[ 2541.184506]           Idx:9
[ 2541.186699] extif_put_dev(ra0)
[ 2541.190621] mtk_ppe_dev_unregister_hook : ineterface ra0 set null (1)
[ 2541.198065]
[ 2541.200040]
[ 2541.201877]
[ 2541.203569]
[ 2541.205475]
[ 2541.207009]
[ 2541.209009]
[ 2541.210498]
[ 2541.211982]
[ 2541.213538]
[ 2541.215024]
[ 2541.218859]
[ 2541.220354]
[ 2541.221882]
[ 2541.223370]
[ 2541.300859] ra0: ===> main_virtual_if_close
[ 2541.306168] wifi_sys_linkdown(), wdev idx = 0
[ 2541.331960] bssUpdateBmcMngRate (BSS_INFO_BROADCAST_INFO), CmdBssInfoBmcRate.u2BcTransmit= 0, CmdBssInfoBmcRate.u2McTransmit = 0
[ 2541.380650] wifi_sys_close(), wdev idx = 0
[ 2541.387640] APStop(), oper(0) bssid(0)=04:ab:18:xx:xx:79
[ 2541.395334] wifi_sys_close(), wdev idx = 0
[ 2541.400316] ap_ftkd> Release FT KDP Module...
[ 2541.405500] <=== APStop()
[ 2541.417180] CmdReStartDLRsp: WiFI FW Download Success
[ 2541.423467] cut_through_token_list_destroy(): ffffffc01e3b3310,ffffffc01e3b3310
[ 2541.433522] cut_through_token_list_destroy(): ffffffc01e3b3330,ffffffc01e3b3330
[ 2541.750834] RTMP_AllTimerListRelease: Size=33
[ 2541.755200] RTMP_AllTimerListRelease: Cancel timer obj ffffff800ae66200!
[ 2541.762093] RTMP_AllTimerListRelease: Timer is allocated by RRM_CfgInit+0x58/0x128 [mt7622_mt_wifi],Valid:1,Lock:ffffff800b2ef600,State:0
[ 2541.774441] RTMP_AllTimerListRelease: Cancel timer obj ffffff800ae66260!
[ 2541.781288] RTMP_AllTimerListRelease: Timer is allocated by RRM_CfgInit+0x70/0x128 [mt7622_mt_wifi],Valid:1,Lock:ffffff800b2ef600,State:0
[ 2541.793632] RTMP_AllTimerListRelease: Cancel timer obj ffffff800ae6ee88!
[ 2541.800460] RTMP_AllTimerListRelease: Timer is allocated by RRM_CfgInit+0x58/0x128 [mt7622_mt_wifi],Valid:1,Lock:ffffff800b2ef600,State:0
[ 2541.812887] RTMP_AllTimerListRelease: Cancel timer obj ffffff800ae6eee8!
[ 2541.819725] RTMP_AllTimerListRelease: Timer is allocated by RRM_CfgInit+0x70/0x128 [mt7622_mt_wifi],Valid:1,Lock:ffffff800b2ef600,State:0
[ 2541.832072] RTMP_AllTimerListRelease: Cancel timer obj ffffff800ae77b10!
[ 2541.838900] RTMP_AllTimerListRelease: Timer is allocated by RRM_CfgInit+0x58/0x128 [mt7622_mt_wifi],Valid:1,Lock:ffffff800b2ef600,State:0
[ 2541.851245] RTMP_AllTimerListRelease: Cancel timer obj ffffff800ae77b70!
[ 2541.858070] RTMP_AllTimerListRelease: Timer is allocated by RRM_CfgInit+0x70/0x128 [mt7622_mt_wifi],Valid:1,Lock:ffffff800b2ef600,State:0
[ 2541.870414] RTMP_AllTimerListRelease: Cancel timer obj ffffff800ae80798!
[ 2541.877256] RTMP_AllTimerListRelease: Timer is allocated by RRM_CfgInit+0x58/0x128 [mt7622_mt_wifi],Valid:1,Lock:ffffff800b2ef600,State:0
[ 2541.889604] RTMP_AllTimerListRelease: Cancel timer obj ffffff800ae807f8!
[ 2541.896429] RTMP_AllTimerListRelease: Timer is allocated by RRM_CfgInit+0x70/0x128 [mt7622_mt_wifi],Valid:1,Lock:ffffff800b2ef600,State:0
[ 2541.908780] RTMP_AllTimerListRelease: Cancel timer obj ffffff800ae89420!
[ 2541.915669] RTMP_AllTimerListRelease: Timer is allocated by RRM_CfgInit+0x58/0x128 [mt7622_mt_wifi],Valid:1,Lock:ffffff800b2ef600,State:0
[ 2541.928022] RTMP_AllTimerListRelease: Cancel timer obj ffffff800ae89480!
[ 2541.934863] RTMP_AllTimerListRelease: Timer is allocated by RRM_CfgInit+0x70/0x128 [mt7622_mt_wifi],Valid:1,Lock:ffffff800b2ef600,State:0
[ 2541.947214] RTMP_AllTimerListRelease: Cancel timer obj ffffff800ae920a8!
[ 2541.954033] RTMP_AllTimerListRelease: Timer is allocated by RRM_CfgInit+0x58/0x128 [mt7622_mt_wifi],Valid:1,Lock:ffffff800b2ef600,State:0
[ 2541.966382] RTMP_AllTimerListRelease: Cancel timer obj ffffff800ae92108!
[ 2541.973200] RTMP_AllTimerListRelease: Timer is allocated by RRM_CfgInit+0x70/0x128 [mt7622_mt_wifi],Valid:1,Lock:ffffff800b2ef600,State:0
[ 2541.985553] RTMP_AllTimerListRelease: Cancel timer obj ffffff800ae9ad30!
[ 2541.992379] RTMP_AllTimerListRelease: Timer is allocated by RRM_CfgInit+0x58/0x128 [mt7622_mt_wifi],Valid:1,Lock:ffffff800b2ef600,State:0
[ 2542.004729] RTMP_AllTimerListRelease: Cancel timer obj ffffff800ae9ad90!
[ 2542.011558] RTMP_AllTimerListRelease: Timer is allocated by RRM_CfgInit+0x70/0x128 [mt7622_mt_wifi],Valid:1,Lock:ffffff800b2ef600,State:0
[ 2542.024012] RTMP_AllTimerListRelease: Cancel timer obj ffffff800aea39b8!
[ 2542.030921] RTMP_AllTimerListRelease: Timer is allocated by RRM_CfgInit+0x58/0x128 [mt7622_mt_wifi],Valid:1,Lock:ffffff800b2ef600,State:0
[ 2542.043272] RTMP_AllTimerListRelease: Cancel timer obj ffffff800aea3a18!
[ 2542.050099] RTMP_AllTimerListRelease: Timer is allocated by RRM_CfgInit+0x70/0x128 [mt7622_mt_wifi],Valid:1,Lock:ffffff800b2ef600,State:0
[ 2542.062449] RTMP_AllTimerListRelease: Cancel timer obj ffffff800aeac640!
[ 2542.069269] RTMP_AllTimerListRelease: Timer is allocated by RRM_CfgInit+0x58/0x128 [mt7622_mt_wifi],Valid:1,Lock:ffffff800b2ef600,State:0
[ 2542.081619] RTMP_AllTimerListRelease: Cancel timer obj ffffff800aeac6a0!
[ 2542.088436] RTMP_AllTimerListRelease: Timer is allocated by RRM_CfgInit+0x70/0x128 [mt7622_mt_wifi],Valid:1,Lock:ffffff800b2ef600,State:0
[ 2542.100794] RTMP_AllTimerListRelease: Cancel timer obj ffffff800aeb52c8!
[ 2542.107613] RTMP_AllTimerListRelease: Timer is allocated by RRM_CfgInit+0x58/0x128 [mt7622_mt_wifi],Valid:1,Lock:ffffff800b2ef600,State:0
[ 2542.119962] RTMP_AllTimerListRelease: Cancel timer obj ffffff800aeb5328!
[ 2542.126831] RTMP_AllTimerListRelease: Timer is allocated by RRM_CfgInit+0x70/0x128 [mt7622_mt_wifi],Valid:1,Lock:ffffff800b2ef600,State:0
[ 2542.139180] RTMP_AllTimerListRelease: Cancel timer obj ffffff800aebdf50!
[ 2542.146002] RTMP_AllTimerListRelease: Timer is allocated by RRM_CfgInit+0x58/0x128 [mt7622_mt_wifi],Valid:1,Lock:ffffff800b2ef600,State:0
[ 2542.158356] RTMP_AllTimerListRelease: Cancel timer obj ffffff800aebdfb0!
[ 2542.165220] RTMP_AllTimerListRelease: Timer is allocated by RRM_CfgInit+0x70/0x128 [mt7622_mt_wifi],Valid:1,Lock:ffffff800b2ef600,State:0
[ 2542.177572] RTMP_AllTimerListRelease: Cancel timer obj ffffff800aec6bd8!
[ 2542.184402] RTMP_AllTimerListRelease: Timer is allocated by RRM_CfgInit+0x58/0x128 [mt7622_mt_wifi],Valid:1,Lock:ffffff800b2ef600,State:0
[ 2542.196756] RTMP_AllTimerListRelease: Cancel timer obj ffffff800aec6c38!
[ 2542.203588] RTMP_AllTimerListRelease: Timer is allocated by RRM_CfgInit+0x70/0x128 [mt7622_mt_wifi],Valid:1,Lock:ffffff800b2ef600,State:0
[ 2542.215936] RTMP_AllTimerListRelease: Cancel timer obj ffffff800aecf860!
[ 2542.222762] RTMP_AllTimerListRelease: Timer is allocated by RRM_CfgInit+0x58/0x128 [mt7622_mt_wifi],Valid:1,Lock:ffffff800b2ef600,State:0
[ 2542.235150] RTMP_AllTimerListRelease: Cancel timer obj ffffff800aecf8c0!
[ 2542.241979] RTMP_AllTimerListRelease: Timer is allocated by RRM_CfgInit+0x70/0x128 [mt7622_mt_wifi],Valid:1,Lock:ffffff800b2ef600,State:0
[ 2542.254323] RTMP_AllTimerListRelease: Cancel timer obj ffffff800aed84e8!
[ 2542.261146] RTMP_AllTimerListRelease: Timer is allocated by RRM_CfgInit+0x58/0x128 [mt7622_mt_wifi],Valid:1,Lock:ffffff800b2ef600,State:0
[ 2542.273494] RTMP_AllTimerListRelease: Cancel timer obj ffffff800aed8548!

F0: 102B 0000
F6: 0000 0000
V0: 0000 0000 [0001]
00: 0000 0000
BP: 0000 0041 [0000]
G0: 0190 0000
T0: 0000 0369 [000F]
Jump to BL

UNIVPLL_CON0 = 0xFE000000!!!
mt_pll_init: Set pll frequency for 25M crystal
RAM_CONSOLE preloader last status: 0x0 0x0 0x0 0x0 0x0 0x0
[PMIC_WRAP]wrap_init pass,the return value=0.
[pmic_init] Preloader Start..................
[pmic_init] MT6380 CHIP Code, reg_val = 0, 1:E2  0:E3
[pmic_init] Done...................
Chip part number:7622B
MT7622 Version: 1.2.8, (iPA)
SSC OFF
mt_pll_post_init: mt_get_cpu_freq = 1350000Khz
mt_pll_post_init: mt_get_mem_freq = 1600000Khz
mt_pll_post_init: mt_get_bus_freq = 1119920Khz
[PLFM] Init I2C: OK(0)

[BLDR] Build Time: 20200518-110732
==== Dump RGU Reg ========
RGU MODE:     14
RGU LENGTH:   FFE0
RGU STA:      40000000
RGU INTERVAL: FFF
RGU SWSYSRST: 8000
==== Dump RGU Reg End ====
RGU: g_rgu_satus:2
mtk_wdt_mode_config  mode value=10, tmp:22000010
PL RGU RST: ??
SW reset with bypass power key flag
Find bypass powerkey flag
WDT NONRST=0x20000000
WDT IRQ_EN=0x300002
RGU mtk_wdt_init:MTK_WDT_DEBUG_CTL(590200F3)
[EMI] MDL number = 2
[EMI] DRAMC calibration start

[EMI] DRAMC calibration end

[EMI]rank size auto detect
[EMI]start_addr[0x40000000]=0x12345678, test_addr[0x48000000]= 0xEDCBA987
[EMI]start_addr[0x40000000]=0x12345678, test_addr[0x50000000]= 0xEDCBA987
[EMI]start_addr[0x40000000]=0xEDCBA987, test_addr[0x60000000]= 0xEDCBA987
[EMI]rank0 size: 0x20000000
[MEM] complex R/W mem test pass
RAM_CONSOLE wdt status (0x2)=0x2
[BBT] BMT.v2 is found at 0x3FF
[PLFM] Init Boot Device: OK(0)

NAND read: device 0 offset 0x2c0000, size 0x2000
8192 bytes read: OK
[do_read_image_blks] This is a FIT image,img_size = 0x39e920
[do_read_image_blks] img_blks = 0x73e
[do_read_image_blks] img_align_size = 0x39f000

NAND read: device 0 offset 0x2c0000, size 0x39f000
3796992 bytes read: OK
bootm flag=0, states=70f
## Loading kernel from FIT Image at 4007ff28 ...
Using 'config-1' configuration
Trying 'kernel-1' kernel subimage
Description:  ARM64 OpenWrt Linux-5.10.75
Type:         Kernel Image
Compression:  lzma compressed
Data Start:   0x40080010
Data Size:    3764262 Bytes = 3.6 MiB
Architecture: AArch64
OS:           Linux
Load Address: 0x44000000
Entry Point:  0x44000000
Hash algo:    crc32
Hash value:   c953efc3
Hash algo:    sha1
Hash value:   add14333f99ffe0d1601f3d11b8817e2c0c13a57
Verifying Hash Integrity ... crc32+ sha1+ OK
## Loading fdt from FIT Image at 4007ff28 ...
Using 'config-1' configuration
Trying 'fdt-1' fdt subimage
Description:  ARM64 OpenWrt elecom_wrc-x3200gst3 device tree blob
Type:         Flat Device Tree
Compression:  uncompressed
Data Start:   0x4041717c
Data Size:    29055 Bytes = 28.4 KiB
Architecture: AArch64
Hash algo:    crc32
Hash value:   447d446b
Hash algo:    sha1
Hash value:   6e08d95ed7635841b7deaa0b12cc233173d49d14
Verifying Hash Integrity ... crc32+ sha1+ OK
Booting using the fdt blob at 0x4041717c
Uncompressing Kernel Image ... OK
Loading Device Tree to 5cf45000, end 5cf4f17e ... OK

Starting kernel ...

[ATF][     7.799388]save kernel info
[ATF][     7.802325]Kernel_EL2
[ATF][     7.804995]Kernel is 64Bit
[ATF][     7.808083]pc=0x44000000, r0=0x5cf45000, r1=0x0
INFO:    BL3-1: Preparing for EL3 exit to normal world, Kernel
INFO:    BL3-1: Next image address = 0x44000000
INFO:    BL3-1: Next image spsr = 0x3c9
[ATF][     7.825781]el3_exit
[    0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
[    0.000000] Linux version 5.10.75 ([email protected]) (aarch64-openwrt-linux-musl-gcc (OpenWrt GCC 11.2.0 r0+17885-1cf1f6a9e0) 11.2.0, GNU ld (GNU Binutils) 2.37) #0 SMP Sat Oct 30 07:47:02 2021
[    0.000000] Machine model: ELECOM WRC-X3200GST3
[    0.000000] earlycon: uart8250 at MMIO32 0x0000000011002000 (options '')
[    0.000000] printk: bootconsole [uart8250] enabled
[    0.000000] Zone ranges:
[    0.000000]   DMA      [mem 0x0000000040000000-0x000000005fffffff]
[    0.000000]   DMA32    empty
[    0.000000]   Normal   empty
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000040000000-0x0000000042ffffff]
[    0.000000]   node   0: [mem 0x0000000043000000-0x000000004302ffff]
[    0.000000]   node   0: [mem 0x0000000043030000-0x000000005fffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000040000000-0x000000005fffffff]
[    0.000000] On node 0 totalpages: 131072
[    0.000000]   DMA zone: 2048 pages used for memmap
[    0.000000]   DMA zone: 0 pages reserved
[    0.000000]   DMA zone: 131072 pages, LIFO batch:31
[    0.000000] psci: probing for conduit method from DT.
[    0.000000] psci: PSCIv0.2 detected in firmware.
[    0.000000] psci: Using standard PSCI v0.2 function IDs
[    0.000000] psci: Trusted OS migration not required
[    0.000000] percpu: Embedded 20 pages/cpu s43800 r8192 d29928 u81920
[    0.000000] pcpu-alloc: s43800 r8192 d29928 u81920 alloc=20*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1
[    0.000000] Detected VIPT I-cache on CPU0
[    0.000000] CPU features: detected: ARM erratum 845719
[    0.000000] CPU features: kernel page table isolation disabled by kernel configuration
[    0.000000] CPU features: detected: ARM erratum 843419
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 129024
[    0.000000] Kernel command line: earlycon=uart8250,mmio32,0x11002000 console=ttyS0,115200n8 swiotlb=512
[    0.000000] Dentry cache hash table entries: 65536 (order: 7, 524288 bytes, linear)
[    0.000000] Inode-cache hash table entries: 32768 (order: 6, 262144 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 493800K/524288K available (7870K kernel code, 856K rwdata, 2140K rodata, 448K init, 289K bss, 30488K reserved, 0K cma-reserved)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[    0.000000] rcu: Hierarchical RCU implementation.
[    0.000000]  Tracing variant of Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[    0.000000] GIC: GICv2 detected, but range too small and irqchip.gicv2_force_probe not set
[    0.000000] random: get_random_bytes called from start_kernel+0x340/0x484 with crng_init=0
[    0.000000] arch_timer: cp15 timer(s) running at 12.50MHz (phys).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x2e2049cda, max_idle_ns: 440795202628 ns
[    0.000003] sched_clock: 56 bits at 12MHz, resolution 80ns, wraps every 4398046511080ns
[    0.008210] Calibrating delay loop (skipped), value calculated using timer frequency.. 25.00 BogoMIPS (lpj=125000)
[    0.018605] pid_max: default: 32768 minimum: 301
[    0.023307] Mount-cache hash table entries: 1024 (order: 1, 8192 bytes, linear)
[    0.030649] Mountpoint-cache hash table entries: 1024 (order: 1, 8192 bytes, linear)
[    0.039366] rcu: Hierarchical SRCU implementation.
[    0.044278] dyndbg: Ignore empty _ddebug table in a CONFIG_DYNAMIC_DEBUG_CORE build
[    0.052145] smp: Bringing up secondary CPUs ...
[    0.057009] Detected VIPT I-cache on CPU1
[    0.057052] CPU1: Booted secondary processor 0x0000000001 [0x410fd034]
[    0.057110] smp: Brought up 1 node, 2 CPUs
[    0.071785] SMP: Total of 2 processors activated.
[    0.076501] CPU features: detected: 32-bit EL0 Support
[    0.081657] CPU features: detected: CRC32 instructions
[    0.086904] CPU: All CPU(s) started at EL2
[    0.091015] alternatives: patching kernel code
[    0.098665] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.108559] futex hash table entries: 512 (order: 3, 32768 bytes, linear)
[    0.115453] pinctrl core: initialized pinctrl subsystem
[    0.121132] NET: Registered protocol family 16
[    0.126216] DMA: preallocated 128 KiB GFP_KERNEL pool for atomic allocations
[    0.133341] DMA: preallocated 128 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations
[    0.141129] DMA: preallocated 128 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
[    0.149411] thermal_sys: Registered thermal governor 'fair_share'
[    0.149414] thermal_sys: Registered thermal governor 'bang_bang'
[    0.155528] thermal_sys: Registered thermal governor 'step_wise'
[    0.161573] thermal_sys: Registered thermal governor 'user_space'
[    0.167837] ASID allocator initialised with 65536 entries
[    0.179980] pstore: Registered ramoops as persistent store backend
[    0.186195] ramoops: using 0x10000@0x42ff0000, ecc: 0
[    0.217166] SCSI subsystem initialized
[    0.221035] libata version 3.00 loaded.
[    0.225028] usbcore: registered new interface driver usbfs
[    0.230590] usbcore: registered new interface driver hub
[    0.235939] usbcore: registered new device driver usb
[    0.242701] clocksource: Switched to clocksource arch_sys_counter
[    0.249485] NET: Registered protocol family 2
[    0.253980] IP idents hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    0.261569] tcp_listen_portaddr_hash hash table entries: 256 (order: 0, 4096 bytes, linear)
[    0.269968] TCP established hash table entries: 4096 (order: 3, 32768 bytes, linear)
[    0.277773] TCP bind hash table entries: 4096 (order: 4, 65536 bytes, linear)
[    0.284988] TCP: Hash tables configured (established 4096 bind 4096)
[    0.291427] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.298001] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.305072] NET: Registered protocol family 1
[    0.309456] PCI: CLS 0 bytes, default 64
[    0.314348] workingset: timestamp_bits=46 max_order=17 bucket_order=0
[    0.323345] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.329201] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.375749] mt-pmic-pwrap 10001000.pwrap: unexpected interrupt int=0x1
[    0.390134] Serial: 8250/16550 driver, 3 ports, IRQ sharing disabled
[    0.397216] printk: console [ttyS0] disabled
[    0.401557] 11002000.serial: ttyS0 at MMIO 0x11002000 (irq = 21, base_baud = 1562500) is a 16550A
[    0.410539] printk: console [ttyS0] enabled
[    0.410539] printk: console [ttyS0] enabled
[    0.418907] printk: bootconsole [uart8250] disabled
[    0.418907] printk: bootconsole [uart8250] disabled
[    0.429453] mtk_rng 1020f000.rng: registered RNG driver
[    0.432858] random: fast init done
[    0.438211] random: crng init done
[    0.442405] cacheinfo: Unable to detect cache hierarchy for CPU 0
[    0.450707] loop: module loaded
[    0.454678] mtk-snand 1100d000.snfi: chip is W25N01GV, size 128MB, page size 2048, oob size 64
[    0.464580] [BBT] BMT.v2 is found at 0x3ff
[    0.468848] 10 fixed-partitions partitions found on MTD device 1100d000.snfi
[    0.475896] Creating 10 MTD partitions on "1100d000.snfi":
[    0.481374] 0x000000000000-0x000000080000 : "Preloader"
[    0.487429] 0x000000080000-0x0000000c0000 : "ATF"
[    0.492609] 0x0000000c0000-0x000000140000 : "u-boot"
[    0.498300] 0x000000140000-0x0000001c0000 : "u-boot-env"
[    0.504336] 0x0000001c0000-0x0000002c0000 : "factory"
[    0.510611] 0x0000002c0000-0x000001bc0000 : "firmware"
[    0.541038] 2 fit-fw partitions found on MTD device firmware
[    0.546697] Creating 2 MTD partitions on "firmware":
[    0.551653] 0x000000000000-0x0000003a0000 : "kernel"
[    0.560417] 0x0000003a0000-0x000001900000 : "rootfs"
[    0.586806] mtd: device 7 (rootfs) set to be root filesystem
[    0.592598] 1 squashfs-split partitions found on MTD device rootfs
[    0.598780] 0x000000820000-0x000001900000 : "rootfs_data"
[    0.621120] 0x000001bc0000-0x0000020c0000 : "tm_pattern"
[    0.631675] 0x0000020c0000-0x0000021c0000 : "tm_key"
[    0.637897] 0x0000021c0000-0x0000030c0000 : "user_data"
[    0.658204] 0x0000030c0000-0x000008000000 : "reserved"
[    0.663343] mtd: partition "reserved" extends beyond the end of device "1100d000.snfi" -- size truncated to 0x4500000
[    0.760024] libphy: Fixed MDIO Bus: probed
[    0.787933] libphy: mdio: probed
[    0.792429] mtk_soc_eth 1b100000.ethernet eth0: mediatek frame engine at 0xffffffc0117c0000, irq 28
[    0.801966] i2c /dev entries driver
[    0.806393] mtk-wdt 10212000.watchdog: Watchdog enabled (timeout=31 sec, nowayout=0)
[    0.817087] NET: Registered protocol family 10
[    0.822283] Segment Routing with IPv6
[    0.825996] NET: Registered protocol family 17
[    0.830548] 8021q: 802.1Q VLAN Support v1.8
[    0.836026] pstore: Using crash dump compression: deflate
[    0.850510] mtk-pcie 1a143000.pcie: host bridge /pcie@1a143000 ranges:
[    0.857082] mtk-pcie 1a143000.pcie: Parsing ranges property...
[    0.862919] mtk-pcie 1a143000.pcie:      MEM 0x0020000000..0x0027ffffff -> 0x0020000000
[    0.897485] mtk-pcie 1a143000.pcie: PCI host bridge to bus 0000:00
[    0.903674] pci_bus 0000:00: root bus resource [bus 00-ff]
[    0.909153] pci_bus 0000:00: root bus resource [mem 0x20000000-0x27ffffff]
[    0.916028] pci_bus 0000:00: scanning bus
[    0.920071] pci 0000:00:00.0: [14c3:3258] type 01 class 0x060400
[    0.926101] pci 0000:00:00.0: reg 0x10: [mem 0x00000000-0x1ffffffff 64bit pref]
[    0.935009] pci_bus 0000:00: fixups for bus
[    0.939188] pci 0000:00:00.0: scanning [bus 00-00] behind bridge, pass 0
[    0.945887] pci 0000:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    0.953900] pci 0000:00:00.0: scanning [bus 00-00] behind bridge, pass 1
[    0.960683] pci_bus 0000:01: scanning bus
[    0.964899] pci 0000:01:00.0: [14c3:7915] type 00 class 0x000280
[    0.971076] pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x000fffff 64bit pref]
[    0.978399] pci 0000:01:00.0: reg 0x18: [mem 0x00000000-0x00003fff 64bit pref]
[    0.985722] pci 0000:01:00.0: reg 0x20: [mem 0x00000000-0x00000fff 64bit pref]
[    0.993676] pci 0000:01:00.0: supports D1 D2
[    0.997937] pci 0000:01:00.0: PME# supported from D0 D1 D2 D3hot D3cold
[    1.004570] pci 0000:01:00.0: PME# disabled
[    1.009049] pci 0000:01:00.0: 2.000 Gb/s available PCIe bandwidth, limited by 2.5 GT/s PCIe x1 link at 0000:00:00.0 (capable of 4.000 Gb/s with 5.0 GT/s PCIe x1 link)
[    1.053891] pci_bus 0000:01: fixups for bus
[    1.058069] pci_bus 0000:01: bus scan returning with max=01
[    1.063647] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[    1.070257] pci_bus 0000:00: bus scan returning with max=01
[    1.075842] pci 0000:00:00.0: BAR 0: no space for [mem size 0x200000000 64bit pref]
[    1.083493] pci 0000:00:00.0: BAR 0: failed to assign [mem size 0x200000000 64bit pref]
[    1.091489] pci 0000:00:00.0: BAR 8: assigned [mem 0x20000000-0x201fffff]
[    1.098275] pci 0000:01:00.0: BAR 0: assigned [mem 0x20000000-0x200fffff 64bit pref]
[    1.106097] pci 0000:01:00.0: BAR 2: assigned [mem 0x20100000-0x20103fff 64bit pref]
[    1.113921] pci 0000:01:00.0: BAR 4: assigned [mem 0x20104000-0x20104fff 64bit pref]
[    1.121738] pci 0000:00:00.0: PCI bridge to [bus 01]
[    1.126704] pci 0000:00:00.0:   bridge window [mem 0x20000000-0x201fffff]
[    1.133560] pcieport 0000:00:00.0: of_irq_parse_pci: failed with rc=-22
[    1.140165] pcieport 0000:00:00.0: assign IRQ: got 0
[    1.145135] pcieport 0000:00:00.0: enabling device (0000 -> 0002)
[    1.151237] pcieport 0000:00:00.0: enabling bus mastering
[    1.157068] mtk_hsdma 1b007000.dma-controller: Using 3 as missing dma-requests property
[    1.165258] mtk_hsdma 1b007000.dma-controller: MediaTek HSDMA driver registered
[    1.209027] libphy: dsa slave smi: probed
[    1.214094] mt7530 mdio-bus:00 wan (uninitialized): PHY [dsa-0.0:00] driver [Generic PHY] (irq=POLL)
[    1.224524] mt7530 mdio-bus:00 lan4 (uninitialized): PHY [dsa-0.0:01] driver [Generic PHY] (irq=POLL)
[    1.234939] mt7530 mdio-bus:00 lan3 (uninitialized): PHY [dsa-0.0:02] driver [Generic PHY] (irq=POLL)
[    1.245342] mt7530 mdio-bus:00 lan2 (uninitialized): PHY [dsa-0.0:03] driver [Generic PHY] (irq=POLL)
[    1.255740] mt7530 mdio-bus:00 lan1 (uninitialized): PHY [dsa-0.0:04] driver [Generic PHY] (irq=POLL)
[    1.265856] mt7530 mdio-bus:00: configuring for fixed/2500base-x link mode
[    1.273424] mt7530 mdio-bus:00: Link is Up - 2.5Gbps/Full - flow control rx/tx
[    1.274028] DSA: tree 0 setup
[    1.289339] VFS: Mounted root (squashfs filesystem) readonly on device 31:14.
[    1.296691] Freeing unused kernel memory: 448K
[    1.322904] Run /sbin/init as init process
[    1.326991]   with arguments:
[    1.329948]     /sbin/init
[    1.332645]   with environment:
[    1.335783]     HOME=/
[    1.338132]     TERM=linux
[    1.605832] init: Console is alive
[    1.609327] init: - watchdog -
[    2.005894] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    2.079275] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    2.095763] init: - preinit -
[    2.456736] mtk_soc_eth 1b100000.ethernet eth0: configuring for fixed/2500base-x link mode
[    2.465263] mtk_soc_eth 1b100000.ethernet eth0: Link is Up - 2.5Gbps/Full - flow control rx/tx
[    2.474072] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[    2.481000] mt7530 mdio-bus:00 lan1: configuring for phy/gmii link mode
[    2.488126] 8021q: adding VLAN 0 to HW filter on device lan1
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
[    6.534746] mount_root: jffs2 not ready yet, using temporary tmpfs overlay
[    6.542019] overlayfs: "xino" feature enabled using 2 upper inode bits.
[    6.549650] urandom-seed: Seed file not found (/etc/urandom.seed)
[    6.637548] procd: - early -
[    6.640492] procd: - watchdog -
[    7.198790] procd: - watchdog -
[    7.265580] procd: - ubus -
[    7.324867] procd: - init -
Please press Enter to activate this console.
[    7.641507] urngd: v1.0.2 started.
[    7.684419] kmodloader: loading kernel modules from /etc/modules.d/*
[    7.761961] Loading modules backported from Linux version v5.15-rc6-0-g519d81956ee2
[    7.769661] Backport generated by backports.git v5.15-rc6-1-0-gd44432d6
[    7.785432] xt_time: kernel timezone is -0000
[    7.839784] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
[    7.850093] mt7915e 0000:01:00.0: assign IRQ: got 136
[    7.855249] pci 0000:00:00.0: enabling bus mastering
[    7.860231] mt7915e 0000:01:00.0: enabling device (0000 -> 0002)
[    7.866320] mt7915e 0000:01:00.0: enabling bus mastering
[    7.942125] mt7622-wmac 18000000.wmac: HW/SW Version: 0x8a108a10, Build Time: 20190801210006a
[    7.942125]
[    8.026812] mt7915e 0000:01:00.0: HW/SW Version: 0x8a108a10, Build Time: 20201105222230a
[    8.026812]
[    8.120658] mt7622-wmac 18000000.wmac: N9 Firmware Version: 2.0, Build Time: 20200131180931
[    8.318387] mt7915e 0000:01:00.0: WM Firmware Version: ____000000, Build Time: 20201105222304
[    8.425716] mt7915e 0000:01:00.0: WA Firmware Version: DEV_000000, Build Time: 20201105222323
[    8.556902] PPP generic driver version 2.4.2
[    8.562068] NET: Registered protocol family 24
[    8.572583] kmodloader: done loading kernel modules from /etc/modules.d/*
[   14.046128] jffs2_scan_eraseblock(): End of filesystem marker found at 0x0
[   14.075671] jffs2_build_filesystem(): unlocking the mtd device...
[   14.075678] done.
[   14.083784] jffs2_build_filesystem(): erasing all blocks after the end marker...
[   14.418603] mtk_soc_eth 1b100000.ethernet eth0: Link is Down
[   14.435902] mtk_soc_eth 1b100000.ethernet eth0: configuring for fixed/2500base-x link mode
[   14.444995] mtk_soc_eth 1b100000.ethernet eth0: Link is Up - 2.5Gbps/Full - flow control rx/tx
[   14.454002] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   14.461546] mt7530 mdio-bus:00 lan1: configuring for phy/gmii link mode
[   14.469359] 8021q: adding VLAN 0 to HW filter on device lan1
[   14.477482] br-lan: port 1(lan1) entered blocking state
[   14.482749] br-lan: port 1(lan1) entered disabled state
[   14.488343] device lan1 entered promiscuous mode
[   14.493015] device eth0 entered promiscuous mode
[   14.506058] mt7530 mdio-bus:00 lan2: configuring for phy/gmii link mode
[   14.513249] 8021q: adding VLAN 0 to HW filter on device lan2
[   14.521232] br-lan: port 2(lan2) entered blocking state
[   14.526622] br-lan: port 2(lan2) entered disabled state
[   14.534906] device lan2 entered promiscuous mode
[   14.547103] mt7530 mdio-bus:00 lan3: configuring for phy/gmii link mode
[   14.554601] 8021q: adding VLAN 0 to HW filter on device lan3
[   14.563954] br-lan: port 3(lan3) entered blocking state
[   14.569183] br-lan: port 3(lan3) entered disabled state
[   14.575504] device lan3 entered promiscuous mode
[   14.588488] mt7530 mdio-bus:00 lan4: configuring for phy/gmii link mode
[   14.595796] 8021q: adding VLAN 0 to HW filter on device lan4
[   14.603760] br-lan: port 4(lan4) entered blocking state
[   14.608981] br-lan: port 4(lan4) entered disabled state
[   14.615090] device lan4 entered promiscuous mode
[   14.626159] mt7530 mdio-bus:00 wan: configuring for phy/gmii link mode
[   14.633233] 8021q: adding VLAN 0 to HW filter on device wan
[   14.637546] mt7530 mdio-bus:00 wan: Link is Up - 1Gbps/Full - flow control rx/tx
[   14.646642] IPv6: ADDRCONF(NETDEV_CHANGE): wan: link becomes ready
[   15.710598] done.
[   15.712545] jffs2: notice: (1842) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
[   15.761757] overlayfs: upper fs does not support tmpfile.
[   15.769453] overlayfs: "xino" feature enabled using 32 upper inode bits.
[   19.636069] mt7530 mdio-bus:00 lan1: Link is Up - 1Gbps/Full - flow control off
[   19.643425] br-lan: port 1(lan1) entered blocking state
[   19.648643] br-lan: port 1(lan1) entered forwarding state
[   19.654912] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
[   20.673969] mt7530 mdio-bus:00 lan1: Link is Down
[   20.678775] br-lan: port 1(lan1) entered disabled state
[   22.756065] mt7530 mdio-bus:00 lan1: Link is Up - 1Gbps/Full - flow control off
[   22.763417] br-lan: port 1(lan1) entered blocking state
[   22.768635] br-lan: port 1(lan1) entered forwarding state

BusyBox v1.34.1 (2021-10-30 07:47:02 UTC) built-in shell (ash)

_______                     ________        __
|       |.-----.-----.-----.|  |  |  |.----.|  |_
|   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
|_______||   __|_____|__|__||________||__|  |____|
|__| W I R E L E S S   F R E E D O M
-----------------------------------------------------
OpenWrt SNAPSHOT, r0+17889-b1c65e4a83
-----------------------------------------------------
=== 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:/#

WSR-2533DHP2 stock -> OpenWrt

WSR-2533DHP2は以前よりOpenWrtチームのメンバーの一人であるHauke氏とやり取りしながら作業しており(氏も実機所持)、factoryイメージについては氏がほとんど完全な形に仕立ててくださった。
こちらではブート中の一部処理(主にmtdsplit_trx)に氏と異なるアプローチを採り、試してみた結果のメモ。

(ログはメーカーファームウェアでの投入直後からのもの)

The tail length is 46! Update len to 11534580!
decodesize 11534336...
cp: can't stat '/usr/sbin/ubi*': No such file or directory
cp: can't stat '/usr/sbin/uboot_env': No such file or directory
nvram_set: No such file or directory
token=tools, line=nandwrite
token=partitions, line=Kernel
token=Kernel, line=0x0:-
sector: Kernel -> offset=[0x0], write_len=[0xb00000]
[get_all_mtd] MTD[0]: /dev/mtd0, 0x80000, 0x20000, Preloader
[get_all_mtd] MTD[1]: /dev/mtd1, 0x40000, 0x20000, ATF
[get_all_mtd] MTD[2]: /dev/mtd2, 0x80000, 0x20000, Bootloader
[get_all_mtd] MTD[3]: /dev/mtd3, 0x80000, 0x20000, Config
[get_all_mtd] MTD[4]: /dev/mtd4, 0x40000, 0x20000, Factory
[get_all_mtd] MTD[5]: /dev/mtd5, 0x3a00000, 0x20000, Kernel
[get_all_mtd] MTD[6]: /dev/mtd6, 0x23ffe4, 0x20000, kernel
[get_all_mtd] MTD[7]: /dev/mtd7, 0x37c0000, 0x20000, rootfs
[get_all_mtd] MTD[8]: /dev/mtd8, 0x2fe0000, 0x20000, rootfs_data
[get_all_mtd] MTD[9]: /dev/mtd9, 0x3a00000, 0x20000, Kernel2
[get_all_mtd] MTD[10]: /dev/mtd10, 0x200000, 0x20000, glbcfg
[get_all_mtd] MTD[11]: /dev/mtd11, 0x200000, 0x20000, board_data
[merge_sector_info] sector[0]: name=[Kernel], dev=[/dev/mtd5], offset=[0], write_len=[11534336], max_allow_size=[60817408]
[validate_file] freeram=[122179584] bufferram=[6627328]
/tmp/uploadfW0Ykd: CRC OK
[do_nandwrite_erase] Erase MTD[Kernel]: start
[do_nandwrite_erase] Erase MTD[Kernel]: end
[do_nandwrite_update] Write MTD[Kernel]: start
[do_nandwrite_update] cmd=[/tmp/nandwrite -q -p --if_start=0x0 --if_len=0xb00000 /dev/mtd5 /tmp/uploadfW0Ykd]
[do_nandwrite_update] Write MTD[Kernel]: end
nvram_set: No such file or directory
nvram_set: No such file or directory
[switch_bank] to 0, return 22
upload return: 0
[  294.782387] reboot: Restarting system

F0: 102B 0000
F2: 0000 0000
V0: 0000 0000 [0001]
00: 0000 0000
BP: 0000 0041 [0000]
G0: 0190 0000
T0: 0000 0364 [000F]
Jump to BL

UNIVPLL_CON0 = 0xFE000000!!!
mt_pll_init: Set pll frequency for 25M crystal
RAM_CONSOLE preloader last status: 0x0 0x0 0x0 0x0 0x0 0x0
[PMIC_WRAP]wrap_init pass,the return value=0.
[pmic_init] Preloader Start..................
[pmic_init] MT6380 CHIP Code, reg_val = 0, 1:E2  0:E3
[pmic_init] Done...................
Chip part number:7622B
MT7622 Version: 1.2.6, (iPA)
SSC OFF
mt_pll_post_init: mt_get_cpu_freq = 1350000Khz
mt_pll_post_init: mt_get_mem_freq = 1600000Khz
mt_pll_post_init: mt_get_bus_freq = 1119920Khz
[PLFM] Init I2C: OK(0)

[BLDR] Build Time: 20171227-144821
==== Dump RGU Reg ========
RGU MODE:     14
RGU LENGTH:   FFE0
RGU STA:      40000000
RGU INTERVAL: FFF
RGU SWSYSRST: 8000
==== Dump RGU Reg End ====
RGU: g_rgu_satus:2
mtk_wdt_mode_config  mode value=10, tmp:22000010
PL RGU RST: ??
SW reset with bypass power key flag
Find bypass powerkey flag
WDT NONRST=0x20000000
WDT IRQ_EN=0x300002
RGU mtk_wdt_init:MTK_WDT_DEBUG_CTL(590200F3)
[EMI] MDL number = 2
[EMI] DRAMC calibration start

[EMI] DRAMC calibration end

[EMI]rank size auto detect
[EMI]rank0 size: 0x10000000
[MEM] complex R/W mem test pass
RAM_CONSOLE wdt status (0x2)=0x2
[PLFM] Init Boot Device: OK(0)

[PART] blksz: 2048B
[PART] [0x0000000000000000-0x000000000007FFFF] "PRELOADER" (256 blocks)
[PART] [0x0000000000080000-0x00000000000BFFFF] "tee1" (128 blocks)

=================================================
Checking Image1
--> nand read 4007ff28 200000 1c

NAND read: device 0 offset 0x200000, size 0x1c
28 bytes read: OK
---------------------
TRX MAGIC    32504844
Image len    b00000
header crc32 d68275a9
---------------------
trx magic OK!
--> nand read 4007ff28 200000 b00000

NAND read: device 0 offset 0x200000, size 0xb00000
11534336 bytes read: OK
---------------------
Image1 crc32 d68275a9
---------------------
crc32 OK!
=================================================

=================================================
Checking Image2
--> nand read 4007ff28 3c00000 1c

NAND read: device 0 offset 0x3c00000, size 0x1c
28 bytes read: OK
---------------------
TRX MAGIC    32504844
Image len    a19000
header crc32 5028d247
---------------------
trx magic OK!
--> nand read 4007ff28 3c00000 a19000

NAND read: device 0 offset 0x3c00000, size 0xa19000
10588160 bytes read: OK
---------------------
Image2 crc32 5028d247
---------------------
crc32 OK!
=================================================
## check Image1 return 0, check Image2 return 0, Image1 crc32=d68275a9, Image2 crc32=5028d247.
Image1 is ok!
Image2 is not same as Image1, copy Image1 to Image2!

=================================================
--> nand read 4007ff28 200000 1c

NAND read: device 0 offset 0x200000, size 0x1c
28 bytes read: OK
--> nand read 4007ff28 200000 b00000

NAND read: device 0 offset 0x200000, size 0xb00000
11534336 bytes read: OK
--> nand erase 3c00000 3a00000

NAND erase: device 0 offset 0x3c00000, size 0x3a00000
Erasing at 0x75e0000 -- 100% complete.
OK
--> nand write 4007ff28 3c00000 b00000

NAND write: device 0 offset 0x3c00000, size 0xb00000
11534336 bytes written: OK
=================================================
Recovery done!

NAND read: device 0 offset 0x200000, size 0x2000
8192 bytes read: OK
[do_read_image_blks]This is a FIT image,img_size = 0x2f4b98
[do_read_image_blks]img_blks = 0x5ea
[do_read_image_blks]img_align_size = 0x2f5000

NAND read: device 0 offset 0x200000, size 0x2f5000
3100672 bytes read: OK
bootm flag=0, states=70f
Original load address = 0x4007ff28
After skip trx_header, load address = 0x4007ff44

## Loading kernel from FIT Image at 4007ff44 ...
Using 'config@1' configuration
Trying 'kernel@1' kernel subimage
Description:  ARM64 OpenWrt Linux-5.4.87
Type:         Kernel Image
Compression:  lzma compressed
Data Start:   0x4008002c
Data Size:    3074703 Bytes = 2.9 MiB
Architecture: AArch64
OS:           Linux
Load Address: 0x44080000
Entry Point:  0x44080000
Hash algo:    crc32
Hash value:   1fe84a29
Hash algo:    sha1
Hash value:   bfd2df508991bab1a5eb759e32d9f8045be5abee
Verifying Hash Integrity ... crc32+ sha1+ OK
## Loading fdt from FIT Image at 4007ff44 ...
Using 'config@1' configuration
Trying 'fdt@1' fdt subimage
Description:  ARM64 OpenWrt buffalo_wsr-2533dhp2 device tree blob
Type:         Flat Device Tree
Compression:  uncompressed
Data Start:   0x4036ec00
Data Size:    22949 Bytes = 22.4 KiB
Architecture: AArch64
Hash algo:    crc32
Hash value:   3553a12c
Hash algo:    sha1
Hash value:   aa71a31056abd1a17e92c869505a59d59a90f646
Verifying Hash Integrity ... crc32+ sha1+ OK
Booting using the fdt blob at 0x4036ec00
Uncompressing Kernel Image ... OK
Loading Device Tree to 4cf45000, end 4cf4d9a4 ... OK

Starting kernel ...

[ATF][    11.947314]save kernel info
[ATF][    11.950344]Kernel_EL2
[ATF][    11.953101]Kernel is 64Bit
[ATF][    11.956289]pc=0x44080000, r0=0x4cf45000, r1=0x0
INFO:    BL3-1: Preparing for EL3 exit to normal world, Kernel
INFO:    BL3-1: Next image address = 0x44080000
INFO:    BL3-1: Next image spsr = 0x3c9
[ATF][    11.974557]el3_exit
[    0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
[    0.000000] Linux version 5.4.87 ([email protected]) (gcc version 8.4.0 (OpenWrt GCC 8.4.0 r0+15420-767aad78b7)) #0 SMP Sat Jan 9 08:21:18 2021
[    0.000000] Machine model: Buffalo WSR-2533DHP2
[    0.000000] earlycon: uart8250 at MMIO32 0x0000000011002000 (options '')
[    0.000000] printk: bootconsole [uart8250] enabled
[    0.000000] On node 0 totalpages: 65488
[    0.000000]   DMA32 zone: 1024 pages used for memmap
[    0.000000]   DMA32 zone: 0 pages reserved
[    0.000000]   DMA32 zone: 65488 pages, LIFO batch:15
[    0.000000] psci: probing for conduit method from DT.
[    0.000000] psci: PSCIv0.2 detected in firmware.
[    0.000000] psci: Using standard PSCI v0.2 function IDs
[    0.000000] psci: Trusted OS migration not required
[    0.000000] percpu: Embedded 20 pages/cpu s43736 r8192 d29992 u81920
[    0.000000] pcpu-alloc: s43736 r8192 d29992 u81920 alloc=20*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1
[    0.000000] Detected VIPT I-cache on CPU0
[    0.000000] CPU features: detected: ARM erratum 845719
[    0.000000] CPU features: kernel page table isolation disabled by kernel configuration
[    0.000000] CPU features: detected: ARM erratum 843419
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 64464
[    0.000000] Kernel command line: earlycon=uart8250,mmio32,0x11002000 console=ttyS0,115200n8 swiotlb=512
[    0.000000] Dentry cache hash table entries: 32768 (order: 6, 262144 bytes, linear)
[    0.000000] Inode-cache hash table entries: 16384 (order: 5, 131072 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 235016K/261952K available (6334K kernel code, 408K rwdata, 1840K rodata, 384K init, 289K bss, 26936K reserved, 0K cma-reserved)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[    0.000000] rcu: Hierarchical RCU implementation.
[    0.000000] rcu:     CONFIG_RCU_FANOUT set to non-default value of 32.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 25 jiffies.
[    0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[    0.000000] GIC: GICv2 detected, but range too small and irqchip.gicv2_force_probe not set
[    0.000000] random: get_random_bytes called from start_kernel+0x2d4/0x434 with crng_init=0
[    0.000000] arch_timer: cp15 timer(s) running at 12.50MHz (phys).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x2e2049cda, max_idle_ns: 440795202628 ns
[    0.000003] sched_clock: 56 bits at 12MHz, resolution 80ns, wraps every 4398046511080ns
[    0.008467] Calibrating delay loop (skipped), value calculated using timer frequency.. 25.00 BogoMIPS (lpj=50000)
[    0.019105] pid_max: default: 32768 minimum: 301
[    0.023958] Mount-cache hash table entries: 512 (order: 0, 4096 bytes, linear)
[    0.031444] Mountpoint-cache hash table entries: 512 (order: 0, 4096 bytes, linear)
[    0.040238] ASID allocator initialised with 65536 entries
[    0.045888] rcu: Hierarchical SRCU implementation.
[    0.051101] smp: Bringing up secondary CPUs ...
[    0.056102] Detected VIPT I-cache on CPU1
[    0.056134] CPU1: Booted secondary processor 0x0000000001 [0x410fd034]
[    0.056188] smp: Brought up 1 node, 2 CPUs
[    0.071344] SMP: Total of 2 processors activated.
[    0.076215] CPU features: detected: 32-bit EL0 Support
[    0.081536] CPU features: detected: CRC32 instructions
[    0.086916] CPU: All CPU(s) started at EL2
[    0.091164] alternatives: patching kernel code
[    0.098414] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.108527] futex hash table entries: 512 (order: 3, 32768 bytes, linear)
[    0.115646] pinctrl core: initialized pinctrl subsystem
[    0.121528] NET: Registered protocol family 16
[    0.126312] DMA: preallocated 256 KiB pool for atomic allocations
[    0.143393] GPIO line 463 (rtl8367s-reset) hogged as output/high
[    0.159029] SCSI subsystem initialized
[    0.163023] libata version 3.00 loaded.
[    0.167137] usbcore: registered new interface driver usbfs
[    0.172948] usbcore: registered new interface driver hub
[    0.178480] usbcore: registered new device driver usb
[    0.184141] workqueue: max_active 576 requested for napi_workq is out of range, clamping between 1 and 512
[    0.195004] clocksource: Switched to clocksource arch_sys_counter
[    0.201827] thermal_sys: Registered thermal governor 'fair_share'
[    0.201831] thermal_sys: Registered thermal governor 'bang_bang'
[    0.208154] thermal_sys: Registered thermal governor 'step_wise'
[    0.214377] thermal_sys: Registered thermal governor 'user_space'
[    0.220599] thermal_sys: Registered thermal governor 'power_allocator'
[    0.227169] NET: Registered protocol family 2
[    0.238693] tcp_listen_portaddr_hash hash table entries: 256 (order: 0, 4096 bytes, linear)
[    0.247358] TCP established hash table entries: 2048 (order: 2, 16384 bytes, linear)
[    0.255397] TCP bind hash table entries: 2048 (order: 3, 32768 bytes, linear)
[    0.262813] TCP: Hash tables configured (established 2048 bind 2048)
[    0.269449] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.276223] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.283517] NET: Registered protocol family 1
[    0.288044] PCI: CLS 0 bytes, default 64
[    0.292935] workingset: timestamp_bits=46 max_order=16 bucket_order=0
[    0.302128] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.308191] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.333220] mt-pmic-pwrap 10001000.pwrap: unexpected interrupt int=0x1
[    0.347184] Serial: 8250/16550 driver, 3 ports, IRQ sharing disabled
[    0.354395] printk: console [ttyS0] disabled
[    0.378973] 11002000.serial: ttyS0 at MMIO 0x11002000 (irq = 116, base_baud = 1562500) is a ST16650V2
[    0.388538] printk: console [ttyS0] enabled
[    0.388538] printk: console [ttyS0] enabled
[    0.396904] printk: bootconsole [uart8250] disabled
[    0.396904] printk: bootconsole [uart8250] disabled
[    0.407110] cacheinfo: Unable to detect cache hierarchy for CPU 0
[    0.413585] mtk-ecc 1100e000.ecc: probed
[    0.418352] nand: device found, Manufacturer ID: 0xef, Chip ID: 0xa1
[    0.424701] nand: Winbond W29N01HZ
[    0.428099] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    0.435666] mtk-nand 1100d000.nfi: eccsize 512 eccstrength 4
[    0.441327] Scanning device for bad blocks
[    0.553371] random: fast init done
[    0.882044] 9 fixed-partitions partitions found on MTD device mtk-nand
[    0.888568] Creating 9 MTD partitions on "mtk-nand":
[    0.893531] 0x000000000000-0x000000080000 : "Preloader"
[    0.899213] 0x000000080000-0x0000000c0000 : "ATF"
[    0.904272] 0x0000000c0000-0x000000140000 : "Bootloader"
[    0.909922] 0x000000140000-0x0000001c0000 : "Config"
[    0.915247] 0x0000001c0000-0x000000200000 : "factory"
[    0.920640] 0x000000200000-0x000003c00000 : "firmware"
[    0.926802] 2 trx-fw partitions found on MTD device firmware
[    0.932462] Creating 2 MTD partitions on "firmware":
[    0.937424] 0x00000000001c-0x000000400000 : "kernel"
[    0.942744] 0x000000400000-0x000003a00000 : "ubi"
[    0.948046] 0x000003c00000-0x000007600000 : "Kernel2"
[    0.953729] 0x000007600000-0x000007800000 : "glbcfg"
[    0.959060] 0x000007800000-0x000007a00000 : "board_data"
[    0.965210] libphy: Fixed MDIO Bus: probed
[    0.992523] libphy: mdio: probed
[    0.996557] mtk_soc_eth 1b100000.ethernet eth0: mediatek frame engine at 0xffffffc0113e0000, irq 124
[    1.006083] mtk-thermal 1100b000.thermal: Device not calibrated, using default calibration values
[    1.015272] mtk-wdt 10212000.watchdog: Watchdog enabled (timeout=31 sec, nowayout=0)
[    1.025740] NET: Registered protocol family 10
[    1.030736] Segment Routing with IPv6
[    1.034441] NET: Registered protocol family 17
[    1.038957] 8021q: 802.1Q VLAN Support v1.8
[    1.052579] mtk-pcie 1a143000.pcie: host bridge /pcie@1a143000 ranges:
[    1.059131] mtk-pcie 1a143000.pcie: Parsing ranges property...
[    1.064970] mtk-pcie 1a143000.pcie:   MEM 0x20000000..0x27ffffff -> 0x20000000
[    1.098726] mtk-pcie 1a143000.pcie: PCI host bridge to bus 0000:00
[    1.104908] pci_bus 0000:00: root bus resource [bus 00-ff]
[    1.110390] pci_bus 0000:00: root bus resource [mem 0x20000000-0x27ffffff]
[    1.117260] pci_bus 0000:00: scanning bus
[    1.121294] pci 0000:00:00.0: [14c3:3258] type 01 class 0x060400
[    1.127336] pci 0000:00:00.0: reg 0x10: [mem 0x00000000-0x1ffffffff 64bit pref]
[    1.135947] pci_bus 0000:00: fixups for bus
[    1.140130] pci 0000:00:00.0: scanning [bus 00-00] behind bridge, pass 0
[    1.146827] pci 0000:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.154835] pci 0000:00:00.0: scanning [bus 00-00] behind bridge, pass 1
[    1.161613] pci_bus 0000:01: scanning bus
[    1.165745] pci 0000:01:00.0: [14c3:7615] type 00 class 0x000280
[    1.171973] pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x000fffff 64bit]
[    1.179710] pci 0000:01:00.0: 2.000 Gb/s available PCIe bandwidth, limited by 2.5 GT/s x1 link at 0000:00:00.0 (capable of 4.000 Gb/s with 5 GT/s x1 link)
[    1.204058] pci_bus 0000:01: fixups for bus
[    1.208240] pci_bus 0000:01: bus scan returning with max=01
[    1.213810] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[    1.220423] pci_bus 0000:00: bus scan returning with max=01
[    1.226003] pci 0000:00:00.0: BAR 0: no space for [mem size 0x200000000 64bit pref]
[    1.233655] pci 0000:00:00.0: BAR 0: failed to assign [mem size 0x200000000 64bit pref]
[    1.241654] pci 0000:00:00.0: BAR 8: assigned [mem 0x20000000-0x200fffff]
[    1.248441] pci 0000:01:00.0: BAR 0: assigned [mem 0x20000000-0x200fffff 64bit]
[    1.255828] pci 0000:00:00.0: PCI bridge to [bus 01]
[    1.260795] pci 0000:00:00.0:   bridge window [mem 0x20000000-0x200fffff]
[    1.267645] pcieport 0000:00:00.0: of_irq_parse_pci: failed with rc=-22
[    1.274254] pcieport 0000:00:00.0: assign IRQ: got 0
[    1.279223] pcieport 0000:00:00.0: enabling device (0000 -> 0002)
[    1.285327] pcieport 0000:00:00.0: enabling bus mastering
[    1.290980] mtk_hsdma 1b007000.dma-controller: Using 3 as missing dma-requests property
[    1.299141] mtk_hsdma 1b007000.dma-controller: MediaTek HSDMA driver registered
[    1.306889] UBI: auto-attach mtd7
[    1.310209] ubi0: attaching mtd7
[    1.331026] UBI: EOF marker found, PEBs from 50 will be erased
[    1.337146] ubi0: scanning is finished
[    1.370310] ubi0: volume 1 ("rootfs_data") re-sized from 9 to 360 LEBs
[    1.377094] ubi0: attached mtd7 (name "ubi", size 54 MiB)
[    1.382495] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 129024 bytes
[    1.389365] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 512
[    1.396060] ubi0: VID header offset: 512 (aligned 512), data offset: 2048
[    1.402842] ubi0: good PEBs: 432, bad PEBs: 0, corrupted PEBs: 0
[    1.408842] ubi0: user volume: 2, internal volumes: 1, max. volumes count: 128
[    1.416058] ubi0: max/mean erase counter: 1/0, WL threshold: 4096, image sequence number: 1610180478
[    1.425185] ubi0: available PEBs: 0, total reserved PEBs: 432, PEBs reserved for bad PEB handling: 20
[    1.434407] ubi0: background thread "ubi_bgt0d" started, PID 596
[    1.440836] block ubiblock0_0: created from ubi0:0(rootfs)
[    1.446328] ubiblock: device ubiblock0_0 (rootfs) set to be root filesystem
[    1.453289] hctosys: unable to open rtc device (rtc0)
[    1.467566] VFS: Mounted root (squashfs filesystem) readonly on device 254:0.
[    1.474877] Freeing unused kernel memory: 384K
[    1.495039] Run /sbin/init as init process
[    1.752912] init: Console is alive
[    1.756413] init: - watchdog -
[    2.086311] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    2.107122] rtl8367b rtl8367s: using MDIO bus 'mdio'
[    2.113013] rtl8367b rtl8367s: found chip num:6367 ver:00a0, mode:00a0
[    2.119541] rtl8367b rtl8367s: RTL8367S chip found
[    3.753773] libphy: rtl8367s: probed
[    3.758618] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    3.774112] init: - preinit -
[    4.139933] mtk_soc_eth 1b100000.ethernet eth0: configuring for fixed/2500base-x link mode
[    4.148605] mtk_soc_eth 1b100000.ethernet eth0: Link is Up - 2.5Gbps/Full - flow control rx/tx
[    4.157425] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[    4.164140] random: procd: uninitialized urandom read (4 bytes read)
Press the [f] key and hit [enter] to enter failsafe mode
Press the [1], [2], [3] or [4] key and hit [enter] to select the debug level
[    8.257100] UBIFS (ubi0:1): default file-system created
[    8.263211] UBIFS (ubi0:1): Mounting in unauthenticated mode
[    8.268931] UBIFS (ubi0:1): background thread "ubifs_bgt0_1" started, PID 687
[    8.353017] UBIFS (ubi0:1): UBIFS: mounted UBI device 0, volume 1, name "rootfs_data"
[    8.360847] UBIFS (ubi0:1): LEB size: 129024 bytes (126 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
[    8.370757] UBIFS (ubi0:1): FS size: 45158400 bytes (43 MiB, 350 LEBs), journal size 2322432 bytes (2 MiB, 18 LEBs)
[    8.381185] UBIFS (ubi0:1): reserved for root: 2132942 bytes (2082 KiB)
[    8.387796] UBIFS (ubi0:1): media format: w5/r0 (latest is w5/r0), UUID 1B218DD0-99F5-443A-B99F-08B4625FC2E1, small LPT model
[    8.400517] mount_root: overlay filesystem has not been fully initialized yet
[    8.407804] mount_root: switching to ubifs overlay
[    8.415914] urandom-seed: Seed file not found (/etc/urandom.seed)
[    8.459638] procd: - early -
[    8.462544] procd: - watchdog -
[    8.993867] procd: - watchdog -
[    9.002635] procd: - ubus -
[    9.045241] random: ubusd: uninitialized urandom read (4 bytes read)
[    9.056132] random: ubusd: uninitialized urandom read (4 bytes read)
[    9.062592] random: ubusd: uninitialized urandom read (4 bytes read)
[    9.069234] procd: - init -
Please press Enter to activate this console.
[    9.265920] kmodloader: loading kernel modules from /etc/modules.d/*
[    9.294771] urngd: v1.0.2 started.
[    9.320996] Loading modules backported from Linux version v5.8.18-0-gab435ce49bd1
[    9.322258] random: crng init done
[    9.328504] Backport generated by backports.git v5.8.18-1-0-ga630fd46
[    9.338355] random: 6 urandom warning(s) missed due to ratelimiting
[    9.378936] xt_time: kernel timezone is -0000
[    9.425930] mt7615e 0000:01:00.0: assign IRQ: got 129
[    9.431050] pci 0000:00:00.0: enabling bus mastering
[    9.436028] mt7615e 0000:01:00.0: enabling device (0000 -> 0002)
[    9.442104] mt7615e 0000:01:00.0: enabling bus mastering
[    9.454537] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
[    9.489913] ieee80211 phy1: Selected rate control algorithm 'minstrel_ht'
[    9.497686] mt7615e 0000:01:00.0: HW/SW Version: 0x8a108a10, Build Time: 20180518100604a
[    9.497686]
[    9.517526] PPP generic driver version 2.4.2
[    9.522457] NET: Registered protocol family 24
[    9.530917] mt7622-wmac 18000000.wmac: HW/SW Version: 0x8a108a10, Build Time: 20190801210006a
[    9.530917]
[    9.553975] kmodloader: done loading kernel modules from /etc/modules.d/*
[    9.711065] mt7615e 0000:01:00.0: N9 Firmware Version: _reserved_, Build Time: 20200814163649
[    9.739924] mt7615e 0000:01:00.0: CR4 Firmware Version: _reserved_, Build Time: 20190121161307
[    9.793168] mt7622-wmac 18000000.wmac: N9 Firmware Version: 2.0, Build Time: 20200131180931
[   20.040571] mtk_soc_eth 1b100000.ethernet eth0: Link is Down
[   20.046932] mtk_soc_eth 1b100000.ethernet: PPE table busy
[   20.071304] mtk_soc_eth 1b100000.ethernet eth0: configuring for fixed/2500base-x link mode
[   20.080646] mtk_soc_eth 1b100000.ethernet eth0: Link is Up - 2.5Gbps/Full - flow control rx/tx
[   20.089316] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   20.101871] br-lan: port 1(eth0.1) entered blocking state
[   20.107291] br-lan: port 1(eth0.1) entered disabled state
[   20.112918] device eth0.1 entered promiscuous mode
[   20.117740] device eth0 entered promiscuous mode
[   20.123851] br-lan: port 1(eth0.1) entered blocking state
[   20.129295] br-lan: port 1(eth0.1) entered forwarding state

BusyBox v1.31.1 () built-in shell (ash)

_______                     ________        __
|       |.-----.-----.-----.|  |  |  |.----.|  |_
|   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
|_______||   __|_____|__|__||________||__|  |____|
|__| W I R E L E S S   F R E E D O M
-----------------------------------------------------
OpenWrt SNAPSHOT, r0+15500-959d141004
-----------------------------------------------------
=== 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:/#

WSR-2533DHP2 進捗報告

長らくRTL8367Sがどうにもできずに放置に近い状態になってしまっていたが、TL-R600VPN v4でRTL8367Sに再会したのをきっかけに作業を行い、だいぶ進捗を出せたので記録として。

WSR-2533DHP2仕様

  • SoC: MediaTek MT7622B
    • ARM Cortex-A53 (aarch64)
    • 1.35GHz, 2C2T
  • RAM: DDR3 256MiB
  • Flash: NAND 128MiB
  • Ethernet: 10/100/1000
    • Realtek RTL8367S
  • WLAN: 2.4/5GHz 4T4R
    • 2.4GHz: SoC (MT7622B)
    • 5GHz: MT7615

OpenWrtと絡めた雑感

targetが成熟途中
MT7622はmediatek targetの “mt7622” subtargetに属するが、mediatek target全体としてまだramipsやar71xx/ath79のような程度の成熟度合いには遠い印象。ウォッチしていると、既存デバイスのDTSの内容がコロコロ変わる。
イーサネットスイッチのノードでcompatibleの関連付けが全く違うものに変更されたときは愕然とした。(たぶん計画段階とは違うものをボードの正式版で載せた為だろう)
RTL8367Sスイッチのサポートが無くて厳しい
WSR-2533DHP2は上記仕様のとおりRTL8367Sスイッチを搭載する。このスイッチはSoCなどコントローラとの接続において、RGMIIやSGMIIのほか、2.5Gbpsでの通信が可能なHSGMIIに対応する。OpenWrtでは、このスイッチをサポートするドライバが記事を書いた時点で存在していない。
サポートを追加するpatchは投げられているが、reviewに対してauthorの反応が無く、マージされるか非常に怪しい。(また、そのpatchではRGMIIのサポートしか追加されていないためWSR-2533DHP2では不足)
RTL8367Sスイッチを搭載するデバイスが他になくて色々厳しい
正確には、WSR-2533DHP2のサポート作業を始めた当初は同じと思われるノードが記述されていたが、後になってMediaTek MT753xに変更された。現状他にRTL8367S系のスイッチを搭載するボードはOpenWrt内に存在せず、ネットワーク周りの構成が参考にできない。

サポート作業進捗状況

項目 状態 備考
Kernelバージョン 5.4 4.19では、MT7622のイーサネット周辺の実装に問題があるようで、大量のbackportが必要となりconflictを起こしやすいため。Kernel 5.4では修正済みの模様であることから、そちらのみを使用。作業開始当初は4.14だったことを考えると、遠くまで来たものだ。
initramfsでのブート OK
NAND Flashの認識 OK Kernel 5.4ではraw NANDのサポートの有効化に必要なconfigが変更されており、なかなかNAND Flashの認識を有効化できず手間取った。
MT7622 GMACの認識/動作 OK 上記の通り、修正が行われた状態のため見た範囲では動作に問題無し。2.5GbpsのHSGMIIでもしっかり動作。
RTL8367S
  • 認識: OK
  • HSGMII: OK
  • VLAN: OK
TP-Link TL-R600VPN v4を最近購入し、それのGPLソースコードを基にOpenWrtに既存のRTL8367Bドライバ (RTL8367RB, RTL8367R-VB) へRTL8367Sのサポートを追加した。ベースとしては、前述の既に投げられているRGMIIのみのpatchと、以前やり取りして行われたhauke氏による追加の改変を利用した。
sysupgradeでのブート WIP

当初KernelのみTRXに押し込みRootFSはUBIで持たせることを考えたが、Kernelをブートできずエラーも無しに止まってしまうためTRXにすべて押し込むことでブートはできるようになった。
ただし、Flashからブートした場合RTL8367Sのprobeに失敗する。RESET線か電源線の問題と予想。
SoC内蔵無線機能の認識 保留 いずれやる必要はあるが、優先度は低く、他に重要な問題が上記の通り在るので後回し。

以上。引き続き頑張る。

余談: NATをLAN -> WANで計測したところ、Netfilter Flow Offloadingの有無にかかわらず750Mbps超出ていた。その状態でもCPUのidleは平均63%ほどだった。(Flow Offloadingが機能していないような気もする?)