[BPI-R64] PCIe issues

it has to be named pcie0 and pcie1…

mt7622-rfb1.dts references a node pcie, which does not exist in upper dtsi (mt7622.dtsi) where the node is splitted into pcie0 and pcie1…so reference needs to be changed in rfb too

why not using the main-tree? the pcie-tree was only for testing…and newer trees (also 5.4-main) have the pcie-splitting applied too

i am trying to test the mediatek patch for google coral and where the google coral driver is merge. please provide link to the branch which I have to use?

i had merged latest pcie-fixes into this tree

https://github.com/frank-w/BPI-R2-4.14/commits/5.7-main

I am now trying to compile the 5.7-main branch

when I execute ./build.sh importconfig I was asked to install gcc-arm-linux-gnueabihf.

After installing this package whrn I re-run /build.sh importconfig I get some bison related error as follows

import a defconfig file
Import fwu config
  YACC    scripts/kconfig/parser.tab.[ch]
bison: /home/wendy/feig/cvend/output/build/armv5_toolchain_build/host/share/bison/m4sugar/m4sugar.m4: cannot open: No such file or directory
scripts/Makefile.host:17: recipe for target 'scripts/kconfig/parser.tab.h' failed
make[1]: *** [scripts/kconfig/parser.tab.h] Error 1
Makefile:588: recipe for target 'mt7623n_evb_fwu_defconfig' failed
make: *** [mt7623n_evb_fwu_defconfig] Error 2

Google search reveals the new toolchain has some bison relocation failure. Did you also get this? How was it resolved?

No have not seen this…i’m using ubuntu 20.4…which os di you use for building?

I am using Ubuntu 18

You need to change board in build.conf to bpi-r64 (fwu defconfig is for r2).

And i wonder about path armv5_toolchain_build

Maybe you should do a make clean/mrproper

I am using bpi-r64 in build.conf.

done a make clean. Still I am getting the same error.

./build.sh importconfig

should not print fwu defconfig for r64…basicly you can simply remove the # in this line:

I have updated the build.conf as follows

uploaduser=$USER
uploadserver=192.168.0.10
uploaddir=/var/lib/tftp

#builddir=../build
#ramdisksize=3G

#board=bpi-r2
board=bpi-r64
#r64 uses 2 ethernet-chips (setting choose which dtb is used)
#boardversion=1.0
#mainline uboot for r64 needs 64bit uImage
#uimagearch=arm64

I get the same bison related error

import a defconfig file
    Import r64 config
      HOSTCC  scripts/basic/fixdep
      HOSTCC  scripts/kconfig/conf.o
      HOSTCC  scripts/kconfig/confdata.o
      HOSTCC  scripts/kconfig/expr.o
      LEX     scripts/kconfig/lexer.lex.c
      YACC    scripts/kconfig/parser.tab.[ch]
    bison: /home/wendy/feig/cvend/output/build/armv5_toolchain_build/host/share/bison/m4sugar/m4sugar.m4: cannot open: No such file or directory
    scripts/Makefile.host:17: recipe for target 'scripts/kconfig/parser.tab.h' failed
    make[1]: *** [scripts/kconfig/parser.tab.h] Error 1
    Makefile:588: recipe for target 'mt7622_bpi-r64_defconfig' failed
    make: *** [mt7622_bpi-r64_defconfig] Error 2
frank@frank-G5:/media/data_nvme/git/kernel/r2test/BPI-R2-4.14 (5.7-main) [1M0U]
$ ./build.sh importconfig
import a defconfig file
Import r64 config
  HOSTCC  scripts/basic/fixdep
  HOSTCC  scripts/kconfig/conf.o
  HOSTCC  scripts/kconfig/confdata.o
  HOSTCC  scripts/kconfig/expr.o
  LEX     scripts/kconfig/lexer.lex.c
  YACC    scripts/kconfig/parser.tab.[ch]
  HOSTCC  scripts/kconfig/lexer.lex.o
  HOSTCC  scripts/kconfig/parser.tab.o
  HOSTCC  scripts/kconfig/preprocess.o
  HOSTCC  scripts/kconfig/symbol.o
  HOSTCC  scripts/kconfig/util.o
  HOSTLD  scripts/kconfig/conf
#
# configuration written to .config
#
frank@frank-G5:/media/data_nvme/git/kernel/r2test/BPI-R2-4.14 (5.7-main) [1M0U]
$ LANG=C bison --version
bison (GNU Bison) 3.0.4
Written by Robert Corbett and Richard Stallman.

Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
frank@frank-G5:/media/data_nvme/git/kernel/r2test/BPI-R2-4.14 (5.7-main) [1M0U]
$ cat /etc/issue
Ubuntu 18.04.4 LTS \n \l

frank@frank-G5:/media/data_nvme/git/kernel/r2test/BPI-R2-4.14 (5.7-main) [1M0U]
$ 

i can import without problems in ubuntu 18.4, have you changed buildchain? still wondering about the path /home/wendy/feig/cvend/output/build/armv5_toolchain_build/host/share

I am using a device (feig) for which the SDK is installed and llinked in /opt/feig

I have not changed my buildchain. I have just installed the gcc-arm-linux-gnueabihf which was recommended when i executed the build script.

Could you try without this feig? Clone my repo (branch 5.7-main) and run build.sh…

I guess this feig breaks ubuntu buildchain and uses its own which results in bison error

Hi,

I have managed to compile the 5.7-main branch and loaded it on the SD card. Bananapi bootsup as well

However network is not up. Following is the dmesg and ifconfig

[    7.183669] mtk_mac_config: G0 mcr 105833b
[    7.183698] mtk_mac_config: G0 mcr 105833b
[    7.183712] mtk_soc_eth 1b100000.ethernet eth0: Link is Up - 2.5Gbps/Full - flow control rx/tx
[    7.208961] mtk_soc_eth 1b100000.ethernet eth1: configuring for fixed/rgmii link mode
[    7.208993] mtk_mac_config: G1 mcr 105833b
[    7.209028] mtk_mac_config: G1 mcr 105833b
[    7.209042] mtk_soc_eth 1b100000.ethernet eth1: Link is Up - 1Gbps/Full - flow control rx/tx
root@bpi-iot-ros-ai:~# ifconfig 
eth0      Link encap:Ethernet  HWaddr 22:01:28:53:17:08  
          inet6 addr: fe80::a329:58e3:9b1f:b100/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1504  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:31 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:5870 (5.8 KB)
          Interrupt:134 

eth1      Link encap:Ethernet  HWaddr 1e:d7:32:07:24:04  
          inet6 addr: fe80::f897:be93:54d7:19c/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1536  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:31 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:5870 (5.8 KB)
          Interrupt:134 

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

Is there anything specific I need to load on the pi? I have tried the network restart commands…but no luck!!!

Can you attach full dmesg and post ouput of “ip a”? Mt7531 driver is merged to 5.7-main and should be builtin

root@bpi-iot-ros-ai:~# dmesg
[    0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
[    0.000000] Linux version 5.7.0-bpi-r64 (ankit@HP) (gcc version 5.4.0 20160609 (Ubuntu/Linaro 5.4.0-6ubuntu1~16.04.9), GNU ld (GNU Binutils for Ubuntu) 2.26.1) #1 SMP PREEMPT Fri Jun 19 18:02:37 IST 20
[    0.000000] Machine model: Bananapi BPI-R64
[    0.000000] On node 0 totalpages: 262096
[    0.000000]   DMA zone: 4096 pages used for memmap
[    0.000000]   DMA zone: 0 pages reserved
[    0.000000]   DMA zone: 262096 pages, LIFO batch: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 21 pages/cpu s47128 r8192 d30696 u86016
[    0.000000] pcpu-alloc: s47128 r8192 d30696 u86016 alloc=21*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1 
[    0.000000] Detected VIPT I-cache on CPU0
[    0.000000] CPU features: detected: ARM erratum 845719
[    0.000000] CPU features: detected: ARM erratum 843419
[    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/mmcblk1p2 rootfstype=ext4 rootwait service=linux debug=7 initcall_debug=0 androidboot.hardware=mt7622 swiotl2
[    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: 1018012K/1048384K available (6462K kernel code, 660K rwdata, 2256K rodata, 320K init, 311K bss, 30372K reserved, 0K cma-reserved)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[    0.000000] rcu: Preemptible hierarchical RCU implementation.
[    0.000000] rcu:     RCU event tracing is enabled.
[    0.000000]  Tasks RCU enabled.
[    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+0x2a4/0x3bc 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.000255] Console: colour dummy device 80x25
[    0.000282] Calibrating delay loop (skipped), value calculated using timer frequency.. 25.00 BogoMIPS (lpj=50000)
[    0.000291] pid_max: default: 32768 minimum: 301
[    0.000419] Mount-cache hash table entries: 2048 (order: 2, 16384 bytes, linear)
[    0.000433] Mountpoint-cache hash table entries: 2048 (order: 2, 16384 bytes, linear)
[    0.001730] rcu: Hierarchical SRCU implementation.
[    0.002954] smp: Bringing up secondary CPUs ...
[    0.003432] Detected VIPT I-cache on CPU1
[    0.003481] CPU1: Booted secondary processor 0x0000000001 [0x410fd034]
[    0.003575] smp: Brought up 1 node, 2 CPUs
[    0.003584] SMP: Total of 2 processors activated.
[    0.003591] CPU features: detected: 32-bit EL0 Support
[    0.003597] CPU features: detected: CRC32 instructions
[    0.004333] CPU: All CPU(s) started at EL2
[    0.004350] alternatives: patching kernel code
[    0.004880] devtmpfs: initialized
[    0.009663] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.009680] futex hash table entries: 512 (order: 3, 32768 bytes, linear)
[    0.009801] pinctrl core: initialized pinctrl subsystem
[    0.010212] thermal_sys: Registered thermal governor 'fair_share'
[    0.010214] thermal_sys: Registered thermal governor 'bang_bang'
[    0.010220] thermal_sys: Registered thermal governor 'step_wise'
[    0.010226] thermal_sys: Registered thermal governor 'user_space'
[    0.010603] NET: Registered protocol family 16
[    0.010918] DMA: preallocated 256 KiB pool for atomic allocations
[    0.010934] audit: initializing netlink subsys (disabled)
[    0.011055] audit: type=2000 audit(0.008:1): state=initialized audit_enabled=0 res=1
[    0.011397] i2c-core: driver [dummy] registered
[    0.011580] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[    0.011617] ASID allocator initialised with 65536 entries
[    0.025563] GPIO line 499 (asm_sel) hogged as output/low
[    0.040078] vgaarb: loaded
[    0.040275] SCSI subsystem initialized
[    0.040436] libata version 3.00 loaded.
[    0.040589] usbcore: registered new interface driver usbfs
[    0.040631] usbcore: registered new interface driver hub
[    0.040664] usbcore: registered new device driver usb
[    0.041814] clocksource: Switched to clocksource arch_sys_counter
[    0.047753] NET: Registered protocol family 2
[    0.048204] tcp_listen_portaddr_hash hash table entries: 512 (order: 1, 8192 bytes, linear)
[    0.048226] TCP established hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    0.048280] TCP bind hash table entries: 8192 (order: 5, 131072 bytes, linear)
[    0.048389] TCP: Hash tables configured (established 8192 bind 8192)
[    0.048495] UDP hash table entries: 512 (order: 2, 16384 bytes, linear)
[    0.048519] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes, linear)
[    0.048649] NET: Registered protocol family 1
[    0.049085] RPC: Registered named UNIX socket transport module.
[    0.049091] RPC: Registered udp transport module.
[    0.049096] RPC: Registered tcp transport module.
[    0.049101] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.049112] PCI: CLS 0 bytes, default 64
[    0.049620] hw perfevents: enabled with armv8_cortex_a53 PMU driver, 7 counters available
[    0.050577] Initialise system trusted keyrings
[    0.050692] workingset: timestamp_bits=46 max_order=18 bucket_order=0
[    0.057766] NFS: Registering the id_resolver key type
[    0.057789] Key type id_resolver registered
[    0.057795] Key type id_legacy registered
[    0.057836] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.069745] Key type asymmetric registered
[    0.069752] Asymmetric key parser 'x509' registered
[    0.069765] io scheduler mq-deadline registered
[    0.069771] io scheduler kyber registered
[    0.070337] mtk-tphy 1a0c4000.usb-phy: failed to get ref_clk(id-1)
[    0.074426] mt-pmic-pwrap 10001000.pwrap: unexpected interrupt int=0x1
[    0.138022] Serial: 8250/16550 driver, 3 ports, IRQ sharing disabled
[    0.139144] printk: console [ttyS0] disabled
[    0.139196] 11002000.serial: ttyS0 at MMIO 0x11002000 (irq = 118, base_baud = 1562500) is a 16550A
[    0.745269] printk: console [ttyS0] enabled
[    0.750001] 11004000.serial: ttyS1 at MMIO 0x11004000 (irq = 119, base_baud = 1562500) is a 16550A
[    0.759670] 1100c000.serial: ttyS2 at MMIO 0x1100c000 (irq = 125, base_baud = 17499995) is a MediaTek BTIF
[    0.769428] serial serial0: tty port ttyS2 registered
[    0.774959] mtk_rng 1020f000.rng: registered RNG driver
[    0.774976] hwrng: no data available
[    0.780369] cacheinfo: Unable to detect cache hierarchy for CPU 0
[    0.790200] ahci-mtk 1a200000.sata: supply ahci not found, using dummy regulator
[    0.797693] ahci-mtk 1a200000.sata: supply phy not found, using dummy regulator
[    0.805065] ahci-mtk 1a200000.sata: supply target not found, using dummy regulator
[    0.812789] ahci-mtk 1a200000.sata: forcing port_map 0x0 -> 0x1
[    0.818748] ahci-mtk 1a200000.sata: AHCI 0001.0300 32 slots 1 ports 6 Gbps 0x1 impl platform mode
[    0.827627] ahci-mtk 1a200000.sata: flags: ncq sntf pm clo only pmp pio slum part ccc apst 
[    0.836572] scsi host0: ahci-mtk
[    0.840086] ata1: SATA max UDMA/133 mmio [mem 0x1a200000-0x1a2010ff] port 0x100 irq 132
[    0.849784] libphy: Fixed MDIO Bus: probed
[    0.877221] libphy: mdio: probed
[    0.880680] mtk_soc_eth 1b100000.ethernet: generated random MAC address 22:01:28:53:17:08
[    0.889198] mtk_soc_eth 1b100000.ethernet eth0: mediatek frame engine at 0xffffffc010c20000, irq 134
[    0.898364] mtk_soc_eth 1b100000.ethernet: generated random MAC address 1e:d7:32:07:24:04
[    0.906804] mtk_soc_eth 1b100000.ethernet eth1: mediatek frame engine at 0xffffffc010c20000, irq 134
[    0.916069] usbcore: registered new interface driver catc
[    0.921494] usbcore: registered new interface driver kaweth
[    0.927070] pegasus: v0.9.3 (2013/04/25), Pegasus/Pegasus II USB Ethernet driver
[    0.934492] usbcore: registered new interface driver pegasus
[    0.940179] usbcore: registered new interface driver rtl8150
[    0.945873] usbcore: registered new interface driver r8152
[    0.951383] usbcore: registered new interface driver lan78xx
[    0.957081] usbcore: registered new interface driver asix
[    0.962506] usbcore: registered new interface driver ax88179_178a
[    0.968627] usbcore: registered new interface driver cdc_ether
[    0.974485] usbcore: registered new interface driver cdc_eem
[    0.980169] usbcore: registered new interface driver dm9601
[    0.985765] usbcore: registered new interface driver sr9700
[    0.991380] usbcore: registered new interface driver CoreChips
[    0.997247] usbcore: registered new interface driver smsc75xx
[    1.003029] usbcore: registered new interface driver smsc95xx
[    1.008799] usbcore: registered new interface driver gl620a
[    1.014395] usbcore: registered new interface driver net1080
[    1.020082] usbcore: registered new interface driver plusb
[    1.025594] usbcore: registered new interface driver rndis_host
[    1.031538] usbcore: registered new interface driver cdc_subset
[    1.037481] usbcore: registered new interface driver zaurus
[    1.043078] usbcore: registered new interface driver MOSCHIP usb-ethernet driver
[    1.050518] usbcore: registered new interface driver int51x1
[    1.056204] usbcore: registered new interface driver kalmia
[    1.061800] usbcore: registered new interface driver ipheth
[    1.067411] usbcore: registered new interface driver sierra_net
[    1.073355] usbcore: registered new interface driver cx82310_eth
[    1.079398] usbcore: registered new interface driver cdc_ncm
[    1.085081] usbcore: registered new interface driver huawei_cdc_ncm
[    1.091373] usbcore: registered new interface driver lg-vl600
[    1.097141] usbcore: registered new interface driver qmi_wwan
[    1.102912] usbcore: registered new interface driver cdc_mbim
[    1.108686] usbcore: registered new interface driver ch9200
[    1.118224] usbcore: registered new interface driver cdc_acm
[    1.123905] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
[    1.131955] usbcore: registered new interface driver cdc_wdm
[    1.137657] usbcore: registered new interface driver usb-storage
[    1.144257] rtc_mt7622 10212800.rtc: registered as rtc0
[    1.149510] rtc_mt7622 10212800.rtc: setting system clock to 2019-02-27T10:12:09 UTC (1551262329)
[    1.158494] i2c /dev entries driver
[    1.159339] ata1: SATA link down (SStatus 0 SControl 300)
[    1.162449] i2c-dev: adapter [i2c-mt65xx] registered as minor 0
[    1.173325] i2c i2c-0: adapter [i2c-mt65xx] registered
[    1.178486] i2c i2c-0: of_i2c: walking child nodes
[    1.183630] i2c-dev: adapter [i2c-mt65xx] registered as minor 1
[    1.189572] i2c i2c-1: adapter [i2c-mt65xx] registered
[    1.194730] i2c i2c-1: of_i2c: walking child nodes
[    1.200540] mtk-wdt 10212000.watchdog: Watchdog enabled (timeout=31 sec, nowayout=0)
[    1.237008] mtk-msdc 11240000.mmc: Got CD GPIO
[    1.265749] ledtrig-cpu: registered to indicate activity on CPUs
[    1.272373] usbcore: registered new interface driver usbhid
[    1.277978] usbhid: USB HID core driver
[    1.284047] NET: Registered protocol family 10
[    1.289631] Segment Routing with IPv6
[    1.293498] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    1.300190] NET: Registered protocol family 17
[    1.304859] 8021q: 802.1Q VLAN Support v1.8
[    1.309312] Loading compiled-in X.509 certificates
[    1.330934] mtk-msdc 11230000.mmc: phase: [map:fffffff] [maxlen:28] [final:9]
[    1.334855] mtk-pcie 1a143000.pcie: host bridge /pcie@1a143000 ranges:
[    1.344723] mtk-pcie 1a143000.pcie: Parsing ranges property...
[    1.350608] mmc1: host does not support reading read-only switch, assuming write-enable
[    1.358637] mtk-pcie 1a143000.pcie:      MEM 0x0020000000..0x0027ffffff -> 0x0020000000
[    1.358641] mmc0: new HS200 MMC card at address 0001
[    1.359962] mmcblk0: mmc0:0001 008G30 7.28 GiB 
[    1.371304] mmc1: new high speed SDHC card at address aaaa
[    1.372586] mmcblk0boot0: mmc0:0001 008G30 partition 1 4.00 MiB
[    1.378230] mmcblk1: mmc1:aaaa JULIE 14.8 GiB 
[    1.382588] mmcblk0boot1: mmc0:0001 008G30 partition 2 4.00 MiB
[    1.394094] mtk-pcie 1a143000.pcie: PCI host bridge to bus 0000:00
[    1.398058] mmcblk0rpmb: mmc0:0001 008G30 partition 3 4.00 MiB, chardev (250:0)
[    1.404213] pci_bus 0000:00: root bus resource [bus 00-ff]
[    1.417050]  mmcblk1: p1 p2
[    1.420783] pci_bus 0000:00: root bus resource [mem 0x20000000-0x27ffffff]
[    1.427686] pci_bus 0000:00: scanning bus
[    1.431779] pci 0000:00:00.0: [14c3:3258] type 01 class 0x060400
[    1.437947] pci 0000:00:00.0: reg 0x10: [mem 0x00000000-0x1ffffffff 64bit pref]
[    1.447233] pci_bus 0000:00: fixups for bus
[    1.451432] pci 0000:00:00.0: scanning [bus 00-00] behind bridge, pass 0
[    1.458138] pci 0000:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.466168] pci 0000:00:00.0: scanning [bus 00-00] behind bridge, pass 1
[    1.473092] pci_bus 0000:01: scanning bus
[    1.477215] pci 0000:01:00.0: [1ac1:089a] type 00 class 0x0000ff
[    1.483519] pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x00003fff 64bit pref]
[    1.490860] pci 0000:01:00.0: reg 0x18: [mem 0x00000000-0x000fffff 64bit pref]
[    1.499138] pci 0000:01:00.0: 2.000 Gb/s available PCIe bandwidth, limited by 2.5 GT/s PCIe x1 link at 0000:00:00.0 (capable of 4.000 Gb/s with 5.0 GT/s PCIe x1 link)
[    1.527355] pci_bus 0000:01: fixups for bus
[    1.531554] pci_bus 0000:01: bus scan returning with max=01
[    1.537137] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[    1.543770] pci_bus 0000:00: bus scan returning with max=01
[    1.549362] pci 0000:00:00.0: BAR 0: no space for [mem size 0x200000000 64bit pref]
[    1.557022] pci 0000:00:00.0: BAR 0: failed to assign [mem size 0x200000000 64bit pref]
[    1.565029] pci 0000:00:00.0: BAR 8: assigned [mem 0x20000000-0x201fffff]
[    1.571825] pci 0000:01:00.0: BAR 2: assigned [mem 0x20000000-0x200fffff 64bit pref]
[    1.579658] pci 0000:01:00.0: BAR 0: assigned [mem 0x20100000-0x20103fff 64bit pref]
[    1.587489] pci 0000:00:00.0: PCI bridge to [bus 01]
[    1.592465] pci 0000:00:00.0:   bridge window [mem 0x20000000-0x201fffff]
[    1.599608] mtk-pcie 1a145000.pcie: host bridge /pcie@1a145000 ranges:
[    1.606152] mtk-pcie 1a145000.pcie: Parsing ranges property...
[    1.611997] mtk-pcie 1a145000.pcie:      MEM 0x0028000000..0x002fffffff -> 0x0028000000
[    1.720211] mtk-pcie 1a145000.pcie: Port1 link down
[    1.725224] mtk-pcie 1a145000.pcie: PCI host bridge to bus 0001:00
[    1.731414] pci_bus 0001:00: root bus resource [bus 00-ff]
[    1.736905] pci_bus 0001:00: root bus resource [mem 0x28000000-0x2fffffff]
[    1.743783] pci_bus 0001:00: scanning bus
[    1.749132] pci_bus 0001:00: fixups for bus
[    1.753321] pci_bus 0001:00: bus scan returning with max=00
[    1.759063] mtk_hsdma 1b007000.dma-controller: Using 3 as missing dma-requests property
[    1.767314] mtk_hsdma 1b007000.dma-controller: MediaTek HSDMA driver registered
[    1.805882] libphy: dsa slave smi: probed
[    1.809988] mt7530 mdio-bus:00: nonfatal error -95 setting MTU on port 0
[    1.817539] mt7530 mdio-bus:00 wan (uninitialized): PHY [dsa-0.0:00] driver [Generic PHY] (irq=POLL)
[    1.827244] mt7530 mdio-bus:00: nonfatal error -95 setting MTU on port 1
[    1.834792] mt7530 mdio-bus:00 lan0 (uninitialized): PHY [dsa-0.0:01] driver [Generic PHY] (irq=POLL)
[    1.844466] mt7530 mdio-bus:00: nonfatal error -95 setting MTU on port 2
[    1.852016] mt7530 mdio-bus:00 lan1 (uninitialized): PHY [dsa-0.0:02] driver [Generic PHY] (irq=POLL)
[    1.861667] mt7530 mdio-bus:00: nonfatal error -95 setting MTU on port 3
[    1.869200] mt7530 mdio-bus:00 lan2 (uninitialized): PHY [dsa-0.0:03] driver [Generic PHY] (irq=POLL)
[    1.878840] mt7530 mdio-bus:00: nonfatal error -95 setting MTU on port 4
[    1.886432] mt7530 mdio-bus:00 lan3 (uninitialized): PHY [dsa-0.0:04] driver [Generic PHY] (irq=POLL)
[    1.896655] mt7530 mdio-bus:00: configuring for fixed/2500base-x link mode
[    1.907640] mt7530 mdio-bus:00: Link is Up - 2.5Gbps/Full - flow control rx/tx
[    1.915663] DSA: tree 0 setup
[    1.919415] xhci-mtk 1a0c0000.usb: xHCI Host Controller
[    1.924665] xhci-mtk 1a0c0000.usb: new USB bus registered, assigned bus number 1
[    1.933700] xhci-mtk 1a0c0000.usb: hcc params 0x01403198 hci version 0x96 quirks 0x0000000000210010
[    1.942804] xhci-mtk 1a0c0000.usb: irq 129, io mem 0x1a0c0000
[    1.949323] hub 1-0:1.0: USB hub found
[    1.953108] hub 1-0:1.0: 2 ports detected
[    1.957441] xhci-mtk 1a0c0000.usb: xHCI Host Controller
[    1.962679] xhci-mtk 1a0c0000.usb: new USB bus registered, assigned bus number 2
[    1.970083] xhci-mtk 1a0c0000.usb: Host supports USB 3.0 SuperSpeed
[    1.976412] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[    1.985001] hub 2-0:1.0: USB hub found
[    1.988779] hub 2-0:1.0: 1 port detected
[    1.993664] input: gpio-keys as /devices/platform/gpio-keys/input/input0
[    2.012905] EXT4-fs (mmcblk1p2): mounted filesystem without journal. Opts: (null)
[    2.020460] VFS: Mounted root (ext4 filesystem) readonly on device 179:18.
[    2.036586] devtmpfs: mounted
[    2.039716] Freeing unused kernel memory: 320K
[    2.044212] Run /sbin/init as init process
[    2.048314]   with arguments:                                                                                      
[    2.051284]     /sbin/init                                                                                         
[    2.053993]     earlyprintk                                                                                        
[    2.056779]   with environment:                                                                                    
[    2.059921]     HOME=/                                                                                             
[    2.062284]     TERM=linux
[    2.064982]     board=bpi-r64
[    2.067952]     service=linux
[    2.149477] random: fast init done
[    2.393114] systemd[1]: Failed to insert module 'autofs4': No such file or directory
[    2.420580] random: systemd: uninitialized urandom read (16 bytes read)
[    2.428816] random: systemd: uninitialized urandom read (16 bytes read)
[    2.450269] systemd[1]: systemd 229 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ -LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD -ID)
[    2.468730] systemd[1]: Detected architecture arm64.
[    2.500430] systemd[1]: Set hostname to <bpi-iot-ros-ai>.
[    2.519909] random: systemd: uninitialized urandom read (16 bytes read)
[    2.785155] systemd[1]: Listening on Journal Audit Socket.
[    2.806320] systemd[1]: Created slice System Slice.
[    2.826237] systemd[1]: Created slice system-serial\x2dgetty.slice.
[    2.845902] systemd[1]: Reached target Encrypted Volumes.
[    2.865881] systemd[1]: Reached target Swap.
[    2.882216] systemd[1]: Listening on Journal Socket.
[    2.903740] systemd[1]: Starting Set console keymap...
[    3.495596] EXT4-fs (mmcblk1p2): warning: mounting unchecked fs, running e2fsck is recommended
[    3.510364] EXT4-fs (mmcblk1p2): re-mounted. Opts: commit=600,errors=remount-ro
[    4.254333] systemd-journald[180]: Received request to flush runtime journal from PID 1
[    4.285210] Bluetooth: Core ver 2.22
[    4.285274] NET: Registered protocol family 31
[    4.285278] Bluetooth: HCI device and connection manager initialized
[    4.285296] Bluetooth: HCI socket layer initialized
[    4.285304] Bluetooth: L2CAP socket layer initialized
[    4.285320] Bluetooth: SCO socket layer initialized
[    4.658474] Bluetooth: hci0: Device setup in 236501 usecs
[    5.599456] process '/usr/bin/mawk' started with executable stack
[    6.004554] random: crng init done
[    6.004567] random: 7 urandom warning(s) missed due to ratelimiting
[    7.183596] mtk_soc_eth 1b100000.ethernet eth0: configuring for fixed/2500base-x link mode
[    7.183669] mtk_mac_config: G0 mcr 105833b
[    7.183698] mtk_mac_config: G0 mcr 105833b
[    7.183712] mtk_soc_eth 1b100000.ethernet eth0: Link is Up - 2.5Gbps/Full - flow control rx/tx
[    7.208961] mtk_soc_eth 1b100000.ethernet eth1: configuring for fixed/rgmii link mode
[    7.208993] mtk_mac_config: G1 mcr 105833b
[    7.209028] mtk_mac_config: G1 mcr 105833b
[    7.209042] mtk_soc_eth 1b100000.ethernet eth1: Link is Up - 1Gbps/Full - flow control rx/tx
root@bpi-iot-ros-ai:~# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1504 qdisc pfifo_fast state UP group default qlen 1000
    link/ether 22:01:28:53:17:08 brd ff:ff:ff:ff:ff:ff
    inet6 fe80::a329:58e3:9b1f:b100/64 scope link 
       valid_lft forever preferred_lft forever
3: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1536 qdisc pfifo_fast state UP group default qlen 1000
    link/ether 1e:d7:32:07:24:04 brd ff:ff:ff:ff:ff:ff
    inet6 fe80::f897:be93:54d7:19c/64 scope link 
       valid_lft forever preferred_lft forever
4: sit0@NONE: <NOARP> mtu 1480 qdisc noop state DOWN group default qlen 1000
    link/sit 0.0.0.0 brd 0.0.0.0
5: wan@eth0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop switchid 00000000 state DOWN group default qlen 1000
    link/ether 22:01:28:53:17:08 brd ff:ff:ff:ff:ff:ff
6: lan0@eth0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop switchid 00000000 state DOWN group default qlen 1000
    link/ether 22:01:28:53:17:08 brd ff:ff:ff:ff:ff:ff
7: lan1@eth0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop switchid 00000000 state DOWN group default qlen 1000
    link/ether 22:01:28:53:17:08 brd ff:ff:ff:ff:ff:ff
8: lan2@eth0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop switchid 00000000 state DOWN group default qlen 1000
    link/ether 22:01:28:53:17:08 brd ff:ff:ff:ff:ff:ff
9: lan3@eth0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop switchid 00000000 state DOWN group default qlen 1000
    link/ether 22:01:28:53:17:08 brd ff:ff:ff:ff:ff:ff

I wonder about this

mt7530 mdio-bus:00: nonfatal error -95 setting MTU on port x

But it seems interface is created. Do you set mtu somewhere?

You have to bring up eth0 and configure ip settings on lanx/wan or create a bridge over lanports and configure this

I have not set up anything.

I have followed the following steps

  1. Loaded SD card with a 4.19 img provided by Bananapi
  2. copied the uImage_nodt and updated the image name in uENV.txt in BPI-BOOT
  3. copied the bpi-r64.dtb in BPI-BOOT/bananapi/bpi-r64/linux/dtb as mt7622-bananapi-bpi-r64.dtb
  4. copied the 5.7 main source in BPI-ROOT/usr/src/linux-headers-5.7.0-bpi-r64 5.copied etc/modprobe.d/cryptodev.conf in BPI-ROOT/etc/modprobe.d/
  5. copied lib/firmware/mediatek/ in BPI-ROOT/lib/firmware/
  6. copied lib/modules/5.7.0-bpi-r64/ in BPI-ROOT/lib/modules/

This is the same process which I was using to update from 4.19 to 5.4-main

Network setup has to be done in your os…it is not automaticly configured by kernel. I guess your previous image has a configfile for it anywhere. Maybe it is aborted because of the mtu-error.

I wonder why mtu comes up because i have already included a fix for mtu setting in 5.7-main

https://github.com/frank-w/BPI-R2-4.14/commit/ddd3937cebffbe929f95a135e0c1b421f87d2d47

You can do it temporary for testing:

ip link set eth0 up
ip addr add 192.168.0.10/24 broadcast 192.168.0.255 dev lan0
ip link set lan0 up