Thank you. I renamed &pcie
to &pcie0
just to make it compile.
But now it looks like that I’ve lost mk7615e
completely.
Starting kernel ...
[ATF][ 23.907478]save kernel info
[ATF][ 23.910680]Kernel_EL2
[ATF][ 23.913436]Kernel is 64Bit
[ATF][ 23.916624]pc=0x41080000, r0=0x6bff6000, r1=0x0
INFO: BL3-1: Preparing for EL3 exit to normal world, Kernel
INFO: BL3-1: Next image address = 0x41080000
INFO: BL3-1: Next image spsr = 0x3c9
[ATF][ 23.934890]el3_exit
[ 0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
[ 0.000000] Linux version 5.4.42 ([email protected]) (gcc version 8.4.0 (OpenWrt GCC 8.4.0 r13342-e35e40ad82)) #0 SMP Sat May 20
[ 0.000000] Machine model: Bananapi BPI-R64
[ 0.000000] On node 0 totalpages: 262096
[ 0.000000] DMA32 zone: 4096 pages used for memmap
[ 0.000000] DMA32 zone: 0 pages reserved
[ 0.000000] DMA32 zone: 262096 pages, LIFO batch:63
[ 0.000000] psci: probing for conduit method from DT.
[ 0.000000] psci: PSCIv0.2 detected in firmware.
[ 0.000000] psci: Using standard PSCI v0.2 function IDs
[ 0.000000] psci: Trusted OS migration not required
[ 0.000000] percpu: Embedded 20 pages/cpu s43608 r8192 d30120 u81920
[ 0.000000] pcpu-alloc: s43608 r8192 d30120 u81920 alloc=20*4096
[ 0.000000] pcpu-alloc: [0] 0 [0] 1
[ 0.000000] Detected VIPT I-cache on CPU0
[ 0.000000] CPU features: kernel page table isolation disabled by kernel configuration
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 258000
[ 0.000000] Kernel command line: board=bpi-r64 console=ttyS0,115200n1 earlyprintk root=/dev/mmcblk0p2 rootfstype=ext4 rootwait servi2
[ 0.000000] Dentry cache hash table entries: 131072 (order: 8, 1048576 bytes, linear)
[ 0.000000] Inode-cache hash table entries: 65536 (order: 7, 524288 bytes, linear)
[ 0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[ 0.000000] Memory: 1018396K/1048384K available (6590K kernel code, 432K rwdata, 1896K rodata, 448K init, 285K bss, 29988K reserved,)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[ 0.000000] rcu: Hierarchical RCU implementation.
[ 0.000000] rcu: CONFIG_RCU_FANOUT set to non-default value of 32.
[ 0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 25 jiffies.
[ 0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[ 0.000000] GIC: GICv2 detected, but range too small and irqchip.gicv2_force_probe not set
[ 0.000000] random: get_random_bytes called from start_kernel+0x2d4/0x430 with crng_init=0
[ 0.000000] arch_timer: cp15 timer(s) running at 12.50MHz (phys).
[ 0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x2e2049cda, max_idle_ns: 440795202628 ns
[ 0.000003] sched_clock: 56 bits at 12MHz, resolution 80ns, wraps every 4398046511080ns
[ 0.000169] Calibrating delay loop (skipped), value calculated using timer frequency.. 25.00 BogoMIPS (lpj=50000)
[ 0.000176] pid_max: default: 32768 minimum: 301
[ 0.000262] Mount-cache hash table entries: 2048 (order: 2, 16384 bytes, linear)
[ 0.000272] Mountpoint-cache hash table entries: 2048 (order: 2, 16384 bytes, linear)
[ 0.001153] ASID allocator initialised with 65536 entries
[ 0.001202] rcu: Hierarchical SRCU implementation.
[ 0.001462] smp: Bringing up secondary CPUs ...
[ 0.001778] Detected VIPT I-cache on CPU1
[ 0.001815] CPU1: Booted secondary processor 0x0000000001 [0x410fd034]
[ 0.001869] smp: Brought up 1 node, 2 CPUs
[ 0.001875] SMP: Total of 2 processors activated.
[ 0.001879] CPU features: detected: 32-bit EL0 Support
[ 0.001883] CPU features: detected: CRC32 instructions
[ 0.001984] CPU: All CPU(s) started at EL2
[ 0.001993] alternatives: patching kernel code
[ 0.005269] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[ 0.005283] futex hash table entries: 512 (order: 3, 32768 bytes, linear)
[ 0.005374] pinctrl core: initialized pinctrl subsystem
[ 0.005801] NET: Registered protocol family 16
[ 0.006082] DMA: preallocated 256 KiB pool for atomic allocations
[ 0.017038] GPIO line 499 (asm_sel) hogged as output/high
[ 0.029753] SCSI subsystem initialized
[ 0.029903] libata version 3.00 loaded.
[ 0.030037] usbcore: registered new interface driver usbfs
[ 0.030063] usbcore: registered new interface driver hub
[ 0.030090] usbcore: registered new device driver usb
[ 0.030865] Bluetooth: Core ver 2.22
[ 0.030899] NET: Registered protocol family 31
[ 0.030902] Bluetooth: HCI device and connection manager initialized
[ 0.030910] Bluetooth: HCI socket layer initialized
[ 0.030916] Bluetooth: L2CAP socket layer initialized
[ 0.030927] Bluetooth: SCO socket layer initialized
[ 0.031408] clocksource: Switched to clocksource arch_sys_counter
[ 0.031880] thermal_sys: Registered thermal governor 'fair_share'
[ 0.031882] thermal_sys: Registered thermal governor 'bang_bang'
[ 0.031887] thermal_sys: Registered thermal governor 'step_wise'
[ 0.031890] thermal_sys: Registered thermal governor 'user_space'
[ 0.031894] thermal_sys: Registered thermal governor 'power_allocator'
[ 0.032150] NET: Registered protocol family 2
[ 0.032419] tcp_listen_portaddr_hash hash table entries: 512 (order: 1, 8192 bytes, linear)
[ 0.032438] TCP established hash table entries: 8192 (order: 4, 65536 bytes, linear)
[ 0.032489] TCP bind hash table entries: 8192 (order: 5, 131072 bytes, linear)
[ 0.032594] TCP: Hash tables configured (established 8192 bind 8192)
[ 0.032680] UDP hash table entries: 512 (order: 2, 16384 bytes, linear)
[ 0.032701] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes, linear)
[ 0.032794] NET: Registered protocol family 1
[ 0.032813] PCI: CLS 0 bytes, default 64
[ 0.033576] workingset: timestamp_bits=46 max_order=18 bucket_order=0
[ 0.036898] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.036909] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[ 0.050240] mtk-tphy 1a0c4000.usb-phy: failed to get ref_clk(id-1)
[ 0.053430] mt-pmic-pwrap 10001000.pwrap: unexpected interrupt int=0x1
[ 0.067414] Serial: 8250/16550 driver, 3 ports, IRQ sharing disabled
[ 0.068049] printk: console [ttyS0] disabled
[ 0.088395] 11002000.serial: ttyS0 at MMIO 0x11002000 (irq = 118, base_baud = 1562500) is a ST16650V2
[ 0.629806] printk: console [ttyS0] enabled
[ 0.654669] 11004000.serial: ttyS1 at MMIO 0x11004000 (irq = 119, base_baud = 1562500) is a ST16650V2
[ 0.664352] 1100c000.serial: ttyS2 at MMIO 0x1100c000 (irq = 125, base_baud = 17499995) is a MediaTek BTIF
[ 0.674087] serial serial0: tty port ttyS2 registered
[ 0.679345] cacheinfo: Unable to detect cache hierarchy for CPU 0
[ 0.686878] libphy: Fixed MDIO Bus: probed
[ 0.714308] libphy: mdio: probed
[ 0.717576] mtk_soc_eth 1b100000.ethernet: generated random MAC address 6a:da:5c:29:1b:ae
[ 0.726019] mtk_soc_eth 1b100000.ethernet eth0: mediatek frame engine at 0xffffffc011500000, irq 134
[ 0.735173] mtk_soc_eth 1b100000.ethernet: generated random MAC address 66:08:0e:1e:72:8a
[ 0.743555] mtk_soc_eth 1b100000.ethernet eth1: mediatek frame engine at 0xffffffc011500000, irq 134
[ 0.752764] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 0.759288] ehci-pci: EHCI PCI platform driver
[ 0.763758] ehci-platform: EHCI generic platform driver
[ 0.769092] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[ 0.775295] ohci-platform: OHCI generic platform driver
[ 0.781056] usbcore: registered new interface driver usb-storage
[ 0.787444] rtc_mt7622 10212800.rtc: registered as rtc0
[ 0.793327] Driver for 1-wire Dallas network protocol.
[ 0.798682] mtk-thermal 1100b000.thermal: Device not calibrated, using default calibration values
[ 0.807869] mtk-wdt 10212000.watchdog: Watchdog enabled (timeout=31 sec, nowayout=0)
[ 0.815701] Bluetooth: HCI UART driver ver 2.3
[ 0.820142] Bluetooth: HCI UART protocol H4 registered
[ 0.825275] Bluetooth: HCI UART protocol BCSP registered
[ 0.830633] Bluetooth: HCI UART protocol Broadcom registered
[ 0.836306] Bluetooth: HCI UART protocol QCA registered
[ 0.867736] mtk-msdc 11240000.mmc: Got CD GPIO
[ 0.897879] NET: Registered protocol family 10
[ 0.902965] Segment Routing with IPv6
[ 0.906676] NET: Registered protocol family 17
[ 0.911139] 8021q: 802.1Q VLAN Support v1.8
[ 0.925745] mtk-pcie 1a143000.pcie: host bridge /pcie@1a143000 ranges:
[ 0.932298] mtk-pcie 1a143000.pcie: Parsing ranges property...
[ 0.938134] mtk-pcie 1a143000.pcie: MEM 0x20000000..0x27ffffff -> 0x20000000
[ 0.988509] mtk-msdc 11230000.mmc: phase: [map:fffffff] [maxlen:28] [final:9]
[ 0.996416] mmc0: new HS200 MMC card at address 0001
[ 1.002539] mmcblk0: mmc0:0001 008G30 7.28 GiB
[ 1.007975] mmcblk0boot0: mmc0:0001 008G30 partition 1 4.00 MiB
[ 1.014791] mmcblk0boot1: mmc0:0001 008G30 partition 2 4.00 MiB
[ 1.020775] mmcblk0rpmb: mmc0:0001 008G30 partition 3 4.00 MiB, chardev (250:0)
[ 1.029282] mmcblk0: p1 p2
[ 1.045492] mtk-pcie 1a143000.pcie: Port0 link down
[ 1.050519] mtk-pcie 1a143000.pcie: PCI host bridge to bus 0000:00
[ 1.056707] pci_bus 0000:00: root bus resource [bus 00-ff]
[ 1.062190] pci_bus 0000:00: root bus resource [mem 0x20000000-0x27ffffff]
[ 1.069061] pci_bus 0000:00: scanning bus
[ 1.074279] pci_bus 0000:00: fixups for bus
[ 1.078459] pci_bus 0000:00: bus scan returning with max=00
[ 1.084251] mtk-pcie 1a145000.pcie: host bridge /pcie@1a145000 ranges:
[ 1.090783] mtk-pcie 1a145000.pcie: Parsing ranges property...
[ 1.096623] mtk-pcie 1a145000.pcie: MEM 0x28000000..0x2fffffff -> 0x28000000
[ 1.103932] mtk-pcie 1a145000.pcie: IRQ index 1 not found
[ 1.209357] mtk-pcie 1a145000.pcie: Port1 link down
[ 1.214328] mtk-pcie 1a145000.pcie: PCI host bridge to bus 0001:00
[ 1.220510] pci_bus 0001:00: root bus resource [bus 00-ff]
[ 1.225993] pci_bus 0001:00: root bus resource [mem 0x28000000-0x2fffffff]
[ 1.232864] pci_bus 0001:00: scanning bus
[ 1.238011] pci_bus 0001:00: fixups for bus
[ 1.242193] pci_bus 0001:00: bus scan returning with max=00
[ 1.247885] mtk_hsdma 1b007000.dma-controller: Using 3 as missing dma-requests property
[ 1.256068] mtk_hsdma 1b007000.dma-controller: MediaTek HSDMA driver registered
[ 1.827418] mt753x gsw@0: LAN/WAN VLAN setting=wllll
[ 1.832837] mt753x gsw@0: Switch is MediaTek MT7531BE rev 0
[ 6.474879] xhci-mtk 1a0c0000.usb: xHCI Host Controller
[ 6.480115] xhci-mtk 1a0c0000.usb: new USB bus registered, assigned bus number 1
[ 6.489162] xhci-mtk 1a0c0000.usb: hcc params 0x01403198 hci version 0x96 quirks 0x0000000000210010
[ 6.498233] xhci-mtk 1a0c0000.usb: irq 130, io mem 0x1a0c0000
[ 6.504368] hub 1-0:1.0: USB hub found
[ 6.508134] hub 1-0:1.0: 2 ports detected
[ 6.512354] xhci-mtk 1a0c0000.usb: xHCI Host Controller
[ 6.517584] xhci-mtk 1a0c0000.usb: new USB bus registered, assigned bus number 2
[ 6.524980] xhci-mtk 1a0c0000.usb: Host supports USB 3.0 SuperSpeed
[ 6.531274] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[ 6.539587] hub 2-0:1.0: USB hub found
[ 6.543340] hub 2-0:1.0: 1 port detected
[ 6.547600] rtc_mt7622 10212800.rtc: setting system clock to 2020-05-29T11:36:50 UTC (1590752210)
[ 6.562687] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[ 6.570845] VFS: Mounted root (ext4 filesystem) readonly on device 179:2.
[ 6.577818] Freeing unused kernel memory: 448K
[ 6.587407] Run /sbin/init as init process
[ 6.640761] init: Console is alive
[ 6.644264] init: - watchdog -
[ 6.683513] random: fast init done
[ 6.769251] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[ 6.782971] ehci-fsl: Freescale EHCI Host controller driver
[ 6.793066] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[ 6.808844] init: - preinit -
[ 6.889308] mtk_soc_eth 1b100000.ethernet: PPE started
[ 6.894490] mtk_soc_eth 1b100000.ethernet eth0: configuring for fixed/2500base-x link mode
[ 6.902809] mtk_soc_eth 1b100000.ethernet eth0: Link is Up - 2.5Gbps/Full - flow control rx/tx
Press the [f] key and hit [enter] to enter failsafe mode
Press [ 6.919436] usb 1-2: new high-speed USB device number 2 using xhci-mtk
the [1], [2], [3] or [4] key and hit [enter] to select the debug level
[ 7.147106] usb-storage 1-2:1.0: USB Mass Storage device detected
[ 7.153441] random: procd: uninitialized urandom read (4 bytes read)
[ 7.153468] scsi host0: usb-storage 1-2:1.0
[ 8.197074] scsi 0:0:0:0: Direct-Access JetFlash Transcend 4GB 8.07 PQ: 0 ANSI: 2
[ 8.206292] sd 0:0:0:0: [sda] 7847936 512-byte logical blocks: (4.02 GB/3.74 GiB)
[ 8.213936] sd 0:0:0:0: [sda] Write Protect is off
[ 8.218728] sd 0:0:0:0: [sda] Mode Sense: 03 00 00 00
[ 8.223917] sd 0:0:0:0: [sda] No Caching mode page found
[ 8.229231] sd 0:0:0:0: [sda] Assuming drive cache: write through
[ 8.422453] sda: sda1
[ 8.425753] sd 0:0:0:0: [sda] Attached SCSI removable disk
[ 10.936852] mount_root: mounting /dev/root
[ 10.942710] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
[ 10.948232] mount_root: loading kmods from internal overlay
[ 10.962171] kmodloader: loading kernel modules from //etc/modules-boot.d/*
[ 10.969796] kmodloader: done loading kernel modules from //etc/modules-boot.d/*
[ 11.097395] urandom-seed: Seed file not found (/etc/urandom.seed)
[ 11.110282] procd: - early -
[ 11.113237] procd: - watchdog -
[ 11.631049] procd: - watchdog -
[ 11.634313] procd: - ubus -
[ 11.641140] random: ubusd: uninitialized urandom read (4 bytes read)
[ 11.687434] random: ubusd: uninitialized urandom read (4 bytes read)
[ 11.693899] random: ubusd: uninitialized urandom read (4 bytes read)
[ 11.700507] procd: - init -
Please press Enter to activate this console.
[ 11.781378] urngd: v1.0.2 started.
[ 11.801564] kmodloader: loading kernel modules from /etc/modules.d/*
[ 11.807706] random: crng init done
[ 11.811324] random: 6 urandom warning(s) missed due to ratelimiting
[ 11.825835] tun: Universal TUN/TAP device driver, 1.6
[ 11.841368] cryptodev: driver 1.10 loaded.
[ 11.848235] i2c /dev entries driver
[ 11.858441] hidraw: raw HID events driver (C) Jiri Kosina
[ 11.866060] Mirror/redirect action on
[ 11.873352] u32 classifier
[ 11.876092] input device check on
[ 11.879749] Actions configured
[ 11.900076] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[ 11.905411] Bluetooth: BNEP filters: protocol multicast
[ 11.910643] Bluetooth: BNEP socket layer initialized
[ 11.917486] usbcore: registered new interface driver btusb
[ 11.923904] usbcore: registered new interface driver cdc_wdm
[ 11.930150] Loading modules backported from Linux version v5.7-rc3-0-g6a8b55ed4056
[ 11.937735] Backport generated by backports.git v5.7-rc3-1-0-gc0c7d2bb
[ 11.945442] Bluetooth: HIDP (Human Interface Emulation) ver 1.2
[ 11.951393] Bluetooth: HIDP socket layer initialized
[ 11.966364] Bluetooth: RFCOMM TTY layer initialized
[ 11.971285] Bluetooth: RFCOMM socket layer initialized
[ 11.976438] Bluetooth: RFCOMM ver 1.11
[ 11.981809] usbcore: registered new interface driver ums-alauda
[ 11.988284] usbcore: registered new interface driver ums-cypress
[ 11.994636] usbcore: registered new interface driver ums-datafab
[ 12.000938] usbcore: registered new interface driver ums-freecom
[ 12.007256] usbcore: registered new interface driver ums-isd200
[ 12.013484] usbcore: registered new interface driver ums-jumpshot
[ 12.019863] usbcore: registered new interface driver ums-karma
[ 12.026067] usbcore: registered new interface driver ums-sddr09
[ 12.032307] usbcore: registered new interface driver ums-sddr55
[ 12.038592] usbcore: registered new interface driver ums-usbat
[ 12.048576] wireguard: WireGuard 1.0.20200520 loaded. See www.wireguard.com for information.
[ 12.057034] wireguard: Copyright (C) 2015-2019 Jason A. Donenfeld <[email protected]>. All Rights Reserved.
[ 12.076533] xt_time: kernel timezone is -0000
[ 12.081505] usbcore: registered new interface driver cdc_ether
[ 12.139656] mt7622-wmac 18000000.wmac: Invalid MAC address, using random address fa:2c:f2:67:82:e2
[ 12.149686] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
[ 12.172091] PPP generic driver version 2.4.2
[ 12.177543] NET: Registered protocol family 24
[ 12.183392] usbcore: registered new interface driver qmi_wwan
[ 12.189357] mt7622-wmac 18000000.wmac: HW/SW Version: 0x8a108a10, Build Time: 20190801210006a
[ 12.189357]
[ 12.200925] kmodloader: done loading kernel modules from /etc/modules.d/*
[ 12.219505] mt7622-wmac 18000000.wmac: N9 Firmware Version: 2.0, Build Time: 20200131180931
[ 18.416722] mtk_soc_eth 1b100000.ethernet eth0: Link is Down
[ 18.425276] mtk_soc_eth 1b100000.ethernet: 0x100 = 0xffff9070, 0x10c = 0x100808ff
[ 18.432804] mtk_soc_eth 1b100000.ethernet: reset pse
[ 18.522186] mtk_soc_eth 1b100000.ethernet: PPE started
[ 18.527423] debugfs: Directory 'mtk_ppe' with parent '/' already present!
[ 18.534270] mtk_soc_eth 1b100000.ethernet eth0: configuring for fixed/2500base-x link mode
[ 18.542799] mtk_soc_eth 1b100000.ethernet eth0: Link is Up - 2.5Gbps/Full - flow control rx/tx
[ 18.552071] br-lan: port 1(eth0) entered blocking state
[ 18.557369] br-lan: port 1(eth0) entered disabled state
[ 18.562825] device eth0 entered promiscuous mode
[ 18.573352] br-lan: port 1(eth0) entered blocking state
[ 18.578610] br-lan: port 1(eth0) entered forwarding state
[ 18.589158] mtk_soc_eth 1b100000.ethernet eth1: configuring for fixed/rgmii link mode
[ 18.597171] mtk_soc_eth 1b100000.ethernet eth1: Link is Up - 1Gbps/Full - flow control rx/tx
And here is iw dev
output
root@OpenWrt:/# iw dev
phy#0
Interface wlan0
ifindex 4
wdev 0x1
addr fa:2c:f2:67:82:e2
type managed
txpower 6.00 dBm
multicast TXQ:
qsz-byt qsz-pkt flows drops marks overlmt hashcol tx-bytes tx-packets
0 0 0 0 0 0 0 0 0