[BPI-R64] mt7622 wifi

Hi

I get info here,that mt7622 wifi (not mt7615 from r64 version <1) is working with openwrt/lede singleimage. As i have no config for it,i ask here if anyone have more info of which driver drivercode is used,so that i can integrate it to my repo

@bourne_hlm can you give more infos about ra0 in your system,e.g. udev,lshw,module-name,bootlog,dts (/sys/firmware/devicetree),etc.

I found the emmc_singleimage.img from Bpi-r64 quick start (boot from eMMC), That image is build from lede, and it include the mt7622 wifi driver.

Here is the module list:

root@LEDE:~# lsmod | grep mt
ahci_mtk                3008  0
libahci                20891  2 ahci_mtk,libahci_platform
libahci_platform        6530  1 ahci_mtk
libata                138296  3 ahci_mtk,libahci_platform,libahci
mt_whnat               60089  0
mt_wifi              4014425  2 mt_whnat
mtkhnat                54038  2 mt_whnat,mt_wifi
usbcore               154280  9 usb_storage,xhci_mtk,xhci_plat_hcd,xhci_pci,xhci_hcd,ohci_platform,ohci_hcd,ehci_platform,ehci_hcd
xhci_hcd              111422  3 xhci_mtk,xhci_plat_hcd,xhci_pci
xhci_mtk                7872  0

Here is the ls /dev/

root@LEDE:~# ls /dev

autofs              null                tty4
btif                port                tty40
bus                 ppp                 tty41
console             ptmx                tty42
cpu_dma_latency     pts                 tty43
crypto              ptyp0               tty44
cuse                ptyp1               tty45
full                ptyp2               tty46
fuse                ptyp3               tty47
iio:device0         ptyp4               tty48
kmsg                ptyp5               tty49
log                 ptyp6               tty5
loop-control        ptyp7               tty50
loop0               ptyp8               tty51
loop1               ptyp9               tty52
loop2               ptypa               tty53
loop3               ptypb               tty54
loop4               ptypc               tty55
loop5               ptypd               tty56
loop6               ptype               tty57
loop7               ptypf               tty58
mem                 random              tty59
memory_bandwidth    shm                 tty6
mmcblk0             stpbt               tty60
mmcblk0boot0        stpbt_raw           tty61
mmcblk0boot1        stpbtfwlog          tty62
mmcblk0p1           tty                 tty63
mmcblk0p2           tty0                tty7
mmcblk0p3           tty1                tty8
mmcblk0p4           tty10               tty9
mmcblk0p5           tty11               ttyS0
mmcblk0rpmb         tty12               ttyS1
mtd0                tty13               ttyS2
mtd0ro              tty14               ttyS3
mtd1                tty15               ttyp0
mtd1ro              tty16               ttyp1
mtd2                tty17               ttyp2
mtd2ro              tty18               ttyp3
mtd3                tty19               ttyp4
mtd3ro              tty2                ttyp5
mtd4                tty20               ttyp6
mtd4ro              tty21               ttyp7
mtd5                tty22               ttyp8
mtd5ro              tty23               ttyp9
mtd6                tty24               ttypa
mtd6ro              tty25               ttypb
mtd7                tty26               ttypc
mtd7ro              tty27               ttypd
mtd8                tty28               ttype
mtd8ro              tty29               ttypf
mtdblock0           tty3                ubi_ctrl
mtdblock1           tty30               urandom
mtdblock2           tty31               vcs
mtdblock3           tty32               vcs1
mtdblock4           tty33               vcsa
mtdblock5           tty34               vcsa1
mtdblock6           tty35               vga_arbiter
mtdblock7           tty36               watchdog
mtdblock8           tty37               watchdog0
network_latency     tty38               zero
network_throughput  tty39

Here is the ifconfig:

root@LEDE:~# ifconfig
br-lan    Link encap:Ethernet  HWaddr 0A:97:0D:E4:16:5A
          inet addr:192.168.1.1  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fd73:93ac:f6d2::1/60 Scope:Global
          inet6 addr: fe80::897:dff:fee4:165a/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:70 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:9580 (9.3 KiB)

eth0      Link encap:Ethernet  HWaddr 0A:97:0D:E4:16:5A
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:49 errors:0 dropped:3 overruns:0 frame:0
          TX packets:70 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:4024 (3.9 KiB)  TX bytes:10840 (10.5 KiB)
          Interrupt:251

eth1      Link encap:Ethernet  HWaddr CE:F7:6F:89:24:2D
          inet6 addr: fe80::ccf7:6fff:fe89:242d/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:853 errors:0 dropped:0 overruns:0 frame:0
          TX packets:323 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:93126 (90.9 KiB)  TX bytes:107226 (104.7 KiB)
          Interrupt:251

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:2124 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2124 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1
          RX bytes:140892 (137.5 KiB)  TX bytes:140892 (137.5 KiB)

ra0       Link encap:Ethernet  HWaddr 00:0C:43:26:60:60
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
          Interrupt:246

root@LEDE:~# iwconfig
gre0      no wireless extensions.

wds0      RTWIFI[  934.295566] mtk_do_priv_ioctl ioctl 35585 is not supported SoftAP  ESSID:"
MTK_AP1"
    [  934.302164] mtk_do_priv_ioctl ioctl 35585 is not supported      Mode:Master  Channel=6  Access Point: 00:0C:43:26:60:60
          Bit Rate=1 Mb/s

sit0      no wireless extensions.

lo        no wireless extensions.

wds1      RTWIFI SoftAP  ESSID:""
          Mode:Master  Channel=6  Access Point: Not-Associated
          Bit Rate:1 Mb/s

apcli0    RTWIFI SoftAP  ESSID:""
          Mode:Managed  Channel=6  Access Point: Not-Associated
          Bit Rate:7 Mb/s

eth1      no wireless extensions.

wds3      RTWIFI SoftAP  ESSID:""
          Mode:Master  Channel=6  Access Point: Not-Associated
          Bit Rate:1 Mb/s

ra0       RTWIFI SoftAP  ESSID:"MTK_AP1"
          Mode:Master  Channel=6  Access Point: 00:0C:43:26:60:60
          Bit Rate=288 Mb/s

br-lan    no wireless extensions.

gretap0   no wireless extensions.

eth0      no wireless extensions.

wds2      RTWIFI SoftAP  ESSID:""
          Mode:Master  Channel=6  Access Point: Not-Associated
          Bit Rate:1 Mb/s

root@LEDE:~#

Here is the bootlog, part1:

mmc0 is current device
mmc0 operation
dev_num = 0

MMC read: dev # 0, block # 4096, count 1 ... 1 blocks read: OK
[do_read_image_blks] This is a FIT image,img_size = 0x27004c
mmc0 operation
dev_num = 0

MMC read: dev # 0, block # 4096, count 4993 ... 4993 blocks 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-4.4.177
     Type:         Kernel Image
     Compression:  lzma compressed
     Data Start:   0x40080010
     Data Size:    2524718 Bytes = 2.4 MiB
     Architecture: AArch64
     OS:           Linux
     Load Address: 0x41080000
     Entry Point:  0x41080000
     Hash algo:    crc32
     Hash value:   47a39bcb
     Hash algo:    sha1
     Hash value:   8a9b2a65a2d53feb69241018b1759403073d0290
   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 MTK-AC4300-LYNX device tree blob
     Type:         Flat Device Tree
     Compression:  uncompressed
     Data Start:   0x402e8780
     Data Size:    29898 Bytes = 29.2 KiB
     Architecture: AArch64
     Hash algo:    crc32
     Hash value:   5329bc39
     Hash algo:    sha1
     Hash value:   7dfae29bdde835fa3a4cccca0c54515682fe7a30
   Verifying Hash Integrity ... crc32+ sha1+ OK
   Booting using the fdt blob at 0x402e8780
   Uncompressing Kernel Image ... OK
   Loading Device Tree to 6bff5000, end 6bfff4c9 ... OK

Starting kernel ...

[ATF][    35.412923]save kernel info
[ATF][    35.415860]Kernel_EL2
[ATF][    35.418530]Kernel is 64Bit
[ATF][    35.421618]pc=0x41080000, r0=0x6bff5000, r1=0x0
INFO:    BL3-1: Preparing for EL3 exit to normal world, Kernel
INFO:    BL3-1: Next image address = 0x41080000
INFO:    BL3-1: Next image spsr = 0x3c9
[ATF][    35.439316]el3_exit
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.4.177 (steven@compiler) (gcc version 5.4.0 (LEDE GCC 5.4.0 r0-f66cc3a8) ) #0 SMP PREEMPT Thu Aug 29 12:08:31 UTC 2019
[    0.000000] Boot CPU: AArch64 Processor [410fd034]
[    0.000000] On node 0 totalpages: 262096
[    0.000000]   DMA zone: 4096 pages used for memmap
[    0.000000]   DMA zone: 0 pages reserved
[    0.000000]   DMA zone: 262096 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 19 pages/cpu @ffffffc03ffa2000 s39424 r8192 d30208 u77824
[    0.000000] pcpu-alloc: s39424 r8192 d30208 u77824 alloc=19*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1
[    0.000000] Detected VIPT I-cache on CPU0
[    0.000000] CPU features: enabling workaround for ARM erratum 845719
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 258000
[    0.000000] Kernel command line: console=ttyS0,115200n1              initrd=0x44000000,0x615E36 loglevel=8 androidboot.hardware=mt7622 swiotlb=512 rootfstype=squashfs               earlyprintk block2mtd.block2mtd=/dev/mmcblk0,65536,eMMC,5 mtdparts=eMMC:768k(mbr)ro,512k(uboot),512k(Config),256k(Factory),32M(Kernel),2048M(usrdata)
[    0.000000] PID hash table entries: 4096 (order: 3, 32768 bytes)
[    0.000000] Dentry cache hash table entries: 131072 (order: 8, 1048576 bytes)
[    0.000000] Inode-cache hash table entries: 65536 (order: 7, 524288 bytes)
[    0.000000] software IO TLB: mapped [mem 0x7fcf4000-0x7fdf4000] (1MB)
[    0.000000] Memory: 1014900K/1048384K available (4920K kernel code, 391K rwdata, 1768K rodata, 328K init, 377K bss, 33484K reserved, 0K cma-reserved)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     modules : 0xffffff8000000000 - 0xffffff8008000000   (   128 MB)
[    0.000000]     vmalloc : 0xffffff8008000000 - 0xffffffbdbfff0000   (   246 GB)
[    0.000000]       .init : 0xffffff800870c000 - 0xffffff800875e000   (   328 KB)
[    0.000000]       .text : 0xffffff8008080000 - 0xffffff800854f000   (  4924 KB)
[    0.000000]     .rodata : 0xffffff800854f000 - 0xffffff800870c000   (  1780 KB)
[    0.000000]       .data : 0xffffff800875e000 - 0xffffff80087bfc70   (   392 KB)
[    0.000000]     vmemmap : 0xffffffbdc0000000 - 0xffffffbfc0000000   (     8 GB maximum)
[    0.000000]               0xffffffbdc0000000 - 0xffffffbdc1000000   (    16 MB actual)
[    0.000000]     fixed   : 0xffffffbffe7fb000 - 0xffffffbffec00000   (  4116 KB)
[    0.000000]     PCI I/O : 0xffffffbffee00000 - 0xffffffbfffe00000   (    16 MB)
[    0.000000]     memory  : 0xffffffc000000000 - 0xffffffc040000000   (  1024 MB)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000]  Build-time adjustment of leaf fanout to 64.
[    0.000000] NR_IRQS:64 nr_irqs:64 0
[    0.000000] Architected 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.000057] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 191126102035 ns
[    0.000226] Console: colour dummy device 80x25
[    0.000243] Calibrating delay loop (skipped), value calculated using timer frequency.. 25.00 BogoMIPS (lpj=50000)
[    0.000251] pid_max: default: 32768 minimum: 301
[    0.000301] Mount-cache hash table entries: 2048 (order: 2, 16384 bytes)
[    0.000306] Mountpoint-cache hash table entries: 2048 (order: 2, 16384 bytes)
[    0.000805] sched-energy: CPU device node has no sched-energy-costs
[    0.000812] Invalid sched_group_energy for CPU0
[    0.000816] CPU0: update cpu_capacity 1024
[    0.000845] ASID allocator initialised with 32768 entries
[    0.032096] Detected VIPT I-cache on CPU1
[    0.032125] Invalid sched_group_energy for CPU1
[    0.032127] CPU1: update cpu_capacity 1024
[    0.032129] CPU1: Booted secondary processor [410fd034]
[    0.032165] Brought up 2 CPUs
[    0.032178] SMP: Total of 2 processors activated.
[    0.032184] CPU features: detected feature: 32-bit EL0 Support
[    0.032190] CPU: All CPU(s) started at EL2
[    0.032202] alternatives: patching kernel code
[    0.032279] Invalid sched_group_energy for CPU1
[    0.032284] Invalid sched_group_energy for Cluster1
[    0.032288] Invalid sched_group_energy for CPU0
[    0.032291] Invalid sched_group_energy for Cluster0
[    0.036750] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.036768] futex hash table entries: 512 (order: 4, 65536 bytes)
[    0.036874] pinctrl core: initialized pinctrl subsystem
[    0.037387] NET: Registered protocol family 16
[    0.037820] [SPM] spm_base = ffffff8008026000
[    0.037825] [SPM] spm_irq_0 = 6, spm_irq_1 = 7
[    0.037828] [SPM] spm_irq_2 = 8, spm_irq_3 = 9
[    0.037831] [SPM] set spm as wakeup devcie.
[    0.037836] [SPM] spm_rtc cnt: 24414.
[    0.052061] cpuidle: using governor menu
[    0.052142] vdso: 2 pages (1 code @ ffffff8008555000, 1 data @ ffffff8008764000)
[    0.052296] DMA: preallocated 256 KiB pool for atomic allocations
[    0.052395] Serial: AMBA PL011 UART driver
[    0.052449] [SPM] PWAKE_EN:1, PCMWDT_EN:0, BYPASS_SYSPWREQ:0, I2C_CHANNEL:2
[    0.052454] [SLP] SLEEP_DPIDLE_EN:1, REPLACE_DEF_WAKESRC:0, SUSPEND_LOG_EN:1
[    0.055969] genirq: Setting trigger mode 2 for irq 229 failed (mtk_sysirq_set_type+0x0/0xc8)
[    0.078122] vgaarb: loaded
[    0.078369] SCSI subsystem initialized
[    0.080347] rbus 18000000.wbsys: PCI host bridge to bus 0000:00
[    0.080360] pci_bus 0000:00: root bus resource [mem 0x18000000-0x180fffff]
[    0.080368] pci_bus 0000:00: root bus resource [bus 00-ff]
[    0.080386] pci 0000:00:00.0: [14c3:7622] type 00 class 0x000280
[    0.080402] pci 0000:00:00.0: reg 0x10: [mem 0x18000000-0x1800000f 64bit]
[    0.080409] pci 0000:00:00.0: reg 0x18: [mem 0x00000000-0x0000000f]
[    0.080415] pci 0000:00:00.0: reg 0x1c: [mem 0x00000000-0x0000000f]
[    0.080421] pci 0000:00:00.0: reg 0x20: [mem 0x00000000-0x0000000f]
[    0.080428] pci 0000:00:00.0: reg 0x24: [mem 0x00000000-0x0000000f]
[    0.080458] pci 0000:00:00.0: of_irq_parse_pci() failed with rc=-22
[    0.080881] clocksource: Switched to clocksource arch_sys_counter
[    0.087523] NET: Registered protocol family 2
[    0.087900] TCP established hash table entries: 8192 (order: 4, 65536 bytes)
[    0.087958] TCP bind hash table entries: 8192 (order: 5, 131072 bytes)
[    0.088072] TCP: Hash tables configured (established 8192 bind 8192)
[    0.088140] UDP hash table entries: 512 (order: 2, 16384 bytes)
[    0.088162] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[    0.088275] NET: Registered protocol family 1
[    0.088310] PCI: CLS 0 bytes, default 128
[    0.088444] Unpacking initramfs...
[    0.088452] Initramfs unpacking failed: junk in compressed archive
[    0.091105] Freeing initrd memory: 6228K
[    0.098899] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.099095] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.099555] fuse init (API version 7.23)
[    0.100213] io scheduler noop registered
[    0.100401] io scheduler cfq registered (default)
[    0.203132] mtk-pcie 1a140000.pcie: Port0 link down
[    0.303735] mtk-pcie 1a140000.pcie: Port1 link down
[    0.303958] mtk-pcie 1a140000.pcie: PCI host bridge to bus 0001:00
[    0.303967] pci_bus 0001:00: root bus resource [??? 0x00000000 flags 0x0]
[    0.303974] pci_bus 0001:00: root bus resource [mem 0x20000000-0x2fffffff]
[    0.303981] pci_bus 0001:00: root bus resource [bus 00-ff]
[    0.308085] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    0.309235] console [ttyS0] disabled
[    0.329432] 11002000.serial: ttyS0 at MMIO 0x11002000 (irq = 232, base_baud = 1562500) is a ST16650V2
[    1.049813] console [ttyS0] enabled
[    1.054008] Unable to detect cache hierarchy for CPU 0
[    1.062241] loop: module loaded
[    1.065866] dump_power_table[0] = { .cpufreq_khz = 1350000,  .cpufreq_ncpu = 2,      .cpufreq_power = 995 }
[    1.075092] dump_power_table[1] = { .cpufreq_khz = 1262500,  .cpufreq_ncpu = 2,      .cpufreq_power = 811 }
[    1.084343] dump_power_table[2] = { .cpufreq_khz = 1137500,  .cpufreq_ncpu = 2,      .cpufreq_power = 736 }
[    1.093564] dump_power_table[3] = { .cpufreq_khz = 1025000,  .cpufreq_ncpu = 2,      .cpufreq_power = 624 }
[    1.102779] dump_power_table[4] = { .cpufreq_khz = 1350000,  .cpufreq_ncpu = 1,      .cpufreq_power = 517 }
[    1.111996] dump_power_table[5] = { .cpufreq_khz = 812500,   .cpufreq_ncpu = 2,      .cpufreq_power = 492 }
[    1.121126] dump_power_table[6] = { .cpufreq_khz = 1262500,  .cpufreq_ncpu = 1,      .cpufreq_power = 377 }
[    1.130343] dump_power_table[7] = { .cpufreq_khz = 600000,   .cpufreq_ncpu = 2,      .cpufreq_power = 376 }
[    1.139470] dump_power_table[8] = { .cpufreq_khz = 1137500,  .cpufreq_ncpu = 1,      .cpufreq_power = 333 }
[    1.148687] dump_power_table[9] = { .cpufreq_khz = 437500,   .cpufreq_ncpu = 2,      .cpufreq_power = 295 }
[    1.157817] dump_power_table[10] = { .cpufreq_khz = 1025000, .cpufreq_ncpu = 1,      .cpufreq_power = 258 }
[    1.167119] dump_power_table[11] = { .cpufreq_khz = 300000,  .cpufreq_ncpu = 2,      .cpufreq_power = 225 }
[    1.176334] dump_power_table[12] = { .cpufreq_khz = 812500,  .cpufreq_ncpu = 1,      .cpufreq_power = 204 }
[    1.185549] dump_power_table[13] = { .cpufreq_khz = 600000,  .cpufreq_ncpu = 1,      .cpufreq_power = 166 }
[    1.194764] dump_power_table[14] = { .cpufreq_khz = 437500,  .cpufreq_ncpu = 1,      .cpufreq_power = 140 }
[    1.203978] dump_power_table[15] = { .cpufreq_khz = 300000,  .cpufreq_ncpu = 1,      .cpufreq_power = 119 }
[    1.214395] [cal] calefuse1  = 0x7fb6ac40
[    1.218328] [cal] calefuse2  = 0x6fc010
[    1.222081] [cal] g_adc_ge_t = 0x36a
[    1.225653] [cal] g_adc_oe_t = 0x1fe
[    1.229227] [cal] g_degc_cali        = 0x31
[    1.232792] [cal] g_adc_cali_en_t    = 0x1
[    1.236625] [cal] g_o_slope  = 0x0
[    1.239939] [cal] g_o_slope_sign     = 0x0
[    1.243684] [cal] g_id               = 0x0
[    1.246650] [cal] g_o_vtsmcu1        = 0x0
[    1.250135] [cal] g_o_vtsmcu2        = 0x1bf
[    1.253793] [cal] g_o_vtsmcu3        = 0x0
[    1.257277] [cal] g_o_vtsmcu4        = 0x0
[    1.260756] [cal] g_ge               = 0x373
[    1.263892] [cal] g_gain             = 0x2a83
[    1.267289] [cal] g_x_roomt1 = 0x1f24
[    1.273944] MTK-BTIF[E]hal_btif_clk_get_and_prepare(286):[CCF]clk_btif=ffffffc003347000
[    1.281964] MTK-BTIF[E]hal_btif_clk_get_and_prepare(292):[CCF]clk_btif_apdma=ffffffc03e597100
[    1.292053] [btmtk_err] btmtk_get_irq: irq_id:240 irq_flags:8
[    1.309013] Not Support SPI-Nand device:[0x0 0x0]
[    1.314023] mtk-nor 11014000.spi: unrecognized JEDEC id bytes: 00, ef, aa
[    1.320827] mtk-nor: probe of 11014000.spi failed with error -2
[    1.327210] libphy: Fixed MDIO Bus: probed
[    1.331729] sean debug physpeed = 2500
[    1.358208] libphy: mdio: probed
[    1.361465] mtk_soc_eth 1b100000.ethernet: generated random MAC address 0a:97:0d:e4:16:5a
[    1.369802] mtk_soc_eth 1b100000.ethernet: path gmac1_sgmii in set_mux_gdm1_to_gmac1_esw updated = 1
[    1.378940] mtk_soc_eth 1b100000.ethernet: mux mux_gmac2_gmac0_to_gephy isn't present on the SoC
[    1.387726] mtk_soc_eth 1b100000.ethernet: mux mux_u3_gmac2_to_qphy isn't present on the SoC
[    1.396164] mtk_soc_eth 1b100000.ethernet: path gmac1_sgmii in set_mux_gmac1_gmac2_to_sgmii_rgmii updated = 1
[    1.406078] mtk_soc_eth 1b100000.ethernet: mux mux_gmac12_to_gephy_sgmii isn't present on the SoC
[    1.414977] mtk_soc_eth 1b100000.ethernet: connected mac 0 to PHY at fixed-0:00 [uid=00000000, driver=Generic PHY]
[    1.425655] mtk_soc_eth 1b100000.ethernet eth0: mediatek frame engine at 0xffffff80088c0000, irq 251
[    1.434808] mtk_soc_eth 1b100000.ethernet: generated random MAC address ce:f7:6f:89:24:2d
[    1.443135] mtk_soc_eth 1b100000.ethernet: path gmac2_rgmii in set_mux_gdm1_to_gmac1_esw updated = 0
[    1.452272] mtk_soc_eth 1b100000.ethernet: mux mux_gmac2_gmac0_to_gephy isn't present on the SoC
[    1.461067] mtk_soc_eth 1b100000.ethernet: mux mux_u3_gmac2_to_qphy isn't present on the SoC
[    1.469507] mtk_soc_eth 1b100000.ethernet: path gmac2_rgmii in set_mux_gmac1_gmac2_to_sgmii_rgmii updated = 0
[    1.479421] mtk_soc_eth 1b100000.ethernet: mux mux_gmac12_to_gephy_sgmii isn't present on the SoC
[    1.488308] mtk_soc_eth 1b100000.ethernet: connected mac 1 to PHY at fixed-0:01 [uid=00000000, driver=Generic PHY]
[    1.498925] mtk_soc_eth 1b100000.ethernet eth1: mediatek frame engine at 0xffffff80088c0000, irq 251
[    1.508059] netif_napi_add() called with weight 256 on device
[    1.515262] MTK_WDT_NONRST_REG(20000000)
[    1.519371] mtk-wdt 10212000.watchdog: register restart_handler on reboot_notifier_list for psci reset
[    1.528681] mtk-wdt 10212000.watchdog: Watchdog enabled (timeout=31 sec, nowayout=0)
[    1.536628] register cpuidle driver!!!!!!!!!!!!!!!!!
[    1.542242] mediatek-mt7622-pinctrl 10005000.pinctrl: pin_config_group_set op failed for group 47
[    1.551127] mtk-msdc 11230000.mmc: Error applying setting, reverse things back
[    1.558389] msdc_drv_probe!
[    1.561728] mtk-msdc 11230000.mmc: Regulator set error -22: 3300000 - 3300000
[    1.568892] mediatek-mt7622-pinctrl 10005000.pinctrl: pin_config_group_set op failed for group 47
[    1.577763] mtk-msdc 11230000.mmc: Error applying setting, reverse things back
[    1.617048] mediatek-mt7622-pinctrl 10005000.pinctrl: pin_config_group_set op failed for group 19
[    1.625992] mtk-msdc 11240000.mmc: Error applying setting, reverse things back
[    1.633315] msdc_drv_probe!
[    1.636144] mtk-msdc 11240000.mmc: Got CD GPIO
[    1.641191] mediatek-mt7622-pinctrl 10005000.pinctrl: pin_config_group_set op failed for group 19
[    1.650136] mtk-msdc 11240000.mmc: Error applying setting, reverse things back
[    1.690820] nf_conntrack version 0.5.0 (7977 buckets, 31908 max)
[    1.697696] NET: Registered protocol family 10
[    1.702789] sit: IPv6 over IPv4 tunneling driver
[    1.707835] NET: Registered protocol family 17
[    1.712319] mmc0: MAN_BKOPS_EN bit is not set
[    1.712333] bridge: automatic filtering via arp/ip/ip6tables has been deprecated. Update your scripts to load br_netfilter if you need this.
[    1.712338] 8021q: 802.1Q VLAN Support v1.8
[    1.712727] registered taskstats version 1
[    1.739182] mediatek-mt7622-pinctrl 10005000.pinctrl: pin_config_group_set op failed for group 47
[    1.748062] mtk-msdc 11230000.mmc: Error applying setting, reverse things back
[    1.761444] mtk-msdc 11230000.mmc: phase: [map:f0ffffff] [maxlen:24] [final:8]
[    1.768668] mtk-msdc 11230000.mmc: Final cmd pad delay: 8
[    1.775628] mtk-msdc 11230000.mmc: phase: [map:f87fffff] [maxlen:23] [final:7]
[    1.782852] mtk-msdc 11230000.mmc: Final data pad delay: 7
[    1.789111] mmc0: new HS200 MMC card at address 0001
[    1.794400] mmcblk0: mmc0:0001 008G30 7.28 GiB
[    1.799079] mmcblk0boot0: mmc0:0001 008G30 partition 1 4.00 MiB
[    1.805132] mmcblk0boot1: mmc0:0001 008G30 partition 2 4.00 MiB
[    1.811207] mmcblk0rpmb: mmc0:0001 008G30 partition 3 4.00 MiB
[    1.819139] GPT:Primary header thinks Alt. header is not at the end of the disk.
[    1.826545] GPT:1 != 15269887
[    1.829512] GPT:Alternate GPT header not at the end of the disk.
[    1.835520] GPT:1 != 15269887
[    1.838486] GPT: Use GNU Parted to correct GPT errors.
[    1.843646]  mmcblk0: p1 p2 p3 p4 p5
[    1.859116] mediatek-mt7622-pinctrl 10005000.pinctrl: pin_config_group_set op failed for group 19
[    1.867998] mtk-msdc 11240000.mmc: Error applying setting, reverse things back
[    1.917444] mediatek-mt7622-pinctrl 10005000.pinctrl: pin_config_group_set op failed for group 19
[    1.926317] mtk-msdc 11240000.mmc: Error applying setting, reverse things back
[    1.981637] mediatek-mt7622-pinctrl 10005000.pinctrl: pin_config_group_set op failed for group 19
[    1.990506] mtk-msdc 11240000.mmc: Error applying setting, reverse things back
[    2.277212] mt753x gsw@0: Switch is MediaTek MT7531BE rev 0
[    2.291580] libphy: mt753x_mdio: probed
[    2.422590] mt753x gsw@0: >>>>>>>>>>>>>>>>>>>>>>>>>>>>> START CALIBRATION:
[    2.431119] mt753x gsw@0: -------- gephy-calbration (port:0) --------
[    2.449226] CALDLY = 40
[    2.563342] random: nonblocking pool is initialized
[    2.684115]  GE Rext AnaCal Saturation!
[    2.688210] GE Rxet cal something wrong2
[    2.879926]  GE R50 AnaCal Saturation!
[    2.883934]  GE R50 AnaCal Done! (32) (0x0)(0x80)
[    3.070797]  GE R50 AnaCal Saturation!
[    3.074804]  GE R50 AnaCal Done! (32) (0x0)(0x80)
[    3.261621]  GE R50 AnaCal Saturation!
[    3.265629]  GE R50 AnaCal Done! (32) (0x0)(0x80)
[    3.452310]  GE R50 AnaCal Saturation!
[    3.456317]  GE R50 AnaCal Done! (32) (0x0)(0x80)
[    3.464602]  GE 1e_174(0x8080), 1e_175(0x8080)
[    3.529037]  GE Tx offset AnaCal Done! (pair-0)(6)(0x25) 0x1e_172=0x2520
[    3.578507]  GE Tx offset AnaCal Done! (pair-1)(6)(0x25) 0x1e_172=0x2525
[    3.601234]  GE Tx offset AnaCal Done! (pair-2)(1)(0x1) 0x1e_173=0x120
[    3.639808]  GE Tx offset AnaCal Done! (pair-3)(4)(0x23) 0x1e_173=0x123
[    3.752982]  GE Tx amp AnaCal Done! (pair-0)(1e_12 = 0x3c0f)
[    3.803236]  GE Tx amp AnaCal Done! (pair-1)(1e_17 = 0x1414)
[    3.857143]  GE Tx amp AnaCal Done! (pair-2)(1e_19 = 0x121a)
[    3.897848]  GE Tx amp AnaCal Done! (pair-3)(1e_21 = 0x151d)
[    3.961582] PORT 0 RX_DC_OFFSET
[    3.975813] before pairA output = 1d
[    3.981452] after pairA output = 0
[    3.986826] before pairB output = e
[    3.992377] after pairB output = 1
[    3.997760] before pairC output = d
[    4.003313] after pairC output = 0
[    4.008696] before pairD output = 1e
[    4.014343] after pairD output = fe
[    4.018130] mt753x gsw@0: -------- gephy-calbration (port:1) --------
[    4.035279] CALDLY = 40
[    4.218398]  GE R50 AnaCal Saturation!
[    4.222404]  GE R50 AnaCal Done! (32) (0x0)(0x80)
[    4.407270]  GE R50 AnaCal Saturation!
[    4.411278]  GE R50 AnaCal Done! (32) (0x0)(0x80)
[    4.596131]  GE R50 AnaCal Saturation!
[    4.600140]  GE R50 AnaCal Done! (32) (0x0)(0x80)
[    4.785044]  GE R50 AnaCal Saturation!
[    4.789052]  GE R50 AnaCal Done! (32) (0x0)(0x80)
[    4.797293]  GE 1e_174(0x8080), 1e_175(0x8080)
[    4.861102]  GE Tx offset AnaCal Done! (pair-0)(6)(0x25) 0x1e_172=0x2520
[    4.910136]  GE Tx offset AnaCal Done! (pair-1)(6)(0x25) 0x1e_172=0x2525
[    4.969727]  GE Tx offset AnaCal Done! (pair-2)(8)(0x27) 0x1e_173=0x2720
[    5.013473]  GE Tx offset AnaCal Done! (pair-3)(5)(0x24) 0x1e_173=0x2724
[    5.138677]  GE Tx amp AnaCal Done! (pair-0)(1e_12 = 0x380e)
[    5.175327]  GE Tx amp AnaCal Done! (pair-1)(1e_17 = 0x1717)
[    5.216044]  GE Tx amp AnaCal Done! (pair-2)(1e_19 = 0x1921)
[    5.250137]  GE Tx amp AnaCal Done! (pair-3)(1e_21 = 0x161e)
[    5.313837] PORT 1 RX_DC_OFFSET
[    5.328079] before pairA output = e
[    5.333632] after pairA output = ff
[    5.339104] before pairB output = f
[    5.344654] after pairB output = 1
[    5.350037] before pairC output = f
[    5.355588] after pairC output = 1
[    5.360976] before pairD output = f
[    5.366522] after pairD output = ff
[    5.370310] mt753x gsw@0: -------- gephy-calbration (port:2) --------
[    5.387437] CALDLY = 40
[    5.570471]  GE R50 AnaCal Saturation!
[    5.574480]  GE R50 AnaCal Done! (32) (0x0)(0x80)
[    5.759318]  GE R50 AnaCal Saturation!
[    5.763326]  GE R50 AnaCal Done! (32) (0x0)(0x80)
[    5.948302]  GE R50 AnaCal Saturation!
[    5.952310]  GE R50 AnaCal Done! (32) (0x0)(0x80)
[    6.137154]  GE R50 AnaCal Saturation!
[    6.141162]  GE R50 AnaCal Done! (32) (0x0)(0x80)
[    6.149414]  GE 1e_174(0x8080), 1e_175(0x8080)
[    6.207887]  GE Tx offset AnaCal Done! (pair-0)(5)(0x24) 0x1e_172=0x2420
[    6.246371]  GE Tx offset AnaCal Done! (pair-1)(4)(0x23) 0x1e_172=0x2423
[    6.284661]  GE Tx offset AnaCal Done! (pair-2)(4)(0x23) 0x1e_173=0x2320
[    6.333717]  GE Tx offset AnaCal Done! (pair-3)(6)(0x25) 0x1e_173=0x2325
[    6.412840]  GE Tx amp AnaCal Done! (pair-0)(1e_12 = 0x5816)
[    6.456025]  GE Tx amp AnaCal Done! (pair-1)(1e_17 = 0x1515)
[    6.490130]  GE Tx amp AnaCal Done! (pair-2)(1e_19 = 0x1921)
[    6.530818]  GE Tx amp AnaCal Done! (pair-3)(1e_21 = 0x151d)
[    6.594589] PORT 2 RX_DC_OFFSET
[    6.608830] before pairA output = f
[    6.614384] after pairA output = ff
[    6.619856] before pairB output = d
[    6.625408] after pairB output = ff
[    6.630872] before pairC output = f
[    6.636418] after pairC output = 0
[    6.641802] before pairD output = f
[    6.647351] after pairD output = 0
[    6.651052] mt753x gsw@0: -------- gephy-calbration (port:3) --------
[    6.668219] CALDLY = 40
[    6.851288]  GE R50 AnaCal Saturation!
[    6.855297]  GE R50 AnaCal Done! (32) (0x0)(0x80)
[    7.040230]  GE R50 AnaCal Saturation!
[    7.044238]  GE R50 AnaCal Done! (32) (0x0)(0x80)
[    7.229128]  GE R50 AnaCal Saturation!
[    7.233136]  GE R50 AnaCal Done! (32) (0x0)(0x80)
[    7.417958]  GE R50 AnaCal Saturation!
[    7.421965]  GE R50 AnaCal Done! (32) (0x0)(0x80)
[    7.430185]  GE 1e_174(0x8080), 1e_175(0x8080)
[    7.483408]  GE Tx offset AnaCal Done! (pair-0)(4)(0x23) 0x1e_172=0x2320
[    7.527112]  GE Tx offset AnaCal Done! (pair-1)(5)(0x24) 0x1e_172=0x2324
[    7.565609]  GE Tx offset AnaCal Done! (pair-2)(4)(0x23) 0x1e_173=0x2320
[    7.614617]  GE Tx offset AnaCal Done! (pair-3)(6)(0x25) 0x1e_173=0x2325
[    7.693725]  GE Tx amp AnaCal Done! (pair-0)(1e_12 = 0x5816)
[    7.769896]  GE Tx amp AnaCal Done! (pair-1)(1e_17 = 0x1111)
[    7.823757]  GE Tx amp AnaCal Done! (pair-2)(1e_19 = 0x141c)
[    7.877641]  GE Tx amp AnaCal Done! (pair-3)(1e_21 = 0x141c)
[    7.941442] PORT 3 RX_DC_OFFSET
[    7.955649] before pairA output = e
[    7.961198] after pairA output = 0
[    7.966575] before pairB output = 1e
[    7.972210] after pairB output = 0
[    7.977597] before pairC output = e
[    7.983148] after pairC output = 1
[    7.988534] before pairD output = 1e
[    7.994174] after pairD output = 1
[    7.997874] mt753x gsw@0: -------- gephy-calbration (port:4) --------
[    8.015032] CALDLY = 40
[    8.198079]  GE R50 AnaCal Saturation!
[    8.202089]  GE R50 AnaCal Done! (32) (0x0)(0x80)
[    8.386915]  GE R50 AnaCal Saturation!
[    8.390922]  GE R50 AnaCal Done! (32) (0x0)(0x80)
[    8.575700]  GE R50 AnaCal Saturation!
[    8.579710]  GE R50 AnaCal Done! (32) (0x0)(0x80)
[    8.764549]  GE R50 AnaCal Saturation!
[    8.768556]  GE R50 AnaCal Done! (32) (0x0)(0x80)
[    8.776804]  GE 1e_174(0x8080), 1e_175(0x8080)
[    8.824769]  GE Tx offset AnaCal Done! (pair-0)(3)(0x22) 0x1e_172=0x2220
[    8.873784]  GE Tx offset AnaCal Done! (pair-1)(6)(0x25) 0x1e_172=0x2225
[    8.933357]  GE Tx offset AnaCal Done! (pair-2)(8)(0x27) 0x1e_173=0x2720
[    8.966537]  GE Tx offset AnaCal Done! (pair-3)(3)(0x22) 0x1e_173=0x2722
[    9.078534]  GE Tx amp AnaCal Done! (pair-0)(1e_12 = 0x4411)
[    9.194248]  GE Tx amp AnaCal Done! (pair-1)(1e_17 = 0xa0a)
[    9.274275]  GE Tx amp AnaCal Done! (pair-2)(1e_19 = 0x1018)
[    9.347848]  GE Tx amp AnaCal Done! (pair-3)(1e_21 = 0x1119)
[    9.411624] PORT 4 RX_DC_OFFSET
[    9.425800] before pairA output = 1e
[    9.431439] after pairA output = 0
[    9.436821] before pairB output = f
[    9.442375] after pairB output = 1
[    9.447758] before pairC output = f
[    9.453314] after pairC output = 0
[    9.458696] before pairD output = 1e
[    9.464336] after pairD output = ff
[    9.470475] [SPM] pwrap node has not register regmap
[    9.476006] regulator regulator.3: info->modeset_reg 0xc = 0x181c32a2
[    9.483373] [SVS] DCVALUES is minus, set 0
[    9.487670] regulator regulator.3: info->modeset_reg 0xc = 0x101c32a2
[    9.495047] 6 cmdlinepart partitions found on MTD device eMMC
[    9.500806] Creating 6 MTD partitions on "eMMC":
[    9.505429] 0x000000000000-0x0000000c0000 : "mbr"
[    9.510734] 0x0000000c0000-0x000000140000 : "uboot"
[    9.516113] 0x000000140000-0x0000001c0000 : "Confignel"
[    9.533975] 2 fit-fw partitions found on MTD device Kernel
[    9.539476] 0x000000200000-0x000000480000 : "kernel"
[    9.545026] 0x000000480000-0x000002200000 : "rootfs"
[    9.550708] mtd: device 6 (rootfs) set to be root filesystem
[    9.556383] 1 squashfs-split partitions found on MTD device rootfs
[    9.562570] 0x000000c70000-0x000002200000 : "rootfs_data"
[   [   10.199779] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[   10.226098] usbcore: registered new interface driver usbfs
[   10.231668] usbcore: registered new interface driver hub
[   10.237044] usbcore: registered new device driver usb
[   10.243030] gpio-keys gpio-keys: failed to set debounce_interval for gpio:511
[   10.252850] libata version 3.00 loaded.
28] ahci 1a200000.sata: couldn't get PHY in node sata: -517
[   10.378915] sdhci: Secure Digital Host Controller Interface driver
[   10.378916] sdhci: Copyright(c) Pierre Ossman
[   10.379212] sdhci-pltfm: SDHCI platform and OF driver helper
[   10.380112] usbcore: registered new interface driver usb-storage
[   10.380188] kmodloader: done loading kernel modules from /etc/moduifconfig: SIOCSIFHWADDR: Cannot assign requested address
ifconfig: SIOCSIFHWADDR: Cannot assign requested address
sendto(): Network is unreachable
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

Here is the bootlog, part2

[   16.004498] mount_root: loading kmods from internal overlay
[   16.016663] kmodloader: loading kernel modules from //etc/modules-boot.d/*
[   16.024074] kmodloader: done loading kernel modules from //etc/modules-boot.d/*
[   16.111339] block: attempting to load /etc/config/fstab
[   16.116649] block: unable to load configuration (fstab: Entry not found)
[   16.123372] block: no usable configuration
[   16.127889] mount_root: jffs2 not ready yet, using temporary tmpfs overlay
[   16.136236] urandom-seed: Seed file not found (/etc/urandom.seed)
[   16.170950] procd: - early -
[   16.173905] procd: - watchdog -
[   16.742387] procd: - watchdog -
[   16.745649] procd: - ubus -
[   16.878477] procd: - init -
[   16.978609] kmodloader: loading kernel modules from /etc/modules.d/*
[   16.988019] l2tp_core: L2TP core driver, V2.0
[   16.992815] l2tp_netlink: L2TP netlink interface
[   16.997879] gre: GRE over IPv4 demultiplexor driver
[   17.003264] ip_gre: GRE over IPv4 tunneling driver
[   17.009909] ip6_tables: (C) 2000-2006 Netfilter Core Team
[   17.020406] cryptodev: driver 1.8 loaded.
[   17.026587] ip_tables: (C) 2000-2006 Netfilter Core Team
[   17.034639] mediatek_soc_hnat 1b100000.hnat: wan = eth1
[   17.040025] mediatek_soc_hnat 1b100000.hnat: ppd = eth0
[   17.045321] mediatek_soc_hnat 1b100000.hnat: gmac num = 2
[   17.051533] mediatek_soc_hnat 1b100000.hnat: FOE entry number = 16384
[   17.058772] mediatek_soc_hnat 1b100000.hnat: hwnat start
[   17.066645] ahci 1a200000.sata: couldn't get PHY in node sata: -517
[   17.123890] xt_time: kernel timezone is -0000
[   17.731310] register mt_drv
[   17.738569]
[   17.738569] == pAd = ffffff8009501000, size = 7221120, Status=0 ==
[   17.746264] AP Driver version-5.0.4.0
[   17.749988] read sub id = 1
[   17.752780] Use 1st iPAiLNA default bin.
[   17.756773] Use 1st /etc_ro/wlan/MT7622_EEPROM.bin default bin.
[   17.763274] <--mt7622_init()
[   17.767027] <-- RTMPAllocTxRxRingMemory, Status=0
[   17.772954] register mt_drv
[   17.773452] ahci 1a200000.sata: couldn't get PHY in node sata: -517
[   17.782256] add_oom_notifier()
[   17.789122] PPP generic driver version 2.4.2
[   17.794107] PPP MPPE Compression module registered
[   17.800220] NET: Registered protocol family 24
[   17.805581] PPTP driver version 0.8.5
[   17.811124] l2tp_ppp: PPPoL2TP kernel driver, V2.0
[   17.817219] whnat_module_init(): module init and register callback for whnat
[   17.824390] create whnat_ctrl ok!!!
[   17.828031] wed_slot_map_get(): assign slot_id:0 for entry: 0!
[   17.833998] wed_slot_map_get(): assign slot_id:1 for entry: 1!
[   17.840031] whnat_hif_pcie_mirror_probe(): hif_cfg base addr=ffffff8009374400
[   17.848604] kmodloader: done loading kernel modules from /etc/modules.d/*
[   22.449246] device eth0 entered promiscuous mode
[   22.462379] br-lan: port 1(eth0) entered forwarding state
[   22.467894] br-lan: port 1(eth0) entered forwarding state
[   22.944785] ra0: ===> main_virtual_if_open
[   22.950135] load l1profile succeed!
[   22.954268] WHNAT=0
[   22.956415] whnat_driver_init(): chip not support wifi hardware nat feature
[   23.287841] APWdsInitialize():WdsEntry Number=4
[   23.293474] RtmpOSFileOpen(): Error 2 opening /etc/Wireless/RT2860/RT2860_5G.dat
[   23.300946] Open file "/etc/Wireless/RT2860/RT2860_5G.dat" failed!
[   23.308199] E2pAccessMode=2
[   23.311376] SSID[0]=MTK_AP1, EdcaIdx=0
[   23.315691] DBDC Mode=0, eDBDC_mode = 0
[   23.319883] BSS0 PhyMode=14
[   23.322773] wmode_band_equal(): Band Equal!
[   23.327780] BandSteering=0
[   23.330610] BndStrgBssIdx=
[   23.333518] [TxPower] BAND0: 100
[   23.337152] Power Boost (CCK, OFDM): RTMPSetProfileParameters[PowerUpCckOfdm] BAND1: (0)-(0)-(0)-(0)-(0)-(0)-(0)
[   23.347579] Power Boost (HT20): RTMPSetProfileParametersPower Boost (HT40): RTMPSetProfileParametersPower Boost (VHT20): RTMPSetProfileParametersPower Boost (VHT40): RTMPSetProfileParametersPower Boost (VHT80): RTMPSetProfileParametersPower Boost (VHT160): RTMPSetProfileParameters[CCKTxStream] BAND0: 4
[   23.375894] [PERCENTAGEenable] BAND0: 0
[   23.379928] [BFBACKOFFenable] BAND0: 0
[   23.383841] CalCacheApply = 0
[   23.387424] FragThreshold[0]=2346
[   23.393416] DfsZeroWait Support=0/0
[   23.397470] DfsZeroWaitCacTime=255/255
[   23.402062] read_etxbf: ETxBfEnCond = 1
[   23.405918] read_etxbf: BSSID[0]
[   23.409163] read_etxbf: MBSS[0] ETxBfEnCond = 1
[   23.436035] If/wds0 - PeerPhyOpMode=255
[   23.440413] APWdsInitialize():WdsEntry Number=4
[   23.444969] WDS-Enable mode=0
[   23.448035] AndesSendCmdMsg: Could not send in band command due to diablefRTMP_ADAPTER_MCU_SEND_IN_BAND_CMD
[   23.457793] AndesSendCmdMsg: Command type = ed, Extension command type = 48
[   23.466656] HT: WDEV[0] Ext Channel = ABOVE
[   23.471041] HT: greenap_cap = 1
[   23.474289] ChipI=7622, Value=0, pcie_aspm in profile=0
[   23.501759] ICapMode = 0
[   23.507951] WtcSetMaxStaNum: BssidNum:1, MaxStaNum:124 (WdsNum:4, ApcliNum:2, MaxNumChipRept:16), MinMcastWcid:125
[   23.518459] Fair Queueing Scheduler Initialization...
[   23.523687] Top Init Done!
[   23.526419] Use dev_alloc_skb
[   23.529801] RX[0] DESC ffffffc03b936000 size = 8192
[   23.534855] RX[1] DESC ffffffc03b938000 size = 8192
[   23.539840] cut_through_init(): ct sw token number = 4095
[   23.545413] cut_through_token_list_init(): TokenList inited done!id_head/tail=0/4096
[   23.553185] cut_through_token_list_init(): ffffffc03bb4d710,ffffffc03bb4d710
[   23.560401] cut_through_token_list_init(): TokenList inited done!id_head/tail=0/4096
[   23.568164] cut_through_token_list_init(): ffffffc03bb4d730,ffffffc03bb4d730
[   23.575292] whnat_ring_init(): cookie=ffffff8009501000
[   23.580447] whnat_ring_init(): whnat can't find for cookie:ffffff8009501000
[   23.587423] Hif Init Done!
[   23.590144] ctl->txq = ffffff8009bdd738
[   23.593993] ctl->rxq = ffffff8009bdd750
[   23.597842] ctl->ackq = ffffff8009bdd768
[   23.601778] ctl->kickq = ffffff8009bdd780
[   23.605798] ctl->tx_doneq = ffffff8009bdd798
[   23.610082] ctl->rx_doneq = ffffff8009bdd7b0
[   23.614523] mt_rbus 0000:00:00.0: Direct firmware load for mt7622_patch_e2_hdr.bin failed with error -2
[   23.623939] Parsing patch header
[   23.627185]  Built date: 20190801210006a
[   23.631268]
[   23.632760]  Platform: ALPS
[   23.635640]  HW/SW version: 0x8a108a10
[   23.639463]  Patch version: 0x00000010
[   23.643284]  Target address: 0x9c000, length: 82080
[   23.648348] patch is not ready && get semaphore success
[   23.653653] EventGenericEventHandler: CMD Success
[   23.658922] MtCmdPatchFinishReq
[   23.673369] EventGenericEventHandler: CMD Success
[   23.678132] release patch semaphore
[   23.681648] WfMcuHwInit: Before NICLoadFirmware, check ICapMode = 0
[   23.687937] Parsing CPU 0 fw tailer
[   23.691445]  Chip ID: 0x06
[   23.694214]  Eco version: 0x00
[   23.697306]  Region number: 0x00
[   23.700558]  Format version: 0x00
[   23.703909]  Ram version: _reserved_
[   23.707632]  Built date: 20190801210351
[   23.711759]  Common crc: 0x0
[   23.714655] Parsing tailer region 0
[   23.718154]  Feature set: 0x01
[   23.721270]  Target address: 0xb7000, Download size: 249856
[   23.726856] Parsing tailer region 1
[   23.730354]  Feature set: 0x01
[   23.733470]  Target address: 0x203dc00, Download size: 46960
[   23.739184] EventGenericEventHandler: CMD Success
[   23.747994] EventGenericEventHandler: CMD Success
[   23.753116] MtCmdFwStartReq: override = 0x0, address = 0x0
[   23.800086] EventGenericEventHandler: CMD Success
[   23.804846] MCU Init Done!
[   23.807620] efuse_probe: efuse = 2
[   23.811049] RtmpChipOpsEepromHook::e2p_type=2, inf_Type=4
[   23.816489] RtmpEepromGetDefault::e2p_dafault=2
[   23.821063] RtmpChipOpsEepromHook: E2P type(2), E2pAccessMode = 2, E2P default = 2
[   23.828692] NVM is FLASH mode. dev_idx [0] FLASH OFFSET [0x0]
[   23.834876] RtmpOSFileOpen(): Error 2 opening /etc_ro/wlan/MT7615_EEPROM.bin
[   23.841982] --> Error opening file /etc_ro/wlan/MT7615_EEPROM.bin
[   23.848106] Load EEPROM Buffer from default BIN.
[   23.852846] Cal Free IC!!
[   23.856029] The EEPROM in Flash is wrong, use default
[   23.861133] NICReadEEPROMParameters: EEPROM 0x52 bb00
[   23.866903] NICReadEEPROMParameters: EEPROM 0x52 bb00
[   23.872709] mt7622_pa_lna_set(): read antCtrl = 0, polCtrl = 4, wifiStreams = 44
[   23.880149] mt7622_tssi_set(): nic_cfg1=20, mode=1
[   24.468914] br-lan: port 1(eth0) entered forwarding state
[   27.821297] Country Region from e2p = 0
[   27.825206] read sub id = 1
[   27.828032] RcRadioInit(): DbdcMode=0, ConcurrentBand=1
[   27.833287] RcRadioInit(): pRadioCtrl=ffffffc03bf451d8,Band=0,rfcap=1,channel=1,PhyMode=2 extCha=0xf
[   27.842442] MtSingleSkuLoadParam: RF_LOCKDOWN Feature OFF !!!
[   27.882419] MtBfBackOffLoadParam: RF_LOCKDOWN Feature OFF !!!
[   27.888359] EEPROM Init Done!
[   27.891357] mt_mac_init()-->
[   27.894259] mt7622_init_mac_cr(): TMAC_TRCR0=0x82783c8c
[   27.899508] <--mt_mac_init()
[   27.920991] CmdRxHdrTransBLUpdateRsp::EventExtCmdResult.u4Status = 0x0
[   27.938055] CmdRxHdrTransBLUpdateRsp::EventExtCmdResult.u4Status = 0x0
[   27.955120] CmdRxHdrTransBLUpdateRsp::EventExtCmdResult.u4Status = 0x0
[   27.961653] MAC Init Done!
[   27.964367] MT7622BBPInit() todo
[   27.967610] PHY Init Done!
[   27.970977] MtCmdSetMacTxRx:(ret = 0)
[   27.974816] WifiFwdSet::disabled=0
[   27.978267] ap_ftkd> Initialize FT KDP Module...
[   27.982929] Main bssid = 00:00:00:00:00:00
[   27.987287] MtCmdSetMacTxRx:(ret = 0)
[   27.998330] MtCmdSetMacTxRx:(ret = 0)
[   28.002041] <==== mt_wifi_init, Status=0
[   28.005990] TxBfModuleEnCtrl:It's not DBDC mode
[   28.010586] MtCmdEDCCACtrl: BandIdx: 0, EDCCACtrl: 1
[   28.015613] MtCmdEDCCACtrl: BandIdx: 1, EDCCACtrl: 1
[   28.020722] The new WDS interface MAC = 00:00:00:00:00:00, MacTabMatchWCID = 0
[   28.028555] The new WDS interface MAC = 00:00:00:00:00:00, MacTabMatchWCID = 0
[   28.036648] The new WDS interface MAC = 00:00:00:00:00:00, MacTabMatchWCID = 0
[   28.044671] The new WDS interface MAC = 00:00:00:00:00:00, MacTabMatchWCID = 0
[   28.052668] Total allocated 4 WDS interfaces!
[   28.057859] WtcSetMaxStaNum: BssidNum:1, MaxStaNum:124 (WdsNum:4, ApcliNum:2, MaxNumChipRept:16), MinMcastWcid:125
[   28.096032] RedInit: set Driver/N9 RED Enable to 1.
[   28.101127] RedInit: RED Initiailize Done.
[   28.105353] cp_support_is_enabled: set Driver CP_SUPPORT to Mode 2.
[   28.111834] Number of Packet Allocated in open = 0
[   28.116902] Number of Packet Freed in open = 0
[   28.121517] RTMP_COM_IoctlHandle -> CMD_RTPRIV_IOCTL_VIRTUAL_INF_UP
[   28.127987] ap_inf_open --->
[   28.131156] wifi_sys_open(), wdev idx = 0
[   28.135385] wdev_attr_update(): wdevId0 = 00:0c:43:26:60:60
[   28.141455]  [RadarStateCheck] RD_NORMAL_MODE
[   28.147139] MtCmdChannelSwitch: control_chl = 6,control_ch2=0, central_chl = 8 DBDCIdx= 0, Band= 0
[   28.156297] BW = 1,TXStream = 4, RXStream = 4, scan(0)
[   28.207010] [DfsCacNormalStart] Normal start. Enable MAC TX
[   28.283719] Caller: wlan_operate_init+0xe8/0x118 [mt_wifi]
[   28.289436] phy_mode=14, ch=6, wdev_type=1
[   28.293838] ht_cap->HtCapInfo: ldpc=1,ch_width=1,gf=0,sgi20=1,sgi40=1,tx_stbc=1,rx_stbc=1,amsdu_size=0
[   28.303368] ht_cap->HtCapParm: mdpu_density=5, ampdu_factor=3
[   28.312110] AP inf up for ra_0(func_idx) OmacIdx=0
[   28.319697] mtd_isr::DriverOwn = TRUE
[   28.320511] AsicRadioOnOffCtrl(): DbdcIdx=0 RadioOn
[   28.328362] ApAutoChannelAtBootUp----------------->
[   28.333428] ApAutoChannelAtBootUp: AutoChannelBootup = 0
[   28.338835] ApAutoChannelAtBootUp<-----------------
[   28.343799]  ap_run_at_boot() : ACS is disable !!
[   28.349294] [PMF]APPMFInit:: Security is not WPA2/WPA2PSK AES
[   28.355140] [PMF]APPMFInit:: apidx=0, MFPC=0, MFPR=0, SHA256=0
[   28.361067] wifi_sys_linkup(), wdev idx = 0
[   28.365342] wtc_acquire_groupkey_wcid: Found a non-occupied wtbl_idx:127 for WDEV_TYPE:1
[   28.365342]  LinkToOmacIdx = 0, LinkToWdevType = 1
[   28.378529] bssUpdateBmcMngRate (BSS_INFO_BROADCAST_INFO), CmdBssInfoBmcRate.u2BcTransmit= 0, CmdBssInfoBmcRate.u2McTransmit = 0
[   28.436137] UpdateBeaconHandler, BCN_UPDATE_INIT, OmacIdx = 0
[   28.442108] APStartUpForMbss: BssIndex = 0 channel = 6
[   28.447688] MtCmdTxPowerDropCtrl: ucPowerDrop: 100, BandIdx: 0
[   28.454351] TxCCKStreamCtrl: set wrong parameters
[   28.462075] Enable 20/40 BSSCoex Channel Scan(BssCoex=1)
[   28.540505] MtCmdSetMacTxRx:(ret = 0)
[   28.544260] MtCmdChannelSwitch: control_chl = 3,control_ch2=0, central_chl = 3 DBDCIdx= 0, Band= 0
[   28.553898] BW = 0,TXStream = 4, RXStream = 4, scan(1)
[   28.599064] AP OBSS SYNC - BBP R4 to 20MHz.l
[   28.928964] MtCmdChannelSwitch: control_chl = 4,control_ch2=0, central_chl = 4 DBDCIdx= 0, Band= 0
[   28.937986] BW = 0,TXStream = 4, RXStream = 4, scan(1)
[   28.971455] AP OBSS SYNC - BBP R4 to 20MHz.l
[   29.277018] MtCmdChannelSwitch: control_chl = 5,control_ch2=0, central_chl = 5 DBDCIdx= 0, Band= 0
[   29.286047] BW = 0,TXStream = 4, RXStream = 4, scan(1)
[   29.319257] AP OBSS SYNC - BBP R4 to 20MHz.l
[   29.672943] MtCmdChannelSwitch: control_chl = 6,control_ch2=0, central_chl = 6 DBDCIdx= 0, Band= 0
[   29.681989] BW = 0,TXStream = 4, RXStream = 4, scan(1)
[   29.717842] AP OBSS SYNC - BBP R4 to 20MHz.l
[   30.032947] MtCmdChannelSwitch: control_chl = 7,control_ch2=0, central_chl = 7 DBDCIdx= 0, Band= 0
[   30.042186] BW = 0,TXStream = 4, RXStream = 4, scan(1)
[   30.075650] AP OBSS SYNC - BBP R4 to 20MHz.l
[   30.388946] MtCmdChannelSwitch: control_chl = 8,control_ch2=0, central_chl = 8 DBDCIdx= 0, Band= 0
[   30.400084] BW = 0,TXStream = 4, RXStream = 4, scan(1)
[   30.436710] AP OBSS SYNC - BBP R4 to 20MHz.l
[   30.740926] MtCmdChannelSwitch: control_chl = 9,control_ch2=0, central_chl = 9 DBDCIdx= 0, Band= 0
[   30.749909] BW = 0,TXStream = 4, RXStream = 4, scan(1)
[   30.767190] AP OBSS SYNC - BBP R4 to 20MHz.l
[   31.068925] MtCmdChannelSwitch: control_chl = 10,control_ch2=0, central_chl = 10 DBDCIdx= 0, Band= 0
[   31.078082] BW = 0,TXStream = 4, RXStream = 4, scan(1)
[   31.095344] AP OBSS SYNC - BBP R4 to 20MHz.l
[   31.396912] MtCmdChannelSwitch: control_chl = 11,control_ch2=0, central_chl = 11 DBDCIdx= 0, Band= 0
[   31.406240] BW = 0,TXStream = 4, RXStream = 4, scan(1)
[   31.423494] AP OBSS SYNC - BBP R4 to 20MHz.l
[   31.724920] MtCmdChannelSwitch: control_chl = 12,control_ch2=0, central_chl = 12 DBDCIdx= 0, Band= 0
[   31.734073] BW = 0,TXStream = 4, RXStream = 4, scan(1)
[   31.751368] AP OBSS SYNC - BBP R4 to 20MHz.l
[   32.052913] MtCmdChannelSwitch: control_chl = 13,control_ch2=0, central_chl = 13 DBDCIdx= 0, Band= 0
[   32.062066] BW = 0,TXStream = 4, RXStream = 4, scan(1)
[   32.079339] AP OBSS SYNC - BBP R4 to 20MHz.l
[   32.380903] Channel[Idx=2, Ch=3].bEffectedChannel=0x0!
[   32.386063] Channel[Idx=3, Ch=4].bEffectedChannel=0x0!
[   32.391213] Channel[Idx=4, Ch=5].bEffectedChannel=0x0!
[   32.396360] Channel[Idx=5, Ch=6].bEffectedChannel=0x0!
[   32.401508] Channel[Idx=6, Ch=7].bEffectedChannel=0x0!
[   32.406824] Channel[Idx=7, Ch=8].bEffectedChannel=0x1!
[   32.411975] needFallBack=TRUE due to OS!
[   32.415909] Channel[Idx=8, Ch=9].bEffectedChannel=0x0!
[   32.421055] Channel[Idx=9, Ch=10].bEffectedChannel=0x0!
[   32.426292] Channel[Idx=10, Ch=11].bEffectedChannel=0x0!
[   32.431612] Channel[Idx=11, Ch=12].bEffectedChannel=0x2!
[   32.436933] needFallBack=TRUE due to OP/OT!
[   32.441123] Channel[Idx=12, Ch=13].bEffectedChannel=0x0!
[   32.446464] MtCmdChannelSwitch: control_chl = 6,control_ch2=0, central_chl = 8 DBDCIdx= 0, Band= 0
[   32.455429] BW = 1,TXStream = 4, RXStream = 4, scan(0)
[   32.488566] [DfsCacNormalStart] Normal start. Enable MAC TX
[   32.564991] [DfsCacNormalStart] Normal start. Enable MAC TX
[   32.574305] apidx 0 for WscUUIDInit
[   32.577835] Generate UUID for apidx(0)
[   32.581631] ap_inf_open <---
[   32.584541] mtk_ppe_dev_register_hook : ineterface ra0 register (1)
[   32.611599] device ra0 entered promiscuous mode
[   32.616297] br-lan: port 2(ra0) entered forwarding state
[   32.621639] br-lan: port 2(ra0) entered forwarding state
[   32.753730] Device Instance
[   32.756588]  WDEV 00:, Name:ra0, Wdev(list) Idx:0
[   32.761378]           Idx:7
[   32.763612] mtk_ppe_dev_register_hook : ra0 has been registered in wifi_hook_if table[1]
[   32.771881]
[   32.773411]
[   32.774916]
[   32.776418]
[   32.777946]
[   32.779451]
[   32.780962]
[   32.782472]
[   32.783968]
[   32.785480]
[   32.786976]
[   32.788469]
[   32.789974]
[   32.791467]
[   32.792970]
[   32.794463]
[   34.624891] br-lan: port 2(ra0) entered forwarding state
[   38.508633] jffs2: notice: (2306) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
[   39.287031] S60samba (4143): drop_caches: 3
[   40.272094] jffs2_scan_eraseblock(): End of filesystem marker found at 0x0
[   40.279062] jffs2_build_filesystem(): unlocking the mtd device... done.
[   40.285733] jffs2_build_filesystem(): erasing all blocks after the end marker... done.
[   41.593965] jffs2: notice: (4264) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.


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

     _________
    /        /\      _    ___ ___  ___
   /  LE    /  \    | |  | __|   \| __|
  /    DE  /    \   | |__| _|| |) | _|
 /________/  LE  \  |____|___|___/|___|                      lede-project.org
 \        \   DE /
  \    LE  \    /  -----------------------------------------------------------
   \  DE    \  /    Reboot (17.01-SNAPSHOT, r0-aec93540)
    \________\/    -----------------------------------------------------------

=== 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.
--------------------------------------------------
1 Like

thank you,seems this part is from wifi-driver…does anyone know from which source the singleimage was created?

@rainfall83 where did you get the wifi-driver and firmware?

It’s seem the mediatek mt7622 driver only support 4.4 kernel, not support 4.19 kernel.

We need the source of the driver…you cannot just copy ko-file from one kernel to another

Yes, I know that, the mediatek driver is not opensource, need contact mediatek to sign the DNA to get the code, and they only support 4.4 kernel.

Not again such closed source thing…:weary:

@jackzeng wrote here that wifi and bluetooth driver will be added to 4.19 repo (before make it public). But jack was not online 2 months now and no response to my question in that thread…

@sinovoip @moore @Ryder.Lee which state is the mt7622 wifi-driver? is it NDA or similar? is there any driver available for any kernel-version?

is jack still in bpi-team? i wonder why he is away so long…

mt7622 WiFi driver development is WIP

1 Like

thank you, the new driver will be opensource? i wonder why a driver exists for openwrt that sounds like NDA…

is there any ETA?