[LoraWAN Gateway] BPI R2 with Debian and RAK833 over mPCIe?

I’m just about to buy this board (RAK833) to setup a LoraWan Gateway with my BPi R2. Is this possible with the 4.19.62-bpi-r2-main kernel or would I have to compile my own?

Here’s the exact Kernel I use:

root@bpi-r2:~# uname -r
4.19.62-bpi-r2-main

Maybe this helps you as well?

root@bpi-r2:~# find /sys/bus | grep spi
/sys/bus/platform/devices/1100a000.spi
/sys/bus/platform/drivers/mtk-spi
/sys/bus/platform/drivers/mtk-spi/bind
/sys/bus/platform/drivers/mtk-spi/unbind
/sys/bus/platform/drivers/mtk-spi/module
/sys/bus/platform/drivers/mtk-spi/1100a000.spi
/sys/bus/platform/drivers/mtk-spi/uevent
/sys/bus/spi
/sys/bus/spi/drivers_probe
/sys/bus/spi/devices
/sys/bus/spi/uevent
/sys/bus/spi/drivers
/sys/bus/spi/drivers_autoprobe

And finally, dmesg, where I can’t find anything… Maybe it’s just a misunderstanding and the mPCIe-Extension (RAK833) will work out of the box?

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.19.62-bpi-r2-main (frank@frank-N56VZ) (gcc version 7.4.0 (Ubuntu/Linaro 7.4.0-1ubuntu1~18.04.1)) #303 SMP Tue Jul 30 12:01:05 CEST 2019
[    0.000000] CPU: ARMv7 Processor [410fc073] revision 3 (ARMv7), cr=10c5387d
[    0.000000] CPU: div instructions available: patching division code
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] OF: fdt: Machine model: Bananapi BPI-R2
[    0.000000] bootconsole [earlycon0] enabled
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] [WMT-CONSYS-HW][W]reserve_memory_consys_fn: name: consys-reserve-memory, base: 0xffe00000, size: 0x100000
[    0.000000] OF: reserved mem: initialized node consys-reserve-memory, compatible id mediatek,consys-reserve-memory
[    0.000000] cma: Reserved 64 MiB at 0xfb800000
[    0.000000] On node 0 totalpages: 524031
[    0.000000]   Normal zone: 1170 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 133120 pages, LIFO batch:31
[    0.000000]   HighMem zone: 390911 pages, LIFO batch:63
[    0.000000] random: get_random_bytes called from start_kernel+0xac/0x4a8 with crng_init=0
[    0.000000] percpu: Embedded 18 pages/cpu s41100 r8192 d24436 u73728
[    0.000000] pcpu-alloc: s41100 r8192 d24436 u73728 alloc=18*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3 
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 522861
[    0.000000] Kernel command line: board=bpi-r2 earlyprintk console=tty1 fbcon=map:0 console=ttyS0,115200 root=/dev/mmcblk0p2 rootfstype=ext4 rootwait vmalloc=496M debug=7 initcall_debug=0 video=1920x1080 drm.debug=0x7
[    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Memory: 1992332K/2096124K available (11264K kernel code, 978K rwdata, 3524K rodata, 1024K init, 576K bss, 38256K reserved, 65536K cma-reserved, 1498108K highmem)
[    0.000000] Virtual kernel memory layout:
                   vector  : 0xffff0000 - 0xffff1000   (   4 kB)
                   fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
                   vmalloc : 0xe1000000 - 0xff800000   ( 488 MB)
                   lowmem  : 0xc0000000 - 0xe0800000   ( 520 MB)
                   pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
                   modules : 0xbf000000 - 0xbfe00000   (  14 MB)
                     .text : 0x(ptrval) - 0x(ptrval)   (12256 kB)
                     .init : 0x(ptrval) - 0x(ptrval)   (1024 kB)
                     .data : 0x(ptrval) - 0x(ptrval)   ( 979 kB)
                      .bss : 0x(ptrval) - 0x(ptrval)   ( 577 kB)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] ftrace: allocating 36094 entries in 106 pages
[    0.000000] rcu: Hierarchical RCU implementation.
[    0.000000] rcu: 	RCU event tracing is enabled.
[    0.000000] rcu: 	RCU restricting CPUs from NR_CPUS=16 to nr_cpu_ids=4.
[    0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=4
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    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.000006] sched_clock: 56 bits at 13MHz, resolution 76ns, wraps every 4398046511101ns
[    0.008060] Switching to timer-based delay loop, resolution 76ns
[    0.014298] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 147020034397 ns
[    0.023583] sched_clock: 32 bits at 13MHz, resolution 76ns, wraps every 165191050201ns
[    0.032198] Console: colour dummy device 80x30
[    0.037242] console [tty1] enabled
[    0.040700] Calibrating delay loop (skipped), value calculated using timer frequency.. 26.00 BogoMIPS (lpj=130000)
[    0.051155] pid_max: default: 32768 minimum: 301
[    0.055968] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.062656] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.070500] CPU: Testing write buffer coherency: ok
[    0.075839] CPU0: update cpu_capacity 1024
[    0.079977] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.086323] Setting up static identity map for 0x80100000 - 0x80100060
[    0.093049] rcu: Hierarchical SRCU implementation.
[    0.103408] smp: Bringing up secondary CPUs ...
[    0.108646] CPU1: update cpu_capacity 1024
[    0.108654] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.109328] CPU2: update cpu_capacity 1024
[    0.109336] CPU2: thread -1, cpu 2, socket 0, mpidr 80000002
[    0.109964] CPU3: update cpu_capacity 1024
[    0.109971] CPU3: thread -1, cpu 3, socket 0, mpidr 80000003
[    0.110089] smp: Brought up 1 node, 4 CPUs
[    0.143733] SMP: Total of 4 processors activated (104.00 BogoMIPS).
[    0.150055] CPU: All CPU(s) started in SVC mode.
[    0.155816] devtmpfs: initialized
[    0.167255] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 3
[    0.175308] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.185267] futex hash table entries: 1024 (order: 4, 65536 bytes)
[    0.194176] xor: measuring software checksum speed
[    0.299149]    arm4regs  :  1288.800 MB/sec
[    0.399213]    8regs     :   897.600 MB/sec
[    0.499284]    32regs    :   921.600 MB/sec
[    0.599357]    neon      :  1301.600 MB/sec
[    0.603570] xor: using function: neon (1301.600 MB/sec)
[    0.608844] pinctrl core: initialized pinctrl subsystem
[    0.614990] NET: Registered protocol family 16
[    0.621395] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.629727] No ATAGs?
[    0.629883] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[    0.640259] hw-breakpoint: maximum watchpoint size is 8 bytes.
[    0.904565] raid6: int32x1  gen()   182 MB/s
[    1.074631] raid6: int32x1  xor()   169 MB/s
[    1.244850] raid6: int32x2  gen()   222 MB/s
[    1.414762] raid6: int32x2  xor()   177 MB/s
[    1.585125] raid6: int32x4  gen()   212 MB/s
[    1.755041] raid6: int32x4  xor()   175 MB/s
[    1.925112] raid6: int32x8  gen()   220 MB/s
[    2.095335] raid6: int32x8  xor()   148 MB/s
[    2.265314] raid6: neonx1   gen()   510 MB/s
[    2.435430] raid6: neonx1   xor()   482 MB/s
[    2.605548] raid6: neonx2   gen()   683 MB/s
[    2.775638] raid6: neonx2   xor()   603 MB/s
[    2.945708] raid6: neonx4   gen()   753 MB/s
[    3.115837] raid6: neonx4   xor()   655 MB/s
[    3.285935] raid6: neonx8   gen()   735 MB/s
[    3.456049] raid6: neonx8   xor()   616 MB/s
[    3.460349] raid6: using algorithm neonx4 gen() 753 MB/s
[    3.465707] raid6: .... xor() 655 MB/s, rmw enabled
[    3.470618] raid6: using neon recovery algorithm
[    3.477037] iommu: Adding device 14007000.ovl to group 0
[    3.486101] iommu: Adding device 14008000.rdma to group 1
[    3.491599] iommu: Adding device 14009000.wdma to group 2
[    3.497175] iommu: Adding device 14012000.rdma to group 3
[    3.502676] iommu: Adding device 15004000.jpegdec to group 4
[    3.508886] vgaarb: loaded
[    3.512040] SCSI subsystem initialized
[    3.516071] libata version 3.00 loaded.
[    3.520197] usbcore: registered new interface driver usbfs
[    3.525784] usbcore: registered new interface driver hub
[    3.531227] usbcore: registered new device driver usb
[    3.536826] Advanced Linux Sound Architecture Driver Initialized.
[    3.543568] Bluetooth: Core ver 2.22
[    3.547225] NET: Registered protocol family 31
[    3.551701] Bluetooth: HCI device and connection manager initialized
[    3.558131] Bluetooth: HCI socket layer initialized
[    3.563053] Bluetooth: L2CAP socket layer initialized
[    3.568183] Bluetooth: SCO socket layer initialized
[    3.573877] clocksource: Switched to clocksource arch_sys_counter
[    3.671087] NET: Registered protocol family 2
[    3.676254] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes)
[    3.684068] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
[    3.691213] TCP bind hash table entries: 4096 (order: 3, 32768 bytes)
[    3.697787] TCP: Hash tables configured (established 4096 bind 4096)
[    3.704331] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    3.710236] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    3.716792] NET: Registered protocol family 1
[    3.721738] RPC: Registered named UNIX socket transport module.
[    3.727769] RPC: Registered udp transport module.
[    3.732512] RPC: Registered tcp transport module.
[    3.737284] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    3.744329] PCI: CLS 0 bytes, default 64
[    3.749287] hw perfevents: enabled with armv7_cortex_a7 PMU driver, 5 counters available
[    3.759411] Initialise system trusted keyrings
[    3.764202] workingset: timestamp_bits=14 max_order=19 bucket_order=5
[    3.778516] NFS: Registering the id_resolver key type
[    3.783646] Key type id_resolver registered
[    3.787929] Key type id_legacy registered
[    3.791983] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    3.804006] async_tx: api initialized (async)
[    3.808417] Key type asymmetric registered
[    3.812543] Asymmetric key parser 'x509' registered
[    3.817563] bounce: pool size: 64 pages
[    3.821494] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[    3.828976] io scheduler noop registered
[    3.832927] io scheduler deadline registered
[    3.837420] io scheduler cfq registered (default)
[    3.842164] io scheduler mq-deadline registered
[    3.846748] io scheduler kyber registered
[    3.918215] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    3.926651] console [ttyS0] disabled
[    3.950455] 11004000.serial: ttyS0 at MMIO 0x11004000 (irq = 201, base_baud = 1625000) is a ST16650V2
[    3.959804] console [ttyS0] enabled
[    3.966785] bootconsole [earlycon0] disabled
[    3.996473] 11002000.serial: ttyS1 at MMIO 0x11002000 (irq = 202, base_baud = 1625000) is a ST16650V2
[    4.026827] 11003000.serial: ttyS2 at MMIO 0x11003000 (irq = 203, base_baud = 1625000) is a ST16650V2
[    4.037312] mtk_rng 1020f000.rng: registered RNG driver
[    4.037465] random: fast init done
[    4.042803] [drm:drm_core_init] Initialized
[    4.046146] random: crng init done
[    4.053675] mediatek-drm 14000000.dispsys: Adding component match for /ovl@14007000
[    4.061356] mediatek-drm 14000000.dispsys: Adding component match for /rdma@14008000
[    4.069183] mediatek-drm 14000000.dispsys: Adding component match for /color@1400b000
[    4.077073] mediatek-drm 14000000.dispsys: Adding component match for /rdma@14012000
[    4.084808] mediatek-drm 14000000.dispsys: Adding component match for /dpi@14014000
[    4.094298] mediatek-hdmi-phy 10209100.phy: Using default TX DRV impedance: 4.2k/36
[    4.104353] [drm] hdmi-audio-codec driver bound to HDMI
[    4.118608] loop: module loaded
[    4.121942] [WMT-DETECT][I]wmt_detect_driver_init:driver(major 154) installed success
[    4.129812] [SDIO-DETECT][I]sdio_detect_init:sdio_register_driver() ret=0
[    4.136779] MTK-BTIF[E]hal_btif_clk_get_and_prepare(286):[CCF]clk_btif=d4a5a51b
[    4.144080] MTK-BTIF[E]hal_btif_clk_get_and_prepare(292):[CCF]clk_btif_apdma=4cb829ae
[    4.154086] mt6323-regulator mt6323-regulator: Chip ID = 0x2023
[    4.168874] Uniform Multi-Platform E-IDE driver
[    4.173455] ide-gd driver 1.18
[    4.177138] libphy: Fixed MDIO Bus: probed
[    4.204472] libphy: mdio: probed
[    4.208479] mtk_soc_eth 1b100000.ethernet: connected mac 0 to PHY at fixed-0:00 [uid=00000000, driver=Generic PHY]
[    4.219306] mtk_soc_eth 1b100000.ethernet eth0: mediatek frame engine at 0xe14c0000, irq 228
[    4.227766] mtk_soc_eth 1b100000.ethernet: generated random MAC address 32:37:47:90:9c:7b
[    4.236434] mtk_soc_eth 1b100000.ethernet: connected mac 1 to PHY at fixed-0:01 [uid=00000000, driver=Generic PHY]
[    4.247238] mtk_soc_eth 1b100000.ethernet eth1: mediatek frame engine at 0xe14c0000, irq 228
[    4.256308] xhci-mtk 1a1c0000.usb: Linked as a consumer to regulator.3
[    4.262878] xhci-mtk 1a1c0000.usb: Linked as a consumer to regulator.2
[    4.269692] xhci-mtk 1a1c0000.usb: xHCI Host Controller
[    4.274954] xhci-mtk 1a1c0000.usb: new USB bus registered, assigned bus number 1
[    4.285800] xhci-mtk 1a1c0000.usb: hcc params 0x01401198 hci version 0x96 quirks 0x0000000000210010
[    4.294891] xhci-mtk 1a1c0000.usb: irq 225, io mem 0x1a1c0000
[    4.301684] hub 1-0:1.0: USB hub found
[    4.305511] hub 1-0:1.0: 1 port detected
[    4.309877] xhci-mtk 1a1c0000.usb: xHCI Host Controller
[    4.315118] xhci-mtk 1a1c0000.usb: new USB bus registered, assigned bus number 2
[    4.322480] xhci-mtk 1a1c0000.usb: Host supports USB 3.0 SuperSpeed
[    4.328818] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[    4.337640] hub 2-0:1.0: USB hub found
[    4.341423] hub 2-0:1.0: 1 port detected
[    4.345978] xhci-mtk 1a240000.usb: Linked as a consumer to regulator.3
[    4.352525] xhci-mtk 1a240000.usb: Linked as a consumer to regulator.2
[    4.359325] xhci-mtk 1a240000.usb: xHCI Host Controller
[    4.364587] xhci-mtk 1a240000.usb: new USB bus registered, assigned bus number 3
[    4.375305] xhci-mtk 1a240000.usb: hcc params 0x01401198 hci version 0x96 quirks 0x0000000000210010
[    4.384420] xhci-mtk 1a240000.usb: irq 226, io mem 0x1a240000
[    4.391167] hub 3-0:1.0: USB hub found
[    4.394985] hub 3-0:1.0: 1 port detected
[    4.399326] xhci-mtk 1a240000.usb: xHCI Host Controller
[    4.404575] xhci-mtk 1a240000.usb: new USB bus registered, assigned bus number 4
[    4.411937] xhci-mtk 1a240000.usb: Host supports USB 3.0 SuperSpeed
[    4.418396] usb usb4: We don't know the algorithms for LPM for this host, disabling LPM.
[    4.427212] hub 4-0:1.0: USB hub found
[    4.430991] hub 4-0:1.0: 1 port detected
[    4.435661] usbcore: registered new interface driver usb-storage
[    4.442078] mousedev: PS/2 mouse device common for all mice
[    4.448877] mt6397-rtc mt6323-rtc: registered as rtc0
[    4.455945] MTK_WDT_NONRST_REG(0)
[    4.460140] mtk-wdt 10007000.watchdog: Watchdog enabled (timeout=31 sec, nowayout=0)
[    4.469825] device-mapper: ioctl: 4.39.0-ioctl (2018-04-03) initialised: [email protected]
[    4.478666] device-mapper: multipath round-robin: version 1.2.0 loaded
[    4.485191] device-mapper: multipath queue-length: version 0.2.0 loaded
[    4.491763] device-mapper: multipath service-time: version 0.3.0 loaded
[    4.498416] device-mapper: raid: Loading target version 1.14.0
[    4.504704] cpu cpu0: Linked as a consumer to regulator.4
[    4.510111] cpu cpu0: dummy supplies not allowed for exclusive requests
[    4.518715] mtk-msdc 11240000.mmc: Got CD GPIO
[    4.523302] mtk-msdc 11240000.mmc: Linked as a consumer to regulator.2
[    4.557032] mtk-msdc 11230000.mmc: Linked as a consumer to regulator.2
[    4.563591] mtk-msdc 11230000.mmc: Linked as a consumer to regulator.1
[    4.600747] hidraw: raw HID events driver (C) Jiri Kosina
[    4.606370] usbcore: registered new interface driver usbhid
[    4.611932] usbhid: USB HID core driver
[    4.616960] mtk-iommu-v1 10205000.mmsys_iommu: bound 14010000.larb (ops mtk_smi_larb_component_ops)
[    4.626003] mtk-iommu-v1 10205000.mmsys_iommu: bound 16010000.larb (ops mtk_smi_larb_component_ops)
[    4.635025] mtk-iommu-v1 10205000.mmsys_iommu: bound 15001000.larb (ops mtk_smi_larb_component_ops)
[    4.645410] NET: Registered protocol family 17
[    4.650164] NET: Registered protocol family 41
[    4.653494] mmc0: host does not support reading read-only switch, assuming write-enable
[    4.654814] 8021q: 802.1Q VLAN Support v1.8
[    4.666504] mmc0: new high speed SDHC card at address aaaa
[    4.667259] ThumbEE CPU extension supported.
[    4.674697] mmcblk0: mmc0:aaaa SL16G 14.8 GiB 
[    4.676538] Registering SWP/SWPB emulation handler
[    4.686422] Loading compiled-in X.509 certificates
[    4.687274]  mmcblk0: p1 p2
[    4.697475] mmc1: new high speed MMC card at address 0001
[    4.705473] mmcblk1: mmc1:0001 8WPD3R 7.28 GiB 
[    4.712012] mmcblk1boot0: mmc1:0001 8WPD3R partition 1 4.00 MiB
[    4.719947] mmcblk1boot1: mmc1:0001 8WPD3R partition 2 4.00 MiB
[    4.726148] mmcblk1rpmb: mmc1:0001 8WPD3R partition 3 512 KiB, chardev (247:0)
[    4.811982] mtk-pcie 1a140000.pcie: Port0 link down
[    4.847374] mtk-pcie 1a140000.pcie: PCI host bridge to bus 0000:00
[    4.853527] pci_bus 0000:00: root bus resource [io  0x0000-0xffff] (bus address [0x1a160000-0x1a16ffff])
[    4.862990] pci_bus 0000:00: root bus resource [mem 0x60000000-0x6fffffff]
[    4.869843] pci_bus 0000:00: root bus resource [bus 00-ff]
[    4.875517] pci 0000:00:01.0: [14c3:0801] type 01 class 0x060400
[    4.881520] pci 0000:00:01.0: reg 0x14: [mem 0x00000000-0x0000ffff]
[    4.887847] pci 0000:00:01.0: supports D1
[    4.891833] pci 0000:00:01.0: PME# supported from D0 D1 D3hot
[    4.900538] PCI: bus0: Fast back to back transfers disabled
[    4.906137] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    4.914299] pci 0000:01:00.0: [1b21:0611] type 00 class 0x010185
[    4.920301] pci 0000:01:00.0: reg 0x10: initial BAR value 0x00000000 invalid
[    4.927335] pci 0000:01:00.0: reg 0x10: [io  size 0x0008]
[    4.932708] pci 0000:01:00.0: reg 0x14: initial BAR value 0x00000000 invalid
[    4.939727] pci 0000:01:00.0: reg 0x14: [io  size 0x0004]
[    4.945114] pci 0000:01:00.0: reg 0x18: initial BAR value 0x00000000 invalid
[    4.952117] pci 0000:01:00.0: reg 0x18: [io  size 0x0008]
[    4.957504] pci 0000:01:00.0: reg 0x1c: initial BAR value 0x00000000 invalid
[    4.964521] pci 0000:01:00.0: reg 0x1c: [io  size 0x0004]
[    4.969893] pci 0000:01:00.0: reg 0x20: initial BAR value 0x00000000 invalid
[    4.976910] pci 0000:01:00.0: reg 0x20: [io  size 0x0010]
[    4.982282] pci 0000:01:00.0: reg 0x24: [mem 0x00000000-0x000001ff]
[    4.988531] pci 0000:01:00.0: reg 0x30: [mem 0x00000000-0x0000ffff pref]
[    5.026728] PCI: bus1: Fast back to back transfers disabled
[    5.032284] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[    5.038942] pci 0000:00:01.0: BAR 8: assigned [mem 0x60000000-0x600fffff]
[    5.045715] pci 0000:00:01.0: BAR 9: assigned [mem 0x60100000-0x601fffff pref]
[    5.052893] pci 0000:00:01.0: BAR 1: assigned [mem 0x60200000-0x6020ffff]
[    5.059659] pci 0000:00:01.0: BAR 7: assigned [io  0x1000-0x1fff]
[    5.065738] pci 0000:01:00.0: BAR 6: assigned [mem 0x60100000-0x6010ffff pref]
[    5.072916] pci 0000:01:00.0: BAR 5: assigned [mem 0x60000000-0x600001ff]
[    5.079682] pci 0000:01:00.0: BAR 4: assigned [io  0x1000-0x100f]
[    5.085758] pci 0000:01:00.0: BAR 0: assigned [io  0x1010-0x1017]
[    5.091816] pci 0000:01:00.0: BAR 2: assigned [io  0x1018-0x101f]
[    5.097889] pci 0000:01:00.0: BAR 1: assigned [io  0x1020-0x1023]
[    5.103962] pci 0000:01:00.0: BAR 3: assigned [io  0x1024-0x1027]
[    5.110021] pci 0000:00:01.0: PCI bridge to [bus 01]
[    5.114973] pci 0000:00:01.0:   bridge window [io  0x1000-0x1fff]
[    5.121030] pci 0000:00:01.0:   bridge window [mem 0x60000000-0x600fffff]
[    5.127790] pci 0000:00:01.0:   bridge window [mem 0x60100000-0x601fffff pref]
[    5.135142] pcieport 0000:00:01.0: enabling device (0140 -> 0143)
[    5.141387] pcieport 0000:00:01.0: Signaling PME with IRQ 223
[    5.147337] pcieport 0000:00:01.0: AER enabled with IRQ 223
[    5.153140] ahci 0000:01:00.0: version 3.0
[    5.157270] ahci 0000:01:00.0: enabling device (0140 -> 0143)
[    5.163092] ahci 0000:01:00.0: SSS flag set, parallel bus scan disabled
[    5.169743] ahci 0000:01:00.0: AHCI 0001.0200 32 slots 2 ports 6 Gbps 0x3 impl IDE mode
[    5.177720] ahci 0000:01:00.0: flags: 64bit ncq sntf stag led clo pmp pio slum part ccc sxs 
[    5.187856] scsi host0: ahci
[    5.191471] scsi host1: ahci
[    5.194737] ata1: SATA max UDMA/133 abar m512@0x60000000 port 0x60000100 irq 223
[    5.202095] ata2: SATA max UDMA/133 abar m512@0x60000000 port 0x60000180 irq 223
[    5.209912] mediatek-dpi 14014000.dpi: Found bridge node: /hdmi@14015000
[    5.216918] mediatek-drm 14000000.dispsys: bound 14007000.ovl (ops mtk_disp_ovl_component_ops)
[    5.225537] mediatek-drm 14000000.dispsys: bound 14008000.rdma (ops mtk_disp_rdma_component_ops)
[    5.234295] mediatek-drm 14000000.dispsys: bound 1400b000.color (ops mtk_disp_color_component_ops)
[    5.243203] mediatek-drm 14000000.dispsys: bound 14012000.rdma (ops mtk_disp_rdma_component_ops)
[    5.251980] [drm:drm_connector_init] cmdline mode for connector HDMI-A-1 1920x1080@60Hz
[    5.259966] mediatek-drm 14000000.dispsys: bound 14014000.dpi (ops mtk_dpi_component_ops)
[    5.268198] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[    5.274790] [drm] No driver support for vblank timestamp query.
[    5.280695] [drm:drm_mode_object_get] OBJ ID: 29 (2)
[    5.285669] [drm:drm_setup_crtcs] 
[    5.289058] [drm:drm_helper_probe_single_connector_modes] [CONNECTOR:29:HDMI-A-1]
[    5.296523] [drm:drm_helper_probe_single_connector_modes] [CONNECTOR:29:HDMI-A-1] status updated from unknown to disconnected
[    5.307781] [drm:drm_helper_probe_single_connector_modes] [CONNECTOR:29:HDMI-A-1] disconnected
[    5.316361] [drm:drm_setup_crtcs] No connectors reported connected with modes
[    5.323451] [drm:drm_setup_crtcs] connector 29 enabled? no
[    5.328918] [drm:drm_setup_crtcs] picking CRTCs for 4096x4096 config
[    5.335245] [drm] Cannot find any crtc or sizes
[    5.339813] [drm:drm_minor_register] 
[    5.343452] [drm:drm_minor_register] 
[    5.347349] [drm:drm_sysfs_hotplug_event] generating hotplug event
[    5.353574] [drm:drm_minor_register] new minor registered 0
[    5.359306] [drm:drm_sysfs_connector_add] adding "HDMI-A-1" to sysfs
[    5.365654] [drm:drm_sysfs_hotplug_event] generating hotplug event
[    5.371842] [drm] Initialized mediatek 1.0.0 20150513 for 14000000.dispsys on minor 0
[    5.380186] mt6397-rtc mt6323-rtc: setting system clock to 2010-01-01 07:05:29 UTC (1262329529)
[    5.389120] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[    5.399840] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[    5.406839] vpa: disabling
[    5.409565] vusb: disabling
[    5.412345] vmc: disabling
[    5.415078] vmch: disabling
[    5.417861] vemc3v3: disabling
[    5.420899] vgp1: disabling
[    5.423700] vcamaf: disabling
[    5.426703] ALSA device list:
[    5.429650]   No soundcards found.
[    5.433610] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[    5.442211] cfg80211: failed to load regulatory.db
[    5.535385] ata1: SATA link down (SStatus 0 SControl 300)
[    5.865396] ata2: SATA link down (SStatus 0 SControl 300)
[    5.870873] md: Waiting for all devices to be available before autodetect
[    5.877661] md: If you don't use raid, use raid=noautodetect
[    5.884057] md: Autodetecting RAID arrays.
[    5.888137] md: autorun ...
[    5.890908] md: ... autorun DONE.
[    5.907054] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[    5.915247] VFS: Mounted root (ext4 filesystem) readonly on device 179:2.
[    5.929670] devtmpfs: mounted
[    5.935903] Freeing unused kernel memory: 1024K
[    5.954169] Run /sbin/init as init process
[    6.401502] systemd[1]: System time before build time, advancing clock.
[    6.908090] NET: Registered protocol family 10
[    6.913939] Segment Routing with IPv6
[    6.991045] systemd[1]: systemd 241 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD -IDN2 +IDN -PCRE2 default-hierarchy=hybrid)
[    7.013170] systemd[1]: Detected architecture arm.
[    7.055018] systemd[1]: Set hostname to <bpi-r2>.
[    7.061975] systemd[1]: Failed to bump fs.file-max, ignoring: Invalid argument
[    7.626334] systemd[1]: Listening on Journal Socket.
[    7.671106] systemd[1]: Mounting POSIX Message Queue File System...
[    7.704947] systemd[1]: Condition check resulted in Huge Pages File System being skipped.
[    7.714076] systemd[1]: Listening on fsck to fsckd communication Socket.
[    7.754757] systemd[1]: Listening on udev Kernel Socket.
[    7.794166] systemd[1]: Reached target Swap.
[    9.677389] EXT4-fs (mmcblk0p2): re-mounted. Opts: errors=remount-ro
[    9.911121] systemd-journald[157]: Received request to flush runtime journal from PID 1
[   10.429348] input: mtk-pmic-keys as /devices/platform/1000d000.pwrap/1000d000.pwrap:mt6323/mtk-pmic-keys/input/input0
[   10.479822] mtk-thermal 1100b000.thermal: Device not calibrated, using default calibration values
[   10.853712] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[   11.041119] mt7530 mdio-bus:00: Linked as a consumer to regulator.6
[   11.047710] mt7530 mdio-bus:00: Linked as a consumer to regulator.17
[   11.254619] libphy: dsa slave smi: probed
[   11.259047] mt7530 mdio-bus:00 wan (uninitialized): PHY [dsa-0.0:00] driver [Generic PHY]
[   11.268599] mt7530 mdio-bus:00 lan0 (uninitialized): PHY [dsa-0.0:01] driver [Generic PHY]
[   11.278071] mt7530 mdio-bus:00 lan1 (uninitialized): PHY [dsa-0.0:02] driver [Generic PHY]
[   11.287698] mt7530 mdio-bus:00 lan2 (uninitialized): PHY [dsa-0.0:03] driver [Generic PHY]
[   11.297317] mt7530 mdio-bus:00 lan3 (uninitialized): PHY [dsa-0.0:04] driver [Generic PHY]
[   11.334106] DSA: tree 0 setup
[   14.959129] mt7530 mdio-bus:00 lan0: configuring for phy/gmii link mode
[   14.965957] IPv6: ADDRCONF(NETDEV_UP): lan0: link is not ready
[   15.027132] device eth0 entered promiscuous mode
[   19.114255] mt7530 mdio-bus:00 lan0: Link is Up - 1Gbps/Full - flow control off
[   19.121559] IPv6: ADDRCONF(NETDEV_CHANGE): lan0: link becomes ready
[  400.524799] mt7530 mdio-bus:00 lan0: Link is Down
[  400.530074] device eth0 left promiscuous mode
[  400.578898] device eth0 entered promiscuous mode
[  400.584310] mt7530 mdio-bus:00 lan0: configuring for phy/gmii link mode
[  400.591259] IPv6: ADDRCONF(NETDEV_UP): lan0: link is not ready
[  400.597515] mt7530 mdio-bus:00 lan0: Link is Up - 1Gbps/Full - flow control off
[  400.605074] IPv6: ADDRCONF(NETDEV_CHANGE): lan0: link becomes ready
[  816.325266] systemd: 29 output lines suppressed due to ratelimiting
[  816.376486] systemd[1]: systemd 241 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD -IDN2 +IDN -PCRE2 default-hierarchy=hybrid)
[  816.398587] systemd[1]: Detected architecture arm.
[  817.842110] systemd[1]: [email protected]: Current command vanished from the unit file, execution of the command list won't be resumed.
[  818.640352] systemd[1]: Stopping Journal Service...
[  818.640784] systemd-journald[157]: Received SIGTERM from PID 1 (systemd).
[  818.658391] systemd[1]: systemd-journald.service: Succeeded.
[  818.666364] systemd[1]: Stopped Journal Service.
[  818.683048] systemd[1]: Condition check resulted in Journal Audit Socket being skipped.
[  818.699593] systemd[1]: Starting Journal Service...
[  818.774657] systemd[1]: Started Journal Service.

I read a the thread about SPI communication and that it is included as a kernel extension in an earlier version and I’m wondering if I need to do anything and if it will work before ordering the mPCIe Extension…

It would be my first kernel to compile, so please be kind :upside_down_face:

I have no lora,but i’ve done some changes for it for another user…don’t know if they were working

Here a dt overlay was created,but you can also add the nodes (content of overlay) to the spi0-node in mt7623n-bpi-r2.dts directly

If your device uses only pcie,i guess you don’t need to modify dts and only add driver in defconfig (maybe there is a separated item for pcie support)