Banana pi R3 no CIFS module

So I’m using the Ubuntu 22.04 image and I need to mount a network filesystem with CIFS however the current ubuntu image doesn’t have the CIFS modules and these cannot be installed from the repo. Does anyone know where I can get CIFS modules for this kernel and how to install them? Or maybe a ubuntu image compatible with Banana PI R3 that comes with CIFS modules?

3 options here:

  1. Build the cifs fs module using dkms. I see there is a good example here at section 2.

  2. Totally rebuild the kernel with cifs fs enabled. See here at linux section

  3. Maybe it can be added to the default build @frank-w ? I recently added it as well to my R64 kernel build. Actually a whole bunch:

-# CONFIG_NETWORK_FILESYSTEMS is not set
+CONFIG_NFS_FS=m
+CONFIG_NFS_V3_ACL=y
+CONFIG_NFS_V4=m
+CONFIG_NFS_V4_1=y
+CONFIG_NFS_V4_2=y
+CONFIG_NFS_V4_1_MIGRATION=y
+CONFIG_NFS_USE_LEGACY_DNS=y
+CONFIG_NFS_V4_2_READ_PLUS=y
+CONFIG_NFSD=m
+CONFIG_NFSD_V3_ACL=y
+CONFIG_NFSD_V4=y
+CONFIG_NFSD_BLOCKLAYOUT=y
+CONFIG_NFSD_SCSILAYOUT=y
+CONFIG_NFSD_FLEXFILELAYOUT=y
+CONFIG_NFSD_V4_2_INTER_SSC=y
+CONFIG_SUNRPC_DEBUG=y
+CONFIG_CEPH_FS=m
+CONFIG_CEPH_FS_POSIX_ACL=y
+CONFIG_CIFS=m
+CONFIG_CIFS_UPCALL=y
+CONFIG_CIFS_XATTR=y
+CONFIG_CIFS_POSIX=y
+CONFIG_CIFS_DEBUG2=y
+CONFIG_CIFS_DEBUG_DUMP_KEYS=y
+CONFIG_CIFS_DFS_UPCALL=y
+CONFIG_CIFS_SWN_UPCALL=y
+CONFIG_SMB_SERVER=m
+CONFIG_SMB_SERVER_KERBEROS5=y
+CONFIG_CODA_FS=m
+CONFIG_AFS_FS=m
+CONFIG_AFS_DEBUG=y
+CONFIG_AFS_DEBUG_CURSOR=y

I can add it,but i’m unsure if my kernel is compatible with vendor image

Ow, I confused that image with your image…

Guess option 1 remains for that image.

Option 2 would need to refer to BPI-SINOVOIP/BPI-R3-bsp-5.15 (github.com)

Basicly you can use my debian image, backup modules,clean root-partition and add ubuntu 22.4 rootfs created by debootstrap and copy modules back again

I have an aarch64 ubuntu 22.4 on my gdrive which can be used as base

I could expand my ArchLinux script to R3 also, but I don’t have one to test it…

You can use uboot/atf/base-image from my uboot-repo

This is how i created it:

Ubuntu-rootfs: https://drive.google.com/drive/mobile/folders/1WLWAR1FC-rF4n2SgFecBlU1ym_XKqAR_/15Y5Y3NAOwg_IMmN3k6hdb7pAQj9oTVTl/1mEcz1NLX8kv_AOKCPGGBcebRtLVNrQqF?sort=13&direction=a

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

How this is created and how to change it (chroot):

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

Hello

First and foremost, i want to say that i am new to this kernel/OS/bootloader hacking and that i may put some stupid questions or be unable to understand some explanations of yours. Sorry for something.

I am also using BPI R3 with the need to mount both CIFS and WEBDAV (which uses FUSE) filesystems. So i guess i need 2 kernel modules with at the time, are not installed in your ubuntu kernel. Since this thread is about CIFS, lets stick to that. I tried compiling the kernel with CIFS (and FUSE) support from this instructions:

When build.sh finished it gave me 4 options to choose what i want to do with the compiled kernel, from which i choose install to SD-card (2). I inserted an sd card with this image (ubuntu 22.04 taken from banana pi wiki):

Install seemed OK but after i load it back in the bpi, i get the boot log below. Now, on the repository, i see this:

you can also install direct to sd-card which makes a backup of kernelfile, here you have to change your uEnv.txt if you use a new filename (by default it’s containing kernelversion

But i donmt really know what to change in uEnv.txt.

Help is much apreciated.

Thanks advance!

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
[    0.000000] Linux version 5.15.77 ([email protected]) (aarch64-linux-gnu-gcc (Ubuntu/Linaro 7.5.0-3ubuntu1~18.04) 7.5.0, GNU ld (GNU Binutils for Ubuntu) 2.30) #2 SMP Sun Nov 20 19:04:00 CST 2022
[    0.000000] Machine model: Bananapi BPI-R3
[    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 17 pages/cpu s29592 r8192 d31848 u69632
[    0.000000] pcpu-alloc: s29592 r8192 d31848 u69632 alloc=17*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: kernel page table isolation disabled by kernel configuration
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 516096
[    0.000000] Kernel command line: board=bpi-r3 console=ttyS0,115200n1 earlyprintk root=/dev/mmcblk0p6 rootfstype=ext4 rw rootwait service=linux-5.15 debug=8 initcall_debug=0 androidboot.hardware=mt7986a swiotlb=512 cgroup_enable=memory cgroup_memory=1
[    0.000000] Unknown kernel command line parameters "earlyprintk board=bpi-r3 service=linux-5.15 cgroup_enable=memory cgroup_memory=1", 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: 2041116K/2097152K available (9920K kernel code, 908K rwdata, 2648K rodata, 448K init, 304K bss, 56036K reserved, 0K cma-reserved)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] rcu: Hierarchical RCU implementation.
[    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] GICv3: Distributor has no Range Selector support
[    0.000000] Root IRQ handler: gic_handle_irq
[    0.000000] GICv3: 16 PPIs implemented
[    0.000000] GICv3: CPU0: found redistributor 0 region 0:0x000000000c080000
[    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.000000] sched_clock: 56 bits at 13MHz, resolution 76ns, wraps every 4398046511101ns
[    0.000136] Calibrating delay loop (skipped), value calculated using timer frequency.. 26.00 BogoMIPS (lpj=130000)
[    0.000145] pid_max: default: 32768 minimum: 301
[    0.000234] Mount-cache hash table entries: 4096 (order: 3, 32768 bytes, linear)
[    0.000247] Mountpoint-cache hash table entries: 4096 (order: 3, 32768 bytes, linear)
[    0.001134] rcu: Hierarchical SRCU implementation.
[    0.001221] dyndbg: Ignore empty _ddebug table in a CONFIG_DYNAMIC_DEBUG_CORE build
[    0.001411] smp: Bringing up secondary CPUs ...
[    0.001642] Detected VIPT I-cache on CPU1
[    0.001666] GICv3: CPU1: found redistributor 1 region 0:0x000000000c0a0000
[    0.001693] CPU1: Booted secondary processor 0x0000000001 [0x410fd034]
[    0.001955] Detected VIPT I-cache on CPU2
[    0.001967] GICv3: CPU2: found redistributor 2 region 0:0x000000000c0c0000
[    0.001978] CPU2: Booted secondary processor 0x0000000002 [0x410fd034]
[    0.002197] Detected VIPT I-cache on CPU3
[    0.002207] GICv3: CPU3: found redistributor 3 region 0:0x000000000c0e0000
[    0.002217] CPU3: Booted secondary processor 0x0000000003 [0x410fd034]
[    0.002244] smp: Brought up 1 node, 4 CPUs
[    0.002258] SMP: Total of 4 processors activated.
[    0.002261] CPU features: detected: 32-bit EL0 Support
[    0.002265] CPU features: detected: CRC32 instructions
[    0.002371] CPU: All CPU(s) started at EL2
[    0.002382] alternatives: patching kernel code
[    0.002979] devtmpfs: initialized
[    0.004878] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.004895] futex hash table entries: 1024 (order: 4, 65536 bytes, linear)
[    0.005007] pinctrl core: initialized pinctrl subsystem
[    0.005444] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    0.005732] DMA: preallocated 256 KiB GFP_KERNEL pool for atomic allocations
[    0.005762] DMA: preallocated 256 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations
[    0.005791] DMA: preallocated 256 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
[    0.006025] thermal_sys: Registered thermal governor 'fair_share'
[    0.006028] thermal_sys: Registered thermal governor 'bang_bang'
[    0.006031] thermal_sys: Registered thermal governor 'step_wise'
[    0.006034] thermal_sys: Registered thermal governor 'user_space'
[    0.006274] ASID allocator initialised with 65536 entries
[    0.006585] pstore: Registered ramoops as persistent store backend
[    0.006589] ramoops: using 0x10000@0x42ff0000, ecc: 0
[    0.015930] cryptd: max_cpu_qlen set to 1000
[    0.017645] SCSI subsystem initialized
[    0.017733] libata version 3.00 loaded.
[    0.017817] usbcore: registered new interface driver usbfs
[    0.017838] usbcore: registered new interface driver hub
[    0.017854] usbcore: registered new device driver usb
[    0.018749] clocksource: Switched to clocksource arch_sys_counter
[    0.019225] NET: Registered PF_INET protocol family
[    0.019341] IP idents hash table entries: 32768 (order: 6, 262144 bytes, linear)
[    0.019954] tcp_listen_portaddr_hash hash table entries: 1024 (order: 2, 16384 bytes, linear)
[    0.019975] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.019983] TCP established hash table entries: 16384 (order: 5, 131072 bytes, linear)
[    0.020051] TCP bind hash table entries: 16384 (order: 6, 262144 bytes, linear)
[    0.020221] TCP: Hash tables configured (established 16384 bind 16384)
[    0.020295] UDP hash table entries: 1024 (order: 3, 32768 bytes, linear)
[    0.020323] UDP-Lite hash table entries: 1024 (order: 3, 32768 bytes, linear)
[    0.020428] NET: Registered PF_UNIX/PF_LOCAL protocol family
[    0.020674] RPC: Registered named UNIX socket transport module.
[    0.020679] RPC: Registered udp transport module.
[    0.020682] RPC: Registered tcp transport module.
[    0.020684] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.021070] PCI: CLS 0 bytes, default 64
[    0.022773] Initialise system trusted keyrings
[    0.022894] workingset: timestamp_bits=46 max_order=19 bucket_order=0
[    0.024942] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.025297] Installing knfsd (copyright (C) 1996 [email protected]).
[    0.025373] ntfs: driver 2.1.32 [Flags: R/O].
[    0.025448] ntfs3: Max link count 4000
[    0.025479] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.047233] Key type asymmetric registered
[    0.047240] Asymmetric key parser 'x509' registered
[    0.048332] pwm-mediatek 10048000.pwm: clock: top fail: -517
[    0.048626] mtk-pcie-gen3 11280000.pcie: host bridge /soc/pcie@11280000 ranges:
[    0.048647] mtk-pcie-gen3 11280000.pcie: Parsing ranges property...
[    0.048657] mtk-pcie-gen3 11280000.pcie:      MEM 0x0020000000..0x002fffffff -> 0x0020000000
[    0.048701] phy phy-soc:[email protected]: u3 auto load valid efuse: ENABLE with value: 1
[    0.048730] phy phy-soc:[email protected]: pcie auto load valid efuse: ENABLE with value: 1
[    0.048780] phy phy-soc:[email protected]: u3 lane1 efuse - intr 2d, rx_imp 12, tx_imp 12
[    0.048841] /soc/pcie@11280000: Failed to get clk index: 0 ret: -517
[    0.048851] mtk-pcie-gen3 11280000.pcie: failed to get clocks
[    0.051009] Serial: 8250/16550 driver, 3 ports, IRQ sharing disabled
[    0.051688] printk: console [ttyS0] disabled
[    0.071839] 11002000.serial: ttyS0 at MMIO 0x11002000 (irq = 122, base_baud = 2500000) is a ST16650V2
[    0.869365] printk: console [ttyS0] enabled
[    0.894198] 11003000.serial: ttyS1 at MMIO 0x11003000 (irq = 123, base_baud = 1625000) is a ST16650V2
[    0.904119] mtk_rng 1020f000.trng: registered RNG driver
[    0.904178] hwrng: no data available
[    0.909662] cacheinfo: Unable to detect cache hierarchy for CPU 0
[    0.921163] loop: module loaded
[    0.925290] spi-nand spi0.0: Winbond SPI NAND was found.
[    0.930612] spi-nand spi0.0: 128 MiB, block size: 128 KiB, page size: 2048, OOB size: 64
[    0.938850] 1 fixed-partitions partitions found on MTD device spi0.0
[    0.945187] Creating 1 MTD partitions on "spi0.0":
[    0.949966] 0x000000000000-0x000008000000 : "all"
[    1.077319] mtk_soc_eth 15100000.ethernet eth0: mediatek frame engine at 0xffffffc009800000, irq 132
[    1.086497] mtk_soc_eth 15100000.ethernet: generated random MAC address 12:9a:bd:c9:1e:10
[    1.094854] mtk_soc_eth 15100000.ethernet eth1: mediatek frame engine at 0xffffffc009800000, irq 132
[    1.104241] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.110761] ehci-pci: EHCI PCI platform driver
[    1.115215] ehci-platform: EHCI generic platform driver
[    1.120528] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    1.126703] ohci-pci: OHCI PCI platform driver
[    1.131990] usbcore: registered new interface driver uas
[    1.137323] usbcore: registered new interface driver usb-storage
[    1.143486] usbcore: registered new interface driver cp210x
[    1.149064] usbserial: USB Serial support registered for cp210x
[    1.154977] usbcore: registered new interface driver ftdi_sio
[    1.160718] usbserial: USB Serial support registered for FTDI USB Serial Device
[    1.168098] i2c_dev: i2c /dev entries driver
[    1.173920] mtk-wdt 1001c000.watchdog: Watchdog enabled (timeout=31 sec, nowayout=0)
[    1.182346] NET: Registered PF_INET6 protocol family
[    1.187887] Segment Routing with IPv6
[    1.191580] In-situ OAM (IOAM) with IPv6
[    1.195517] NET: Registered PF_PACKET protocol family
[    1.200645] 8021q: 802.1Q VLAN Support v1.8
[    1.204949] Loading compiled-in X.509 certificates
[    1.210496] pstore: Using crash dump compression: deflate
[    1.221007] mtk-pcie-gen3 11280000.pcie: host bridge /soc/pcie@11280000 ranges:
[    1.228317] mtk-pcie-gen3 11280000.pcie: Parsing ranges property...
[    1.234583] mtk-pcie-gen3 11280000.pcie:      MEM 0x0020000000..0x002fffffff -> 0x0020000000
[    1.243062] phy phy-soc:[email protected]: u3 auto load valid efuse: ENABLE with value: 1
[    1.243418] mmc0: host does not support reading read-only switch, assuming write-enable
[    1.251159] phy phy-soc:[email protected]: pcie auto load valid efuse: ENABLE with value: 1
[    1.262504] mmc0: new high speed SDHC card at address aaaa
[    1.267371] phy phy-soc:[email protected]: u3 lane1 efuse - intr 2d, rx_imp 12, tx_imp 12
[    1.273628] mmcblk0: mmc0:aaaa SR32G 29.7 GiB 
[    1.290981]  mmcblk0: p1 p2 p3 p4 p5 p6
[    1.498774] mtk-pcie-gen3 11280000.pcie: PCIe link down, ltssm reg val: 0x1000001
[    1.506275] mtk-pcie-gen3: probe of 11280000.pcie failed with error -110
[    1.535419] mt7530 mdio-bus:1f: configuring for fixed/2500base-x link mode
[    1.542567] mt7530 mdio-bus:1f: Link is Up - 2.5Gbps/Full - flow control rx/tx
[    1.551508] mt7530 mdio-bus:1f wan (uninitialized): PHY [mt7530-0:00] driver [MediaTek MT7531 PHY] (irq=140)
[    1.571396] mt7530 mdio-bus:1f lan1 (uninitialized): PHY [mt7530-0:01] driver [MediaTek MT7531 PHY] (irq=141)
[    1.590967] mt7530 mdio-bus:1f lan2 (uninitialized): PHY [mt7530-0:02] driver [MediaTek MT7531 PHY] (irq=142)
[    1.610521] mt7530 mdio-bus:1f lan3 (uninitialized): PHY [mt7530-0:03] driver [MediaTek MT7531 PHY] (irq=143)
[    1.630070] mt7530 mdio-bus:1f lan4 (uninitialized): PHY [mt7530-0:04] driver [MediaTek MT7531 PHY] (irq=144)
[    1.640737] DSA: tree 0 setup
[    1.644226] phy phy-soc:[email protected]: u2 auto load valid efuse: ENABLE with value: 1
[    1.652373] phy phy-soc:[email protected]: u3 auto load valid efuse: ENABLE with value: 1
[    1.660505] phy phy-soc:[email protected]: u2 auto load valid efuse: ENABLE with value: 1
[    1.669043] xhci-mtk 11200000.usb: xHCI Host Controller
[    1.674262] xhci-mtk 11200000.usb: new USB bus registered, assigned bus number 1
[    1.684723] xhci-mtk 11200000.usb: hcc params 0x01403f99 hci version 0x110 quirks 0x0000000000210010
[    1.693878] xhci-mtk 11200000.usb: irq 126, io mem 0x11200000
[    1.699758] xhci-mtk 11200000.usb: xHCI Host Controller
[    1.704968] xhci-mtk 11200000.usb: new USB bus registered, assigned bus number 2
[    1.712351] xhci-mtk 11200000.usb: Host supports USB 3.2 Enhanced SuperSpeed
[    1.719498] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.15
[    1.727740] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.734945] usb usb1: Product: xHCI Host Controller
[    1.739809] usb usb1: Manufacturer: Linux 5.15.77 xhci-hcd
[    1.745274] usb usb1: SerialNumber: 11200000.usb
[    1.750137] hub 1-0:1.0: USB hub found
[    1.753892] hub 1-0:1.0: 2 ports detected
[    1.758122] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[    1.766279] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 5.15
[    1.774529] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.781733] usb usb2: Product: xHCI Host Controller
[    1.786592] usb usb2: Manufacturer: Linux 5.15.77 xhci-hcd
[    1.792062] usb usb2: SerialNumber: 11200000.usb
[    1.796893] hub 2-0:1.0: USB hub found
[    1.800659] hub 2-0:1.0: 1 port detected
[    1.805374] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[    1.813928] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[    1.821072] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[    1.821426] EXT4-fs (mmcblk0p6): VFS: Found ext4 filesystem with invalid superblock checksum.  Run e2fsck?
[    1.829675] platform regulatory.0: Falling back to sysfs fallback for: regulatory.db
[    1.847066] VFS: Cannot open root device "mmcblk0p6" or unknown-block(179,6): error -74
[    1.855054] Please append a correct "root=" boot option; here are the available partitions:
[    1.863438] 1f00          131072 mtdblock0 
[    1.863443]  (driver?)
[    1.869959] b300        31166976 mmcblk0 
[    1.869962]  driver: mmcblk
[    1.876730]   b301            4079 mmcblk0p1 5452574f-2211-4433-5566-778899aabb01
[    1.876733] 
[    1.885672]   b302             512 mmcblk0p2 5452574f-2211-4433-5566-778899aabb02
[    1.885675] 
[    1.894614]   b303            2048 mmcblk0p3 5452574f-2211-4433-5566-778899aabb03
[    1.894617] 
[    1.903555]   b304            4096 mmcblk0p4 5452574f-2211-4433-5566-778899aabb04
[    1.903559] 
[    1.912497]   b305          262144 mmcblk0p5 bb362f04-3d07-4a45-b6de-82f4c3a501a3
[    1.912501] 
[    1.921438]   b306        30802415 mmcblk0p6 3843210e-088a-4711-b662-8a79e00272e4
[    1.921442] 
[    1.930384] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(179,6)
[    1.938796] SMP: stopping secondary CPUs
[    1.942703] Kernel Offset: disabled
[    1.946173] CPU features: 0x0,00000000,20000802
[    1.950687] Memory Limit: none
[    1.956066] Rebooting in 1 seconds..


The repo above is uboot (bootloader) not linux kernel…

Looks like vendor image uses different partition number for rootfs

Im sorry. My mistake. Already fixed it. Its this repo

Also, when you say vendor, you mean this ubuntu image that im using, taken from banana pi wiki?

Yes, i’m not from bpi so my image is not vendor,but had only did a debian image,but basicly steps are same. You could use the debian image and replace rootfs with the ubuntu from the tar-file (need some adjustments like root-pw,fstab before first bootup like stated on my wiki page) and install newer kernel with the modules you want

OK. Sounds good. can you point me to your debian image?

Easiest way should be flashing it, replug card to read partitions (make sure the flash was really finished before). Move all files in BPI-ROOT partition in a subfolder,unpack the ubuntu to the partition and copy back modules from the debian-rootfs.

The chroot into the mount directory to set root-pw…fstab can be copied. Then the card should boot ubuntu

Clone the kernel-repo on your host,make the steps with build.sh (importconfig,config,build,install-last 2 can be done together without param) and change your uenv to the filename you have defined

Thanks. I have some questions.

1- When you say move the files in BPI-ROOT partition to a subfolder, you mean a subfolder on that partition or delete from the sd card?

2- By unpack the ubuntu to the partition, you mean copy the files that were generated by build.sh (BPI-ROOT directory)

3- Copy modules from debian-rootfs. I assume that debian-rootfs is the root filesystem that we backed up on step 1? And which modules?

Thakns and sorry for so many questions

  1. create a folder in BPI-ROOT and move all content currently on BPI-ROOT (except this new folder) into it. So that you have a clean ubuntu in root (not overriding any files and have files from debian between ubuntu ones).

  2. ubuntu roofs files is the tar from my gdrive or if you have created your own with debootstrap

  3. modules are in /lib/modules where /lib is a symlink to /usr/lib afair…just copy the modules folder from the debian backup into same location in ubuntu (e.g. cp -r deb-backup/lib/modules /lib)

Last step is only necessary if you want to try ubuntu-rootfs with my kernel…you can also compile your own kernel and install it with build.sh to card…but i prefer to separate the steps replace-rootfs and replace-kernel

Do you really need Ubuntu? Is it not okay to run Debian? It will make it much more easier…

Im ok with Debian. Just need the kernel to have CIFS and FUSE. And of course normal network functionality working

Then you can just use Frank’s image and ‘only’ need to build your own kernel with the options cifs and fuse enabled.

OK. That sounds more simple.

In that case, i assume these are the steps (please correct if im wrong): 1- flash SD card with the debian 11 image from this link (taken from frank post above)

2- Build kernel from this link with CIFS and FUSE enabled https://github.com/frank-w/BPI-Router-Linux/tree/6.1-main

3- Can i use the copy to SD card? or I need to manually mount the SD card with Debian image and replace contents from partitions BPI_ROOT and BPI_BOOT from the ones generated by build.sh when choosing option1 (pack)