OpenWrt snapshots on the BPI-R64 (BananaPi)

Hi!

I would like to use the latest OpenWRT snapshots on the BPI-R64 (BananaPi-R64, MT7622, http://wiki.banana-pi.org/Banana_Pi_BPI-R64). Does anyone have experience with the snapshots from OpenWRT? R64 seems not to be supported officially by OpenWRT yet.

This link provides snapshots from OpenWRT:
https://downloads.openwrt.org/snapshots/targets/mediatek/mt7622/

My questions:

  • what is the current status of these snapshots?
  • there is a eMMC package, but the partitioning of eMMC is not recognized by this kernel on my R64
  • which Kernel parameter do I need to use
  • is mtd needed and is it working at the moment with these snapshots? (see bootlog below)
  • which partitioning is expected by these snapshots? is it mmcblk0p5 (kernel), mmcblk0p6 (recovery) and mmcblk0p7 (userdata)

Boot log (removed a few lines from the GPT listing in order to stay below 32k characters):

F0: 102B 0000
F5: 480A 0031
F5: 480A 0031
F3: 0000 0000
V0: 0000 0000 [0001]
00: 0000 0000
BP: 0000 0041 [0000]
G0: 0190 0000
T0: 0000 0396 [000F]
Jump to BL

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

[BLDR] Build Time: 20190927-141930
==== Dump RGU Reg ========
RGU MODE:     4D
RGU LENGTH:   FFE0
RGU STA:      0
RGU INTERVAL: FFF
RGU SWSYSRST: 8000
==== Dump RGU Reg End ====
RGU: g_rgu_satus:0
 mtk_wdt_mode_config  mode value=10, tmp:22000010
PL P ON
WDT does not trigger reboot
WDT NONRST=0x20000000
WDT IRQ_EN=0x340003
RGU mtk_wdt_init:MTK_WDT_DEBUG_CTL(590200F3)
[EMI] MDL number = 2
[EMI] DRAMC calibration start

[EMI] DRAMC calibration end

[EMI]rank0 size: 0x40000000
[MEM] complex R/W mem test pass
RAM_CONSOLE wdt status (0x0)=0x0
[mmc_init]: msdc0 start mmc_init_host() in PL...
[msdc_init]: msdc0 Host controller intialization start 
[SD0] Pins mode(1), none(0), down(1), up(2), keep(3)
[SD0] Pins mode(2), none(0), down(1), up(2), keep(3)
[info][msdc_set_startbit 1127] read data start bit at rising edge
[info][msdc_config_clksrc] input clock is 400000kHz
[SD0] Bus Width: 1
[info][msdc_config_clksrc] input clock is 400000kHz
[info][msdc_set_startbit 1127] read data start bit at rising edge
[SD0] SET_CLK(260kHz): SCLK(259kHz) MODE(0) DDR(0) DIV(385) DS(0) RS(0)
[msdc_init]: msdc0 Host controller intialization done
[mmc_init]: msdc0 start mmc_init_card() in PL...
[mmc_init_card]: start
[info][msdc_config_clksrc] input clock is 400000kHz
[info][msdc_set_startbit 1127] read data start bit at rising edge
[SD0] SET_CLK(260kHz): SCLK(259kHz) MODE(0) DDR(0) DIV(385) DS(0) RS(0)
[SD0] Bus Width: 8
[SD0] Switch to High-Speed mode!
[info][msdc_config_clksrc] input clock is 400000kHz
[info][msdc_set_startbit 1127] read data start bit at rising edge
[SD0] SET_CLK(260kHz): SCLK(259kHz) MODE(2) DDR(1) DIV(192) DS(0) RS(0)
[SD0] Bus Width: 8
[SD0] Size: 7456 MB, Max.Speed: 52000 kHz, blklen(512), nblks(15269888), ro(0)
[mmc_init_mem_card 3140][SD0] Initialized, eMMC50
before host->cur_bus_clk(259740)
[info][msdc_config_clksrc] input clock is 400000kHz
[info][msdc_set_startbit 1127] read data start bit at rising edge
[SD0] SET_CLK(52000kHz): SCLK(50000kHz) MODE(2) DDR(1) DIV(1) DS(0) RS(0)
host->cur_bus_clk(50000000)
[mmc_init_card]: finish successfully
[PLFM] Init Boot Device: OK(0)
[GPT_PL](BPI)Parsing Primary GPT now...
[GPT_PL][0]name=tee1, part_id=8, start_sect=0x400, nr_sects=0x200
[GPT_PL][1]name=lk, part_id=8, start_sect=0x600, nr_sects=0x400
[GPT_PL][2]name=nvram, part_id=8, start_sect=0xA00, nr_sects=0x400
[GPT_PL][3]name=rf, part_id=8, start_sect=0xE00, nr_sects=0x200
[GPT_PL][4]name=boot, part_id=8, start_sect=0x1000, nr_sects=0x14000
[GPT_PL][5]name=rootfs, part_id=8, start_sect=0x15000, nr_sects=0x14000
[GPT_PL][6]name=rootfs_data, part_id=8, start_sect=0x29000, nr_sects=0x800000
[GPT_PL][7]name=, part_id=8, start_sect=0x0, nr_sects=0x1
[GPT_PL][8]name=, part_id=8, start_sect=0x0, nr_sects=0x1
[GPT_PL][9]name=, part_id=8, start_sect=0x0, nr_sects=0x1
[GPT_PL][10]name=, part_id=8, start_sect=0x0, nr_sects=0x1
[GPT_PL][11]name=, part_id=8, start_sect=0x0, nr_sects=0x1
[GPT_PL][12]name=, part_id=8, start_sect=0x0, nr_sects=0x1
...
[GPT_PL]Success to find valid GPT.

[PART] blksz: 512B
[PART] [0x0000000000080000-0x00000000000BFFFF] "tee1" (512 blocks) 
[PART] [0x00000000000C0000-0x000000000013FFFF] "lk" (1024 blocks) 
[PART] [0x0000000000140000-0x00000000001BFFFF] "nvram" (1024 blocks) 
[PART] [0x00000000001C0000-0x00000000001FFFFF] "rf" (512 blocks) 
[PART] [0x0000000000200000-0x00000000029FFFFF] "boot" (81920 blocks) 
[PART] [0x0000000002A00000-0x00000000051FFFFF] "rootfs" (81920 blocks) 
[PART] [0x0000000005200000-0x00000001051FFFFF] "rootfs_data" (8388608 blocks) 
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks) 
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks) 
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks) 
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks) 
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks) 
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks) 
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks) 
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks) 
...
[PART] [0x00000062CACAE800-0x0000012D938CE7FF] "unknown" (1701077248 blocks) 

Device APC domain init setup:

Domain Setup (0x0)
Domain Setup (0x0)
Device APC domain after setup:
Domain Setup (0x0)
Domain Setup (0x0)
[get_part] part->nr_sects=512, part->info->name=tee1
[get_part] part->nr_sects=1024, part->info->name=lk
[PART] Image with part header
[PART] name : LK
[PART] addr : FFFFFFFFh mode : -1
[PART] size : 364756
[PART] magic: 58881688h

[PART] load "lk" from 0x00000000000C0200 (dev) to 0x41E00000 (mem) [SUCCESS]
[PART] load speed: 11490KB/s, 364756 bytes, 31ms
load lk (ret=0)
[get_part] part->nr_sects=512, part->info->name=tee1
mmc0 is current device
mmc0 operation
dev_num = 0

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

MMC read: dev # 0, block # 4096, count 6538 ... 6538 blocks read: OK
bootm flag=0, states=70f
## Loading kernel from FIT Image at 4007ff28 ...
   Using 'config@1' configuration
   Trying 'kernel@1' kernel subimage
     Description:  ARM64 OpenWrt Linux-5.4.66
     Type:         Kernel Image
     Compression:  lzma compressed
     Data Start:   0x40080010
     Data Size:    3320305 Bytes = 3.2 MiB
     Architecture: AArch64
     OS:           Linux
     Load Address: 0x44080000
     Entry Point:  0x44080000
     Hash algo:    crc32
     Hash value:   25ad4cda
     Hash algo:    sha1
     Hash value:   d898bf2047d8d32f0656ab2c3bfed20b18278cb7
   Verifying Hash Integrity ... crc32+ sha1+ OK
## Loading fdt from FIT Image at 4007ff28 ...
   Using 'config@1' configuration
   Trying 'fdt@1' fdt subimage
     Description:  ARM64 OpenWrt bpi_bananapi-r64-rootdisk device tree blob
     Type:         Flat Device Tree
     Compression:  uncompressed
     Data Start:   0x403aab50
     Data Size:    24905 Bytes = 24.3 KiB
     Architecture: AArch64
     Hash algo:    crc32
     Hash value:   69b35a06
     Hash algo:    sha1
     Hash value:   95564a499e763aa87ee377deb97d3575be3545e2
   Verifying Hash Integrity ... crc32+ sha1+ OK
   Booting using the fdt blob at 0x403aab50
   Uncompressing Kernel Image ... OK
   Loading Device Tree to 6bff6000, end 6bfff148 ... OK

Starting kernel ...

[ATF][    22.587539]save kernel info
[ATF][    22.590740]Kernel_EL2
[ATF][    22.593497]Kernel is 64Bit
[ATF][    22.596684]pc=0x44080000, r0=0x6bff6000, r1=0x0
INFO:    BL3-1: Preparing for EL3 exit to normal world, Kernel
INFO:    BL3-1: Next image address = 0x44080000
INFO:    BL3-1: Next image spsr = 0x3c9
[ATF][    22.614952]el3_exit
[    0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
[    0.000000] Linux version 5.4.66 (builder@buildhost) (gcc version 8.4.0 (OpenWrt GCC 8.4.0 r14528-71
90fb2da4)) #0 SMP Sat Sep 19 12:39:29 2020
[    0.000000] Machine model: Bananapi BPI-R64
[    0.000000] earlycon: uart8250 at MMIO32 0x0000000011002000 (options '')
[    0.000000] printk: bootconsole [uart8250] enabled
[    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 s43800 r8192 d29928 u81920
[    0.000000] pcpu-alloc: s43800 r8192 d29928 u81920 alloc=20*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1 
[    0.000000] Detected VIPT I-cache on CPU0
[    0.000000] CPU features: detected: ARM erratum 845719
[    0.000000] CPU features: kernel page table isolation disabled by kernel configuration
[    0.000000] CPU features: detected: ARM erratum 843419
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 258000
[    0.000000] Kernel command line: earlycon=uart8250,mmio32,0x11002000 console=ttyS0,115200n1 swiotlb=
512 root=/dev/mmcblk0p7 rootfstype=squashfs,f2fs
[    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: 1018060K/1048384K available (6846K kernel code, 430K rwdata, 1968K rodata, 384K 
init, 300K bss, 30324K reserved, 0K cma-reserved)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[    0.000000] rcu: Hierarchical RCU implementation.
[    0.000000] rcu:     CONFIG_RCU_FANOUT set to non-default value of 32.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 25 jiffies.
[    0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[    0.000000] GIC: GICv2 detected, but range too small and irqchip.gicv2_force_probe not set
[    0.000000] random: get_random_bytes called from start_kernel+0x2d4/0x434 with crng_init=0
[    0.000000] arch_timer: cp15 timer(s) running at 12.50MHz (phys).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x2e2049cda, max_idle_
ns: 440795202628 ns
[    0.000003] sched_clock: 56 bits at 12MHz, resolution 80ns, wraps every 4398046511080ns
[    0.008480] Calibrating delay loop (skipped), value calculated using timer frequency.. 25.00 BogoMIP
S (lpj=50000)
[    0.019119] pid_max: default: 32768 minimum: 301
[    0.023984] Mount-cache hash table entries: 2048 (order: 2, 16384 bytes, linear)
[    0.031654] Mountpoint-cache hash table entries: 2048 (order: 2, 16384 bytes, linear)
[    0.040639] ASID allocator initialised with 65536 entries
[    0.046292] rcu: Hierarchical SRCU implementation.
[    0.051533] smp: Bringing up secondary CPUs ...
[    0.056552] Detected VIPT I-cache on CPU1
[    0.056589] CPU1: Booted secondary processor 0x0000000001 [0x410fd034]
[    0.056642] smp: Brought up 1 node, 2 CPUs
[    0.071797] SMP: Total of 2 processors activated.
[    0.076668] CPU features: detected: 32-bit EL0 Support
[    0.081990] CPU features: detected: CRC32 instructions
[    0.087372] CPU: All CPU(s) started at EL2
[    0.091619] alternatives: patching kernel code
[    0.099315] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 764504178510
0000 ns
[    0.109431] futex hash table entries: 512 (order: 3, 32768 bytes, linear)
[    0.116555] pinctrl core: initialized pinctrl subsystem
[    0.122508] NET: Registered protocol family 16
[    0.127307] DMA: preallocated 256 KiB pool for atomic allocations
[    0.144460] GPIO line 499 (asm_sel) hogged as output/high
[    0.161622] SCSI subsystem initialized
[    0.166001] libata version 3.00 loaded.
[    0.170229] usbcore: registered new interface driver usbfs
[    0.175947] usbcore: registered new interface driver hub
[    0.181485] usbcore: registered new device driver usb
[    0.187178] workqueue: max_active 576 requested for napi_workq is out of range, clamping between 1 a
nd 512
[    0.198045] Bluetooth: Core ver 2.22
[    0.201784] NET: Registered protocol family 31
[    0.206386] Bluetooth: HCI device and connection manager initialized
[    0.212974] Bluetooth: HCI socket layer initialized
[    0.218026] Bluetooth: L2CAP socket layer initialized
[    0.223263] Bluetooth: SCO socket layer initialized
[    0.228488] clocksource: Switched to clocksource arch_sys_counter
[    0.235281] thermal_sys: Registered thermal governor 'fair_share'
[    0.235284] thermal_sys: Registered thermal governor 'bang_bang'
[    0.241606] thermal_sys: Registered thermal governor 'step_wise'
[    0.247830] thermal_sys: Registered thermal governor 'user_space'
[    0.254052] thermal_sys: Registered thermal governor 'power_allocator'
[    0.260630] NET: Registered protocol family 2
[    0.272222] tcp_listen_portaddr_hash hash table entries: 512 (order: 1, 8192 bytes, linear)
[    0.280898] TCP established hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    0.288981] TCP bind hash table entries: 8192 (order: 5, 131072 bytes, linear)
[    0.296570] TCP: Hash tables configured (established 8192 bind 8192)
[    0.303243] UDP hash table entries: 512 (order: 2, 16384 bytes, linear)
[    0.310114] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes, linear)
[    0.317508] NET: Registered protocol family 1
[    0.322037] PCI: CLS 0 bytes, default 64
[    0.326816] workingset: timestamp_bits=46 max_order=18 bucket_order=0
[    0.336278] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.342347] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Ha
t, Inc.
[    0.364571] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 250)
[    0.372700] mtk-tphy 1a0c4000.usb-phy: failed to get ref_clk(id-1)
[    0.382246] mt-pmic-pwrap 10001000.pwrap: unexpected interrupt int=0x1
[    0.402968] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[    0.411425] printk: console [ttyS0] disabled
[    0.436202] 11002000.serial: ttyS0 at MMIO 0x11002000 (irq = 118, base_baud = 1562500) is a ST16650V
2
[    0.445771] printk: console [ttyS0] enabled
[    0.445771] printk: console [ttyS0] enabled
[    0.454138] printk: bootconsole [uart8250] disabled
[    0.454138] printk: bootconsole [uart8250] disabled
[    0.484603] 11004000.serial: ttyS1 at MMIO 0x11004000 (irq = 119, base_baud = 1562500) is a ST16650V
2
[    0.494291] 1100c000.serial: ttyS2 at MMIO 0x1100c000 (irq = 125, base_baud = 17499995) is a MediaTe
k BTIF
[    0.504018] serial serial0: tty port ttyS2 registered
[    0.509346] mtk_rng 1020f000.rng: registered RNG driver
[    0.509479] random: fast init done
[    0.514711] cacheinfo: Unable to detect cache hierarchy for CPU 0
[    0.518113] random: crng init done
[    0.524076] Loading iSCSI transport class v2.0-870.
[    0.534057] libphy: Fixed MDIO Bus: probed
[    0.561592] libphy: mdio: probed
[    0.565014] mtk_soc_eth 1b100000.ethernet: generated random MAC address 7e:aa:c6:e3:cc:f7
[    0.573456] mtk_soc_eth 1b100000.ethernet eth0: mediatek frame engine at 0xffffffc0115e0000, irq 133
[    0.582613] mtk_soc_eth 1b100000.ethernet: generated random MAC address 62:1d:37:1c:6a:c5
[    0.590986] mtk_soc_eth 1b100000.ethernet eth1: mediatek frame engine at 0xffffffc0115e0000, irq 133
[    0.601033] rtc_mt7622 10212800.rtc: registered as rtc0
[    0.606519] mtk-thermal 1100b000.thermal: Device not calibrated, using default calibration values
[    0.615715] mtk-wdt 10212000.watchdog: Watchdog enabled (timeout=31 sec, nowayout=0)
[    0.623544] Bluetooth: HCI UART driver ver 2.3
[    0.627986] Bluetooth: HCI UART protocol H4 registered
[    0.633119] Bluetooth: HCI UART protocol BCSP registered
[    0.638425] Bluetooth: HCI UART protocol ATH3K registered
[    0.643874] Bluetooth: HCI UART protocol Broadcom registered
[    0.649546] Bluetooth: HCI UART protocol QCA registered
[    0.655622] bluetooth hci0: Direct firmware load for mediatek/mt7622pr2h.bin failed with error -2
[    0.664607] bluetooth hci0: Falling back to sysfs fallback for: mediatek/mt7622pr2h.bin
[    0.680853] mtk-msdc 11240000.mmc: Got CD GPIO
[    0.710523] NET: Registered protocol family 10
[    0.715586] Segment Routing with IPv6
[    0.719300] NET: Registered protocol family 17
[    0.723766] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your sc
ripts to load br_netfilter if you need this.
[    0.736802] 8021q: 802.1Q VLAN Support v1.8
[    0.751037] mtk-pcie 1a143000.pcie: host bridge /pcie@1a143000 ranges:
[    0.757594] mtk-pcie 1a143000.pcie: Parsing ranges property...
[    0.763430] mtk-pcie 1a143000.pcie:   MEM 0x20000000..0x27ffffff -> 0x20000000
[    0.801733] mtk-msdc 11230000.mmc: phase: [map:1fffffff] [maxlen:29] [final:9]
[    0.809733] mmc0: new HS200 MMC card at address 0001
[    0.870863] mtk-pcie 1a143000.pcie: Port0 link down
[    0.875862] mtk-pcie 1a143000.pcie: PCI host bridge to bus 0000:00
[    0.882046] pci_bus 0000:00: root bus resource [bus 00-ff]
[    0.887527] pci_bus 0000:00: root bus resource [mem 0x20000000-0x27ffffff]
[    0.894396] pci_bus 0000:00: scanning bus
[    0.899521] pci_bus 0000:00: fixups for bus
[    0.903701] pci_bus 0000:00: bus scan returning with max=00
[    0.909471] mtk-pcie 1a145000.pcie: host bridge /pcie@1a145000 ranges:
[    0.916001] mtk-pcie 1a145000.pcie: Parsing ranges property...
[    0.921836] mtk-pcie 1a145000.pcie:   MEM 0x28000000..0x2fffffff -> 0x28000000
[    1.029182] mtk-pcie 1a145000.pcie: Port1 link down
[    1.034144] mtk-pcie 1a145000.pcie: PCI host bridge to bus 0001:00
[    1.040325] pci_bus 0001:00: root bus resource [bus 00-ff]
[    1.045808] pci_bus 0001:00: root bus resource [mem 0x28000000-0x2fffffff]
[    1.052677] pci_bus 0001:00: scanning bus
[    1.057732] pci_bus 0001:00: fixups for bus
[    1.061912] pci_bus 0001:00: bus scan returning with max=00
[    1.067600] mtk_hsdma 1b007000.dma-controller: Using 3 as missing dma-requests property
[    1.075767] mtk_hsdma 1b007000.dma-controller: MediaTek HSDMA driver registered
[    1.120481] libphy: dsa slave smi: probed
[    1.125354] mt7530 mdio-bus:1f wan (uninitialized): PHY [dsa-0.0:00] driver [Generic PHY]
[    1.134744] mt7530 mdio-bus:1f lan0 (uninitialized): PHY [dsa-0.0:01] driver [Generic PHY]
[    1.144143] mt7530 mdio-bus:1f lan1 (uninitialized): PHY [dsa-0.0:02] driver [Generic PHY]
[    1.153525] mt7530 mdio-bus:1f lan2 (uninitialized): PHY [dsa-0.0:03] driver [Generic PHY]
[    1.162892] mt7530 mdio-bus:1f lan3 (uninitialized): PHY [dsa-0.0:04] driver [Generic PHY]
[    1.171814] mt7530 mdio-bus:1f: configuring for fixed/2500base-x link mode
[    1.179548] mt7530 mdio-bus:1f: Link is Up - 2.5Gbps/Full - flow control rx/tx
[    1.180095] DSA: tree 0 setup
[    1.190255] xhci-mtk 1a0c0000.usb: xHCI Host Controller
[    1.195492] xhci-mtk 1a0c0000.usb: new USB bus registered, assigned bus number 1
[    1.204539] xhci-mtk 1a0c0000.usb: hcc params 0x01403198 hci version 0x96 quirks 0x0000000000210010
[    1.213617] xhci-mtk 1a0c0000.usb: irq 129, io mem 0x1a0c0000
[    1.219769] hub 1-0:1.0: USB hub found
[    1.223535] hub 1-0:1.0: 2 ports detected
[    1.227754] xhci-mtk 1a0c0000.usb: xHCI Host Controller
[    1.232988] xhci-mtk 1a0c0000.usb: new USB bus registered, assigned bus number 2
[    1.240385] xhci-mtk 1a0c0000.usb: Host supports USB 3.0 SuperSpeed
[    1.246679] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[    1.254990] hub 2-0:1.0: USB hub found
[    1.258751] hub 2-0:1.0: 1 port detected
[    1.263102] rtc_mt7622 10212800.rtc: setting system clock to 2000-01-01T00:00:01 UTC (946684801)
[    1.272681] /dev/root: Can't open blockdev
[    1.276779] VFS: Cannot open root device "mmcblk0p7" or unknown-block(0,0): error -6
[    1.284515] Please append a correct "root=" boot option; here are the available partitions:
[    1.292861] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[    1.301116] SMP: stopping secondary CPUs
[    1.305030] Kernel Offset: disabled
[    1.308509] CPU features: 0x0002,04002004
[    1.312508] Memory Limit: none
[    1.315554] Rebooting in 1 seconds..

BR Michael

Hi Michael,

Could you sort out the boot issue? I am trying the latest snapshot with 5.4.94 kernel, and I have the same boot crash.

Thanks

I've been using openwrt master snapshots for a few days now, I managed to even install my AX210 intel NIC (with a few hacks, more on that later), but I see, however, one serious issue:
the 2nd pcie slot doesn't work.
According to the DTS files of bananapi R64, the slot won't work when GPIO 90 is toggled. You'll connect the SATA controller instead. But I have no clue at all where this toggling happens.
Someone who could tell me where I should toggle GPIO 90? and will this work without PCIe hotplug in the kernel?

if anyone would have a clue about how I should force this, I'd be happy to know:
I still can't enable the second PCIe slot, even with a minipcie card of only 5W!
I disabled the sata overlay in u-boot, adjusting this file:

package/boot/uboot-mediatek/patches/404-add-bananapi_bpi-r64_defconfigs.patch

and removed overlay registration from here:

target/linux/mediatek/image/mt7622.mk

finally removed the sata dts overlay from this patch:

target/linux/mediatek/patches-5.10/900-dts-mt7622-bpi-r64-aliases-for-dtoverlay.patch

but still not working ... anything else I could try to make it work?

the pci setup part of dmesg shows:

Thu Mar 17 16:14:01 2022 kern.info kernel: [    1.064933] pstore: Using crash dump compression: deflate
Thu Mar 17 16:14:01 2022 kern.info kernel: [    1.079969] mtk-pcie 1a143000.pcie: host bridge /pcie@1a143000 ranges:
Thu Mar 17 16:14:01 2022 kern.debug kernel: [    1.086534] mtk-pcie 1a143000.pcie: Parsing ranges property...
Thu Mar 17 16:14:01 2022 kern.info kernel: [    1.092372] mtk-pcie 1a143000.pcie:      MEM 0x0020000000..0x0027ffffff -> 0x0020000000
Thu Mar 17 16:14:01 2022 kern.info kernel: [    1.141872] mtk-msdc 11230000.mmc: phase: [map:c1ffffff] [maxlen:25] [final:8]
Thu Mar 17 16:14:01 2022 kern.info kernel: [    1.150535] mmc0: new HS200 MMC card at address 0001
Thu Mar 17 16:14:01 2022 kern.info kernel: [    1.157247] mmcblk0: mmc0:0001 008G30 7.28 GiB
Thu Mar 17 16:14:01 2022 kern.info kernel: [    1.162699] mmcblk0boot0: mmc0:0001 008G30 partition 1 4.00 MiB
Thu Mar 17 16:14:01 2022 kern.info kernel: [    1.169576] mmcblk0boot1: mmc0:0001 008G30 partition 2 4.00 MiB
Thu Mar 17 16:14:01 2022 kern.info kernel: [    1.175887] mmcblk0rpmb: mmc0:0001 008G30 partition 3 4.00 MiB, chardev (250:0)
Thu Mar 17 16:14:01 2022 kern.debug kernel: [    1.187388] FIT: Default configuration: "config-1" (OpenWrt bananapi_bpi-r64)
Thu Mar 17 16:14:01 2022 kern.debug kernel: [    1.194539] FIT:           kernel sub-image 0x00001000..0x00501b36 "kernel-1" (ARM64 OpenWrt Linux-5.10.104)
Thu Mar 17 16:14:01 2022 kern.info kernel: [    1.200668] mtk-pcie 1a143000.pcie: Port0 link down
Thu Mar 17 16:14:01 2022 kern.debug kernel: [    1.204480] FIT:          flat_dt sub-image 0x00502000..0x00509d89 "fdt-1" (ARM64 OpenWrt bananapi_bpi-r64 device tree blob)
Thu Mar 17 16:14:01 2022 kern.info kernel: [    1.209492] mtk-pcie 1a143000.pcie: PCI host bridge to bus 0000:00
Thu Mar 17 16:14:01 2022 kern.debug kernel: [    1.220630] FIT:          flat_dt sub-image 0x0050a000..0x0050a11a "fdt-mt7622-bananapi-bpi-r64-pcie1" (ARM64 OpenWrt bananapi_bpi-r64 device tree overlay mt7622-bananapi-bpi-r64-pcie1)
Thu Mar 17 16:14:01 2022 kern.info kernel: [    1.226787] pci_bus 0000:00: root bus resource [bus 00-ff]
Thu Mar 17 16:14:01 2022 kern.debug kernel: [    1.243384] FIT:       filesystem sub-image 0x0050b000..0x01c0afff "rootfs-1" (ARM64 OpenWrt bananapi_bpi-r64 rootfs)
Thu Mar 17 16:14:01 2022 kern.info kernel: [    1.248868] pci_bus 0000:00: root bus resource [mem 0x20000000-0x27ffffff]
Thu Mar 17 16:14:01 2022 kern.debug kernel: [    1.259537] FIT: selecting configured loadable "rootfs-1" to be root filesystem
Thu Mar 17 16:14:01 2022 kern.debug kernel: [    1.266398] pci_bus 0000:00: scanning bus
Thu Mar 17 16:14:01 2022 kern.info kernel: [    1.273723]  mmcblk0: p1 p2 p3 p4 p65(rootfs-1) p66(rootfs_data) p5 p6 p128
Thu Mar 17 16:14:01 2022 kern.debug kernel: [    1.278944] pci_bus 0000:00: fixups for bus
Thu Mar 17 16:14:01 2022 kern.debug kernel: [    1.288853] pci_bus 0000:00: bus scan returning with max=00
Thu Mar 17 16:14:01 2022 kern.info kernel: [    1.295221] mtk-pcie 1a145000.pcie: host bridge /pcie@1a145000 ranges:
Thu Mar 17 16:14:01 2022 kern.debug kernel: [    1.301791] mtk-pcie 1a145000.pcie: Parsing ranges property...
Thu Mar 17 16:14:01 2022 kern.info kernel: [    1.307645] mtk-pcie 1a145000.pcie:      MEM 0x0028000000..0x002fffffff -> 0x0028000000
Thu Mar 17 16:14:01 2022 kern.info kernel: [    1.366742] mtk-pcie 1a145000.pcie: PCI host bridge to bus 0001:00
Thu Mar 17 16:14:01 2022 kern.info kernel: [    1.372933] pci_bus 0001:00: root bus resource [bus 00-ff]
Thu Mar 17 16:14:01 2022 kern.info kernel: [    1.378431] pci_bus 0001:00: root bus resource [mem 0x28000000-0x2fffffff]
Thu Mar 17 16:14:01 2022 kern.debug kernel: [    1.385299] pci_bus 0001:00: scanning bus
Thu Mar 17 16:14:01 2022 kern.info kernel: [    1.389483] pci 0001:00:01.0: [14c3:3258] type 01 class 0x060400
Thu Mar 17 16:14:01 2022 kern.info kernel: [    1.395512] pci 0001:00:01.0: reg 0x10: [mem 0x00000000-0x1ffffffff 64bit pref]
Thu Mar 17 16:14:01 2022 kern.debug kernel: [    1.404363] pci_bus 0001:00: fixups for bus
Thu Mar 17 16:14:01 2022 kern.debug kernel: [    1.408566] pci 0001:00:01.0: scanning [bus 00-00] behind bridge, pass 0
Thu Mar 17 16:14:01 2022 kern.info kernel: [    1.415259] pci 0001:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
Thu Mar 17 16:14:01 2022 kern.debug kernel: [    1.423277] pci 0001:00:01.0: scanning [bus 00-00] behind bridge, pass 1
Thu Mar 17 16:14:01 2022 kern.debug kernel: [    1.430104] pci_bus 0001:01: scanning bus
Thu Mar 17 16:14:01 2022 kern.info kernel: [    1.434349] pci 0001:01:00.0: [17cb:1103] type 00 class 0x028000
Thu Mar 17 16:14:01 2022 kern.info kernel: [    1.440527] pci 0001:01:00.0: reg 0x10: [mem 0x00000000-0x001fffff 64bit]
Thu Mar 17 16:14:01 2022 kern.info kernel: [    1.448366] pci 0001:01:00.0: PME# supported from D0 D3hot D3cold
Thu Mar 17 16:14:01 2022 kern.debug kernel: [    1.454475] pci 0001:01:00.0: PME# disabled
Thu Mar 17 16:14:01 2022 kern.info kernel: [    1.458900] pci 0001:01:00.0: 4.000 Gb/s available PCIe bandwidth, limited by 5.0 GT/s PCIe x1 link at 0001:00:01.0 (capable of 7.876 Gb/s with 8.0 GT/s PCIe x1 link)
Thu Mar 17 16:14:01 2022 kern.debug kernel: [    1.497904] pci_bus 0001:01: fixups for bus
Thu Mar 17 16:14:01 2022 kern.debug kernel: [    1.502092] pci_bus 0001:01: bus scan returning with max=01
Thu Mar 17 16:14:01 2022 kern.info kernel: [    1.507677] pci_bus 0001:01: busn_res: [bus 01-ff] end is updated to 01
Thu Mar 17 16:14:01 2022 kern.debug kernel: [    1.514288] pci_bus 0001:00: bus scan returning with max=01
Thu Mar 17 16:14:01 2022 kern.info kernel: [    1.519874] pci 0001:00:01.0: BAR 0: no space for [mem size 0x200000000 64bit pref]
Thu Mar 17 16:14:01 2022 kern.info kernel: [    1.527526] pci 0001:00:01.0: BAR 0: failed to assign [mem size 0x200000000 64bit pref]
Thu Mar 17 16:14:01 2022 kern.info kernel: [    1.535521] pci 0001:00:01.0: BAR 8: assigned [mem 0x28000000-0x281fffff]
Thu Mar 17 16:14:01 2022 kern.info kernel: [    1.542307] pci 0001:01:00.0: BAR 0: assigned [mem 0x28000000-0x281fffff 64bit]
Thu Mar 17 16:14:01 2022 kern.info kernel: [    1.549697] pci 0001:00:01.0: PCI bridge to [bus 01]
Thu Mar 17 16:14:01 2022 kern.info kernel: [    1.554658] pci 0001:00:01.0:   bridge window [mem 0x28000000-0x281fffff]
Thu Mar 17 16:14:01 2022 kern.err kernel: [    1.561537] pcieport 0001:00:01.0: of_irq_parse_pci: failed with rc=-22
Thu Mar 17 16:14:01 2022 kern.debug kernel: [    1.568146] pcieport 0001:00:01.0: assign IRQ: got 0
Thu Mar 17 16:14:01 2022 kern.info kernel: [    1.573114] pcieport 0001:00:01.0: enabling device (0000 -> 0002)
Thu Mar 17 16:14:01 2022 kern.debug kernel: [    1.579221] pcieport 0001:00:01.0: enabling bus mastering

Anyone who has any further idea?