Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mediatek MT7986 / Banana Pi BPI-R3 Wifi not working #702

Open
eckinga opened this issue Sep 23, 2022 · 44 comments
Open

Mediatek MT7986 / Banana Pi BPI-R3 Wifi not working #702

eckinga opened this issue Sep 23, 2022 · 44 comments

Comments

@eckinga
Copy link

eckinga commented Sep 23, 2022

Someone opened a case in openwrt for this issue but i think its firmware related problem and better here.

[   10.127699] mt7986-wmac 18000000.wmac: HW/SW Version: 0x8a108a10, Build Time: 20220113162701a
[   10.127699] 
[   10.247829] mt7986-wmac 18000000.wmac: WM Firmware Version: ____000000, Build Time: 20220113162756
[   10.324188] mt7986-wmac 18000000.wmac: WA Firmware Version: DEV_000000, Build Time: 20220113163034
[   30.565222] mt7986-wmac 18000000.wmac: Message 00000002 (seq 4) timeout
[   30.571834] mt7986-wmac 18000000.wmac: Failed to start WA firmware
[   30.578095] mt7986-wmac: probe of 18000000.wmac failed with error -110'
@frank-w
Copy link

frank-w commented Sep 27, 2022

maybe you miss eeprom-data?

daniel added it like me in the devicetree and with the firmware-files from https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/tree/mediatek probe works for me (creates 2 wifi-interfaces seen by "ip a").

@eckinga
Copy link
Author

eckinga commented Sep 27, 2022

Hello Frank,
how to check and how to rewrite (is it a mtd device?)?
My experience so far with this problem:
I have 2 r3. One had the wifi working with image from sinovoip. after i installed the "official" snapshot the wifi stopped working.
That's why i thought it's firmware related.
Today i reverted to the previous image and wifi didn't come back.
I also unpacked my second R3 today and installed the image from sinovoip but in contrast to the first one the wifi didnt work. The snapshot outputs the same error.

@reddwarf69
Copy link

I have just tried with https://downloads.openwrt.org/snapshots/targets/mediatek/filogic/openwrt-mediatek-filogic-bananapi_bpi-r3-sdcard.img.gz, I didn't do anything else. It's worth mentioning that I'm running directly from the SD card, and it's a v1.1 board.

I guess the eeprom-data you are talking about is https://github.com/openwrt/openwrt/blob/master/target/linux/mediatek/dts/mt7986a-bananapi-bpi-r3.dts#L424, @frank-w?

The thing is that in https://openwrt.org/toh/sinovoip/bananapi_bpi-r3 there is a link to https://asciinema.org/a/518024 where it can be seen working just fine. And in openwrt/openwrt@a96382c it says WiFi was working.

The eeprom-data in the HEAD of openwrt is still the same one that was added in openwrt/openwrt@a96382c, it has never changed.

@frank-w
Copy link

frank-w commented Sep 29, 2022

Yes it's the portion i mean for eeprom-data. What kind of powersupply do you have (12v xA)? Are the sfp slots equipped (one/both) any other power consumers like m2 or mpcie card?

I guess it can be a current problem...

@reddwarf69
Copy link

I was using a 12v x 2A power supply, it came with the board. But just to test, I have just tried with a 12v x 3.33A one, same problem.
I have just tried without anything in the SFP slot and, no, there has never been anything else plugged to the board.
I have yet to plug WiFi antennas! (That shouldn't make a difference, right?)

@eckinga
Copy link
Author

eckinga commented Sep 29, 2022

Now its a bit clearer. Just to say it's not a power supply issue.
Like i mentioned if have 2 BPI-R3, forgot to say they're both V1.1 and im booting from SD. Also tried from emmc and nand to make sure its not the sd card (sinovoip suggested to take a class 10 card low level formatted). SFP not equipped.

Have 2 power supplies from sinovoip and tested both, no difference. I just tested the board on a laboratory power supply with 12v@10a with no difference so there is no issue with that. Also not with the sd card.

What drives me crazy is the fact that with first board the wifi worked with the image from sinovoip and got broken as i installed the snapshot. But on 2. board it never worked.

@eckinga
Copy link
Author

eckinga commented Sep 29, 2022

here a complete log booting from spi-nand with todays snapshot r20784-ec8fb542ec. perhaps we miss something.

Edit I put the extracted device tree with the eeprom-data at the end of the log.

F0: 102B 0000

FA: 1040 0000

FA: 1040 0000 [0200]

F9: 0000 0000

V0: 0000 0000 [0001]

00: 0000 0000

BP: 2400 0041 [0000]

G0: 1190 0000

EC: 0000 0000 [1000]

T0: 0000 0209 [010F]

Jump to BL


NOTICE:  BL2: v2.7(release):OpenWrt v2022-08-31-75393484-1 (mt7986-spim-nand-ddr4)
NOTICE:  BL2: Built : 05:53:56, Sep 29 2022
NOTICE:  WDT: disabled
NOTICE:  CPU: MT7986 (2000MHz)
NOTICE:  EMI: Using DDR4 settings
NOTICE:  EMI: Detected DRAM size: 2048MB
NOTICE:  EMI: complex R/W mem test passed
NOTICE:  SPI_NAND parses attributes from parameter page.
NOTICE:  SPI_NAND Detected ID 0xef
NOTICE:  Page size 2048, Block size 131072, size 134217728
NOTICE:  BL2: Booting BL31
NOTICE:  BL31: v2.7(release):OpenWrt v2022-08-31-75393484-1 (mt7986-spim-nand-ddr4)
NOTICE:  BL31: Built : 05:53:56, Sep 29 2022


U-Boot 2022.07-OpenWrt-r20784-ec8fb542ec (Sep 29 2022 - 05:53:56 +0000)

CPU:   MediaTek MT7986
Model: BananaPi BPi-R3
DRAM:  2 GiB
Core:  52 devices, 24 uclasses, devicetree: embed
MMC:   mmc@11230000: 0
Loading Environment from UBI... spi-nand: spi_nand spi_nand@1: Winbond SPI NAND was found.
spi-nand: spi_nand spi_nand@1: 128 MiB, block size: 128 KiB, page size: 2048, OOB size: 64
Read 126976 bytes from volume ubootenv to 00000000bf7c1c80
Read 126976 bytes from volume ubootenv2 to 00000000bf7e0cc0
OK
In:    serial@11002000
Out:   serial@11002000
Err:   serial@11002000
reset button found
Loading Environment from UBI... UBI partition 'ubi' already selected
Read 126976 bytes from volume ubootenv to 00000000bf7c1c80
Read 126976 bytes from volume ubootenv2 to 00000000bf7e0cc0
OK
Net:   eth0: ethernet@15100000
�7�[r�[999;999H�[6n�8No EFI system partition
�[?25l�[2J�[1;1H�[1;1H�[2K�[2;3H      �[0;34m( ( ( �[1;39mOpenWrt�[0;34m ) ) )  �[0;36m[SPI-NAND]�[0m       �[33mU-Boot 2022.07-OpenWrt-r20784-ec8fb542ec (Sep 29 2022 - 05:53:56 +0000)�[0m�[0K�[3;1H�[2K�[17;1H�[2K�[18;3HPress UP/DOWN to move, ENTER to select, ESC/CTRL+C to quit�[0K�[19;1H�[2K�[4;7H�[7m1. Run default boot command.�[0m�[5;7H2. Boot system via TFTP.�[6;7H3. Boot production system from NAND.�[7;7H4. Boot recovery system from NAND.�[8;7H5. Load production system via TFTP then write to NAND.�[9;7H6. Load recovery system via TFTP then write to NAND.�[10;7H7. �[31mLoad BL31+U-Boot FIP via TFTP then write to NAND.�[0m�[11;7H8. �[31mLoad BL2 preloader via TFTP then write to NAND.�[0m�[12;7H9. �[31mInstall bootloader, recovery and production to eMMC.�[0m�[13;7Ha. Reboot.�[14;7Hb. Reset all settings to factory defaults.�[15;7H0. U-Boot console�[17;3HHit any key to stop autoboot: 3 �[17;3HHit any key to stop autoboot: 2 �[17;3HHit any key to stop autoboot: 1 �[17;1H�[2K�[?25h�[2J�[1;1HEXT_CSD[179], PARTITION_CONFIG:
BOOT_ACK: 0x1
BOOT_PARTITION_ENABLE: 0x1
PARTITION_ACCESS: 0x0
EXT_CSD[179], PARTITION_CONFIG:
BOOT_ACK: 0x1
BOOT_PARTITION_ENABLE: 0x1
PARTITION_ACCESS: 0x0
No size specified -> Using max size (11173888)
Read 11173888 bytes from volume fit to 0000000046000000

## Checking Image at 46000000 ...
   FIT image found
   FIT description: ARM64 OpenWrt FIT (Flattened Image Tree)
    Image 0 (kernel-1)
     Description:  ARM64 OpenWrt Linux-5.15.69
     Type:         Kernel Image
     Compression:  gzip compressed
     Data Start:   0x46001000
     Data Size:    5403649 Bytes = 5.2 MiB
     Architecture: AArch64
     OS:           Linux
     Load Address: 0x44000000
     Entry Point:  0x44000000
     Hash algo:    crc32
     Hash value:   de683342
     Hash algo:    sha1
     Hash value:   fe98e48287d1851220edeaeeacef1393dfcca60a
    Image 1 (fdt-1)
     Description:  ARM64 OpenWrt bananapi_bpi-r3 device tree blob
     Type:         Flat Device Tree
     Compression:  uncompressed
     Data Start:   0x46529000
     Data Size:    32768 Bytes = 32 KiB
     Architecture: AArch64
     Load Address: 0x43ff8000
     Hash algo:    crc32
     Hash value:   2642457a
     Hash algo:    sha1
     Hash value:   a1dc9fb7d46c211f065c11a5d628cf950c79dfbf
    Image 2 (fdt-mt7986a-bananapi-bpi-r3-nor)
     Description:  ARM64 OpenWrt bananapi_bpi-r3 device tree overlay mt7986a-bananapi-bpi-r3-nor
     Type:         Flat Device Tree
     Compression:  uncompressed
     Data Start:   0x46531000
     Data Size:    32768 Bytes = 32 KiB
     Architecture: AArch64
     Load Address: 0x43ff0000
     Hash algo:    crc32
     Hash value:   95d48956
     Hash algo:    sha1
     Hash value:   1c93f277ffa3aecc5aef781cd3d6c72297d961d5
    Image 3 (fdt-mt7986a-bananapi-bpi-r3-emmc-nor)
     Description:  ARM64 OpenWrt bananapi_bpi-r3 device tree overlay mt7986a-bananapi-bpi-r3-emmc-nor
     Type:         Flat Device Tree
     Compression:  uncompressed
     Data Start:   0x46539000
     Data Size:    32768 Bytes = 32 KiB
     Architecture: AArch64
     Load Address: 0x43fe8000
     Hash algo:    crc32
     Hash value:   9310ba5d
     Hash algo:    sha1
     Hash value:   b6e94c2825be3781ded07624307ce50d34ad99b0
    Image 4 (fdt-mt7986a-bananapi-bpi-r3-emmc-snand)
     Description:  ARM64 OpenWrt bananapi_bpi-r3 device tree overlay mt7986a-bananapi-bpi-r3-emmc-snand
     Type:         Flat Device Tree
     Compression:  uncompressed
     Data Start:   0x46541000
     Data Size:    32768 Bytes = 32 KiB
     Architecture: AArch64
     Load Address: 0x43fe0000
     Hash algo:    crc32
     Hash value:   da7d197c
     Hash algo:    sha1
     Hash value:   492fb21cbdbf4af0442980102056351626624123
    Image 5 (fdt-mt7986a-bananapi-bpi-r3-snand)
     Description:  ARM64 OpenWrt bananapi_bpi-r3 device tree overlay mt7986a-bananapi-bpi-r3-snand
     Type:         Flat Device Tree
     Compression:  uncompressed
     Data Start:   0x46549000
     Data Size:    32768 Bytes = 32 KiB
     Architecture: AArch64
     Load Address: 0x43fd8000
     Hash algo:    crc32
     Hash value:   fb982ffd
     Hash algo:    sha1
     Hash value:   9285448f7112ebbe6616709a852e74de03136bda
    Image 6 (rootfs-1)
     Description:  ARM64 OpenWrt bananapi_bpi-r3 rootfs
     Type:         Filesystem Image
     Compression:  uncompressed
     Data Start:   0x46551000
     Data Size:    5541888 Bytes = 5.3 MiB
     Hash algo:    crc32
     Hash value:   bf88e19d
     Hash algo:    sha1
     Hash value:   96836b99d988199532353ac96a0bfb30a218a950
    Default Configuration: 'config-mt7986a-bananapi-bpi-r3'
    Configuration 0 (config-mt7986a-bananapi-bpi-r3)
     Description:  OpenWrt bananapi_bpi-r3
     Kernel:       kernel-1
     FDT:          fdt-1
     Loadables:    rootfs-1
    Configuration 1 (config-mt7986a-bananapi-bpi-r3-nor)
     Description:  OpenWrt bananapi_bpi-r3 with mt7986a-bananapi-bpi-r3-nor
     Kernel:       kernel-1
     FDT:          fdt-1
                   fdt-mt7986a-bananapi-bpi-r3-nor
     Loadables:    rootfs-1
    Configuration 2 (config-mt7986a-bananapi-bpi-r3-emmc-nor)
     Description:  OpenWrt bananapi_bpi-r3 with mt7986a-bananapi-bpi-r3-emmc-nor
     Kernel:       kernel-1
     FDT:          fdt-1
                   fdt-mt7986a-bananapi-bpi-r3-emmc-nor
     Loadables:    rootfs-1
    Configuration 3 (config-mt7986a-bananapi-bpi-r3-emmc-snand)
     Description:  OpenWrt bananapi_bpi-r3 with mt7986a-bananapi-bpi-r3-emmc-snand
     Kernel:       kernel-1
     FDT:          fdt-1
                   fdt-mt7986a-bananapi-bpi-r3-emmc-snand
     Loadables:    rootfs-1
    Configuration 4 (config-mt7986a-bananapi-bpi-r3-snand)
     Description:  OpenWrt bananapi_bpi-r3 with mt7986a-bananapi-bpi-r3-snand
     Kernel:       kernel-1
     FDT:          fdt-1
                   fdt-mt7986a-bananapi-bpi-r3-snand
     Loadables:    rootfs-1
## Checking hash(es) for FIT Image at 46000000 ...
   Hash(es) for Image 0 (kernel-1): crc32+ sha1+ 
   Hash(es) for Image 1 (fdt-1): crc32+ sha1+ 
   Hash(es) for Image 2 (fdt-mt7986a-bananapi-bpi-r3-nor): crc32+ sha1+ 
   Hash(es) for Image 3 (fdt-mt7986a-bananapi-bpi-r3-emmc-nor): crc32+ sha1+ 
   Hash(es) for Image 4 (fdt-mt7986a-bananapi-bpi-r3-emmc-snand): crc32+ sha1+ 
   Hash(es) for Image 5 (fdt-mt7986a-bananapi-bpi-r3-snand): crc32+ sha1+ 
   Hash(es) for Image 6 (rootfs-1): crc32+ sha1+ 
## Loading kernel from FIT Image at 46000000 ...
   Using 'config-mt7986a-bananapi:   0x46541000
     Data Size:    32768 Bytes = 32 KiB
     Architecture: AArch64
     Load Address: 0x43fe0000
     Hash algo:    crc32
     Hash value:   da7d197c
     Hash algo:    sha1
     Hash value:   492fb21cbdbf4af0442980102056351626624123
   Verifying Hash Integrity ... crc32+ sha1+ OK
   Booting using the fdt blob at 0x43ff8000
## Loading loadables from FIT Image at 46000000 ...
   Trying 'rootfs-1' loadables subimage
     Description:  ARM64 OpenWrt bananapi_bpi-r3 rootfs
     Type:         Filesystem Image
     Compression:  uncompressed
     Data Start:   0x46551000
     Data Size:    5541888 Bytes = 5.3 MiB
     Hash algo:    crc32
     Hash value:   bf88e19d
     Hash algo:    sha1
     Hash value:   96836b99d988199532353ac96a0bfb30a218a950
   Verifying Hash Integrity ... crc32+ sha1+ OK
   Uncompressing Kernel Image
   Loading Device Tree to 00000000bf7f2000, end 00000000bf7fa87e ... OK
Add 'ramoops@42ff0000' node failed: FDT_ERR_EXISTS

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
[    0.000000] Linux version 5.15.69 (builder@buildhost) (aarch64-openwrt-linux-musl-gcc (OpenWrt GCC 11.3.0 r20784-ec8fb542ec) 11.3.0, GNU ld (GNU Binutils) 2.37) #0 SMP Thu Sep 29 05:53:56 2022
[    0.000000] Machine model: Bananapi BPI-R3
[    0.000000] Zone ranges:
[    0.000000]   DMA      [mem 0x0000000040000000-0x00000000bfffffff]
[    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-0x000000004fbfffff]
[    0.000000]   node   0: [mem 0x000000004fc00000-0x000000004fcfffff]
[    0.000000]   node   0: [mem 0x000000004fd00000-0x00000000bfffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000040000000-0x00000000bfffffff]
[    0.000000] psci: probing for conduit method from DT.
[    0.000000] psci: PSCIv1.1 detected in firmware.
[    0.000000] psci: Using standard PSCI v0.2 function IDs
[    0.000000] psci: MIGRATE_INFO_TYPE not supported.
[    0.000000] psci: SMC Calling Convention v1.2
[    0.000000] percpu: Embedded 17 pages/cpu s30040 r8192 d31400 u69632
[    0.000000] pcpu-alloc: s30040 r8192 d31400 u69632 alloc=17*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3 
[    0.000000] Detected VIPT I-cache on CPU0
[    0.000000] CPU features: detected: GIC system register CPU interface
[    0.000000] CPU features: kernel page table isolation disabled by kernel configura hash table entries: 1024 (order: 4, 65536 bytes, linear)
[    0.004274] pinctrl core: initialized pinctrl subsystem
[    0.004838] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    0.005050] DMA: preallocated 256 KiB GFP_KERNEL pool for atomic allocations
[    0.005080] DMA: preallocated 256 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations
[    0.005105] DMA: preallocated 256 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
[    0.005343] thermal_sys: Registered thermal governor 'fair_share'
[    0.005347] thermal_sys: Registered thermal governor 'bang_bang'
[    0.005350] thermal_sys: Registered thermal governor 'step_wise'
[    0.005353] thermal_sys: Registered thermal governor 'user_space'
[    0.005433] ASID allocator initialised with 65536 entries
[    0.005684] pstore: Registered ramoops as persistent store backend
[    0.005689] ramoops: using 0x10000@0x42ff0000, ecc: 0
[    0.013181] cryptd: max_cpu_qlen set to 1000
[    0.014838] SCSI subsystem initialized
[    0.014922] libata version 3.00 loaded.
[    0.015556] clocksource: Switched to clocksource arch_sys_counter
[    0.015962] NET: Registered PF_INET protocol family
[    0.016075] IP idents hash table entries: 32768 (order: 6, 262144 bytes, linear)
[    0.016659] tcp_listen_portaddr_hash hash table entri000-0x000000380000 : "reserved"
[    0.978418] 0x000000000000-0x000000080000 : "bl2"
[    0.998981] mtk_soc_eth 15100000.ethernet eth0: mediatek frame engine at 0xffffffc009600000, irq 129
[    1.008150] mtk_soc_eth 15100000.ethernet: generated random MAC address 32:57:b9:82:32:d7
[    1.016500] mtk_soc_eth 15100000.ethernet eth1: mediatek frame engine at 0xffffffc009600000, irq 129
[    1.025946] i2c_dev: i2c /dev entries driver
[    1.030571] mtk-wdt 1001c000.watchdog: Watchdog enabled (timeout=31 sec, nowayout=0)
[    1.038988] NET: Registered PF_INET6 protocol family
[    1.044537] Segment Routing with IPv6
[    1.048227] In-situ OAM (IOAM) with IPv6
[    1.052164] NET: Registered PF_PACKET protocol family
[    1.057231] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[    1.070217] 8021q: 802.1Q VLAN Support v1.8
[    1.075164] pstore: Using crash dump compression: deflate
[    1.085396] mtk-pcie-gen3 11280000.pcie: host bridge /soc/pcie@11280000 ranges:
[    1.092778] mtk-pcie-gen3 11280000.pcie: Parsing ranges property...
[    1.099039] mtk-pcie-gen3 11280000.pcie:      MEM 0x0020000000..0x002fffffff -> 0x0020000000
[    1.153552] mtk-msdc 11230000.mmc: pha
[    5.097898] ubi0: scanning is finished
[    5.142948] ubi0: attached mtd0 (name "ubi", size 122 MiB)
[    5.148441] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
[    5.155295] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
[    5.162064] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
[    5.169007] ubi0: good PEBs: 980, bad PEBs: 0, corrupted PEBs: 0
[    5.174992] ubi0: user volume: 6, internal volumes: 1, max. volumes count: 128
[    5.182196] ubi0: max/mean erase counter: 2/1, WL threshold: 4096, image sequence number: 0
[    5.190525] ubi0: available PEBs: 2, total reserved PEBs: 978, PEBs reserved for bad PEB handling: 20
[    5.199725] ubi0: background thread "ubi_bgt0d" started, PID 465
[    5.205795] FIT: Selected configuration: "config-mt7986a-bananapi-bpi-r3-emmc-snand" (OpenWrt bananapi_bpi-r3 with mt7986a-bananapi-bpi-r3-emmc-snand)
[    5.219254] FIT:           kernel sub-image 0x00001000..0x00528400 "kernel-1" (ARM64 OpenWrt Linux-5.15.69) 
[    5.229065] FIT:          flat_dt sub-image 0x00529000..0x00530fff "fdt-1" (ARM64 OpenWrt bananapi_bpi-r3 device tree blob) 
[    5.240264] FIT:          flat_dt sub-image 0x00531000..0x00538fff "fdt-mt7986a-bananapi-bpi-r3-nor" (ARM64 OpenWrt bananapi_bpi-r3 device tree overlay mt7986a-bananapi-bpi-r3-nor) 
[    5.256405] FIT:          flat_dt sub-image 0x00539000..0x00540fff "fdt-mt7986a-bananapi-bpi-r3-emmc-nor" (ARM64 OpenWrt bananapi_bpi-r3 device tree overlay mt7986a-bananapi-bpi-r3-emmc-nor) 
[    5.273412] FIT:          flat_dt sub-image 0x00541000..0x00548fff "fdt-mt7986a-bananapi-bpi-r3-emmc-snand" (ARM64 OpenWrt bananapi_bpi-r3 device tree overlay mt7986a-bananapi-bpi-r3-emmc-snand) 
[    5.290766] FIT:          flat_dt sub-image 0x00549000..0x00550fff "fdt-mt7986a-bananapi-bpi-r3-snand" (ARM64 OpenWrt bananapi_bpi-r3 device tree overlay mt7986a-bananapi-bpi-r3-snand) 
[    5.307249] FIT:       filesystem sub-image 0x00551000..0x00a99fff "rootfs-1" (ARM64 OpenWrt bananapi_bpi-r3 rootfs) 
[    5.317835] FIT: selecting configured loadable "rootfs-1" to be root filesystem
[    5.325120]  ubiblock0_2: p1(rootfs-1)
[    5.325235] block ubiblock0_2: created from ubi0:2(fit)
[    5.361435] VFS: Mounted root (squashfs filesystem) readonly on device 259:3.
[    5.368710] Freeing unused kernel memory: 448K
[    5.425591] Run /sbin/init as init process
[    5.429671]   with arguments:
[    5.432621]     /sbin/init
[    5.435312]   with environment:
[    5.438445]     HOME=/
[    5.440789]     TERM=linux
[    6.023562] init: Console is alive
[    6.027095] init: - watchdog -
[    6.566391] random: crng init done
[    7.376594] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    7.531687] usbcore: registered new interface driver usbfs
[    7.537215] usbcore: registered new interface driver hub
[    7.542542] usbcore: registered new device driver usb
[    7.551734] xhci-mtk 11200000.usb: xHCI Host Controller
[    7.556984] xhci-mtk 11200000.usb: new USB bus registered, assigned bus number 1
[    7.567380] xhci-mtk 11200000.usb: hcc params 0x01403f99 hci version 0x110 quirks 0x0000000000210010
[    7.576530] xhci-mtk 11200000.usb: irq 124, io mem 0x11200000
[    7.582345] xhci-mtk 11200000.usb: xHCI Host Controller
[    7.587568] xhci-mtk 11200000.usb: new USB bus registered, assigned bus number 2
[    7.594945] xhci-mtk 11200000.usb: Host supports USB 3.2 Enhanced SuperSpeed
[    7.602338] hub 1-0:1.0: USB hub found
[    7.606101] hub 1-0:1.0: 2 ports detected
[    7.610360] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[    7.618674] hub 2-0:1.0: USB hub found
[    7.622435] hub 2-0:1.0: 1 port detected
[    7.628738] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    7.642714] init: - preinit -
[    8.075564] usb 1-1: new high-speed USB device number 2 using xhci-mtk
[    8.256280] hub 1-1:1.0: USB hub found
[    8.260100] hub 1-1:1.0: 4 ports detected
[    8.364099] mtk_soc_eth 15100000.ethernet eth0: configuring for fixed/2500base-x link mode
[    8.372559] mtk_soc_eth 15100000.ethernet eth0: Link is Up - 2.5Gbps/Full - flow control rx/tx
[    8.378106] mt7530 mdio-bus:1f lan1: configuring for phy/gmii link mode
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
[   10.521591] UBIFS (ubi0:5): Mounting in unauthenticated mode
[   10.527309] UBIFS (ubi0:5): background thread "ubifs_bgt0_5" started, PID 586
[   10.757232] UBIFS (ubi0:5): recovery needed
[   11.324271] UBIFS (ubi0:5): recovery completed
[   11.328770] UBIFS (ubi0:5): UBIFS: mounted UBI device 0, volume 5, name "rootfs_data"
[   11.336584] UBIFS (ubi0:5): LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
[   11.346477] UBIFS (ubi0:5): FS size: 89391104 bytes (85 MiB, 704 LEBs), max 715 LEBs, journal size 4444160 bytes (4 MiB, 35 LEBs)
[   11.358103] UBIFS (ubi0:5): reserved for root: 4222162 bytes (4123 KiB)
[   11.364698] UBIFS (ubi0:5): media format: w5/r0 (latest is w5/r0), UUID A39DA809-B0FF-4AC4-AB10-2974A6B30EDD, small LPT model
[   11.418546] mount_root: switching to ubifs overlay
[   11.461880] overlayfs: null uuid detected in lower fs '/', falling back to xino=off,index=off,nfs_export=off.
[   11.496683] urandom-seed: Seeding with /etc/urandom.seed
[   11.754162] procd: - early -
[   11.757109] procd: - watchdog -
[   12.375017] procd: - watchdog -
[   12.513066] procd: - ubus -
[   12.691649] procd: - init -
Please press Enter to activate this console.
[   13.406371] urngd: v1.0.2 started.
[   13.433959] kmodloader: loading kernel modules from /etc/modules.d/*
[   13.579922] i2c-gpio i2c-gpio-0: using lines 427 (SDA) and 428 (SCL)
[   13.586581] i2c-gpio i2c-gpio-1: using lines 429 (SDA) and 430 (SCL)
[   13.594528] crypto-safexcel 10320000.crypto: EIP97:230(0,1,4,4)-HIA:270(0,5,5),PE:150/433(alg:7fcdfc00)/0/0/0
[   13.608447] Loading modules backported from Linux version v5.15.58-0-g7d8048d4e064
[   13.616023] Backport generated by backports.git v5.15.58-1-0-g42a95ce7
[   13.626637] sfp sfp1: Host maximum power 1.0W
[   13.631710] sfp sfp2: Host maximum power 1.0W
[   14.057756] mt7986-wmac 18000000.wmac: HW/SW Version: 0x8a108a10, Build Time: 20220113162701a
[   14.057756] 
[   14.519994] mt7986-wmac 18000000.wmac: WM Firmware Version: ____000000, Build Time: 20220113162756
[   14.726050] mt7986-wmac 18000000.wmac: WA Firmware Version: DEV_000000, Build Time: 20220113163034
[   35.045556] mt7986-wmac 18000000.wmac: Message 00000002 (seq 4) timeout
[   35.052168] mt7986-wmac 18000000.wmac: Failed to start WA firmware
[   35.058433] mt7986-wmac: probe of 18000000.wmac failed with error -110
[   35.083456] PPP generic driver version 2.4.2
[   35.088352] NET: Registered PF_PPPOX protocol family
[   35.095423] kmodloader: done loading kernel modules from /etc/modules.d/*
[   40.597267] mtk_soc_eth 15100000.ethernet eth0: Link is Down
[   40.607393] mtk_soc_eth 15100000.ethernet eth0: configuring for fixed/2500base-x link mode
[   40.615847] mtk_soc_eth 15100000.ethernet eth0: Link is Up - 2.5Gbps/Full - flow control rx/tx
[   40.616960] mt7530 mdio-bus:1f lan1: configuring for phy/gmii link mode
[   40.634048] br-lan: port 1(lan1) entered blocking state
[   40.639350] br-lan: port 1(lan1) entered disabled state
[   40.646537] device lan1 entered promiscuous mode
[   40.651156] device eth0 entered promiscuous mode
[   40.658332] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   40.672778] mt7530 mdio-bus:1f lan2: configuring for phy/gmii link mode
[   40.682244] br-lan: port 2(lan2) entered blocking state
[   40.687523] br-lan: port 2(lan2) entered disabled state
[   40.694580] device lan2 entered promiscuous mode
[   40.704436] mt7530 mdio-bus:1f lan3: configuring for phy/gmii link mode
[   40.716285] mt7530 mdio-bus:1f lan3: Link is Up - 1Gbps/Full - flow control off
[   40.718221] br-lan: port 3(lan3) entered blocking state
[   40.728879] br-lan: port 3(lan3) entered disabled state
[   40.736033] device lan3 entered promiscuous mode
[   40.743835] br-lan: port 3(lan3) entered blocking state
[   40.749091] br-lan: port 3(lan3) entered forwarding state
[   40.755317] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
[   40.763687] mt7530 mdio-bus:1f lan4: configuring for phy/gmii link mode
[   40.773425] br-lan: port 4(lan4) entered blocking state
[   40.775124] mt7530 mdio-bus:1f lan4: Link is Up - 1Gbps/Full - flow control off
[   40.778697] br-lan: port 4(lan4) entered disabled state
[   40.793428] device lan4 entered promiscuous mode
[   40.800296] br-lan: port 4(lan4) entered blocking state
[   40.805539] br-lan: port 4(lan4) entered forwarding state
[   40.813472] mt7530 mdio-bus:1f sfp2: configuring for inband/2500base-x link mode
[   40.822131] br-lan: port 5(sfp2) entered blocking state
[   40.827355] br-lan: port 5(sfp2) entered disabled state
[   40.834688] device sfp2 entered promiscuous mode
[   40.843468] mtk_soc_eth 15100000.ethernet eth1: configuring for inband/2500base-x link mode
[   40.852582] br-wan: port 1(eth1) entered blocking state
[   40.857858] br-wan: port 1(eth1) entered disabled state
[   40.863237] device eth1 entered promiscuous mode
[   40.869383] br-wan: port 1(eth1) entered blocking state
[   40.874617] br-wan: port 1(eth1) entered forwarding state
[   40.881780] mt7530 mdio-bus:1f wan: configuring for phy/gmii link mode
[   40.891348] br-wan: port 2(wan) entered blocking state
[   40.893054] mt7530 mdio-bus:1f wan: Link is Up - 1Gbps/Full - flow control rx/tx
[   40.896501] br-wan: port 2(wan) entered disabled state
[   40.897941] device wan entered promiscuous mode
[   40.915942] br-wan: port 2(wan) entered blocking state
[   40.921074] br-wan: port 2(wan) entered forwarding state
[   41.615890] br-wan: port 1(eth1) entered disabled state



BusyBox v1.35.0 (2022-09-29 05:53:56 UTC) built-in shell (ash)

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 -----------------------------------------------------
 OpenWrt SNAPSHOT, r20784-ec8fb542ec
 -----------------------------------------------------
=== 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:/# cd /sys/firmware/devicetree/
root@OpenWrt:/sys/firmware/devicetree#  dtc -I fs /sys/firmware/devicetree/bas�[Je
<stdout>: Warning (reg_format): /soc/spi@1100a000/flash@0:reg: property has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1)
<stdout>: Warning (unit_address_vs_reg): /oscillator@0: node has a unit name, but no reg or ranges property
<stdout>: Warning (unit_address_vs_reg): /soc/t-phy@11e10000: node has a unit name, but no reg or ranges property
<stdout>: Warning (unit_address_vs_reg): /soc/t-phy@11c00000: node has a unit name, but no reg or ranges property
<stdout>: Warning (pci_device_reg): Failed prerequisite 'reg_format'
<stdout>: Warning (pci_device_bus_num): Failed prerequisite 'reg_format'
<stdout>: Warning (simple_bus_reg): Failed prerequisite 'reg_format'
<stdout>: Warning (i2c_bus_reg): Failed prerequisite 'reg_format'
<stdout>: Warning (spi_bus_bridge): /soc/spi@1100a000: incorrect #address-cells for SPI bus
<stdout>: Warning (spi_bus_bridge): /soc/spi@1100a000: incorrect #size-cells for SPI bus
<stdout>: Warning (spi_bus_reg): Failed prerequisite 'reg_format'
<stdout>: Warning (spi_bus_reg): Failed prerequisite 'spi_bus_bridge'
<stdout>: Warning (avoid_default_addr_size): /soc/spi@1100a000/flash@0: Relying on default #address-cells value
<stdout>: Warning (avoid_default_addr_size): /soc/spi@1100a000/flash@0: Relying on default #size-cells value
<stdout>: Warning (avoid_unnecessary_addr_size): Failed prerequisite 'avoid_default_addr_size'
<stdout>: Warning (unique_unit_address): Failed prerequisite 'avoid_default_addr_size'
<stdout>: Warning (clocks_property): /soc/usb@11200000:clocks: cell 0 is not a phandle reference
<stdout>: Warning (clocks_property): /soc/usb@11200000:clocks: cell 2 is not a phandle reference
<stdout>: Warning (clocks_property): /soc/usb@11200000:clocks: cell 4 is not a phandle reference
<stdout>: Warning (clocks_property): /soc/usb@11200000:clocks: cell 6 is not a phandle reference
<stdout>: Warning (clocks_property): /soc/usb@11200000:clocks: cell 8 is not a phandle reference
<stdout>: Warning (clocks_property): /soc/spi@1100b000:clocks: cell 0 is not a phandle reference
<stdout>: Warning (clocks_property): /soc/spi@1100b000:clocks: cell 2 is not a phandle reference
<stdout>: Warning (clocks_property): /soc/spi@1100b000:clocks: cell 4 is not a phandle reference
<stdout>: Warning (clocks_property): /soc/spi@1100b000:clocks: cell 6 is not a phandle reference
<stdout>: Warning (clocks_property): /soc/mmc@11230000:clocks: cell 0 is not a phandle reference
<stdout>: Warning (clocks_property): /soc/mmc@11230000:clocks: cell 2 is not a phandle reference
<stdout>: Warning (clocks_property): /soc/mmc@11230000:clocks: cell 4 is not a phandle reference
<stdout>: Warning (clocks_property): /soc/mmc@11230000:clocks: cell 6 is not a phandle reference
<stdout>: Warning (clocks_property): /soc/serial@11002000:clocks: cell 0 is not a phandle reference
<stdout>: Warning (clocks_property): /soc/serial@11002000:clocks: cell 2 is not a phandle reference
<stdout>: Warning (clocks_property): /soc/t-phy@11e10000/usb-phy@11e10700:clocks: cell 0 is not a phandle reference
<stdout>: Warning (clocks_property): /soc/t-phy@11e10000/usb-phy@11e10000:clocks: cell 0 is not a phandle reference
<stdout>: Warning (clocks_property): /soc/t-phy@11e10000/usb-phy@11e10000:clocks: cell 2 is not a phandle reference
<stdout>: Warning (clocks_property): /soc/t-phy@11e10000/usb-phy@11e11000:clocks: cell 0 is not a phandle reference
<stdout>: Warning (clocks_property): /soc/t-phy@11e10000/usb-phy@11e11000:clocks: cell 2 is not a phandle reference
<stdout>: Warning (clocks_property): /soc/trng@1020f000:clocks: cell 0 is not a phandle reference
<stdout>: Warning (clocks_property): /soc/t-phy@11c00000/pcie-phy@11c00000:clocks: cell 0 is not a phandle reference
<stdout>: Warning (clocks_property): /soc/ethernet@15100000:clocks: cell 0 is not a phandle reference
<stdout>: Warning (clocks_property): /soc/ethernet@15100000:clocks: cell 2 is not a phandle reference
<stdout>: Warning (clocks_property): /soc/ethernet@15100000:clocks: cell 4 is not a phandle reference
<stdout>: Warning (clocks_property): /soc/ethernet@15100000:clocks: cell 6 is not a phandle reference
<stdout>: Warning (clocks_property): /soc/ethernet@15100000:clocks: cell 8 is not a phandle reference
<stdout>: Warning (clocks_property): /soc/ethernet@15100000:clocks: cell 10 is not a phandle reference
<stdout>: Warning (clocks_property): /soc/ethernet@15100000:clocks: cell 12 is not a phandle reference
<stdout>: Warning (clocks_property): /soc/ethernet@15100000:clocks: cell 14 is not a phandle reference
<stdout>: Warning (clocks_property): /soc/ethernet@15100000:clocks: cell 16 is not a phandle reference
<stdout>: Warning (clocks_property): /soc/ethernet@15100000:clocks: cell 18 is not a phandle reference
<stdout>: Warning (clocks_property): /soc/ethernet@15100000:clocks: cell 20 is not a phandle reference
<stdout>: Warning (clocks_property): /soc/ethernet@15100000:clocks: cell 22 is not a phandle reference
<stdout>: Warning (clocks_property): /soc/ethernet@15100000:clocks: cell 24 is not a phandle reference
<stdout>: Warning (clocks_property): /soc/ethernet@15100000:clocks: cell 26 is not a phandle reference
<stdout>: Warning (clocks_property): /soc/ethernet@15100000:clocks: cell 28 is not a phandle reference
<stdout>: Warning (clocks_property): /soc/spi@1100a000:clocks: cell 0 is not a phandle reference
<stdout>: Warning (clocks_property): /soc/spi@1100a000:clocks: cell 2 is not a phandle reference
<stdout>: Warning (clocks_property): /soc/spi@1100a000:clocks: cell 4 is not a phandle reference
<stdout>: Warning (clocks_property): /soc/spi@1100a000:clocks: cell 6 is not a phandle reference
<stdout>: Warning (clocks_property): /soc/serial@11004000:clocks: cell 0 is not a phandle reference
<stdout>: Warning (clocks_property): /soc/serial@11004000:clocks: cell 2 is not a phandle reference
<stdout>: Warning (clocks_property): /soc/crypto@10320000:clocks: cell 0 is not a phandle reference
<stdout>: Warning (clocks_property): /soc/pcie@11280000:clocks: cell 0 is not a phandle reference
<stdout>: Warning (clocks_property): /soc/pcie@11280000:clocks: cell 2 is not a phandle reference
<stdout>: Warning (clocks_property): /soc/pcie@11280000:clocks: cell 4 is not a phandle reference
<stdout>: Warning (clocks_property): /soc/pcie@11280000:clocks: cell 6 is not a phandle reference
<stdout>: Warning (clocks_property): /soc/pcie@11280000:clocks: cell 8 is not a phandle reference
<stdout>: Warning (clocks_property): /soc/wmac@18000000:clocks: cell 0 is not a phandle reference
<stdout>: Warning (clocks_property): /soc/wmac@18000000:clocks: cell 2 is not a phandle reference
<stdout>: Warning (clocks_property): /soc/serial@11003000:clocks: cell 0 is not a phandle reference
<stdout>: Warning (clocks_property): /soc/serial@11003000:clocks: cell 2 is not a phandle reference
<stdout>: Warning (phys_property): /soc/usb@11200000:phys: cell 0 is not a phandle reference
<stdout>: Warning (phys_property): /soc/usb@11200000:phys: cell 2 is not a phandle reference
<stdout>: Warning (phys_property): /soc/usb@11200000:phys: cell 4 is not a phandle reference
<stdout>: Warning (phys_property): /soc/pcie@11280000:phys: cell 0 is not a phandle reference
<stdout>: Warning (resets_property): /soc/wmac@18000000:resets: cell 0 is not a phandle reference
<stdout>: Warning (gpios_property): /sfp1:tx-disable-gpios: cell 0 is not a phandle reference
<stdout>: Warning (gpios_property): /sfp1:mod-def0-gpios: cell 0 is not a phandle reference
<stdout>: Warning (gpios_property): /sfp1:tx-fault-gpios: cell 0 is not a phandle reference
<stdout>: Warning (gpios_property): /sfp1:los-gpios: cell 0 is not a phandle reference
<stdout>: Warning (gpios_property): /i2c-gpio-1:scl-gpios: cell 0 is not a phandle reference
<stdout>: Warning (gpios_property): /i2c-gpio-1:sda-gpios: cell 0 is not a phandle reference
<stdout>: Warning (gpios_property): /soc/ethernet@15100000/mdio-bus/switch@0:reset-gpios: cell 0 is not a phandle reference
<stdout>: Warning (gpios_property): /leds/green:gpios: cell 0 is not a phandle reference
<stdout>: Warning (gpios_property): /leds/blue:gpios: cell 0 is not a phandle reference
<stdout>: Warning (gpios_property): /sfp2:tx-disable-gpios: cell 0 is not a phandle reference
<stdout>: Warning (gpios_property): /sfp2:mod-def0-gpios: cell 0 is not a phandle reference
<stdout>: Warning (gpios_property): /sfp2:tx-fault-gpios: cell 0 is not a phandle reference
<stdout>: Warning (gpios_property): /sfp2:los-gpios: cell 0 is not a phandle reference
<stdout>: Warning (gpios_property): /keys/wps:gpios: cell 0 is not a phandle reference
<stdout>: Warning (gpios_property): /i2c-gpio-0:scl-gpios: cell 0 is not a phandle reference
<stdout>: Warning (gpios_property): /i2c-gpio-0:sda-gpios: cell 0 is not a phandle reference
<stdout>: Warning (interrupt_provider): /soc/pinctrl@1001f000: Missing #address-cells in interrupt provider
<stdout>: Warning (interrupt_provider): /soc/ethernet@15100000/mdio-bus/switch@0: Missing #address-cells in interrupt provider
<stdout>: Warning (interrupt_provider): /soc/interrupt-controller@c000000: Missing #address-cells in interrupt provider
/dts-v1/;

/ {
	#address-cells = <0x02>;
	model = "Bananapi BPI-R3";
	#size-cells = <0x02>;
	interrupt-parent = <0x01>;
	compatible = "bananapi,bpi-r3\0mediatek,mt7986a";

	regulator-3p3v {
		regulator-max-microvolt = <0x325aa0>;
		regulator-boot-on;
		regulator-always-on;
		regulator-min-microvolt = <0x325aa0>;
		regulator-name = "fixed-3.3V";
		compatible = "regulator-fixed";
		phandle = <0x0b>;
	};

	oscillator@0 {
		clock-output-names = "clkxtal";
		#clock-cells = <0x00>;
		clock-frequency = <0x2625a00>;
		compatible = "fixed-clock";
		phandle = <0x13>;
	};

	sfp1 {
		tx-disable-gpios = <0x02 0x14 0x00>;
		i2c-bus = <0x22>;
		mod-def0-gpios = <0x02 0x31 0x01>;
		compatible = "sff,sfp";
		tx-fault-gpios = <0x02 0x07 0x00>;
		phandle = <0x1a>;
		los-gpios = <0x02 0x2e 0x00>;
	};

	memory@40000000 {
		device_type = "memory";
		reg = <0x00 0x40000000 0x00 0x80000000>;
	};

	regulator-5v {
		regulator-max-microvolt = <0x4c4b40>;
		regulator-boot-on;
		regulator-always-on;
		regulator-min-microvolt = <0x4c4b40>;
		regulator-name = "fixed-5V";
		compatible = "regulator-fixed";
		phandle = <0x0c>;
	};

	i2c-gpio-1 {
		#address-cells = <0x01>;
		#size-cells = <0x00>;
		compatible = "i2c-gpio";
		i2c-gpio,delay-us = <0x02>;
		phandle = <0x23>;
		scl-gpios = <0x02 0x13 0x06>;
		sda-gpios = <0x02 0x12 0x06>;
	};

	soc {
		#address-cells = <0x02>;
		#size-cells = <0x02>;
		compatible = "simple-bus";
		ranges;

		syscon@10060000 {
			#clock-cells = <0x01>;
			compatible = "mediatek,mt7986-sgmiisys_0\0syscon";
			reg = <0x00 0x10060000 0x00 0x1000>;
			phandle = <0x15>;
		};

		infracfg@10001000 {
			#clock-cells = <0x01>;
			compatible = "mediatek,mt7986-infracfg\0syscon";
			reg = <0x00 0x10001000 0x00 0x1000>;
			phandle = <0x03>;
		};

		usb@11200000 {
			clock-names = "sys_ck\0xhci_ck\0ref_ck\0mcu_ck\0dma_ck";
			reg-names = "mac\0ippc";
			vusb33-supply = <0x0b>;
			interrupts = <0x00 0xad 0x04>;
			clocks = <0x03 0x31 0x04 0x3b 0x03 0x32 0x03 0x2f 0x03 0x30>;
			vbus-supply = <0x0c>;
			compatible = "mediatek,mt7986-xhci\0mediatek,mtk-xhci";
			status = "okay";
			phys = <0x08 0x03 0x09 0x04 0x0a 0x03>;
			reg = <0x00 0x11200000 0x00 0x2e00 0x00 0x11203e00 0x00 0x100>;
			phandle = <0x30>;
		};

		spi@1100b000 {
			clock-names = "parent-clk\0sel-clk\0spi-clk\0hclk";
			interrupts = <0x00 0x8d 0x04>;
			clocks = <0x04 0x04 0x04 0x1d 0x03 0x24 0x03 0x26>;
			compatible = "mediatek,mt7986-spi-ipm\0mediatek,spi-ipm";
			status = "disabled";
			reg = <0x00 0x1100b000 0x00 0x100>;
			phandle = <0x2f>;
		};

		mmc@11230000 {
			pinctrl-names = "default\0state_uhs";
			pinctrl-0 = <0x0d>;
			clock-names = "source\0hclk\0axi_cg\0ahb_cg";
			cap-sd-highspeed;
			vqmmc-supply = <0x0f>;
			assigned-clocks = <0x04 0x23 0x04 0x22>;
			assigned-clock-parents = <0x05 0x06 0x04 0x12>;
			mmc-hs200-1_8v;
			bus-width = <0x08>;
			non-removable;
			no-sdio;
			mmc-hs400-1_8v;
			interrupts = <0x00 0x8f 0x04>;
			clocks = <0x03 0x28 0x03 0x29 0x03 0x2b 0x03 0x2a>;
			hs400-ds-delay = <0x14014>;
			vmmc-supply = <0x0b>;
			no-sd;
			compatible = "mediatek,mt7986-mmc";
			pinctrl-1 = <0x0e>;
			status = "okay";
			reg = <0x00 0x11230000 0x00 0x1000 0x00 0x11c20000 0x00 0x1000>;
			phandle = <0x31>;
			max-frequency = <0xbebc200>;
			cap-mmc-highspeed;
		};

		serial@11002000 {
			clock-names = "baud\0bus";
			assigned-clocks = <0x04 0x1e 0x03 0x01>;
			assigned-clock-parents = <0x04 0x00 0x04 0x1e>;
			interrupts = <0x00 0x7b 0x04>;
			clocks = <0x03 0x01 0x03 0x1d>;
			compatible = "mediatek,mt7986-uart\0mediatek,mt6577-uart";
			status = "okay";
			reg = <0x00 0x11002000 0x00 0x400>;
			phandle = <0x2b>;
		};

		apmixedsys@1001e000 {
			#clock-cells = <0x01>;
			compatible = "mediatek,mt7986-apmixedsys";
			reg = <0x00 0x1001e000 0x00 0x1000>;
			phandle = <0x05>;
		};

		t-phy@11e10000 {
			#address-cells = <0x02>;
			#size-cells = <0x02>;
			compatible = "mediatek,mt7986-tphy\0mediatek,generic-tphy-v2";
			ranges;
			status = "okay";
			phandle = <0x34>;

			usb-phy@11e10700 {
				clock-names = "ref";
				clocks = <0x04 0x35>;
				#phy-cells = <0x01>;
				reg = <0x00 0x11e10700 0x00 0x900>;
				phandle = <0x09>;
			};

			usb-phy@11e10000 {
				clock-names = "ref\0da_ref";
				clocks = <0x04 0x3c 0x04 0x3d>;
				#phy-cells = <0x01>;
				reg = <0x00 0x11e10000 0x00 0x700>;
				phandle = <0x08>;
			};

			usb-phy@11e11000 {
				clock-names = "ref\0da_ref";
				clocks = <0x04 0x3c 0x04 0x3d>;
				#phy-cells = <0x01>;
				reg = <0x00 0x11e11000 0x00 0x700>;
				phandle = <0x0a>;
			};
		};

		trng@1020f000 {
			clock-names = "rng";
			clocks = <0x03 0x37>;
			compatible = "mediatek,mt7986-rng";
			status = "okay";
			reg = <0x00 0x1020f000 0x00 0x100>;
			phandle = <0x29>;
		};

		t-phy@11c00000 {
			#address-cells = <0x02>;
			#size-cells = <0x02>;
			compatible = "mediatek,mt7986-tphy\0mediatek,generic-tphy-v2";
			ranges;
			status = "okay";
			phandle = <0x33>;

			pcie-phy@11c00000 {
				clock-names = "ref";
				clocks = <0x13>;
				#phy-cells = <0x01>;
				reg = <0x00 0x11c00000 0x00 0x20000>;
				phandle = <0x10>;
			};
		};

		syscon@10070000 {
			#clock-cells = <0x01>;
			compatible = "mediatek,mt7986-sgmiisys_1\0syscon";
			reg = <0x00 0x10070000 0x00 0x1000>;
			phandle = <0x16>;
		};

		wed-pcie@10003000 {
			compatible = "mediatek,mt7986-wed-pcie\0syscon";
			reg = <0x00 0x10003000 0x00 0x10>;
			phandle = <0x17>;
		};

		wed@15011000 {
			interrupts = <0x00 0xce 0x04>;
			interrupt-parent = <0x01>;
			compatible = "mediatek,mt7986-wed\0syscon";
			reg = <0x00 0x15011000 0x00 0x1000>;
			phandle = <0x19>;
		};

		watchdog@1001c000 {
			#reset-cells = <0x01>;
			interrupts = <0x00 0x6e 0x04>;
			compatible = "mediatek,mt7986-wdt\0mediatek,mt6589-wdt";
			reg = <0x00 0x1001c000 0x00 0x1000>;
			phandle = <0x1e>;
		};

		pinctrl@1001f000 {
			reg-names = "gpio\0iocfg_rt\0iocfg_rb\0iocfg_lt\0iocfg_lb\0iocfg_tr\0iocfg_tl\0eint";
			gpio-controller;
			interrupts = <0x00 0xe1 0x04>;
			interrupt-parent = <0x01>;
			compatible = "mediatek,mt7986a-pinctrl";
			#interrupt-cells = <0x02>;
			reg = <0x00 0x1001f000 0x00 0x1000 0x00 0x11c30000 0x00 0x1000 0x00 0x11c40000 0x00 0x1000 0x00 0x11e20000 0x00 0x1000 0x00 0x11e30000 0x00 0x1000 0x00 0x11f00000 0x00 0x1000 0x00 0x11f10000 0x00 0x1000 0x00 0x1000b000 0x00 0x1000>;
			phandle = <0x02>;
			#gpio-cells = <0x02>;
			gpio-ranges = <0x02 0x00 0x00 0x64>;
			interrupt-controller;

			wf-2g-5g-pins {
				phandle = <0x1f>;

				mux {
					function = "wifi";
					groups = "wf_2g\0wf_5g";
				};

				conf {
					pins = "WF0_HB1\0WF0_HB2\0WF0_HB3\0WF0_HB4\0WF0_HB0\0WF0_HB0_B\0WF0_HB5\0WF0_HB6\0WF0_HB7\0WF0_HB8\0WF0_HB9\0WF0_HB10\0WF0_TOP_CLK\0WF0_TOP_DATA\0WF1_HB1\0WF1_HB2\0WF1_HB3\0WF1_HB4\0WF1_HB0\0WF1_HB5\0WF1_HB6\0WF1_HB7\0WF1_HB8\0WF1_TOP_CLK\0WF1_TOP_DATA";
					drive-strength = <0x04>;
				};
			};

			wf-dbdc-pins {
				phandle = <0x21>;

				mux {
					function = "wifi";
					groups = "wf_dbdc";
				};

				conf {
					pins = "WF0_HB1\0WF0_HB2\0WF0_HB3\0WF0_HB4\0WF0_HB0\0WF0_HB0_B\0WF0_HB5\0WF0_HB6\0WF0_HB7\0WF0_HB8\0WF0_HB9\0WF0_HB10\0WF0_TOP_CLK\0WF0_TOP_DATA\0WF1_HB1\0WF1_HB2\0WF1_HB3\0WF1_HB4\0WF1_HB0\0WF1_HB5\0WF1_HB6\0WF1_HB7\0WF1_HB8\0WF1_TOP_CLK\0WF1_TOP_DATA";
					drive-strength = <0x04>;
				};
			};

			mmc0-uhs-pins {
				phandle = <0x0e>;

				conf-cmd-dat {
					pins = "EMMC_DATA_0\0EMMC_DATA_1\0EMMC_DATA_2\0EMMC_DATA_3\0EMMC_DATA_4\0EMMC_DATA_5\0EMMC_DATA_6\0EMMC_DATA_7\0EMMC_CMD";
					drive-strength = <0x04>;
					input-enable;
					mediatek,pull-up-adv = <0x01>;
				};

				conf-rst {
					pins = "EMMC_RSTB";
					drive-strength = <0x04>;
					mediatek,pull-up-adv = <0x01>;
				};

				conf-clk {
					pins = "EMMC_CK";
					drive-strength = <0x06>;
					mediatek,pull-down-adv = <0x02>;
				};

				mux {
					function = "emmc";
					groups = "emmc_51";
				};

				conf-ds {
					pins = "EMMC_DSL";
					mediatek,pull-down-adv = <0x02>;
				};
			};

			pcie-pins {
				phandle = <0x12>;

				mux {
					function = "pcie";
					groups = "pcie_clk\0pcie_pereset";
				};
			};

			spi-flash-pins {
				phandle = <0x07>;

				mux {
					function = "spi";
					groups = "spi0\0spi0_wp_hold";
				};
			};

			mmc0-pins {
				phandle = <0x0d>;

				conf-cmd-dat {
					pins = "EMMC_DATA_0\0EMMC_DATA_1\0EMMC_DATA_2\0EMMC_DATA_3\0EMMC_DATA_4\0EMMC_DATA_5\0EMMC_DATA_6\0EMMC_DATA_7\0EMMC_CMD";
					drive-strength = <0x04>;
					input-enable;
					mediatek,pull-up-adv = <0x01>;
				};

				conf-rst {
					pins = "EMMC_RSTB";
					drive-strength = <0x04>;
					mediatek,pull-up-adv = <0x01>;
				};

				conf-clk {
					pins = "EMMC_CK";
					drive-strength = <0x06>;
					mediatek,pull-down-adv = <0x02>;
				};

				mux {
					function = "emmc";
					groups = "emmc_51";
				};

				conf-ds {
					pins = "EMMC_DSL";
					mediatek,pull-down-adv = <0x02>;
				};
			};

			uart1-pins {
				phandle = <0x06>;

				mux {
					function = "uart";
					groups = "uart1";
				};
			};

			wf-led-pins {
				phandle = <0x20>;

				mux {
					function = "led";
					groups = "wifi_led";
				};
			};
		};

		ethernet@15100000 {
			#reset-cells = <0x01>;
			#address-cells = <0x01>;
			clock-names = "fe\0gp2\0gp1\0wocpu1\0wocpu0\0sgmii_tx250m\0sgmii_rx250m\0sgmii_cdr_ref\0sgmii_cdr_fb\0sgmii2_tx250m\0sgmii2_rx250m\0sgmii2_cdr_ref\0sgmii2_cdr_fb\0netsys0\0netsys1";
			assigned-clocks = <0x04 0x2e 0x04 0x2f>;
			assigned-clock-parents = <0x05 0x01 0x05 0x03>;
			interrupts = <0x00 0xc4 0x04 0x00 0xc5 0x04 0x00 0xc6 0x04 0x00 0xc7 0x04>;
			clocks = <0x14 0x00 0x14 0x01 0x14 0x02 0x14 0x03 0x14 0x04 0x15 0x00 0x15 0x01 0x15 0x02 0x15 0x03 0x16 0x00 0x16 0x01 0x16 0x02 0x16 0x03 0x04 0x2b 0x04 0x2c>;
			mediatek,sgmiisys = <0x15 0x16>;
			#size-cells = <0x00>;
			mediatek,ethsys = <0x14>;
			mediatek,wed-pcie = <0x17>;
			compatible = "mediatek,mt7986-eth";
			mediatek,wed = <0x18 0x19>;
			status = "okay";
			reg = <0x00 0x15100000 0x00 0x80000>;
			phandle = <0x35>;

			mac@0 {
				phy-mode = "2500base-x";
				local-mac-address = [fa e7 49 06 6c bc];
				mac-address = [fa e7 49 06 6c bc];
				compatible = "mediatek,eth-mac";
				reg = <0x00>;
				phandle = <0x1c>;

				fixed-link {
					full-duplex;
					speed = <0x9c4>;
					pause;
				};
			};

			mdio-bus {
				#address-cells = <0x01>;
				#size-cells = <0x00>;
				phandle = <0x37>;

				switch@0 {
					interrupts = <0x42 0x04>;
					interrupt-parent = <0x02>;
					reset-gpios = <0x02 0x05 0x01>;
					compatible = "mediatek,mt7531";
					#interrupt-cells = <0x01>;
					reg = <0x1f>;
					phandle = <0x38>;
					interrupt-controller;

					ports {
						#address-cells = <0x01>;
						#size-cells = <0x00>;

						port@0 {
							label = "wan";
							reg = <0x00>;
						};

						port@5 {
							phy-mode = "2500base-x";
							label = "sfp2";
							managed = "in-band-status";
							reg = <0x05>;
							phandle = <0x39>;
							sfp = <0x1b>;
						};

						port@3 {
							label = "lan3";
							reg = <0x03>;
						};

						port@1 {
							label = "lan1";
							reg = <0x01>;
						};

						port@6 {
							phy-mode = "2500base-x";
							label = "cpu";
							reg = <0x06>;
							ethernet = <0x1c>;

							fixed-link {
								full-duplex;
								speed = <0x9c4>;
								pause;
							};
						};

						port@4 {
							label = "lan4";
							reg = <0x04>;
						};

						port@2 {
							label = "lan2";
							reg = <0x02>;
						};
					};
				};
			};

			mac@1 {
				phy-mode = "2500base-x";
				compatible = "mediatek,eth-mac";
				managed = "in-band-status";
				reg = <0x01>;
				phandle = <0x36>;
				sfp = <0x1a>;
			};
		};

		spi@1100a000 {
			pinctrl-names = "default";
			pinctrl-0 = <0x07>;
			clock-names = "parent-clk\0sel-clk\0spi-clk\0hclk";
			interrupts = <0x00 0x8c 0x04>;
			clocks = <0x04 0x04 0x04 0x1c 0x03 0x23 0x03 0x25>;
			compatible = "mediatek,mt7986-spi-ipm\0mediatek,spi-ipm";
			status = "okay";
			reg = <0x00 0x1100a000 0x00 0x100>;
			phandle = <0x2e>;

			flash@0 {
				spi-tx-buswidth = <0x04>;
				spi-max-frequency = <0x989680>;
				spi-rx-buswidth = <0x04>;
				compatible = "spi-nand";
				reg = <0x00>;

				partitions {
					#address-cells = <0x01>;
					#size-cells = <0x01>;
					compatible = "fixed-partitions";

					partition@380000 {
						read-only;
						label = "fip";
						reg = <0x380000 0x200000>;
					};

					partition@0 {
						read-only;
						label = "bl2";
						reg = <0x00 0x80000>;
					};

					partition@80000 {
						label = "reserved";
						reg = <0x80000 0x300000>;
					};

					partition@580000 {
						label = "ubi";
						reg = <0x580000 0x7a80000>;
					};
				};
			};
		};

		serial@11004000 {
			clock-names = "baud\0bus";
			assigned-clocks = <0x03 0x03>;
			assigned-clock-parents = <0x04 0x36>;
			interrupts = <0x00 0x7d 0x04>;
			clocks = <0x03 0x03 0x03 0x1f>;
			compatible = "mediatek,mt7986-uart\0mediatek,mt6577-uart";
			status = "disabled";
			reg = <0x00 0x11004000 0x00 0x400>;
			phandle = <0x2d>;
		};

		interrupt-controller@c000000 {
			interrupts = <0x01 0x09 0x04>;
			interrupt-parent = <0x01>;
			compatible = "arm,gic-v3";
			#interrupt-cells = <0x03>;
			reg = <0x00 0xc000000 0x00 0x10000 0x00 0xc080000 0x00 0x80000 0x00 0xc400000 0x00 0x2000 0x00 0xc410000 0x00 0x1000 0x00 0xc420000 0x00 0x2000>;
			phandle = <0x01>;
			interrupt-controller;
		};

		crypto@10320000 {
			clock-names = "infra_eip97_ck";
			assigned-clocks = <0x04 0x33>;
			assigned-clock-parents = <0x05 0x01>;
			interrupts = <0x00 0x74 0x04 0x00 0x75 0x04 0x00 0x76 0x04 0x00 0x77 0x04>;
			clocks = <0x03 0x10>;
			compatible = "inside-secure,safexcel-eip97";
			status = "okay";
			interrupt-names = "ring0\0ring1\0ring2\0ring3";
			reg = <0x00 0x10320000 0x00 0x40000>;
			phandle = <0x2a>;
		};

		wed@15010000 {
			interrupts = <0x00 0xcd 0x04>;
			interrupt-parent = <0x01>;
			compatible = "mediatek,mt7986-wed\0syscon";
			reg = <0x00 0x15010000 0x00 0x1000>;
			phandle = <0x18>;
		};

		pcie@11280000 {
			pinctrl-names = "default";
			#address-cells = <0x03>;
			phy-names = "pcie-phy";
			bus-range = <0x00 0xff>;
			pinctrl-0 = <0x12>;
			reg-names = "pcie-mac";
			interrupts = <0x00 0xa8 0x04>;
			clocks = <0x03 0x09 0x03 0x33 0x03 0x34 0x03 0x35 0x03 0x36>;
			interrupt-map = <0x00 0x00 0x00 0x01 0x11 0x00 0x00 0x00 0x00 0x02 0x11 0x01 0x00 0x00 0x00 0x03 0x11 0x02 0x00 0x00 0x00 0x04 0x11 0x03>;
			#size-cells = <0x02>;
			device_type = "pci";
			interrupt-map-mask = <0x00 0x00 0x00 0x07>;
			compatible = "mediatek,mt7986-pcie\0mediatek,mt8192-pcie";
			ranges = <0x82000000 0x00 0x20000000 0x00 0x20000000 0x00 0x10000000>;
			#interrupt-cells = <0x01>;
			status = "okay";
			phys = <0x10 0x02>;
			reg = <0x00 0x11280000 0x00 0x4000>;
			phandle = <0x32>;

			interrupt-controller {
				#address-cells = <0x00>;
				#interrupt-cells = <0x01>;
				phandle = <0x11>;
				interrupt-controller;
			};
		};

		wmac@18000000 {
			pinctrl-names = "default\0dbdc";
			mediatek,eeprom-data = <0x86790900 0xc4326 0x60000000 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x1000000 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x800 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x24649090 0x280000 0x5100000 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x21e00 0x21e0002 0x1e00021e 0x22800 0x2280002 0x28000228 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x8080 0x8080fdf7 0x903150d 0x80808080 0x80808080 0x5050d0d 0x1313c6c6 0xc3c3c200 0xc200c2 0x8182 0x8585c2c2 0x82828282 0x858500c2 0xc2000081 0x82858587 0x87c2c200 0x81818285 0x858787c2 0xc2000081 0x82858587 0x87c2c200 0x818285 0x858787c2 0xc2000081 0x82858587 0x87c4c4c2 0xc100c300 0xc3c3c100 0x818383c3 0xc3c3c100 0x81838300 0xc2c2c2c0 0x81828484 0xc3 0xc3c3c100 0x81838386 0x86c3c3c3 0xc1008183 0x838686c2 0xc2c2c081 0x82848486 0x86c3c3c3 0xc1008183 0x838686c3 0xc3c3c100 0x81838386 0x86c3c3c3 0xc1008183 0x83868622 0x28002228 0x222800 0x22280000 0xdddddddd 0xdddddddd 0xddbbbbbb 0xccccccdd 0xdddddddd 0xdddddddd 0xeeeeeecc 0xccccdddd 0xdddddddd 0x4a5662 0x4a 0x56620000 0x4a5662 0x4a 0x56620000 0x88888888 0x33333326 0x26262626 0x26262600 0x33333326 0x26262626 0x26262600 0x33333326 0x26262626 0x26262600 0x33333326 0x26262626 0x26262600 0x00 0xf0f0cc00 0x00 0xaaaa 0xaabbbbbb 0xcccccccc 0xccccbbbb 0xbbbbbbbb 0xbbbbbbaa 0xaaaabbbb 0xbbaaaaaa 0x999999aa 0xaaaabbbb 0xbbcccccc 0x00 0xaaaa 0xaa000000 0xbbbbbbbb 0xbbbbaaaa 0xaa999999 0xaaaaaaaa 0xaaaaaaaa 0xaaaaaaaa 0xaaaaaaaa 0xaaaabbbb 0xbbbbbbbb 0x00 0x00 0x00 0x99999999 0x9999aaaa 0xaaaaaaaa 0x999999aa 0xaaaaaaaa 0xaaaaaaaa 0xaaaaaaaa 0xaaaabbbb 0xbbbbbbbb 0x00 0xeeee 0xeeffffff 0xcccccccc 0xccccdddd 0xddbbbbbb 0xccccccbb 0xbbbbbbbb 0xbbbbbbbb 0xbbbbbbbb 0xbbbbcccc 0xccdddddd 0x516200 0x686e0051 0x6200686e 0x516200 0x686e0051 0x6200686e 0x516200 0x686e0051 0x6200686e 0x516200 0x686e0051 0x6200686e 0x516200 0x686e0051 0x6200686e 0x516200 0x686e0051 0x6200686e 0x516200 0x686e0051 0x6200686e 0x516200 0x686e0051 0x6200686e 0x516200 0x686e0051 0x6200686e 0x516200 0x686e0051 0x6200686e 0x516200 0x686e0051 0x6200686e 0x516200 0x686e0051 0x6200686e 0x516200 0x686e0051 0x6200686e 0x516200 0x686e0051 0x6200686e 0x516200 0x686e0051 0x6200686e 0x516200 0x686e0051 0x6200686e 0x88888888 0x88888888 0x88888888 0x88888888 0x88888888 0x88888888 0x88888888 0x88888888 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x01 0x6000100 0x1050002 0xff0300 0xf900fe03 0x00 0x00 0x9b 0x6e370000 0x00 0xfc0009 0xa00fe00 0x60700fe 0x70800 0x5000b0a 0x00 0x00 0xe2 0x96460000 0x00 0x400f7 0xf8000300 0xfcfe0003 0xfbfc00 0xee00e3f2 0x00 0x00 0x11 0xbb550000 0x00 0x600f6 0xfc000300 0xfbfe0004 0xfafe00 0xf600ecf2 0x00 0x00 0x1f 0xbf580000 0x00 0x600f5 0xf6000400 0xf8f90004 0xf7f800 0xf700f0f4 0x00 0x00 0x24 0xbe570000 0x00 0x800f8 0xfe000600 0xf8fd0007 0xf9fe00 0xf500f0f4 0x00 0x00 0x2d 0xd6610000 0x00 0x400f7 0xfc000500 0xf7fc0005 0xf7fc00 0xf900f5f8 0x00 0x00 0x26 0xd96e0000 0x00 0x400f7 0xf9000600 0xf5f70005 0xf5f800 0xf900f4f7 0x00 0x00 0x1b 0xce690000 0x00 0x300f8 0xf8000600 0xf6f60004 0xf6f700 0xf900f4f7 0x00 0x00 0x18 0xd8720000 0x00 0x00 0x2404002 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0xc1c2c1c2 0x41c341c3 0x3fc13fc1 0x40c13fc2 0x3fc240c1 0x41c040c0 0x3fc23fc2 0x40c13fc2 0x3fc140c0 0x41c040c0 0x3fc33fc3 0x40c23fc2 0x3fc240c1 0x41c040c0 0x3fc23fc2 0x40c23fc2 0x3fc140c1 0x41c040c0 0x00 0x00 0x41c741c7 0xc1c7c1c7 0x00 0x00 0x3fc03fc0 0x3fc03fc0 0x3fc03fc0 0x3fc03fc0 0x3fc03fc0 0x3fc03fc0 0x3fc03fc0 0x3fc03fc0 0x3fc03fc0 0x3fc03fc0 0x3fc03fc0 0x3fc03fc0 0x3fc03fc0 0x3fc03fc0 0x3fc03fc0 0x3fc03fc0 0xa0ce00 0x00 0xb6840000 0x00 0x00 0x00 0x18181818 0x18181818 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x4b5763 0x4b 0x57630000 0x4b5763 0x4b 0x57630000 0x88888888 0x8474759 0x69780849 0x49596d7a 0x849495a 0x6d790848 0x48596c78 0x8484858 0x6a780848 0x48586a78 0x8484858 0x6c78084a 0x4a5b6d79 0x8474759 0x697a0848 0x48596b79 0x8484859 0x6c7a0848 0x48586c79 0x8484857 0x68770848 0x48576877 0x8484857 0x6a77084a 0x4a5a6a77 0x8464659 0x69790848 0x48586b79 0x8484858 0x6c7a0848 0x48596c79 0x8484857 0x68770848 0x48576877 0x8494958 0x6d7a084b 0x4b5c6c77 0x847475a 0x6a7b0849 0x495a6e7c 0x849495a 0x6e7c0849 0x495b6e7c 0x8494959 0x6a7a0849 0x49596a7a 0x84a4a5a 0x6f7d084b 0x4b5c6e7b 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x85848484 0xc3c4c4c5 0xc4c3c33f 0xc3c3c2c2 0xc2c2c03f 0xc3c3c3c4 0xc4c4c33f 0xc2c2c2c2 0xc1c3c1c1 0xc0c08282 0x83848686 0x88880000 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x1111 0x00 0x8080f703 0x10808080 0x80050d13 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0xa4 0xce000000 0xb684 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00>;
			pinctrl-0 = <0x1f 0x20>;
			clock-names = "mcu\0ap2conn";
			resets = <0x1e 0x17>;
			memory-region = <0x1d>;
			interrupts = <0x00 0xd5 0x04 0x00 0xd6 0x04 0x00 0xd7 0x04 0x00 0xd9 0x04>;
			clocks = <0x04 0x32 0x04 0x3e>;
			compatible = "mediatek,mt7986-wmac\0mediatek,wbsys";
			pinctrl-1 = <0x21 0x20>;
			status = "okay";
			reg = <0x00 0x18000000 0x00 0x1000000 0x00 0x10003000 0x00 0x1000 0x00 0x11d10000 0x00 0x1000>;
			phandle = <0x3b>;
			reset-names = "consys";
		};

		serial@11003000 {
			pinctrl-names = "default";
			pinctrl-0 = <0x06>;
			clock-names = "baud\0bus";
			assigned-clocks = <0x03 0x02>;
			assigned-clock-parents = <0x04 0x36>;
			interrupts = <0x00 0x7c 0x04>;
			clocks = <0x03 0x02 0x03 0x1e>;
			compatible = "mediatek,mt7986-uart\0mediatek,mt6577-uart";
			status = "okay";
			reg = <0x00 0x11003000 0x00 0x400>;
			phandle = <0x2c>;
		};

		syscon@15000000 {
			#reset-cells = <0x01>;
			#address-cells = <0x01>;
			#size-cells = <0x01>;
			#clock-cells = <0x01>;
			compatible = "mediatek,mt7986-ethsys_ck\0syscon";
			reg = <0x00 0x15000000 0x00 0x1000>;
			phandle = <0x14>;
		};

		topckgen@1001b000 {
			#clock-cells = <0x01>;
			compatible = "mediatek,mt7986-topckgen\0syscon";
			reg = <0x00 0x1001b000 0x00 0x1000>;
			phandle = <0x04>;
		};

		consys@10000000 {
			memory-region = <0x1d>;
			compatible = "mediatek,mt7986-consys";
			reg = <0x00 0x10000000 0x00 0x8600000>;
			phandle = <0x3a>;
		};
	};

	leds {
		compatible = "gpio-leds";

		green {
			label = "green:status";
			default-state = "on";
			phandle = <0x3c>;
			gpios = <0x02 0x45 0x00>;
		};

		blue {
			label = "blue:status";
			phandle = <0x3d>;
			gpios = <0x02 0x56 0x00>;
		};
	};

	psci {
		method = "smc";
		compatible = "arm,psci-0.2";
	};

	sfp2 {
		tx-disable-gpios = <0x02 0x0f 0x00>;
		i2c-bus = <0x23>;
		mod-def0-gpios = <0x02 0x2f 0x01>;
		compatible = "sff,sfp";
		tx-fault-gpios = <0x02 0x30 0x00>;
		phandle = <0x1b>;
		los-gpios = <0x02 0x1f 0x00>;
	};

	regulator-1p8v {
		regulator-max-microvolt = <0x1b7740>;
		regulator-boot-on;
		regulator-always-on;
		regulator-min-microvolt = <0x1b7740>;
		regulator-name = "fixed-1.8V";
		compatible = "regulator-fixed";
		phandle = <0x0f>;
	};

	keys {
		compatible = "gpio-keys";

		wps {
			label = "wps";
			linux,code = <0x198>;
			gpios = <0x02 0x0a 0x01>;
		};
	};

	timer {
		interrupts = <0x01 0x0d 0x08 0x01 0x0e 0x08 0x01 0x0b 0x08 0x01 0x0a 0x08>;
		interrupt-parent = <0x01>;
		compatible = "arm,armv8-timer";
	};

	aliases {
		ethernet0 = "/soc/ethernet@15100000/mac@0";
		led-boot = "/leds/green";
		ethernet1 = "/soc/ethernet@15100000/mac@1";
		led-upgrade = "/leds/blue";
		led-running = "/leds/green";
		led-failsafe = "/leds/green";
		serial0 = "/soc/serial@11002000";
	};

	chosen {
		u-boot,version = "2022.07-OpenWrt-r20784-ec8fb542ec";
		bootargs = "root=/dev/ubiblock0_2p1";
		u-boot,bootconf = "config-mt7986a-bananapi-bpi-r3-emmc-snand";
		stdout-path = "serial0:115200n8";
	};

	i2c-gpio-0 {
		#address-cells = <0x01>;
		#size-cells = <0x00>;
		compatible = "i2c-gpio";
		i2c-gpio,delay-us = <0x02>;
		phandle = <0x22>;
		scl-gpios = <0x02 0x11 0x06>;
		sda-gpios = <0x02 0x10 0x06>;
	};

	cpus {
		#address-cells = <0x01>;
		#size-cells = <0x00>;

		cpu@1 {
			device_type = "cpu";
			compatible = "arm,cortex-a53";
			reg = <0x01>;
			enable-method = "psci";
			phandle = <0x25>;
			#cooling-cells = <0x02>;
		};

		cpu@2 {
			device_type = "cpu";
			compatible = "arm,cortex-a53";
			reg = <0x02>;
			enable-method = "psci";
			phandle = <0x26>;
			#cooling-cells = <0x02>;
		};

		cpu@0 {
			device_type = "cpu";
			compatible = "arm,cortex-a53";
			reg = <0x00>;
			enable-method = "psci";
			phandle = <0x24>;
			#cooling-cells = <0x02>;
		};

		cpu@3 {
			device_type = "cpu";
			compatible = "arm,cortex-a53";
			reg = <0x03>;
			enable-method = "psci";
			phandle = <0x27>;
			#cooling-cells = <0x02>;
		};
	};

	__symbols__ {
		mdio = "/soc/ethernet@15100000/mdio-bus";
		u3port0 = "/soc/t-phy@11e10000/usb-phy@11e10700";
		reg_5v = "/regulator-5v";
		crypto = "/soc/crypto@10320000";
		secmon_reserved = "/reserved-memory/secmon@43000000";
		sfp1 = "/sfp1";
		gmac0 = "/soc/ethernet@15100000/mac@0";
		pcie_port = "/soc/t-phy@11c00000/pcie-phy@11c00000";
		led_status_green = "/leds/green";
		trng = "/soc/trng@1020f000";
		reg_3p3v = "/regulator-3p3v";
		spi0 = "/soc/spi@1100a000";
		pcie_pins = "/soc/pinctrl@1001f000/pcie-pins";
		infracfg = "/soc/infracfg@10001000";
		apmixedsys = "/soc/apmixedsys@1001e000";
		u2port0 = "/soc/t-phy@11e10000/usb-phy@11e10000";
		cpu3 = "/cpus/cpu@3";
		uart2 = "/soc/serial@11004000";
		eth = "/soc/ethernet@15100000";
		gic = "/soc/interrupt-controller@c000000";
		wmac = "/soc/wmac@18000000";
		switch = "/soc/ethernet@15100000/mdio-bus/switch@0";
		wf_2g_5g_pins = "/soc/pinctrl@1001f000/wf-2g-5g-pins";
		cpu1 = "/cpus/cpu@1";
		uart0 = "/soc/serial@11002000";
		pcie_phy = "/soc/t-phy@11c00000";
		i2c_sfp1 = "/i2c-gpio-0";
		ssusb = "/soc/usb@11200000";
		led_status_blue = "/leds/blue";
		mmc0_pins_uhs = "/soc/pinctrl@1001f000/mmc0-uhs-pins";
		consys = "/soc/consys@10000000";
		sgmiisys0 = "/soc/syscon@10060000";
		wed0 = "/soc/wed@15010000";
		pcie = "/soc/pcie@11280000";
		ethsys = "/soc/syscon@15000000";
		sfp2 = "/sfp2";
		gmac1 = "/soc/ethernet@15100000/mac@1";
		spi_flash_pins = "/soc/pinctrl@1001f000/spi-flash-pins";
		spi1 = "/soc/spi@1100b000";
		wf_dbdc_pins = "/soc/pinctrl@1001f000/wf-dbdc-pins";
		port5 = "/soc/ethernet@15100000/mdio-bus/switch@0/ports/port@5";
		mmc0_pins_default = "/soc/pinctrl@1001f000/mmc0-pins";
		u2port1 = "/soc/t-phy@11e10000/usb-phy@11e11000";
		reg_1p8v = "/regulator-1p8v";
		wf_led_pins = "/soc/pinctrl@1001f000/wf-led-pins";
		mmc0 = "/soc/mmc@11230000";
		wmcpu_emi = "/reserved-memory/wmcpu-reserved@4fc00000";
		uart1_pins = "/soc/pinctrl@1001f000/uart1-pins";
		clk40m = "/oscillator@0";
		topckgen = "/soc/topckgen@1001b000";
		pio = "/soc/pinctrl@1001f000";
		cpu2 = "/cpus/cpu@2";
		uart1 = "/soc/serial@11003000";
		i2c_sfp2 = "/i2c-gpio-1";
		wed_pcie = "/soc/wed-pcie@10003000";
		sgmiisys1 = "/soc/syscon@10070000";
		wed1 = "/soc/wed@15011000";
		usb_phy = "/soc/t-phy@11e10000";
		pcie_intc = "/soc/pcie@11280000/interrupt-controller";
		watchdog = "/soc/watchdog@1001c000";
		cpu0 = "/cpus/cpu@0";
	};

	reserved-memory {
		#address-cells = <0x02>;
		#size-cells = <0x02>;
		ranges;

		secmon@43000000 {
			reg = <0x00 0x43000000 0x00 0x30000>;
			phandle = <0x28>;
			no-map;
		};

		ramoops@42ff0000 {
			record-size = <0x1000>;
			compatible = "ramoops";
			reg = <0x00 0x42ff0000 0x00 0x10000>;
		};

		wmcpu-reserved@4fc00000 {
			reg = <0x00 0x4fc00000 0x00 0x100000>;
			phandle = <0x1d>;
			no-map;
		};
	};
};
root@OpenWrt:/sys/firmware/devicetree# 

@reddwarf69
Copy link

reddwarf69 commented Sep 29, 2022

Is this supposed to be the same as https://github.com/openwrt/openwrt/blob/ec8fb542ec3e4f584444a97de5ac05dbc2a9cde5/target/linux/mediatek/dts/mt7986a-bananapi-bpi-r3.dts#L424 ?

root@OpenWrt:/tmp# hexdump /sys/firmware/devicetree/base/soc/wmac@18000000/media
tek,eeprom-data 
0000000 7986 0009 0c00 2643 0060 0000 0000 0000
0000010 0000 0000 0000 0000 0000 0000 0000 0000
*
0000050 0000 0000 0000 0000 0000 0000 0001 0000
0000060 0000 0000 0000 0000 0000 0000 0000 0000
*
0000100 0000 0000 0000 0008 0000 0000 0000 0000
0000110 0000 0000 0000 0000 0000 0000 0000 0000
*
0000190 6424 9090 2800 0000 1005 0000 0000 0000
00001a0 0000 0000 0000 0000 0000 0000 0000 0000
*
0000200 0200 001e 1e02 0200 001e 1e02 0200 0028
0000210 2802 0200 0028 2802 0000 0000 0000 0000
0000220 0000 0000 0000 0000 0000 0000 0000 0000
0000230 0000 0000 0000 0000 0000 8080 8080 f7fd
0000240 0309 0d15 8080 8080 8080 8080 0505 0d0d
0000250 1313 c6c6 c3c3 00c2 c200 c200 0000 8281
0000260 8585 c2c2 8282 8282 8585 c200 00c2 8100
0000270 8582 8785 c287 00c2 8181 8582 8785 c287
0000280 00c2 8100 8582 8785 c287 00c2 8100 8582
0000290 8785 c287 00c2 8100 8582 8785 c487 c2c4
00002a0 00c1 00c3 c3c3 00c1 8381 c383 c3c3 00c1
00002b0 8381 0083 c2c2 c0c2 8281 8484 0000 c300
00002c0 c3c3 00c1 8381 8683 c386 c3c3 00c1 8381
00002d0 8683 c286 c2c2 81c0 8482 8684 c386 c3c3
00002e0 00c1 8381 8683 c386 c3c3 00c1 8381 8683
00002f0 c386 c3c3 00c1 8381 8683 2286 0028 2822
0000300 2200 0028 2822 0000 dddd dddd dddd dddd
0000310 bbdd bbbb cccc ddcc dddd dddd dddd dddd
0000320 eeee ccee cccc dddd dddd dddd 4a00 6256
0000330 0000 4a00 6256 0000 4a00 6256 0000 4a00
0000340 6256 0000 8888 8888 3333 2633 2626 2626
0000350 2626 0026 3333 2633 2626 2626 2626 0026
0000360 3333 2633 2626 2626 2626 0026 3333 2633
0000370 2626 2626 2626 0026 0000 0000 f0f0 00cc
0000380 0000 0000 0000 aaaa bbaa bbbb cccc cccc
0000390 cccc bbbb bbbb bbbb bbbb aabb aaaa bbbb
00003a0 aabb aaaa 9999 aa99 aaaa bbbb ccbb cccc
00003b0 0000 0000 0000 aaaa 00aa 0000 bbbb bbbb
00003c0 bbbb aaaa 99aa 9999 aaaa aaaa aaaa aaaa
00003d0 aaaa aaaa aaaa aaaa aaaa bbbb bbbb bbbb
00003e0 0000 0000 0000 0000 0000 0000 9999 9999
00003f0 9999 aaaa aaaa aaaa 9999 aa99 aaaa aaaa
0000400 aaaa aaaa aaaa aaaa aaaa bbbb bbbb bbbb
0000410 0000 0000 0000 eeee ffee ffff cccc cccc
0000420 cccc dddd bbdd bbbb cccc bbcc bbbb bbbb
0000430 bbbb bbbb bbbb bbbb bbbb cccc ddcc dddd
0000440 5100 0062 6e68 5100 0062 6e68 5100 0062
0000450 6e68 5100 0062 6e68 5100 0062 6e68 5100
0000460 0062 6e68 5100 0062 6e68 5100 0062 6e68
0000470 5100 0062 6e68 5100 0062 6e68 5100 0062
0000480 6e68 5100 0062 6e68 5100 0062 6e68 5100
0000490 0062 6e68 5100 0062 6e68 5100 0062 6e68
00004a0 5100 0062 6e68 5100 0062 6e68 5100 0062
00004b0 6e68 5100 0062 6e68 5100 0062 6e68 5100
00004c0 0062 6e68 5100 0062 6e68 5100 0062 6e68
00004d0 5100 0062 6e68 5100 0062 6e68 5100 0062
00004e0 6e68 5100 0062 6e68 5100 0062 6e68 5100
00004f0 0062 6e68 5100 0062 6e68 5100 0062 6e68
0000500 8888 8888 8888 8888 8888 8888 8888 8888
*
0000520 0000 0000 0000 0000 0000 0000 0000 0000
*
0000650 0000 0100 0006 0001 0501 0200 ff00 0003
0000660 00f9 03fe 0000 0000 0000 0000 0000 9b00
0000670 376e 0000 0000 0000 fc00 0900 000a 00fe
0000680 0706 fe00 0700 0008 0005 0a0b 0000 0000
0000690 0000 0000 0000 e200 4696 0000 0000 0000
00006a0 0400 f700 00f8 0003 fefc 0300 fb00 00fc
00006b0 00ee f2e3 0000 0000 0000 0000 0000 1100
00006c0 55bb 0000 0000 0000 0600 f600 00fc 0003
00006d0 fefb 0400 fa00 00fe 00f6 f2ec 0000 0000
00006e0 0000 0000 0000 1f00 58bf 0000 0000 0000
00006f0 0600 f500 00f6 0004 f9f8 0400 f700 00f8
0000700 00f7 f4f0 0000 0000 0000 0000 0000 2400
0000710 57be 0000 0000 0000 0800 f800 00fe 0006
0000720 fdf8 0700 f900 00fe 00f5 f4f0 0000 0000
0000730 0000 0000 0000 2d00 61d6 0000 0000 0000
0000740 0400 f700 00fc 0005 fcf7 0500 f700 00fc
0000750 00f9 f8f5 0000 0000 0000 0000 0000 2600
0000760 6ed9 0000 0000 0000 0400 f700 00f9 0006
0000770 f7f5 0500 f500 00f8 00f9 f7f4 0000 0000
0000780 0000 0000 0000 1b00 69ce 0000 0000 0000
0000790 0300 f800 00f8 0006 f6f6 0400 f600 00f7
00007a0 00f9 f7f4 0000 0000 0000 0000 0000 1800
00007b0 72d8 0000 0000 0000 0000 0000 4002 0240
00007c0 0000 0000 0000 0000 0000 0000 0000 0000
*
0000900 c2c1 c2c1 c341 c341 c13f c13f c140 c23f
0000910 c23f c140 c041 c040 c23f c23f c140 c23f
0000920 c13f c040 c041 c040 c33f c33f c240 c23f
0000930 c23f c140 c041 c040 c23f c23f c240 c23f
0000940 c13f c140 c041 c040 0000 0000 0000 0000
0000950 c741 c741 c7c1 c7c1 0000 0000 0000 0000
0000960 c03f c03f c03f c03f c03f c03f c03f c03f
*
00009a0 a000 00ce 0000 0000 84b6 0000 0000 0000
00009b0 0000 0000 0000 0000 1818 1818 1818 1818
00009c0 0000 0000 0000 0000 0000 0000 0000 0000
*
0000a00 4b00 6357 0000 4b00 6357 0000 4b00 6357
0000a10 0000 4b00 6357 0000 8888 8888 4708 5947
0000a20 7869 4908 5949 7a6d 4908 5a49 796d 4808
0000a30 5948 786c 4808 5848 786a 4808 5848 786a
0000a40 4808 5848 786c 4a08 5b4a 796d 4708 5947
0000a50 7a69 4808 5948 796b 4808 5948 7a6c 4808
0000a60 5848 796c 4808 5748 7768 4808 5748 7768
0000a70 4808 5748 776a 4a08 5a4a 776a 4608 5946
0000a80 7969 4808 5848 796b 4808 5848 7a6c 4808
0000a90 5948 796c 4808 5748 7768 4808 5748 7768
0000aa0 4908 5849 7a6d 4b08 5c4b 776c 4708 5a47
0000ab0 7b6a 4908 5a49 7c6e 4908 5a49 7c6e 4908
0000ac0 5b49 7c6e 4908 5949 7a6a 4908 5949 7a6a
0000ad0 4a08 5a4a 7d6f 4b08 5c4b 7b6e 0000 0000
0000ae0 0000 0000 0000 0000 0000 0000 0000 0000
0000af0 0000 0000 0000 0000 0000 0000 8485 8484
0000b00 c4c3 c5c4 c3c4 3fc3 c3c3 c2c2 c2c2 3fc0
0000b10 c3c3 c4c3 c4c4 3fc3 c2c2 c2c2 c3c1 c1c1
0000b20 c0c0 8282 8483 8686 8888 0000 0000 0000
0000b30 0000 0000 0000 0000 0000 0000 0000 0000
*
0000d70 0000 0000 0000 0000 0000 1111 0000 0000
0000d80 8080 03f7 8010 8080 0580 130d 0000 0000
0000d90 0000 0000 0000 0000 0000 0000 0000 0000
*
0000e20 0000 0000 0000 0000 0000 0000 0000 a400
0000e30 00ce 0000 0000 84b6 0000 0000 0000 0000
0000e40 0000 0000 0000 0000 0000 0000 0000 0000
*
0001000
root@OpenWrt:/tmp#

Edit: never mind, endianess...

@eckinga
Copy link
Author

eckinga commented Sep 29, 2022

it is the same as https://github.com/openwrt/openwrt/blob/master/target/linux/mediatek/dts/mt7986a-bananapi-bpi-r3.dts#L424
i diffed it.
edit to make clear i diffed mine with the master. alongside: why should it be missing, i use the snapshot downloaded from openwrt

@eckinga
Copy link
Author

eckinga commented Sep 30, 2022

From Sinovoip mac80211 image

[   29.264190] mt7986-wmac 18000000.wbsys: mcu clock not found
[   29.269766] mt7986-wmac 18000000.wbsys: ap2conn clock not found
[   29.657736] mt7986-wmac 18000000.wbsys: HW/SW Version: 0x8a108a10, Build Time: 20220113162701a
[   29.657736] 
[   30.018715] mt7986-wmac 18000000.wbsys: WM Firmware Version: ____000000, Build Time: 20220113162756
[   30.185391] mt7986-wmac 18000000.wbsys: WA Firmware Version: DEV_000000, Build Time: 20220113163034
[   52.247137] mt7986-wmac 18000000.wbsys: Message 00000002 (seq 4) timeout
[   52.253836] mt7986-wmac 18000000.wbsys: Fw is status(0)
[   52.259050] mt7986-wmac 18000000.wbsys: Failed to start WA firmware
[   52.265557] mt7986-wmac: probe of 18000000.wbsys failed with error -110

@eckinga
Copy link
Author

eckinga commented Oct 2, 2022

Hello ppl,

I have to tell you now, i noticed it 5min ago. I tested a bit beside the work and suddenly the wireless tab in the config appeared.
I don't know why, perhaps i disconnected the antennas cause wifi wasn't working... i reconnected it right now and it seems to work (just tested scanning). The only thing i noticed when i wanted to save the log from serial but it isn't really working.
There is something funky with that board...
The log locks like (I'll make a second post with log from menu):


FA: 1040 0000

FA: 1040 0000 [0200]

F9: 103F 0000

F3: 1001 0000 [0200]

F3: 1001 0000

F6: 300C 0028

F5: 0000 0000

V0: 0000 0000 [0001]

00: 0000 0000

BP: 2400 0041 [0000]

G0: 1190 0000

EC: 0000 0000 [3000]

T0: 0000 01B1 [010F]

Jump to BL


NOTICE:  BL2: v2.7(release):OpenWrt v2022-08-31-75393484-1 (mt7986-sdmmc-ddr4)
NOTICE:  BL2: Built : 05:53:56, Sep 29 2022
NOTICE:  WDT: disabled
NOTICE:  CPU: MT7986 (2000MHz)
NOTICE:  EMI: Using DDR4 settings
NOTICE:  EMI: Detected DRAM size: 2048MB
NOTICE:  EMI: complex R/W mem test passed
NOTICE:  BL2: Booting BL31
NOTICE:  BL31: v2.7(release):OpenWrt v2022-08-31-75393484-1 (mt7986-sdmmc-ddr4)
NOTICE:  BL31: Built : 05:53:56, Sep 29 2022


U-Boot 2022.07-OpenWrt-r20784-ec8fb542ec (Sep 29 2022 - 05:53:56 +0000)

CPU:   MediaTek MT7986
Model: BananaPi BPi-R3
DRAM:  2 GiB
Core:  52 devices, 25 uclasses, devicetree: embed
jedec_spi_nor spi_nor@0: unrecognized JEDEC id bytes: ff, ef, aa
MMC:   mmc@11230000: 0
Loading Environment from MMC... OK
In:    serial@11002000
Out:   serial@11002000
Err:   serial@11002000
reset button found
Loading Environment from MMC... OK
Net:   eth0: ethernet@15100000
�7�[r�[999;999H�[6n�8Cannot read EFI system partition
�[?25l�[2J�[1;1H�[1;1H�[2K�[2;3H      �[0;34m( ( ( �[1;39mOpenWrt�[0;34m ) ) )  �[0;36m[SD card]�[0m       �[33mU-Boot 2022.07-OpenWrt-r20784-ec8fb542ec (Sep 29 2022 - 05:53:56 +0000)�[0m�[0K�[3;1H�[2K�[16;1H�[2K�[17;3HPress UP/DOWN to move, ENTER to select, ESC/CTRL+C to quit�[0K�[18;1H�[2K�[4;7H�[7m1. Run default boot command.�[0m�[5;7H2. Boot system via TFTP.�[6;7H3. Boot production system from SD card.�[7;7H4. Boot recovery system from SD card.�[8;7H5. Load production system via TFTP then write to SD card.�[9;7H6. Load recovery system via TFTP then write to SD card.�[10;7H7. �[31mInstall bootloader, recovery and production to NOR.�[0m�[11;7H8. �[31mInstall bootloader, recovery and production to NAND.�[0m�[12;7H9. Reboot.�[13;7Ha. Reset all settings to factory defaults.�[14;7H0. U-Boot console�[16;3HHit any key to stop autoboot: 3 �[16;3HHit any key to stop autoboot: 2 �[16;3HHit any key to stop autoboot: 1 �[16;1H�[2K�[?25h�[2J�[1;1Hspi-nand: spi_nand spi_nand@1: Winbond SPI NAND was found.
spi-nand: spi_nand spi_nand@1: 128 MiB, block size: 128 KiB, page size: 2048, OOB size: 64
jedec_spi_nor spi_nor@0: unrecognized JEDEC id bytes: 00, ef, aa
'spi-nand0' is now active device
* spi-nand0
  - device: spi_nand@1
  - parent: spi@1100a000
  - driver: spi_nand
  - type: NAND flash
  
^[[24;80R

@eckinga
Copy link
Author

eckinga commented Oct 2, 2022

The log from menu:

[    0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
[    0.000000] Linux version 5.15.69 (builder@buildhost) (aarch64-openwrt-linux-musl-gcc (OpenWrt GCC 11.3.0 r20784-ec8fb542ec) 11.3.0, GNU ld (GNU Binutils) 2.37) #0 SMP Thu Sep 29 05:53:56 2022
[    0.000000] Machine model: Bananapi BPI-R3
[    0.000000] Zone ranges:
[    0.000000]   DMA      [mem 0x0000000040000000-0x00000000bfffffff]
[    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-0x000000004fbfffff]
[    0.000000]   node   0: [mem 0x000000004fc00000-0x000000004fcfffff]
[    0.000000]   node   0: [mem 0x000000004fd00000-0x00000000bfffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000040000000-0x00000000bfffffff]
[    0.000000] psci: probing for conduit method from DT.
[    0.000000] psci: PSCIv1.1 detected in firmware.
[    0.000000] psci: Using standard PSCI v0.2 function IDs
[    0.000000] psci: MIGRATE_INFO_TYPE not supported.
[    0.000000] psci: SMC Calling Convention v1.2
[    0.000000] percpu: Embedded 17 pages/cpu s30040 r8192 d31400 u69632
[    0.000000] pcpu-alloc: s30040 r8192 d31400 u69632 alloc=17*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3 
[    0.000000] Detected VIPT I-cache on CPU0
[    0.000000] CPU features: detected: GIC system register CPU interface
[    0.000000] CPU features: kernel page table isolation disabled by kernel configuration
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 516096
[    0.000000] Kernel command line: root=/dev/mmcblk0p65
[    0.000000] Dentry cache hash table entries: 262144 (order: 9, 2097152 bytes, linear)
[    0.000000] Inode-cache hash table entries: 131072 (order: 8, 1048576 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 2043176K/2097152K available (8320K kernel code, 894K rwdata, 2236K rodata, 448K init, 305K bss, 53976K reserved, 0K cma-reserved)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, 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] GICv3: GIC: Using split EOI/Deactivate mode
[    0.000000] GICv3: 640 SPIs implemented
[    0.000000] GICv3: 0 Extended SPIs implemented
[    0.000000] GICv3: Distributor has no Range Selector support
[    0.000000] Root IRQ handler: gic_handle_irq
[    0.000000] GICv3: 16 PPIs implemented
[    0.000000] GICv3: CPU0: found redistributor 0 region 0:0x000000000c080000
[    0.000000] arch_timer: cp15 timer(s) running at 13.00MHz (phys).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x2ff89eacb, max_idle_ns: 440795202429 ns
[    0.000000] sched_clock: 56 bits at 13MHz, resolution 76ns, wraps every 4398046511101ns
[    0.000113] Calibrating delay loop (skipped), value calculated using timer frequency.. 26.00 BogoMIPS (lpj=130000)
[    0.000120] pid_max: default: 32768 minimum: 301
[    0.000207] Mount-cache hash table entries: 4096 (order: 3, 32768 bytes, linear)
[    0.000220] Mountpoint-cache hash table entries: 4096 (order: 3, 32768 bytes, linear)
[    0.001065] rcu: Hierarchical SRCU implementation.
[    0.001153] dyndbg: Ignore empty _ddebug table in a CONFIG_DYNAMIC_DEBUG_CORE build
[    0.001324] smp: Bringing up secondary CPUs ...
[    0.001556] Detected VIPT I-cache on CPU1
[    0.001577] GICv3: CPU1: found redistributor 1 region 0:0x000000000c0a0000
[    0.001605] CPU1: Booted secondary processor 0x0000000001 [0x410fd034]
[    0.001855] Detected VIPT I-cache on CPU2
[    0.001867] GICv3: CPU2: found redistributor 2 region 0:0x000000000c0c0000
[    0.001878] CPU2: Booted secondary processor 0x0000000002 [0x410fd034]
[    0.002103] Detected VIPT I-cache on CPU3
[    0.002113] GICv3: CPU3: found redistributor 3 region 0:0x000000000c0e0000
[    0.002122] CPU3: Booted secondary processor 0x0000000003 [0x410fd034]
[    0.002150] smp: Brought up 1 node, 4 CPUs
[    0.002163] SMP: Total of 4 processors activated.
[    0.002166] CPU features: detected: 32-bit EL0 Support
[    0.002169] CPU features: detected: CRC32 instructions
[    0.002243] CPU: All CPU(s) started at EL2
[    0.002254] alternatives: patching kernel code
[    0.004146] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.004166] futex hash table entries: 1024 (order: 4, 65536 bytes, linear)
[    0.004273] pinctrl core: initialized pinctrl subsystem
[    0.004832] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    0.005047] DMA: preallocated 256 KiB GFP_KERNEL pool for atomic allocations
[    0.005076] DMA: preallocated 256 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations
[    0.005103] DMA: preallocated 256 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
[    0.005331] thermal_sys: Registered thermal governor 'fair_share'
[    0.005334] thermal_sys: Registered thermal governor 'bang_bang'
[    0.005337] thermal_sys: Registered thermal governor 'step_wise'
[    0.005340] thermal_sys: Registered thermal governor 'user_space'
[    0.005421] ASID allocator initialised with 65536 entries
[    0.005666] pstore: Registered ramoops as persistent store backend
[    0.005670] ramoops: using 0x10000@0x42ff0000, ecc: 0
[    0.013127] cryptd: max_cpu_qlen set to 1000
[    0.014794] SCSI subsystem initialized
[    0.014880] libata version 3.00 loaded.
[    0.015512] clocksource: Switched to clocksource arch_sys_counter
[    0.015852] NET: Registered PF_INET protocol family
[    0.015966] IP idents hash table entries: 32768 (order: 6, 262144 bytes, linear)
[    0.016549] tcp_listen_portaddr_hash hash table entries: 1024 (order: 2, 16384 bytes, linear)
[    0.016569] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.016578] TCP established hash table entries: 16384 (order: 5, 131072 bytes, linear)
[    0.016645] TCP bind hash table entries: 16384 (order: 6, 262144 bytes, linear)
[    0.016821] TCP: Hash tables configured (established 16384 bind 16384)
[    0.016893] UDP hash table entries: 1024 (order: 3, 32768 bytes, linear)
[    0.016920] UDP-Lite hash table entries: 1024 (order: 3, 32768 bytes, linear)
[    0.017022] NET: Registered PF_UNIX/PF_LOCAL protocol family
[    0.017042] PCI: CLS 0 bytes, default 64
[    0.018805] workingset: timestamp_bits=46 max_order=19 bucket_order=0
[    0.020854] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.020867] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.042306] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 250)
[    0.043327] mtk-pcie-gen3 11280000.pcie: host bridge /soc/pcie@11280000 ranges:
[    0.043356] mtk-pcie-gen3 11280000.pcie: Parsing ranges property...
[    0.043366] mtk-pcie-gen3 11280000.pcie:      MEM 0x0020000000..0x002fffffff -> 0x0020000000
[    0.043448] /soc/pcie@11280000: Failed to get clk index: 0 ret: -517
[    0.043460] mtk-pcie-gen3 11280000.pcie: failed to get clocks
[    0.045560] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[    0.046837] printk: console [ttyS0] disabled
[    0.066993] 11002000.serial: ttyS0 at MMIO 0x11002000 (irq = 121, base_baud = 2500000) is a ST16650V2
[    0.740762] printk: console [ttyS0] enabled
[    0.765544] 11003000.serial: ttyS1 at MMIO 0x11003000 (irq = 122, base_baud = 1625000) is a ST16650V2
[    0.775309] mtk_rng 1020f000.trng: registered RNG driver
[    0.775367] hwrng: no data available
[    0.780844] cacheinfo: Unable to detect cache hierarchy for CPU 0
[    0.792183] loop: module loaded
[    0.795330] Loading iSCSI transport class v2.0-870.
[    0.801554] spi-nand spi0.0: Winbond SPI NAND was found.
[    0.806891] spi-nand spi0.0: 128 MiB, block size: 128 KiB, page size: 2048, OOB size: 64
[    0.815142] 4 fixed-partitions partitions found on MTD device spi0.0
[    0.821497] Creating 4 MTD partitions on "spi0.0":
[    0.826276] 0x000000580000-0x000008000000 : "ubi"
[    0.960101] 0x000000380000-0x000000580000 : "fip"
[    0.967190] 0x000000080000-0x000000380000 : "reserved"
[    0.975712] 0x000000000000-0x000000080000 : "bl2"
[    0.996222] mtk_soc_eth 15100000.ethernet eth0: mediatek frame engine at 0xffffffc009700000, irq 129
[    1.005547] mtk_soc_eth 15100000.ethernet eth1: mediatek frame engine at 0xffffffc009700000, irq 129
[    1.015000] i2c_dev: i2c /dev entries driver
[    1.019652] mtk-wdt 1001c000.watchdog: Watchdog enabled (timeout=31 sec, nowayout=0)
[    1.028065] NET: Registered PF_INET6 protocol family
[    1.033603] Segment Routing with IPv6
[    1.037293] In-situ OAM (IOAM) with IPv6
[    1.041235] NET: Registered PF_PACKET protocol family
[    1.046302] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[    1.059413] 8021q: 802.1Q VLAN Support v1.8
[    1.064606] pstore: Using crash dump compression: deflate
[    1.075221] mtk-pcie-gen3 11280000.pcie: host bridge /soc/pcie@11280000 ranges:
[    1.082562] mtk-pcie-gen3 11280000.pcie: Parsing ranges property...
[    1.088817] mtk-pcie-gen3 11280000.pcie:      MEM 0x0020000000..0x002fffffff -> 0x0020000000
[    1.123442] mmc0: host does not support reading read-only switch, assuming write-enable
[    1.133626] mmc0: new high speed SDHC card at address 59b4
[    1.139895] mmcblk0: mmc0:59b4 USD00 29.8 GiB 
[    1.147402] Alternate GPT is invalid, using primary GPT.
[    1.153265] FIT: Selected configuration: "config-mt7986a-bananapi-bpi-r3-snand" (OpenWrt bananapi_bpi-r3 with mt7986a-bananapi-bpi-r3-snand)
[    1.165859] FIT:           kernel sub-image 0x00001000..0x00528400 "kernel-1" (ARM64 OpenWrt Linux-5.15.69) 
[    1.175670] FIT:          flat_dt sub-image 0x00529000..0x00530fff "fdt-1" (ARM64 OpenWrt bananapi_bpi-r3 device tree blob) 
[    1.186870] FIT:          flat_dt sub-image 0x00531000..0x00538fff "fdt-mt7986a-bananapi-bpi-r3-nor" (ARM64 OpenWrt bananapi_bpi-r3 device tree overlay mt7986a-bananapi-bpi-r3-nor) 
[    1.203012] FIT:          flat_dt sub-image 0x00539000..0x00540fff "fdt-mt7986a-bananapi-bpi-r3-emmc-nor" (ARM64 OpenWrt bananapi_bpi-r3 device tree overlay mt7986a-bananapi-bpi-r3-emmc-nor) 
[    1.220026] FIT:          flat_dt sub-image 0x00541000..0x00548fff "fdt-mt7986a-bananapi-bpi-r3-emmc-snand" (ARM64 OpenWrt bananapi_bpi-r3 device tree overlay mt7986a-bananapi-bpi-r3-emmc-snand) 
[    1.237380] FIT:          flat_dt sub-image 0x00549000..0x00550fff "fdt-mt7986a-bananapi-bpi-r3-snand" (ARM64 OpenWrt bananapi_bpi-r3 device tree overlay mt7986a-bananapi-bpi-r3-snand) 
[    1.253863] FIT:       filesystem sub-image 0x00551000..0x00a99fff "rootfs-1" (ARM64 OpenWrt bananapi_bpi-r3 rootfs) 
[    1.264450] FIT: selecting configured loadable "rootfs-1" to be root filesystem
[    1.271754]  mmcblk0: p1 p2 p3 p4 p5 p6 p7 p65(rootfs-1) p66(rootfs_data)
[    1.320031] mtk-pcie-gen3 11280000.pcie: PCIe link down, ltssm reg val: 0x1000001
[    1.327561] mtk-pcie-gen3: probe of 11280000.pcie failed with error -110
[    1.356624] mt7530 mdio-bus:1f: configuring for fixed/2500base-x link mode
[    1.363759] mt7530 mdio-bus:1f: Link is Up - 2.5Gbps/Full - flow control rx/tx
[    1.372720] mt7530 mdio-bus:1f wan (uninitialized): PHY [mt7530-0:00] driver [MediaTek MT7531 PHY] (irq=137)
[    1.392593] mt7530 mdio-bus:1f lan1 (uninitialized): PHY [mt7530-0:01] driver [MediaTek MT7531 PHY] (irq=138)
[    1.412154] mt7530 mdio-bus:1f lan2 (uninitialized): PHY [mt7530-0:02] driver [MediaTek MT7531 PHY] (irq=139)
[    1.431728] mt7530 mdio-bus:1f lan3 (uninitialized): PHY [mt7530-0:03] driver [MediaTek MT7531 PHY] (irq=140)
[    1.451274] mt7530 mdio-bus:1f lan4 (uninitialized): PHY [mt7530-0:04] driver [MediaTek MT7531 PHY] (irq=141)
[    1.461894] DSA: tree 0 setup
[    1.467029] UBI: auto-attach mtd0
[    1.470342] ubi0: attaching mtd0
[    5.087952] ubi0: scanning is finished
[    5.133047] ubi0: attached mtd0 (name "ubi", size 122 MiB)
[    5.138538] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
[    5.145392] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
[    5.152161] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
[    5.159103] ubi0: good PEBs: 980, bad PEBs: 0, corrupted PEBs: 0
[    5.165088] ubi0: user volume: 6, internal volumes: 1, max. volumes count: 128
[    5.172290] ubi0: max/mean erase counter: 2/1, WL threshold: 4096, image sequence number: 0
[    5.180621] ubi0: available PEBs: 2, total reserved PEBs: 978, PEBs reserved for bad PEB handling: 20
[    5.189822] ubi0: background thread "ubi_bgt0d" started, PID 459
[    5.201800] FIT: Selected configuration: "config-mt7986a-bananapi-bpi-r3-snand" (OpenWrt bananapi_bpi-r3 with mt7986a-bananapi-bpi-r3-snand)
[    5.214416] FIT:           kernel sub-image 0x00001000..0x00528400 "kernel-1" (ARM64 OpenWrt Linux-5.15.69) 
[    5.224228] FIT:          flat_dt sub-image 0x00529000..0x00530fff "fdt-1" (ARM64 OpenWrt bananapi_bpi-r3 device tree blob) 
[    5.235428] FIT:          flat_dt sub-image 0x00531000..0x00538fff "fdt-mt7986a-bananapi-bpi-r3-nor" (ARM64 OpenWrt bananapi_bpi-r3 device tree overlay mt7986a-bananapi-bpi-r3-nor) 
[    5.251570] FIT:          flat_dt sub-image 0x00539000..0x00540fff "fdt-mt7986a-bananapi-bpi-r3-emmc-nor" (ARM64 OpenWrt bananapi_bpi-r3 device tree overlay mt7986a-bananapi-bpi-r3-emmc-nor) 
[    5.268578] FIT:          flat_dt sub-image 0x00541000..0x00548fff "fdt-mt7986a-bananapi-bpi-r3-emmc-snand" (ARM64 OpenWrt bananapi_bpi-r3 device tree overlay mt7986a-bananapi-bpi-r3-emmc-snand) 
[    5.285934] FIT:          flat_dt sub-image 0x00549000..0x00550fff "fdt-mt7986a-bananapi-bpi-r3-snand" (ARM64 OpenWrt bananapi_bpi-r3 device tree overlay mt7986a-bananapi-bpi-r3-snand) 
[    5.302418] FIT:       filesystem sub-image 0x00551000..0x00a99fff "rootfs-1" (ARM64 OpenWrt bananapi_bpi-r3 rootfs) 
[    5.313004] FIT: selecting configured loadable "rootfs-1" to be root filesystem
[    5.320295]  ubiblock0_2: p1(rootfs-1)
[    5.320409] block ubiblock0_2: created from ubi0:2(fit)
[    5.333926] VFS: Mounted root (squashfs filesystem) readonly on device 259:0.
[    5.341204] Freeing unused kernel memory: 448K
[    5.445542] Run /sbin/init as init process
[    5.449622]   with arguments:
[    5.452573]     /sbin/init
[    5.455263]   with environment:
[    5.458392]     HOME=/
[    5.460737]     TERM=linux
[    5.585713] init: Console is alive
[    5.589196] init: - watchdog -
[    5.891379] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    5.932160] usbcore: registered new interface driver usbfs
[    5.937693] usbcore: registered new interface driver hub
[    5.943015] usbcore: registered new device driver usb
[    5.952183] xhci-mtk 11200000.usb: xHCI Host Controller
[    5.957433] xhci-mtk 11200000.usb: new USB bus registered, assigned bus number 1
[    5.967850] xhci-mtk 11200000.usb: hcc params 0x01403f99 hci version 0x110 quirks 0x0000000000210010
[    5.976998] xhci-mtk 11200000.usb: irq 124, io mem 0x11200000
[    5.982816] xhci-mtk 11200000.usb: xHCI Host Controller
[    5.988030] xhci-mtk 11200000.usb: new USB bus registered, assigned bus number 2
[    5.995406] xhci-mtk 11200000.usb: Host supports USB 3.2 Enhanced SuperSpeed
[    6.002770] hub 1-0:1.0: USB hub found
[    6.006560] hub 1-0:1.0: 2 ports detected
[    6.010806] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[    6.019137] hub 2-0:1.0: USB hub found
[    6.022887] hub 2-0:1.0: 1 port detected
[    6.029195] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    6.040930] init: - preinit -
[    6.210572] mtk_soc_eth 15100000.ethernet eth0: configuring for fixed/2500base-x link mode
[    6.219032] mtk_soc_eth 15100000.ethernet eth0: Link is Up - 2.5Gbps/Full - flow control rx/tx
[    6.224449] mt7530 mdio-bus:1f lan1: configuring for phy/gmii link mode
[    6.239000] mt7530 mdio-bus:1f lan1: Link is Up - 1Gbps/Full - flow control off
[    6.239395] random: procd: uninitialized urandom read (4 bytes read)
[    6.246366] IPv6: ADDRCONF(NETDEV_CHANGE): lan1: link becomes ready
[    6.455514] usb 1-1: new high-speed USB device number 2 using xhci-mtk
[    6.636192] hub 1-1:1.0: USB hub found
[    6.640002] hub 1-1:1.0: 4 ports detected
[    8.685920] F2FS-fs (mmcblk0p66): Mounted with checkpoint version = 351ed75c
[    8.696347] mount_root: switching to f2fs overlay
[    8.702521] overlayfs: null uuid detected in lower fs '/', falling back to xino=off,index=off,nfs_export=off.
[    8.714486] urandom-seed: Seeding with /etc/urandom.seed
[    8.760174] mt7530 mdio-bus:1f lan1: Link is Down
[    8.768569] procd: - early -
[    8.771492] procd: - watchdog -
[    9.307074] procd: - watchdog -
[    9.339221] procd: - ubus -
[    9.371158] random: ubusd: uninitialized urandom read (4 bytes read)
[    9.392506] random: ubusd: uninitialized urandom read (4 bytes read)
[    9.398970] random: ubusd: uninitialized urandom read (4 bytes read)
[    9.405924] procd: - init -
[    9.583864] urngd: v1.0.2 started.
[    9.601709] random: crng init done
[    9.602811] kmodloader: loading kernel modules from /etc/modules.d/*
[    9.605110] random: 22 urandom warning(s) missed due to ratelimiting
[    9.645192] i2c-gpio i2c-gpio-0: using lines 427 (SDA) and 428 (SCL)
[    9.651932] i2c-gpio i2c-gpio-1: using lines 429 (SDA) and 430 (SCL)
[    9.659996] crypto-safexcel 10320000.crypto: EIP97:230(0,1,4,4)-HIA:270(0,5,5),PE:150/433(alg:7fcdfc00)/0/0/0
[    9.673871] Loading modules backported from Linux version v5.15.58-0-g7d8048d4e064
[    9.681454] Backport generated by backports.git v5.15.58-1-0-g42a95ce7
[    9.692110] sfp sfp1: Host maximum power 1.0W
[    9.697212] sfp sfp2: Host maximum power 1.0W
[   10.148767] mt7986-wmac 18000000.wmac: HW/SW Version: 0x8a108a10, Build Time: 20220113162701a
[   10.148767] 
[   10.268430] mt7986-wmac 18000000.wmac: WM Firmware Version: ____000000, Build Time: 20220113162756
[   10.344794] mt7986-wmac 18000000.wmac: WA Firmware Version: DEV_000000, Build Time: 20220113163034
[   13.694049] PPP generic driver version 2.4.2
[   13.698976] NET: Registered PF_PPPOX protocol family
[   13.706409] kmodloader: done loading kernel modules from /etc/modules.d/*
[   15.411536] mtk_soc_eth 15100000.ethernet eth0: Link is Down
[   15.421680] mtk_soc_eth 15100000.ethernet eth0: configuring for fixed/2500base-x link mode
[   15.430330] mtk_soc_eth 15100000.ethernet eth0: Link is Up - 2.5Gbps/Full - flow control rx/tx
[   15.439013] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   15.446426] mt7530 mdio-bus:1f lan1: configuring for phy/gmii link mode
[   15.456114] br-lan: port 1(lan1) entered blocking state
[   15.461346] br-lan: port 1(lan1) entered disabled state
[   15.469138] device lan1 entered promiscuous mode
[   15.473762] device eth0 entered promiscuous mode
[   15.516062] mt7530 mdio-bus:1f lan2: configuring for phy/gmii link mode
[   15.525724] br-lan: port 2(lan2) entered blocking state
[   15.527442] mt7530 mdio-bus:1f lan2: Link is Up - 1Gbps/Full - flow control off
[   15.530948] br-lan: port 2(lan2) entered disabled state
[   15.546113] device lan2 entered promiscuous mode
[   15.553751] br-lan: port 2(lan2) entered blocking state
[   15.559012] br-lan: port 2(lan2) entered forwarding state
[   15.564595] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
[   15.571988] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan.2: link becomes ready
[   15.578743] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan.3: link becomes ready
[   15.585498] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan.10: link becomes ready
[   15.592351] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan.20: link becomes ready
[   15.599297] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan.100: link becomes ready
[   15.618553] mt7530 mdio-bus:1f lan3: configuring for phy/gmii link mode
[   15.628288] br-lan: port 3(lan3) entered blocking state
[   15.630004] mt7530 mdio-bus:1f lan3: Link is Up - 1Gbps/Full - flow control rx/tx
[   15.633520] br-lan: port 3(lan3) entered disabled state
[   15.649023] device lan3 entered promiscuous mode
[   15.655817] br-lan: port 3(lan3) entered blocking state
[   15.661031] br-lan: port 3(lan3) entered forwarding state
[   15.673376] mt7530 mdio-bus:1f lan4: configuring for phy/gmii link mode
[   15.683048] br-lan: port 4(lan4) entered blocking state
[   15.684751] mt7530 mdio-bus:1f lan4: Link is Up - 1Gbps/Full - flow control rx/tx
[   15.688273] br-lan: port 4(lan4) entered disabled state
[   15.691085] device lan4 entered promiscuous mode
[   15.708126] br-lan: port 4(lan4) entered blocking state
[   15.713347] br-lan: port 4(lan4) entered forwarding state
[   15.728464] mt7530 mdio-bus:1f sfp2: configuring for inband/2500base-x link mode
[   15.737134] br-lan: port 5(sfp2) entered blocking state
[   15.742346] br-lan: port 5(sfp2) entered disabled state
[   15.750531] device sfp2 entered promiscuous mode
[   15.764089] mtk_soc_eth 15100000.ethernet eth1: configuring for inband/2500base-x link mode
[   15.773087] br-wan: port 1(eth1) entered blocking state
[   15.778361] br-wan: port 1(eth1) entered disabled state
[   15.783739] device eth1 entered promiscuous mode
[   15.789706] br-wan: port 1(eth1) entered blocking state
[   15.794933] br-wan: port 1(eth1) entered forwarding state
[   15.802683] mt7530 mdio-bus:1f wan: configuring for phy/gmii link mode
[   15.812274] br-wan: port 2(wan) entered blocking state
[   15.813978] mt7530 mdio-bus:1f wan: Link is Up - 1Gbps/Full - flow control off
[   15.817414] br-wan: port 2(wan) entered disabled state
[   15.818865] device wan entered promiscuous mode
[   15.837210] br-wan: port 2(wan) entered blocking state
[   15.842345] br-wan: port 2(wan) entered forwarding state
[   16.445902] br-wan: port 1(eth1) entered disabled state
[   18.171702] mt7530 mdio-bus:1f lan1: Link is Up - 1Gbps/Full - flow control off
[   18.179047] br-lan: port 1(lan1) entered blocking state
[   18.184261] br-lan: port 1(lan1) entered forwarding state
[  353.509863] br-lan: port 6(wlan0) entered blocking state
[  353.515181] br-lan: port 6(wlan0) entered disabled state
[  353.520681] device wlan0 entered promiscuous mode
[  353.525473] br-lan: port 6(wlan0) entered blocking state
[  353.530781] br-lan: port 6(wlan0) entered forwarding state
[  353.536954] br-lan: port 6(wlan0) entered disabled state
[  353.545825] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[  353.552310] br-lan: port 6(wlan0) entered blocking state
[  353.557614] br-lan: port 6(wlan0) entered forwarding state
[  366.435512] device wlan0 left promiscuous mode
[  366.440014] br-lan: port 6(wlan0) entered disabled state

@eckinga
Copy link
Author

eckinga commented Oct 2, 2022

Power cycle and away. Then removed the antennas and reattached like yesterday nothing. After i plugged out debug console and did a power cycle it is back.
@reddwarf69 Do you have a serial adapter plugged for debug console plugged in? Remove it and make a power cycle. A try.

@frank-w
Copy link

frank-w commented Oct 2, 2022

you removed debug-console and then wifi works?? have you connected gnd/rx/tx to the board?

@eckinga
Copy link
Author

eckinga commented Oct 2, 2022

Hello frank,

just tested it again and yeah i plug out debug console, make a power cycle and there it is. Wifi working.
And yes gnd/rx/tx are plugged have to!?

there is a problem with console thats why with wifi on the console went crazy.
Made at quick view on schematic: The console is UART0_TXD, UART0_RXD (GPIO 40 and 39) on the MT7986 or?

@frank-w
Copy link

frank-w commented Oct 2, 2022

i guess your adapter brings gnd to your board and shortens anything needed for wifi

to be precise all 3 have to be connected, but something there is strange...maybe try another adapter? is your host-system and the r3 connected to same power-source?

afaik it is UART0 yes

@eckinga
Copy link
Author

eckinga commented Oct 2, 2022

sure all 3, you need an reference... ;)
Or wifi shortens something for serial xD. I have power cycles where wifi is going but the serial console not.
And its the "same" plug. And i tested another adapter. Before it was a waveshare PL2303 and now its an FTDI dongle. same problems.

Here is another log, its the same position debug console stops working... and then wifi starts....
Why does it stop at this position?

edit Oh sry should have checked the other log first. its not the same position. So at this point it's no longer a software problem and matters sinovoip. Good we found the problem.

Should i close the thread or do you let it open for updates from sinovoip?

root@OpenWrt:/#
F0: 102B 0000
FA: 1040 0000
FA: 1040 0000 [0200]
F9: 103F 0000
F3: 1006 0033 [0200]
F3: 4001 00E0 [0200]
F3: 0000 0000
V0: 0000 0000 [0001]
00: 0000 0000
BP: 2400 0041 [0000]
G0: 1190 0000
EC: 0000 0000 [2000]
T0: 0000 020A [010F]
Jump to BL

NOTICE:  BL2: v2.7(release):OpenWrt v2022-08-31-75393484-1 (mt7986-emmc-ddr4)
NOTICE:  BL2: Built : 05:53:56, Sep 29 2022
NOTICE:  WDT: disabled
NOTICE:  CPU: MT7986 (1998MHz)
NOTICE:  EMI: Using DDR4 settings
NOTICE:  EMI: Detected DRAM size: 2048MB
NOTICE:  EMI: complex R/W mem test passed
NOTICE:  BL2: Booting BL31
NOTICE:  BL31: v2.7(release):OpenWrt v2022-08-31-75393484-1 (mt7986-emmc-ddr4)
NOTICE:  BL31: Built : 05:53:56, Sep 29 2022


U-Boot 2022.07-OpenWrt-r20784-ec8fb542ec (Sep 29 2022 - 05:53:56 +0000)

CPU:   MediaTek MT7986
Model: BananaPi BPi-R3
DRAM:  2 GiB
Core:  53 devices, 25 uclasses, devicetree: embed
jedec_spi_nor spi_nor@0: unrecognized JEDEC id bytes: ff, ef, aa
MMC:   mmc@11230000: 0
Loading Environment from MMC... OK
In:    serial@11002000
Out:   serial@11002000
Err:   serial@11002000
reset button found
Loading Environment from MMC... OK
Net:   eth0: ethernet@15100000
Cannot read EFI system partition

        ( ( ( OpenWrt ) ) )  [eMMC]       U-Boot 2022.07-OpenWrt-r20784-ec8fb542                                                                                                                                                             
      1. Run default boot command.
      2. Boot system via TFTP.
      3. Boot production system from eMMC.
      4. Boot recovery system from eMMC.
      5. Load production system via TFTP then write to eMMC.
      6. Load recovery system via TFTP then write to eMMC.
      7. Load BL31+U-Boot FIP via TFTP then write to eMMC.
      8. Load BL2 preloader via TFTP then write to eMMC.
      9. Reboot.
      a. Reset all settings to factory defaults.
      0. U-Boot console


  Press UP/DOWN to move, ENTER to select, ESC/CTRL+C to quit
spi-nand: spi_nand spi_nand@1: Winbond SPI NAND was found.
spi-nand: spi_nand spi_nand@1: 128 MiB, block size: 128 KiB, page size: 2048, OO                                                                                                                                                             B size: 64
jedec_spi_nor spi_nor@0: unrecognized JEDEC id bytes: 00, ef, aa
'spi-nand0' is now active device
* spi-nand0
  - device: spi_nand@1
  - parent: spi@1100a000
  - driver: spi_nand
  - type: NAND flash
  - block size:        0x20000 bytes
  - page size:         0x800 bytes
  - OOB size:          64 bytes
  - OOB available:     24 bytes
  - 0x000000000000-0x000008000000 : "spi-nand0"
          - 0x000000000000-0x000000080000 : "bl2"
          - 0x000000080000-0x000000380000 : "factory"
          - 0x000000380000-0x000000580000 : "fip"
          - 0x000000580000-0x000008000000 : "ubi"
* spi-nand0
  - device: spi_nand@1
  - parent: spi@1100a000
  - driver: spi_nand
  - type: NAND flash
  - block size:        0x20000 bytes
  - page size:         0x800 bytes
  - OOB size:          64 bytes
  - OOB available:     24 bytes
  - 0x000000000000-0x000008000000 : "spi-nand0"
          - 0x000000000000-0x000000080000 : "bl2"
          - 0x000000080000-0x000000380000 : "factory"
          - 0x000000380000-0x000000580000 : "fip"
          - 0x000000580000-0x000008000000 : "ubi"

MMC read: dev # 0, block # 131072, count 8 ... 8 blocks read: OK

MMC read: dev # 0, block # 131072, count 21712 ... 21712 blocks read: OK
## Loading kernel from FIT Image at 46000000 ...
   Using 'config-mt7986a-bananapi-bpi-r3-emmc-snand' configuration
   Trying 'kernel-1' kernel subimage
     Description:  ARM64 OpenWrt Linux-5.15.69
     Type:         Kernel Image
     Compression:  gzip compressed
     Data Start:   0x46001000
     Data Size:    5403649 Bytes = 5.2 MiB
     Architecture: AArch64
     OS:           Linux
     Load Address: 0x44000000
     Entry Point:  0x44000000
     Hash algo:    crc32
     Hash value:   de683342
     Hash algo:    sha1
     Hash value:   fe98e48287d1851220edeaeeacef1393dfcca60a
   Verifying Hash Integrity ... crc32+ sha1+ OK
## Loading fdt from FIT Image at 46000000 ...
   Using 'config-mt7986a-bananapi-bpi-r3-emmc-snand' configuration
   Trying 'fdt-1' fdt subimage
     Description:  ARM64 OpenWrt bananapi_bpi-r3 device tree blob
     Type:         Flat Device
                              ^[[24;80

@reddwarf69
Copy link

reddwarf69 commented Oct 3, 2022

I can reproduce what @eckinga says with both these adapters

067b:2303 Prolific Technology, Inc. PL2303 Serial Port / Mobile Action MA-8910P
10c4:ea60 Silicon Labs CP210x UART Bridge

With both the mt76 driver and the proprietary Mediatek driver. So... yeah, not a mt76 issue.

@frank-w
Copy link

frank-w commented Oct 3, 2022

i do not have this issue with cp210x

$ udevadm info /dev/ttyUSB1
P: /devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3.2/1-3.2:1.0/ttyUSB1/tty/ttyUSB1
N: ttyUSB1
L: 0
S: serial/by-path/pci-0000:00:14.0-usb-0:3.2:1.0-port0
S: serial/by-id/usb-Silicon_Labs_CP2104_USB_to_UART_Bridge_Controller_010CB6FA-if00-port0
S: tty_r3
E: DEVPATH=/devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3.2/1-3.2:1.0/ttyUSB1/tty/ttyUSB1
E: DEVNAME=/dev/ttyUSB1
E: MAJOR=188
E: MINOR=1
E: SUBSYSTEM=tty
E: USEC_INITIALIZED=4844533
E: ID_BUS=usb
E: ID_VENDOR_ID=10c4
E: ID_MODEL_ID=ea60

no stop of serial output and wifi is recognized

root@bpi-r3:~# modprobe mt7915e                                                 
[   68.949540] mt7986-wmac 18000000.wifi: HW/SW Version: 0x8a108a10, Build Timea
[   68.949540]                                                                  
[   69.103153] mt7986-wmac 18000000.wifi: WM Firmware Version: ____000000, Buil6
[   69.173764] mt7986-wmac 18000000.wifi: WA Firmware Version: DEV_000000, Buil4
root@bpi-r3:~# ip a s wlan0                                                     
12: wlan0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default q0
    link/ether 00:0c:43:26:60:00 brd ff:ff:ff:ff:ff:ff                          
root@bpi-r3:~# ip a s wlan1                                                     
13: wlan1: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default q0
    link/ether 82:0c:43:26:60:00 brd ff:ff:ff:ff:ff:ff                          
root@bpi-r3:~# 

using linux 6.0.0-rc6...so there is something strange with your boards

@reddwarf69
Copy link

@frank-w is your board a v1.1?

@frank-w
Copy link

frank-w commented Oct 3, 2022

@frank-w is your board a v1.1?

no, v1.0..so maybe something has changed here between those versions

@eckinga
Copy link
Author

eckinga commented Oct 3, 2022

Would be nice to see full schematic and pcb layout for both v1.0 and v1.1 to see what was changed.
As the general hardware is the same!?(dont know v1.0) there must be bug on layout.
I think we wont get the details here so will have to wait for sinovoip.

@frank-w
Copy link

frank-w commented Oct 3, 2022

Have you reported it to sinovoip? I see no (public) Thread in forum.

Changes i know for v1.1 are adding hole for 2230 nvme, moving bootswitches together, add common usb2 and a sata power connector.

Reset bug schold be still there in 1.1 (when card in m2 slot)

@eckinga
Copy link
Author

eckinga commented Oct 3, 2022

yes i reported to them, due national day in china i guess respond will take a while...
Reset bug?

@reddwarf69
Copy link

@hayzamjs
Copy link

hayzamjs commented Oct 9, 2022

I tried the snapshot from today (flashed on an SD card) and it seems to work well, just a note when I had the serial connected it wasn't working, not sure if it has anything to do with it.

@frank-w
Copy link

frank-w commented Oct 13, 2022

Bpi responds here: https://forum.banana-pi.org/t/bpi-r3-hw-issues/14027/2

I wonder why it affects v1.1 with cp21x2 and not v1.0.

I have no profilic adapter as they are reported as buggy on other boards (e.g. bpi-r2). Can only test with ch340,but this seems not affected

@reddwarf69
Copy link

i do not have this issue with cp210x

$ udevadm info /dev/ttyUSB1
P: /devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3.2/1-3.2:1.0/ttyUSB1/tty/ttyUSB1
N: ttyUSB1
L: 0
S: serial/by-path/pci-0000:00:14.0-usb-0:3.2:1.0-port0
S: serial/by-id/usb-Silicon_Labs_CP2104_USB_to_UART_Bridge_Controller_010CB6FA-if00-port0
S: tty_r3
E: DEVPATH=/devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3.2/1-3.2:1.0/ttyUSB1/tty/ttyUSB1
E: DEVNAME=/dev/ttyUSB1
E: MAJOR=188
E: MINOR=1
E: SUBSYSTEM=tty
E: USEC_INITIALIZED=4844533
E: ID_BUS=usb
E: ID_VENDOR_ID=10c4
E: ID_MODEL_ID=ea60

no stop of serial output and wifi is recognized

root@bpi-r3:~# modprobe mt7915e                                                 
[   68.949540] mt7986-wmac 18000000.wifi: HW/SW Version: 0x8a108a10, Build Timea
[   68.949540]                                                                  
[   69.103153] mt7986-wmac 18000000.wifi: WM Firmware Version: ____000000, Buil6
[   69.173764] mt7986-wmac 18000000.wifi: WA Firmware Version: DEV_000000, Buil4
root@bpi-r3:~# ip a s wlan0                                                     
12: wlan0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default q0
    link/ether 00:0c:43:26:60:00 brd ff:ff:ff:ff:ff:ff                          
root@bpi-r3:~# ip a s wlan1                                                     
13: wlan1: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default q0
    link/ether 82:0c:43:26:60:00 brd ff:ff:ff:ff:ff:ff                          
root@bpi-r3:~# 

Bpi says "When powered on, if the uart tx is pulled high, it will cause this". I see you did a "modprobe mt7915e", way after powering it on. It doesn't happen to you, with the v1.0, even during boot?

@frank-w
Copy link

frank-w commented Oct 15, 2022

simon says there are no differences regarding this between v1.0 and v1.1 and only PL2303 is affected, shematics look same too

added mt7915e module to /etc/modules-load.d/wifi.conf and see no issues with my cp210x. no broken serial output and wifi is initialized without problem (using my 6.1-rc tree, but basicly same patches as daniel used for openwrt)

root@bpi-r3:~# dmesg | grep -i mt7986-wmac                                      
[    6.762113] mt7986-wmac 18000000.wifi: HW/SW Version: 0x8a108a10, Build Time:
 20220113162701a                                                                
[    6.922936] mt7986-wmac 18000000.wifi: WM Firmware Version: ____000000, Build
 Time: 20220113162756                                                           
[    6.992604] mt7986-wmac 18000000.wifi: WA Firmware Version: DEV_000000, Build
 Time: 20220113163034

ch340,cp2102,FT4232 reported to be not affected based on simons answer

but it is still unclear to me why it affects wifi...in any case it does not affect wifi (uart tx pulled up to 3v3/even 5v or down to 0v)

@Owersun
Copy link

Owersun commented Nov 6, 2022

I can confirm as well.
Connected console - wifi fails to load firmware, disconnected console - work just fine.
I have some cheap serial dongle, and completely build from scratch mainline u-boot/linux 6.1 with .dtb's of what I need.
I'd spend days trying to fix wifi if not that thread, but all in all it's that simple...

@lorenz
Copy link
Contributor

lorenz commented Nov 12, 2022

FYI from a quick look at the schematic I think that the problem is that UART0_TXD is also a strap pin. When attaching a serial adapter it will have its own pull (up) resistor, countering the built-in pull-down strap (RB8). This causes the second "A-Die" which I think are the RF frontend ICs to switch its crystal mode selection from crystal mode to "buffer mode". Most likely this causes the wifi firmware to fail to power up the second frontend.

The good thing is that this is not a fatal problem, it can be fixed by either decreasing RB6 to make for a stronger pull-down (probably something like 820Ohms -> ~4mA) or getting a serial adapter with a much higher pull-up (like 47kOhms). This stops the serial adapter's pull-up from overpowering the strapping resistor.

@zamboni33
Copy link

zamboni33 commented Dec 25, 2022

I understand the UART problem I am reading about here but for my case I am not using a UART device. I boot the device with a clean openwrt build and wifi is not present. When I boot the device with the sdcard image found within the bpi-r3 forums I see wlan devices. Is there something within the build configuration I am missing to activate the wireless interfaces?

Edit: I solved this by looking at a few boot log differences. It appears as though the default BPI R3 config file does not have the kernel modules for the wifi chip enabled. I believe what I marked as yes were the 7915 and 7915e kmods within the config.

@rhjdvsgsgks
Copy link

I understand the UART problem I am reading about here but for my case I am not using a UART device. I boot the device with a clean openwrt build and wifi is not present. When I boot the device with the sdcard image found within the bpi-r3 forums I see wlan devices. Is there something within the build configuration I am missing to activate the wireless interfaces?

did you checked that it not been disabled in /etc/config/wireless ?

@frank-w
Copy link

frank-w commented Feb 4, 2023

have now same error on new system (debian bullseye) with newest firmware-files and kernel 6.1.0

[Sat Feb  4 14:49:41 2023] mt7986-wmac 18000000.wifi: Message 00000002 (seq 9) timeout
[Sat Feb  4 14:49:41 2023] mt7986-wmac 18000000.wifi: Failed to start WA firmware
[Sat Feb  4 14:49:41 2023] mt7986-wmac: probe of 18000000.wifi failed with error -110

also if not connected uart (cp2102)...maybe it is firmware-issue?

edit: used card i used on my v1.0-board, and it is not working too...so it looks like a problem on v1.1 board

@lorenz
Copy link
Contributor

lorenz commented Feb 5, 2023

Linux 6.2-rc6 works for me with a FT2232H serial console attached.

@frank-w
Copy link

frank-w commented Feb 5, 2023

thanks for report...i tried the usb2uart i used on v1.0 and this works here...very strange...both are cp21xx...i try to find a difference. not-working one is a very small adapter with micro-usb jack, working one is larger with usb-A plug. need to find out, how i can get more information

this one is working:

$ udevadm info /dev/tty_r3
P: /devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3.2/1-3.2:1.0/ttyUSB1/tty/ttyUSB1
N: ttyUSB1
L: 0
S: serial/by-path/pci-0000:00:14.0-usb-0:3.2:1.0-port0
S: tty_r3
S: serial/by-id/usb-Silicon_Labs_CP2104_USB_to_UART_Bridge_Controller_010CB6FA-if00-port0
E: DEVPATH=/devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3.2/1-3.2:1.0/ttyUSB1/tty/ttyUSB1
E: DEVNAME=/dev/ttyUSB1
E: MAJOR=188
E: MINOR=1
E: SUBSYSTEM=tty
E: USEC_INITIALIZED=3923699
E: ID_BUS=usb
E: ID_VENDOR_ID=10c4
E: ID_MODEL_ID=ea60
E: ID_PCI_CLASS_FROM_DATABASE=Serial bus controller
E: ID_PCI_SUBCLASS_FROM_DATABASE=USB controller
E: ID_PCI_INTERFACE_FROM_DATABASE=XHCI
E: ID_VENDOR_FROM_DATABASE=Silicon Labs
E: ID_MODEL_FROM_DATABASE=CP210x UART Bridge
E: ID_VENDOR=Silicon_Labs
E: ID_VENDOR_ENC=Silicon\x20Labs
E: ID_MODEL=CP2104_USB_to_UART_Bridge_Controller
E: ID_MODEL_ENC=CP2104\x20USB\x20to\x20UART\x20Bridge\x20Controller
E: ID_REVISION=0100
E: ID_SERIAL=Silicon_Labs_CP2104_USB_to_UART_Bridge_Controller_010CB6FA
E: ID_SERIAL_SHORT=010CB6FA
E: ID_TYPE=generic
E: ID_USB_INTERFACES=:ff0000:
E: ID_USB_INTERFACE_NUM=00
E: ID_USB_DRIVER=cp210x
E: ID_PATH=pci-0000:00:14.0-usb-0:3.2:1.0
E: ID_PATH_TAG=pci-0000_00_14_0-usb-0_3_2_1_0
E: ID_MM_CANDIDATE=1
E: DEVLINKS=/dev/serial/by-path/pci-0000:00:14.0-usb-0:3.2:1.0-port0 /dev/tty_r3 /dev/serial/by-id/usb-Silicon_Labs_CP2104_USB_to_UART_Bridge_Controller_010CB6FA-if00-port0
E: TAGS=:systemd:snap_cups_cupsd:snap_cups_ippeveprinter:
E: CURRENT_TAGS=:systemd:snap_cups_cupsd:snap_cups_ippeveprinter:

this is the small one not working:

$ udevadm info /dev/ttyUSB2
P: /devices/pci0000:00/0000:00:14.0/usb1/1-1/1-1:1.0/ttyUSB2/tty/ttyUSB2
N: ttyUSB2
L: 0
S: tty_r2
S: serial/by-path/pci-0000:00:14.0-usb-0:1:1.0-port0
S: serial/by-id/usb-Silicon_Labs_CP2102_USB_to_UART_Bridge_Controller_0001-if00-port0
E: DEVPATH=/devices/pci0000:00/0000:00:14.0/usb1/1-1/1-1:1.0/ttyUSB2/tty/ttyUSB2
E: DEVNAME=/dev/ttyUSB2
E: MAJOR=188
E: MINOR=2
E: SUBSYSTEM=tty
E: USEC_INITIALIZED=709868665
E: ID_BUS=usb
E: ID_VENDOR_ID=10c4
E: ID_MODEL_ID=ea60
E: ID_PCI_CLASS_FROM_DATABASE=Serial bus controller
E: ID_PCI_SUBCLASS_FROM_DATABASE=USB controller
E: ID_PCI_INTERFACE_FROM_DATABASE=XHCI
E: ID_VENDOR_FROM_DATABASE=Silicon Labs
E: ID_MODEL_FROM_DATABASE=CP210x UART Bridge
E: ID_VENDOR=Silicon_Labs
E: ID_VENDOR_ENC=Silicon\x20Labs
E: ID_MODEL=CP2102_USB_to_UART_Bridge_Controller
E: ID_MODEL_ENC=CP2102\x20USB\x20to\x20UART\x20Bridge\x20Controller
E: ID_REVISION=0100
E: ID_SERIAL=Silicon_Labs_CP2102_USB_to_UART_Bridge_Controller_0001
E: ID_SERIAL_SHORT=0001
E: ID_TYPE=generic
E: ID_USB_INTERFACES=:ff0000:
E: ID_USB_INTERFACE_NUM=00
E: ID_USB_DRIVER=cp210x
E: ID_PATH=pci-0000:00:14.0-usb-0:1:1.0
E: ID_PATH_TAG=pci-0000_00_14_0-usb-0_1_1_0
E: ID_MM_CANDIDATE=1
E: DEVLINKS=/dev/tty_r2 /dev/serial/by-path/pci-0000:00:14.0-usb-0:1:1.0-port0 /dev/serial/by-id/usb-Silicon_Labs_CP2102_USB_to_UART_Bridge_Controller_0001-if00-port0
E: TAGS=:snap_cups_cupsd:snap_cups_ippeveprinter:systemd:
E: CURRENT_TAGS=:snap_cups_cupsd:snap_cups_ippeveprinter:systemd:

so usb-id is same, but first (working) seems to be a cp2104 and second cp2102

@lorenz
Copy link
Contributor

lorenz commented Feb 5, 2023

If this is caused by the serial adapter fighting with the strapping it might not even be down to the USB-Serial chip, but any external pull-ups/pull-downs/buffers on the USB-Serial board.

OT but could you have a quick look at https://lore.kernel.org/linux-mediatek/SN1KPR.7R1MV34Z4HRM3@brun.one/T/#u? Have you encountered anything like it?

@frank-w
Copy link

frank-w commented Feb 12, 2023

ch340G seems not working too:

$ udevadm info /dev/ttyUSB1
P: /devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3.1/1-3.1:1.0/ttyUSB1/tty/ttyUSB1
N: ttyUSB1
L: 0
S: tty_r2pro
S: serial/by-id/usb-1a86_USB2.0-Ser_-if00-port0
S: serial/by-path/pci-0000:00:14.0-usb-0:3.1:1.0-port0
E: DEVPATH=/devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3.1/1-3.1:1.0/ttyUSB1/tty/ttyUSB1
E: DEVNAME=/dev/ttyUSB1
E: MAJOR=188
E: MINOR=1
E: SUBSYSTEM=tty
E: USEC_INITIALIZED=130857833
E: ID_BUS=usb
E: ID_VENDOR_ID=1a86
E: ID_MODEL_ID=7523
E: ID_PCI_CLASS_FROM_DATABASE=Serial bus controller
E: ID_PCI_SUBCLASS_FROM_DATABASE=USB controller
E: ID_PCI_INTERFACE_FROM_DATABASE=XHCI
E: ID_VENDOR_FROM_DATABASE=QinHeng Electronics
E: ID_MODEL_FROM_DATABASE=CH340 serial converter
E: ID_VENDOR=1a86
E: ID_VENDOR_ENC=1a86
E: ID_MODEL=USB2.0-Ser_
E: ID_MODEL_ENC=USB2.0-Ser\x21
E: ID_REVISION=0254
E: ID_SERIAL=1a86_USB2.0-Ser_
E: ID_TYPE=generic
E: ID_USB_INTERFACES=:ff0102:
E: ID_USB_INTERFACE_NUM=00
E: ID_USB_DRIVER=ch341
E: ID_USB_CLASS_FROM_DATABASE=Vendor Specific Class
E: ID_PATH=pci-0000:00:14.0-usb-0:3.1:1.0
E: ID_PATH_TAG=pci-0000_00_14_0-usb-0_3_1_1_0
E: ID_MM_CANDIDATE=1
E: DEVLINKS=/dev/tty_r2pro /dev/serial/by-id/usb-1a86_USB2.0-Ser_-if00-port0 /dev/serial/by-path/pci-0000:00:14.0-usb-0:3.1:1.0-port0
E: TAGS=:snap_cups_cupsd:systemd:snap_cups_ippeveprinter:
E: CURRENT_TAGS=:snap_cups_cupsd:systemd:snap_cups_ippeveprinter:

@frank-w
Copy link

frank-w commented Feb 13, 2023

The good thing is that this is not a fatal problem, it can be fixed by either decreasing RB6 to make for a stronger pull-down (probably something like 820Ohms -> ~4mA) or getting a serial adapter with a much higher pull-up (like 47kOhms). This stops the serial adapter's pull-up from overpowering the strapping resistor.

@lorenz you mean decreasing RB8,right? RB6 is not connected and a pullup to 3v3

https://forum.banana-pi.org/t/bpi-r3-hw-issues/14027/2

@lorenz
Copy link
Contributor

lorenz commented Feb 13, 2023

Yeah, I meant RB8.

@G-Pereira
Copy link

Hey, I am having rhis exact issue with ASUS RT-AX59U and I am not using any serial adapter. My device has the waranty seal intact.
Any idea how to fix?

@ghost
Copy link

ghost commented Apr 28, 2024

Someone opened a case in openwrt for this issue but i think its firmware related problem and better here.

[   10.127699] mt7986-wmac 18000000.wmac: HW/SW Version: 0x8a108a10, Build Time: 20220113162701a
[   10.127699] 
[   10.247829] mt7986-wmac 18000000.wmac: WM Firmware Version: ____000000, Build Time: 20220113162756
[   10.324188] mt7986-wmac 18000000.wmac: WA Firmware Version: DEV_000000, Build Time: 20220113163034
[   30.565222] mt7986-wmac 18000000.wmac: Message 00000002 (seq 4) timeout
[   30.571834] mt7986-wmac 18000000.wmac: Failed to start WA firmware
[   30.578095] mt7986-wmac: probe of 18000000.wmac failed with error -110'

I came accross the same problem today. I could solve it by reinstalling the following packages trough luci (The webinterface):

  • mt7986-wo-firmware
  • kmod-mt7986-firmware

@Matador-67
Copy link

Matador-67 commented Aug 10, 2024

I had same Problem with CH340 and Board I don't know but i think it must be ver 1.1
I solved it, only by unplug the ch340 reboot and all is fine.

@Constantin07
Copy link

I confirm as well CH340 with V1.1 has the same issues - wifi won't initialize:

[    9.963576] mt798x-wmac 18000000.wifi: HW/SW Version: 0x8a108a10, Build Time: 20221012174743a
[   10.089068] mt798x-wmac 18000000.wifi: WM Firmware Version: ____000000, Build Time: 20221012174805
[   10.166796] mt798x-wmac 18000000.wifi: WA Firmware Version: DEV_000000, Build Time: 20221012174937
[   30.550216] mt798x-wmac 18000000.wifi: Message 00000002 (seq 9) timeout
[   30.556827] mt798x-wmac 18000000.wifi: Failed to start WA firmware
[   30.563086] mt798x-wmac: probe of 18000000.wifi failed with error -110

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests