Banana pi R3 no CIFS module

  1. my debian and ubuntu supporting the build.sh install to sd option. Debian is easier as you do not need to replace rootfs

OK. Finally made it and successfully mounted a CIFS filesystem on your debian 11 with a kernel that i compiled with CIFS enabled. Thanks very much for your responses. I will give feedback as soon as i do more testing.

Another thing. After this, i was trying to use the banana pi ubuntu image and basically do the same thing: compile kernel and replace BPI-ROOT and BPI-BOOT

I am using this repo to compile the kernel :

The problem is taht, once i flash ubuntu BPI image, i cannot mount the BPI-ROOT partition. Got this error: An error occurred while accessing ‘BPI-ROOT’, the system responded: The requested operation has failed: Error mounting /dev/mmcblk0p6 at /run/media/hfaricardo/BPI-ROOT: cannot mount; probably corrupted filesystem on /dev/mmcblk0p6

Anyone has an opinion on this? Thanks once again.

I guess partition table is different…my uboot looks at partition 6 for rootfs,and if you flashed my uboot to the vendor image this can fail.

Btw. there is an updatesrc command in build.sh which updates the dot relase (1 version each call) to really have latest 6.1 version till i have updated my repo

Hello Again

I can now mount filesystems via CIFS or FUSE but i am not understanding how to control wifi interfaces on your Debian image. There are no wlan0,1,2… interfaces available when i issue command ip a. Only see the wired ones. Was this a problem caused by my build or is there any catch? Thanks

Have you loaded mt7915e module? Maybe i have not added firmware files in this basic image

Firmware-files are in my sysconfig folder

https://drive.google.com/drive/mobile/folders/1WLWAR1FC-rF4n2SgFecBlU1ym_XKqAR_/15Y5Y3NAOwg_IMmN3k6hdb7pAQj9oTVTl/1fxDR-uL3DIO-8ebgqOJd5MoWORQTTm7Z/1kST9ZOv8xQWFfo9GUNIIpKjD8QuYMj8i?sort=13&direction=a

Or get it from linux-firmware git

Have to be placed into /lib/firmware/mediatek

So i my have extrapolated things a bit. PLease chack if was correct. I downloaded your files and placed:

  • contents of mt7986_wifi_firmware.tar.gz in /lib/firmware/mediatek
  • contents of bpi-r3-networkd/etc/systemd/network in /etc/systemd/network
  • contents of bpi-r3-service/etc in /etc (merged directories and replaced files when necessary)
  • contents of bpi-r3-service/lib in /lib and merged directories

After this procedure, i see 2 more interfaces but im unsure what they are: image

Hostapd fails to setup on boot: image

Here is the full boot log:

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
[    0.000000] Linux version 6.1.0-bpi-r3 (joaolrc@pop-os) (aarch64-linux-gnu-gcc (Ubuntu 11.3.0-1ubuntu13
[    0.000000] Machine model: Bananapi BPI-R3
[    0.000000] earlycon: uart8250 at MMIO32 0x0000000011002000 (options '')
[    0.000000] printk: bootconsole [uart8250] enabled
[    0.000000] efi: UEFI not found.
[    0.000000] Zone ranges:
[    0.000000]   DMA      [mem 0x0000000040000000-0x00000000bfffffff]
[    0.000000]   DMA32    empty
[    0.000000]   Normal   empty
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000040000000-0x0000000042ffffff]
[    0.000000]   node   0: [mem 0x0000000043000000-0x000000004302ffff]
[    0.000000]   node   0: [mem 0x0000000043030000-0x000000004fbfffff]
[    0.000000]   node   0: [mem 0x000000004fc00000-0x000000004fcfffff]
[    0.000000]   node   0: [mem 0x000000004fd00000-0x00000000bfffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000040000000-0x00000000bfffffff]
[    0.000000] psci: probing for conduit method from DT.
[    0.000000] psci: PSCIv1.1 detected in firmware.
[    0.000000] psci: Using standard PSCI v0.2 function IDs
[    0.000000] psci: MIGRATE_INFO_TYPE not supported.
[    0.000000] psci: SMC Calling Convention v1.2
[    0.000000] percpu: Embedded 27 pages/cpu s70952 r8192 d31448 u110592
[    0.000000] pcpu-alloc: s70952 r8192 d31448 u110592 alloc=27*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3 
[    0.000000] Detected VIPT I-cache on CPU0
[    0.000000] CPU features: detected: GIC system register CPU interface
[    0.000000] CPU features: detected: ARM erratum 845719
[    0.000000] alternatives: applying boot alternatives
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 516096
[    0.000000] Kernel command line: board=bpi-r3 earlycon=uart8250,mmio32,0x11002000 debug=7 root=/dev/mmt
[    0.000000] Unknown kernel command line parameters "board=bpi-r3", will be passed to user space.
[    0.000000] Dentry cache hash table entries: 262144 (order: 9, 2097152 bytes, linear)
[    0.000000] Inode-cache hash table entries: 131072 (order: 8, 1048576 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 2029816K/2097152K available (13696K kernel code, 2644K rwdata, 4136K rodata, 4480K)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] trace event string verifier disabled
[    0.000000] rcu: Hierarchical RCU implementation.
[    0.000000] rcu:     RCU event tracing is enabled.
[    0.000000]  Tracing variant of Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[    0.000000] GICv3: GIC: Using split EOI/Deactivate mode
[    0.000000] GICv3: 640 SPIs implemented
[    0.000000] GICv3: 0 Extended SPIs implemented
[    0.000000] Root IRQ handler: gic_handle_irq
[    0.000000] GICv3: GICv3 features: 16 PPIs
[    0.000000] GICv3: CPU0: found redistributor 0 region 0:0x000000000c080000
[    0.000000] rcu: srcu_init: Setting srcu_struct sizes based on contention.
[    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_nss
[    0.000000] sched_clock: 56 bits at 13MHz, resolution 76ns, wraps every 4398046511101ns
[    0.008265] Console: colour dummy device 80x25
[    0.012729] printk: console [tty0] enabled
[    0.016843] printk: bootconsole [uart8250] disabled
[    0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
[    0.000000] Linux version 6.1.0-bpi-r3 (joaolrc@pop-os) (aarch64-linux-gnu-gcc (Ubuntu 11.3.0-1ubuntu13
[    0.000000] Machine model: Bananapi BPI-R3
[    0.000000] earlycon: uart8250 at MMIO32 0x0000000011002000 (options '')
[    0.000000] printk: bootconsole [uart8250] enabled
[    0.000000] efi: UEFI not found.
[    0.000000] Zone ranges:
[    0.000000]   DMA      [mem 0x0000000040000000-0x00000000bfffffff]
[    0.000000]   DMA32    empty
[    0.000000]   Normal   empty
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000040000000-0x0000000042ffffff]
[    0.000000]   node   0: [mem 0x0000000043000000-0x000000004302ffff]
[    0.000000]   node   0: [mem 0x0000000043030000-0x000000004fbfffff]
[    0.000000]   node   0: [mem 0x000000004fc00000-0x000000004fcfffff]
[    0.000000]   node   0: [mem 0x000000004fd00000-0x00000000bfffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000040000000-0x00000000bfffffff]
[    0.000000] psci: probing for conduit method from DT.
[    0.000000] psci: PSCIv1.1 detected in firmware.
[    0.000000] psci: Using standard PSCI v0.2 function IDs
[    0.000000] psci: MIGRATE_INFO_TYPE not supported.
[    0.000000] psci: SMC Calling Convention v1.2
[    0.000000] percpu: Embedded 27 pages/cpu s70952 r8192 d31448 u110592
[    0.000000] pcpu-alloc: s70952 r8192 d31448 u110592 alloc=27*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3 
[    0.000000] Detected VIPT I-cache on CPU0
[    0.000000] CPU features: detected: GIC system register CPU interface
[    0.000000] CPU features: detected: ARM erratum 845719
[    0.000000] alternatives: applying boot alternatives
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 516096
[    0.000000] Kernel command line: board=bpi-r3 earlycon=uart8250,mmio32,0x11002000 debug=7 root=/dev/mmt
[    0.000000] Unknown kernel command line parameters "board=bpi-r3", will be passed to user space.
[    0.000000] Dentry cache hash table entries: 262144 (order: 9, 2097152 bytes, linear)
[    0.000000] Inode-cache hash table entries: 131072 (order: 8, 1048576 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 2029816K/2097152K available (13696K kernel code, 2644K rwdata, 4136K rodata, 4480K)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] trace event string verifier disabled
[    0.000000] rcu: Hierarchical RCU implementation.
[    0.000000] rcu:     RCU event tracing is enabled.
[    0.000000]  Tracing variant of Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[    0.000000] GICv3: GIC: Using split EOI/Deactivate mode
[    0.000000] GICv3: 640 SPIs implemented
[    0.000000] GICv3: 0 Extended SPIs implemented
[    0.000000] Root IRQ handler: gic_handle_irq
[    0.000000] GICv3: GICv3 features: 16 PPIs
[    0.000000] GICv3: CPU0: found redistributor 0 region 0:0x000000000c080000
[    0.000000] rcu: srcu_init: Setting srcu_struct sizes based on contention.
[    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_nss
[    0.000000] sched_clock: 56 bits at 13MHz, resolution 76ns, wraps every 4398046511101ns
[    0.008265] Console: colour dummy device 80x25
[    0.012729] printk: console [tty0] enabled
[    0.016843] printk: bootconsole [uart8250] disabled
[    0.021769] Calibrating delay loop (skipped), value calculated using timer frequency.. 26.00 BogoMIPS )
[    0.021780] pid_max: default: 32768 minimum: 301
[    0.021870] Mount-cache hash table entries: 4096 (order: 3, 32768 bytes, linear)
[    0.021886] Mountpoint-cache hash table entries: 4096 (order: 3, 32768 bytes, linear)
[    0.022476] cacheinfo: Unable to detect cache hierarchy for CPU 0
[    0.022771] cblist_init_generic: Setting adjustable number of callback queues.
[    0.022783] cblist_init_generic: Setting shift to 2 and lim to 1.
[    0.022883] rcu: Hierarchical SRCU implementation.
[    0.022889] rcu:     Max phase no-delay instances is 1000.
[    0.023334] EFI services will not be available.
[    0.023494] smp: Bringing up secondary CPUs ...
[    0.023815] Detected VIPT I-cache on CPU1
[    0.023866] cacheinfo: Unable to detect cache hierarchy for CPU 1
[    0.023875] GICv3: CPU1: found redistributor 1 region 0:0x000000000c0a0000
[    0.023906] CPU1: Booted secondary processor 0x0000000001 [0x410fd034]
[    0.024234] Detected VIPT I-cache on CPU2
[    0.024268] cacheinfo: Unable to detect cache hierarchy for CPU 2
[    0.024272] GICv3: CPU2: found redistributor 2 region 0:0x000000000c0c0000
[    0.024285] CPU2: Booted secondary processor 0x0000000002 [0x410fd034]
[    0.024553] Detected VIPT I-cache on CPU3
[    0.024581] cacheinfo: Unable to detect cache hierarchy for CPU 3
[    0.024586] GICv3: CPU3: found redistributor 3 region 0:0x000000000c0e0000
[    0.024597] CPU3: Booted secondary processor 0x0000000003 [0x410fd034]
[    0.024628] smp: Brought up 1 node, 4 CPUs
[    0.024678] SMP: Total of 4 processors activated.
[    0.024684] CPU features: detected: 32-bit EL0 Support
[    0.024691] CPU features: detected: CRC32 instructions
[    0.024734] CPU features: emulated: Privileged Access Never (PAN) using TTBR0_EL1 switching
[    0.024745] CPU: All CPU(s) started at EL2
[    0.024750] alternatives: applying system-wide alternatives
[    0.026103] devtmpfs: initialized
[    0.028043] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750s
[    0.028074] futex hash table entries: 1024 (order: 4, 65536 bytes, linear)
[    0.028180] pinctrl core: initialized pinctrl subsystem
[    0.028470] DMI not present or invalid.
[    0.028820] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    0.029116] DMA: preallocated 256 KiB GFP_KERNEL pool for atomic allocations
[    0.029153] DMA: preallocated 256 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations
[    0.029185] DMA: preallocated 256 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
[    0.029568] thermal_sys: Registered thermal governor 'fair_share'
[    0.029571] thermal_sys: Registered thermal governor 'bang_bang'
[    0.029578] thermal_sys: Registered thermal governor 'step_wise'
[    0.029584] thermal_sys: Registered thermal governor 'user_space'
[    0.029674] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[    0.029735] ASID allocator initialised with 65536 entries
[    0.041160] cryptd: max_cpu_qlen set to 1000
[    0.042091] iommu: Default domain type: Translated 
[    0.042114] iommu: DMA domain TLB invalidation policy: strict mode 
[    0.042240] SCSI subsystem initialized
[    0.042354] libata version 3.00 loaded.
[    0.042445] usbcore: registered new interface driver usbfs
[    0.042470] usbcore: registered new interface driver hub
[    0.042492] usbcore: registered new device driver usb
[    0.042735] i2c-gpio i2c-gpio-0: using lines 427 (SDA) and 428 (SCL)
[    0.042846] i2c-gpio i2c-gpio-1: using lines 429 (SDA) and 430 (SCL)
[    0.042886] pps_core: LinuxPPS API ver. 1 registered
[    0.042892] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <[email protected]>
[    0.042906] PTP clock support registered
[    0.043715] vgaarb: loaded
[    0.522370] clocksource: Switched to clocksource arch_sys_counter
[    0.526528] NET: Registered PF_INET protocol family
[    0.526735] IP idents hash table entries: 32768 (order: 6, 262144 bytes, linear)
[    0.527875] tcp_listen_portaddr_hash hash table entries: 1024 (order: 2, 16384 bytes, linear)
[    0.527928] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.527944] TCP established hash table entries: 16384 (order: 5, 131072 bytes, linear)
[    0.528021] TCP bind hash table entries: 16384 (order: 7, 524288 bytes, linear)
[    0.528431] TCP: Hash tables configured (established 16384 bind 16384)
[    0.528549] UDP hash table entries: 1024 (order: 3, 32768 bytes, linear)
[    0.528597] UDP-Lite hash table entries: 1024 (order: 3, 32768 bytes, linear)
[    0.528779] NET: Registered PF_UNIX/PF_LOCAL protocol family
[    0.529189] RPC: Registered named UNIX socket transport module.
[    0.529205] RPC: Registered udp transport module.
[    0.529210] RPC: Registered tcp transport module.
[    0.529216] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.529797] PCI: CLS 0 bytes, default 64
[    0.547080] Initialise system trusted keyrings
[    0.547248] workingset: timestamp_bits=46 max_order=19 bucket_order=0
[    0.550191] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.551065] NFS: Registering the id_resolver key type
[    0.551104] Key type id_resolver registered
[    0.551110] Key type id_legacy registered
[    0.551154] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.551162] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
[    0.551550] Key type cifs.idmap registered
[    0.551562] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    0.551753] fuse: init (API version 7.37)
[    0.573437] Key type asymmetric registered
[    0.573455] Asymmetric key parser 'x509' registered
[    0.573499] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 248)
[    0.573509] io scheduler mq-deadline registered
[    0.573517] io scheduler kyber registered
[    0.607410] Serial: 8250/16550 driver, 3 ports, IRQ sharing disabled
[    0.628939] 11002000.serial: ttyS0 at MMIO 0x11002000 (irq = 116, base_baud = 2500000) is a ST16650V2
[    1.510300] printk: console [ttyS0] enabled
[    1.535545] 11003000.serial: ttyS1 at MMIO 0x11003000 (irq = 117, base_baud = 1625000) is a ST16650V2
[    1.565728] 11004000.serial: ttyS2 at MMIO 0x11004000 (irq = 118, base_baud = 1625000) is a ST16650V2
[    1.575688] mtk_rng 1020f000.rng: registered RNG driver
[    1.581166] cacheinfo: Unable to detect cache hierarchy for CPU 0
[    1.590595] loop: module loaded
[    1.595421] spi-nand spi0.0: Winbond SPI NAND was found.
[    1.600743] spi-nand spi0.0: 128 MiB, block size: 128 KiB, page size: 2048, OOB size: 64
[    1.609045] 4 fixed-partitions partitions found on MTD device spi0.0
[    1.615400] Creating 4 MTD partitions on "spi0.0":
[    1.620179] 0x000000580000-0x000008000000 : "ubi"
[    1.740209] 0x000000380000-0x000000580000 : "fip"
[    1.747717] 0x000000080000-0x000000380000 : "reserved"
[    1.756553] 0x000000000000-0x000000080000 : "bl2"
[    1.763636] sfp sfp-1: Host maximum power 1.0W
[    1.768580] sfp sfp-2: Host maximum power 1.0W
[    1.787345] mtk_soc_eth 15100000.ethernet eth0: mediatek frame engine at 0xffffffc00b100000, irq 121
[    1.796563] mtk_soc_eth 15100000.ethernet: generated random MAC address ae:6d:42:4e:60:4d
[    1.804988] mtk_soc_eth 15100000.ethernet eth1: mediatek frame engine at 0xffffffc00b100000, irq 121
[    1.814531] usbcore: registered new interface driver usb-storage
[    1.820722] i2c_dev: i2c /dev entries driver
[    1.827044] mtk-wdt 1001c000.watchdog: Watchdog enabled (timeout=31 sec, nowayout=0)
[    1.835750] SMCCC: SOC_ID: ID = jep106:0426:7986 Revision = 0x00000000
[    1.842436] usbcore: registered new interface driver usbhid
[    1.848015] usbhid: USB HID core driver
[    1.852186] NET: Registered PF_INET6 protocol family
[    1.857929] Segment Routing with IPv6
[    1.861615] In-situ OAM (IOAM) with IPv6
[    1.865605] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    1.871899] NET: Registered PF_PACKET protocol family
[    1.877107] 8021q: 802.1Q VLAN Support v1.8
[    1.881314] Key type dns_resolver registered
[    1.886032] Loading compiled-in X.509 certificates
[    1.896725] mmc0: host does not support reading read-only switch, assuming write-enable
[    1.899494] mtk-pcie-gen3 11280000.pcie: host bridge /soc/pcie@11280000 ranges:
[    1.908062] mmc0: new high speed SDHC card at address aaaa
[    1.912052] mtk-pcie-gen3 11280000.pcie: Parsing ranges property...
[    1.918322] mmcblk0: mmc0:aaaa SR32G 29.7 GiB 
[    1.923781] mtk-pcie-gen3 11280000.pcie:      MEM 0x0020000000..0x002fffffff -> 0x0020000000
[    1.932856] GPT:Primary header thinks Alt. header is not at the end of the disk.
[    1.944053] GPT:1 != 62333951
[    1.947011] GPT:Alternate GPT header not at the end of the disk.
[    1.953008] GPT:1 != 62333951
[    1.955962] GPT: Use GNU Parted to correct GPT errors.
[    1.961100]  mmcblk0: p1 p2 p3 p4 p5 p6
[    2.152372] mtk-pcie-gen3 11280000.pcie: PCIe link down, current LTSSM state: detect.active (0x1000001)
[    2.161798] mtk-pcie-gen3: probe of 11280000.pcie failed with error -110
[    2.191290] mt7530 mdio-bus:1f: configuring for fixed/2500base-x link mode
[    2.198460] mt7530 mdio-bus:1f: Link is Up - 2.5Gbps/Full - flow control rx/tx
[    2.207403] mt7530 mdio-bus:1f wan (uninitialized): PHY [mt7530-0:00] driver [MediaTek MT7531 PHY] (ir)
[    2.227280] mt7530 mdio-bus:1f lan0 (uninitialized): PHY [mt7530-0:01] driver [MediaTek MT7531 PHY] (i)
[    2.246956] mt7530 mdio-bus:1f lan1 (uninitialized): PHY [mt7530-0:02] driver [MediaTek MT7531 PHY] (i)
[    2.266618] mt7530 mdio-bus:1f lan2 (uninitialized): PHY [mt7530-0:03] driver [MediaTek MT7531 PHY] (i)
[    2.286286] mt7530 mdio-bus:1f lan3 (uninitialized): PHY [mt7530-0:04] driver [MediaTek MT7531 PHY] (i)
[    2.297226] device eth0 entered promiscuous mode
[    2.301881] DSA: tree 0 setup
[    2.305248] xhci-mtk 11200000.usb: supply vbus not found, using dummy regulator
[    2.312639] xhci-mtk 11200000.usb: supply vusb33 not found, using dummy regulator
[    2.320982] xhci-mtk 11200000.usb: xHCI Host Controller
[    2.326225] xhci-mtk 11200000.usb: new USB bus registered, assigned bus number 1
[    2.336609] xhci-mtk 11200000.usb: hcc params 0x01403f99 hci version 0x110 quirks 0x0000000000210010
[    2.345772] xhci-mtk 11200000.usb: irq 132, io mem 0x11200000
[    2.351590] xhci-mtk 11200000.usb: xHCI Host Controller
[    2.356812] xhci-mtk 11200000.usb: new USB bus registered, assigned bus number 2
[    2.364200] xhci-mtk 11200000.usb: Host supports USB 3.2 Enhanced SuperSpeed
[    2.371696] hub 1-0:1.0: USB hub found
[    2.375475] hub 1-0:1.0: 2 ports detected
[    2.379771] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[    2.388207] hub 2-0:1.0: USB hub found
[    2.391970] hub 2-0:1.0: 1 port detected
[    2.396988] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[    2.405645] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[    2.412735] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[    2.421339] platform regulatory.0: Falling back to sysfs fallback for: regulatory.db
[    2.439832] EXT4-fs (mmcblk0p6): INFO: recovery required on readonly filesystem
[    2.447159] EXT4-fs (mmcblk0p6): write access will be enabled during recovery
[    2.842355] usb 1-1: new high-speed USB device number 2 using xhci-mtk
[    3.023115] hub 1-1:1.0: USB hub found
[    3.026919] hub 1-1:1.0: 4 ports detected
[    3.099877] EXT4-fs (mmcblk0p6): recovery complete
[    3.109339] EXT4-fs (mmcblk0p6): mounted filesystem with ordered data mode. Quota mode: disabled.
[    3.118240] VFS: Mounted root (ext4 filesystem) readonly on device 179:6.
[    3.126070] devtmpfs: mounted
[    3.130574] Freeing unused kernel memory: 4480K
[    3.135195] Run /sbin/init as init process
[    3.139278]   with arguments:
[    3.142233]     /sbin/init
[    3.144933]   with environment:
[    3.148060]     HOME=/
[    3.150407]     TERM=linux
[    3.153107]     board=bpi-r3
[    3.799001] systemd[1]: System time before build time, advancing clock.
[    3.825626] systemd[1]: Failed to look up module alias 'autofs4': Function not implemented
[    3.868705] systemd[1]: systemd 247.3-7+deb11u1 running in system mode. (+PAM +AUDIT +SELINUX +IMA +AP)
[    3.891991] systemd[1]: Detected architecture arm64.

Welcome to Debian GNU/Linux 11 (bullseye)!

[    3.943229] systemd[1]: Set hostname to <bpi-r3>.
[    4.593203] systemd[1]: /etc/systemd/system/rc-local.service:11: Support for option SysVStartPriority=d
[    4.628493] systemd[1]: Queued start job for default target Graphical Interface.
[   11.992615] random: crng init done
[   11.992759] systemd[1]: system-getty.slice: unit configures an IP firewall, but the local system does .
[   12.008361] systemd[1]: (This warning is only shown for the first unit using IP firewalling.)
[   12.053407] systemd[1]: Created slice system-getty.slice.
[  OK  ] Created slice system-getty.slice.
[   12.093234] systemd[1]: Created slice system-modprobe.slice.
[  OK  ] Created slice system-modprobe.slice.
[   12.133167] systemd[1]: Created slice system-serial\x2dgetty.slice.
[  OK  ] Created slice system-serial\x2dgetty.slice.
[   12.173054] systemd[1]: Created slice User and Session Slice.
[  OK  ] Created slice User and Session Slice.
[   12.212670] systemd[1]: Started Dispatch Password Requests to Console Directory Watch.
[  OK  ] Started Dispatch Password …ts to Console Directory Watch.
[   12.252565] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
[  OK  ] Started Forward Password R…uests to Wall Directory Watch.
[   12.292511] systemd[1]: Condition check resulted in Arbitrary Executable File Formats File System Auto.
[   12.304197] systemd[1]: Reached target Local Encrypted Volumes.
[  OK  ] Reached target Local Encrypted Volumes.
[   12.342512] systemd[1]: Reached target Paths.
[  OK  ] Reached target Paths.
[   12.372432] systemd[1]: Reached target Remote File Systems.
[  OK  ] Reached target Remote File Systems.
[   12.412421] systemd[1]: Reached target Slices.
[  OK  ] Reached target Slices.
[   12.442440] systemd[1]: Reached target Swap.
[  OK  ] Reached target Swap.
[   12.472845] systemd[1]: Listening on Syslog Socket.
[  OK  ] Listening on Syslog Socket.
[   12.502651] systemd[1]: Listening on initctl Compatibility Named Pipe.
[  OK  ] Listening on initctl Compatibility Named Pipe.
[   12.547219] systemd[1]: Condition check resulted in Journal Audit Socket being skipped.
[   12.555746] systemd[1]: Listening on Journal Socket (/dev/log).
[  OK  ] Listening on Journal Socket (/dev/log).
[   12.592855] systemd[1]: Listening on Journal Socket.
[  OK  ] Listening on Journal Socket.
[   12.622927] systemd[1]: Listening on Network Service Netlink Socket.
[  OK  ] Listening on Network Service Netlink Socket.
[   12.663662] systemd[1]: Listening on udev Control Socket.
[  OK  ] Listening on udev Control Socket.
[   12.702760] systemd[1]: Listening on udev Kernel Socket.
[  OK  ] Listening on udev Kernel Socket.
[   12.742750] systemd[1]: Condition check resulted in Huge Pages File System being skipped.
[   12.822594] systemd[1]: Mounting POSIX Message Queue File System...
         Mounting POSIX Message Queue File System...
[   12.864724] systemd[1]: Mounting Kernel Debug File System...
         Mounting Kernel Debug File System...
[   12.904761] systemd[1]: Mounting Kernel Trace File System...
         Mounting Kernel Trace File System...
[   12.942626] systemd[1]: Condition check resulted in Create list of static device nodes for the current.
[   12.956323] systemd[1]: Starting Load Kernel Module configfs...
         Starting Load Kernel Module configfs...
[   12.994915] systemd[1]: Starting Load Kernel Module drm...
         Starting Load Kernel Module drm...
[   13.034874] systemd[1]: Starting Load Kernel Module fuse...
         Starting Load Kernel Module fuse...
[   13.072538] systemd[1]: Condition check resulted in OpenVSwitch configuration for cleanup being skippe.
[   13.083679] systemd[1]: Condition check resulted in Set Up Additional Binary Formats being skipped.
[   13.132836] systemd[1]: Starting Journal Service...
         Starting Journal Service...
[   13.167300] systemd[1]: Starting Load Kernel Modules...
         Starting Load Kernel Modules...
[   13.204843] systemd[1]: Starting Remount Root and Kernel File Systems...
         Starting Remount Root and Kernel File Systems...
[   13.228536] EXT4-fs (mmcblk0p6): re-mounted. Quota mode: disabled.
[   13.244856] systemd[1]: Starting Coldplug All udev Devices...
         Starting Coldplug All udev Devices...
[   13.286379] systemd[1]: Started Journal Service.
[  OK  ] Started Journal Service.
[  OK  ] Mounted POSIX Message Queue File System.
[  OK  ] Mounted Kernel Debug File System.
[  OK  ] Mounted Kernel Trace File System.
[  OK  ] Finished Load Kernel Module configfs.
[  OK  ] Finished Load Kernel Module drm.
[  OK  ] Finished Load Kernel Module fuse.
[FAILED] Failed to start Load Kernel Modules.
See 'systemctl status systemd-modules-load.service' for details.
[  OK  ] Finished Remount Root and Kernel File Systems.
         Mounting FUSE Control File System...
         Mounting Kernel Configuration File System...
         Starting Flush Journal to Persistent Storage...
[   13.757131] systemd-journald[1102]: Received client request to flush runtime journal.
         Starting Load/Save Random Seed...
[   13.797646] systemd-journald[1102]: File /var/log/journal/f223b6b9f19a4af09caff671d8e9d1c1/system.jour.
         Starting Apply Kernel Variables...
         Starting Create System Users...
[  OK  ] Mounted FUSE Control File System.
[  OK  ] Finished Coldplug All udev Devices.
[  OK  ] Mounted Kernel Configuration File System.
         Starting Helper to synchronize boot up for ifupdown...
[  OK  ] Finished Load/Save Random Seed.
[  OK  ] Finished Apply Kernel Variables.
[  OK  ] Finished Create System Users.
[  OK  ] Finished Flush Journal to Persistent Storage.
         Starting Create Static Device Nodes in /dev...
[  OK  ] Finished Create Static Device Nodes in /dev.
[  OK  ] Reached target Local File Systems (Pre).
         Starting Rule-based Manage…for Device Events and Files...
[  OK  ] Started Rule-based Manager for Device Events and Files.
         Starting Network Service...
[   14.595141] mtdblock: MTD device 'ubi' is NAND, please consider using UBI block devices instead.
[  OK     14.604678] mtdblock: MTD device 'fip' is NAND, please consider using UBI block devices instead.
0m] Found device[   14.609329] mtdblock: MTD device 'reserved' is NAND, please consider using UBI block d.
 /dev/t[   14.625409] mtdblock: MTD device 'bl2' is NAND, please consider using UBI block devices instead.
[   14.627772] cfg80211: failed to load regulatory.db
tyS0.
[  OK  ] Found device /dev/mmcblk0p5.
[  OK  ] Finished Helper to synchronize boot up for ifupdown.
[   15.249101] mtk_soc_eth 15100000.ethernet eth0: configuring for fixed/2500base-x link mode
[   15.257451] mtk_soc_eth 15100000.ethernet eth0: Link is Up - 2.5Gbps/Full - flow control rx/tx
[   15.258130] mt7530 mdio-bus:1f lan3: configuring for phy/gmii link mode
[  OK  ] Started    15.274849] mt7530 mdio-bus:1f lan2: configuring for phy/gmii link mode
1;39mNetwork Service.
[   15.283888] lanbr0: port 1(lan1) entered blocking state
[   15.289967] lanbr0: port 1(lan1) entered disabled state
[   15.298473] device lan1 entered promiscuous mode
[   15.306261] lanbr0: port 2(lan0) entered blocking state
[   15.311495] lanbr0: port 2(lan0) entered disabled state
[   15.318260] device lan0 entered promiscuous mode
[   15.393647] mt7530 mdio-bus:1f wan: configuring for phy/gmii link mode
[   15.400697] device wan entered promiscuous mode
[   15.553381] mt7530 mdio-bus:1f lan1: configuring for phy/gmii link mode
[   15.561318] mt7530 mdio-bus:1f lan0: configuring for phy/gmii link mode
[  OK  ] Listening on Load/Save RF …itch Status /dev/rfkill Watch.
         Mounting /boot...
[   15.776774] FAT-fs (mmcblk0p5): Volume was not properly unmounted. Some data may be corrupt. Please ru.
[  OK  ] Mounted /boot.
[  OK  ] Reached target Local File Systems.
[  OK  ] Started ifup for lan2.
         Starting Raise network interfaces...
         Starting Create Volatile Files and Directories...
[  OK  ] Finished Create Volatile Files and Directories.
         Starting Network Name Resolution...
         Starting Update UTMP about System Boot/Shutdown...
[  OK  ] Finished Raise network interfaces.
[  OK  ] Finished Update UTMP about System Boot/Shutdown.
[  OK  ] Reached target System Initialization.
[  OK  ] Started Daily apt download activities.
[  OK  ] Started Daily apt upgrade and clean activities.
[  OK  ] Started Periodic ext4 Onli…ata Check for All Filesystems.
[  OK  ] Started Discard unused blocks once a week.
[  OK  ] Started Daily rotation of log files.
[  OK  ] Started Daily Cleanup of Temporary Directories.
[  OK  ] Reached target Timers.
[  OK  ] Listening on D-Bus System Message Bus Socket.
[  OK  ] Reached target Sockets.
[  OK  ] Reached target Basic System.
[  OK  ] Started Regular background program processing daemon.
[  OK  ] Started D-Bus System Message Bus.
         Starting Remove Stale Onli…t4 Metadata Check Snapshots...
         Starting /etc/rc.local...
         Starting System Logging Service...
         Starting User Login Management...
[  OK  ] Started TagProbeFirmware startup.
[  OK  ] Started Network Name Resolution.
[  OK  ] Started /etc/rc.local.
[  OK  ] Reached target Network.
         Starting dnsmasq - A light…DHCP and caching DNS server...
         Starting Access point and …rver for Wi-Fi and Ethernet...
         Starting OpenBSD Secure Shell server...
         Starting Permit User Sessions...
[  OK  ] Finished Permit User Sessions.
[  OK  ] Started User Login Management.
[  OK  ] Started Getty on tty1.
[  OK  ] Started Serial Getty on ttyS0.
[  OK  ] Reached target Login Prompts.
[FAILED] Failed to start Access poi…server for Wi-Fi and Ethernet.
See 'systemctl status hostapd.service' for details.
[  OK  ] Started dnsmasq - A lightw…t DHCP and caching DNS server.
[  OK  ] Reached target Host and Network Name Lookups.
[  OK  ] Started OpenBSD Secure Shell server.
[  OK  ] Finished Remove Stale Onli…ext4 Metadata Check Snapshots.
[  OK  ] Stopped Access point and a…server for Wi-Fi and Ethernet.
         Starting Access point and …rver for Wi-Fi and Ethernet...
[FAILED] Failed to start Access poi…server for Wi-Fi and Ethernet.
See 'systemctl status hostapd.service' for details.
[  OK  ] Stopped Access point and a…server for Wi-Fi and Ethernet.
         Starting Access point and …rver for Wi-Fi and Ethernet...
[FAILED] Failed to start Access poi…server for Wi-Fi and Ethernet.
See 'systemctl status hostapd.service' for details.

Debian GNU/Linux 11 bpi-r3 ttyS0


These are vlan-interfaces that you maybe not need (created by networkd files) and can be ignored by now (it is my config i shared as example).

If you still not see wlan0/wlan1 try loading mt7915e module and look what it says and if wlanX is shown after it. 5g needs rfkill and wireless-crdb packages installed

https://wiki.fw-web.de/doku.php?id=en:bpi-r3:wlan

If you have wlan interfaces you can look for hostapd

systemctl status hostapd

for 2g and for 5g

systemctl status hostapd2

When i try to load such module, it says it does not exist: root@bpi-r3:/etc/resolvconf/update.d# modprobe mt7915e modprobe: FATAL: Module mt7915e not found in directory /lib/modules/6.1.0-bpi-r3

Also looking ad build.sh config and there is this option: image Do i need to recompile the kernel with these enabled?

I thought that hardware drivers/modules were already included when issuing build.sh importconfig

It should be enabled via defconfig…

And you can try using find for listing module

find /lib/modules/$(uname -r) -iname '*.ko'

After messing things up, i reflashed Debian 11 image built with my kernel (CIFS+FUSE) and issued that command. happens that directory name is different: image

As we already knew, mt7915e is not listed…

I assume e need to rebuild kernel with such module… is that correct? Or its just copying firmware files from your sysconfig gdrive?

i see mt7915e.ko listed in your screenshot (middle of 3 longest lines), but i’m unsure if you searched in the right folder…pls use the command i posted with $(uname -r)

uname -a shows more information e.g. the compile date which should be today for your kernel and older for mine

added cifs to my 6.1-main and updated kernelsource to last version of 6.1 (.12) (and the other lts-branches, but unrelated for r3)

Sorry. Did not see it there. What happens when i do your command: image

Seems like the kernel is has a “-main” suffix: image Can it be because i downloaded github repository zip file (via http) instead of cloning?

Output of uname -a: image I just created a new image now, basically using same procedure but adding that mediatek module that i mentioned before (MT7915E (PCIe)). Now i have this: image

Quite stuck with no more ideas…

ok, the modules-dir is from my original kernel (with -main suffix because created from a git-directory). your internal kernel-name is without -main (you see it with “uname -r”) where you have no modules installed…

do you have any other directory in /lib/modules?

have you used install-function from build.sh (called when running without arguments when using install to sdcard choice)?

maybe this failes if not running from a git-clone…have not tried

when pipeline is ready for 6.1 you can use this kernel for first try as i added cifs there

AHH yep that makes perfect sense. Yes i used install to sd card.

The fun fact is that i managed to get CIFS working but not the mediatek wifi.

Can it be taht CIFS kernel module is being looked at …-main and mediatek module is being looked up at /lib/modules/6.1.0-bpi-r3 (without the suffix)?

no, modules are always searched in /lib/modules/$(uname -r)

it seems you have not such dir and so your cifs be builtin (no module).

just look at the output the install function give you…maybe you see any error there…maybe sudo failed?

By builtin, it means that in the kernel config menu i pressed “Y” instead of “M”. Correct?

Im sorry for so much newbie questions but this is new for me.

Install function did not seem to give any error.

I will try now with cloned repo

correct

no problem…everybody do anything the first time :slight_smile:

install function should print all modules installed to the rootfs of your card before the Info “syncing sd-card…this will take a while”

install path is /media/$USER/BPI-ROOT/ (and then /lib/modules/<internal-kernel-name>) maybe this does not match your mounted rootfs

Thanks for your understanding… learning a lot right now.

Another thing, i see a bunch of branches in here:

I should stick to this 6.1-main branch correct? Because looks like there are some bpi r3 specific branches