Balena OS and DIO

Topics about the Software of Revolution Pi
Post Reply
wooyay1
Posts: 2
Joined: 29 May 2025, 11:59

Balena OS and DIO

Post by wooyay1 »

Hi all,
I am trying to get DIO module to work with Balena OS.
I use Balena version 6.5.24+rev3.

Code: Select all

root@d9b3152:~# uname -a
Linux d9b3152 6.1.46-rt13-v8 #1 SMP PREEMPT_RT Wed Jan 31 11:22:39 UTC 2024 aarch64 aarch64 aarch64 GNU/Linux
I copied config.rsc to resin-boot partition before first boot. In booted linux it shows up at /mnt/boot/config.rsc, not in /boot/. Is that correct?

I managed to get pitest built as a container with this Dockerfile.template:

Code: Select all

FROM balenalib/%%BALENA_MACHINE_NAME%%-debian:latest

# Install build tools and remove layer cache afterwards
RUN apt-get -q update && apt-get install -yq --no-install-recommends \
	build-essential \
	git \
	cmake \
	scdoc \
	&& apt-get clean && rm -rf /var/lib/apt/lists/*

# Switch to working directory for our app
WORKDIR /usr/src/app

COPY test.sh test.sh

# Clone and compile Kunbus's piTest binary
RUN cd /usr/src/app && git clone --recurse-submodules https://gitlab.com/revolutionpi/revpi-pitest.git 
RUN mkdir build && cd build && cmake /usr/src/app/revpi-pitest/ && cmake --build . && cp /usr/src/app/build/src/piTest /usr/bin

#switch on systemd init system in container
ENV INITSYSTEM on

# Sleep as we execute the remaining part of the test manually
CMD [ "bash", "./test.sh" ]
My docker-compose.yaml:

Code: Select all

version: '2.0'

services:
  
  revpipytest:
    build: 
      context: .
    privileged: true
    devices:
     - /dev/piControl0
Executing piTest in the container returns this:

Code: Select all

root@a5cb1003e5a3:/usr/src/app# build/src/piTest -d
Failed to open /dev/piControl0: Invalid argument
Cannot retrieve device list
I copied the piTest binary out of the container, and executed it directly in Balena, same result.

In dmesg, I get these lines:
[ 199.591527] piControl: problem at driver initialization
[ 199.591541] piControl: no piControl reset possible, a firmware update is running

Any ideas what I can try now?

Full dmesg output:

Code: Select all

[    0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd083]
[    0.000000] Linux version 6.1.46-rt13-v8 (oe-user@oe-host) (aarch64-poky-linux-gcc (GCC) 11.5.0, GNU ld (GNU Binutils) 2.38.20220708) #1 SMP PREEMPT_RT Wed Jan 31 11:22:39 UTC 2024
[    0.000000] random: crng init done
[    0.000000] Machine model: Raspberry Pi Compute Module 4 Rev 1.1
[    0.000000] efi: UEFI not found.
[    0.000000] Reserved memory: created CMA memory pool at 0x000000002ac00000, size 64 MiB
[    0.000000] OF: reserved mem: initialized node linux,cma, compatible id shared-dma-pool
[    0.000000] Zone ranges:
[    0.000000]   DMA      [mem 0x0000000000000000-0x000000003fffffff]
[    0.000000]   DMA32    [mem 0x0000000040000000-0x00000000ffffffff]
[    0.000000]   Normal   [mem 0x0000000100000000-0x00000001ffffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x000000003e5fffff]
[    0.000000]   node   0: [mem 0x0000000040000000-0x00000000fbffffff]
[    0.000000]   node   0: [mem 0x0000000100000000-0x00000001ffffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x00000001ffffffff]
[    0.000000] On node 0, zone DMA32: 6656 pages in unavailable ranges
[    0.000000] On node 0, zone Normal: 16384 pages in unavailable ranges
[    0.000000] percpu: Embedded 28 pages/cpu s76480 r8192 d30016 u114688
[    0.000000] pcpu-alloc: s76480 r8192 d30016 u114688 alloc=28*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3
[    0.000000] Detected PIPT I-cache on CPU0
[    0.000000] CPU features: detected: Spectre-v2
[    0.000000] CPU features: detected: Spectre-v3a
[    0.000000] CPU features: detected: Spectre-v4
[    0.000000] CPU features: detected: Spectre-BHB
[    0.000000] CPU features: kernel page table isolation forced ON by KASLR
[    0.000000] CPU features: detected: Kernel page table isolation (KPTI)
[    0.000000] CPU features: detected: ARM erratum 1742098
[    0.000000] CPU features: detected: ARM errata 1165522, 1319367, or 1530923
[    0.000000] alternatives: applying boot alternatives
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 2041344
[    0.000000] Kernel command line: coherent_pool=1M 8250.nr_uarts=0 snd_bcm2835.enable_headphones=0 snd_bcm2835.enable_hdmi=1 bcm2708_fb.fbwidth=1824 bcm2708_fb.fbheight=984 bcm2708_fb.fbdepth=16 bcm2708_fb.fbswap=1 smsc95xx.macaddr=2C:CF:67:A8:07:65 vc_mem.mem_base=0x3f000000 vc_mem.mem_size=0x3f600000  dwc_otg.lpm_enable=0 rootfstype=ext4 rootwait dwc_otg.lpm_enable=0 rootwait console=null quiet splash vt.global_cursor_default=0 consoleblank=0 cgroup_enable=memory root=UUID=ca2f84ac-7bb7-48f2-bf8b-577d6595f8c4 rootwait
[    0.000000] cgroup: Enabling memory control group subsystem
[    0.000000] Unknown kernel command line parameters "splash", will be passed to user space.
[    0.000000] Dentry cache hash table entries: 1048576 (order: 11, 8388608 bytes, linear)
[    0.000000] Inode-cache hash table entries: 524288 (order: 10, 4194304 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] software IO TLB: area num 4.
[    0.000000] software IO TLB: mapped [mem 0x000000003a600000-0x000000003e600000] (64MB)
[    0.000000] Memory: 7960040K/8296448K available (13184K kernel code, 1810K rwdata, 4188K rodata, 23680K init, 1122K bss, 270872K reserved, 65536K cma-reserved)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] ftrace: allocating 41252 entries in 162 pages
[    0.000000] ftrace: allocated 162 pages with 3 groups
[    0.000000] trace event string verifier disabled
[    0.000000] rcu: Preemptible hierarchical RCU implementation.
[    0.000000] rcu:     RCU event tracing is enabled.
[    0.000000] rcu:     RCU restricting CPUs from NR_CPUS=256 to nr_cpu_ids=4.
[    0.000000] rcu:     RCU priority boosting: priority 1 delay 500 ms.
[    0.000000] rcu:     RCU_SOFTIRQ processing moved to rcuc kthreads.
[    0.000000]  No expedited grace period (rcu_normal_after_boot).
[    0.000000]  Trampoline variant of Tasks RCU enabled.
[    0.000000]  Rude variant of Tasks RCU enabled.
[    0.000000]  Tracing variant of Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 25 jiffies.
[    0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=4
[    0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[    0.000000] Root IRQ handler: gic_handle_irq
[    0.000000] GIC: Using split EOI/Deactivate mode
[    0.000000] rcu: srcu_init: Setting srcu_struct sizes based on contention.
[    0.000000] arch_timer: cp15 timer(s) running at 54.00MHz (phys).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0xc743ce346, max_idle_ns: 440795203123 ns
[    0.000001] sched_clock: 56 bits at 54MHz, resolution 18ns, wraps every 4398046511102ns
[    0.000321] Console: colour dummy device 80x25
[    0.000383] Calibrating delay loop (skipped), value calculated using timer frequency.. 108.00 BogoMIPS (lpj=216000)
[    0.000401] pid_max: default: 32768 minimum: 301
[    0.000514] LSM: Security Framework initializing
[    0.000793] Mount-cache hash table entries: 16384 (order: 5, 131072 bytes, linear)
[    0.000907] Mountpoint-cache hash table entries: 16384 (order: 5, 131072 bytes, linear)
[    0.004115] cblist_init_generic: Setting adjustable number of callback queues.
[    0.004134] cblist_init_generic: Setting shift to 2 and lim to 1.
[    0.004321] cblist_init_generic: Setting adjustable number of callback queues.
[    0.004335] cblist_init_generic: Setting shift to 2 and lim to 1.
[    0.004509] cblist_init_generic: Setting adjustable number of callback queues.
[    0.004522] cblist_init_generic: Setting shift to 2 and lim to 1.
[    0.005147] rcu: Hierarchical SRCU implementation.
[    0.005154] rcu:     Max phase no-delay instances is 1000.
[    0.006935] EFI services will not be available.
[    0.007470] smp: Bringing up secondary CPUs ...
[    0.009123] Detected PIPT I-cache on CPU1
[    0.009282] CPU1: Booted secondary processor 0x0000000001 [0x410fd083]
[    0.010960] Detected PIPT I-cache on CPU2
[    0.011089] CPU2: Booted secondary processor 0x0000000002 [0x410fd083]
[    0.012825] Detected PIPT I-cache on CPU3
[    0.012955] CPU3: Booted secondary processor 0x0000000003 [0x410fd083]
[    0.013142] smp: Brought up 1 node, 4 CPUs
[    0.013154] SMP: Total of 4 processors activated.
[    0.013162] CPU features: detected: 32-bit EL0 Support
[    0.013169] CPU features: detected: CRC32 instructions
[    0.013298] CPU: All CPU(s) started at EL2
[    0.013303] alternatives: applying system-wide alternatives
[    0.015015] devtmpfs: initialized
[    0.054765] Enabled cp15_barrier support
[    0.054795] Enabled setend support
[    0.055272] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.055299] futex hash table entries: 1024 (order: 4, 65536 bytes, linear)
[    0.057352] pinctrl core: initialized pinctrl subsystem
[    0.058960] DMI not present or invalid.
[    0.059636] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    0.062819] DMA: preallocated 1024 KiB GFP_KERNEL pool for atomic allocations
[    0.063100] DMA: preallocated 1024 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations
[    0.063595] DMA: preallocated 1024 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
[    0.063701] audit: initializing netlink subsys (disabled)
[    0.063976] audit: type=2000 audit(0.060:1): state=initialized audit_enabled=0 res=1
[    0.065479] thermal_sys: Registered thermal governor 'step_wise'
[    0.065672] cpuidle: using governor menu
[    0.066269] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[    0.066460] ASID allocator initialised with 32768 entries
[    0.066690] Serial: AMBA PL011 UART driver
[    0.079423] bcm2835-mbox fe00b880.mailbox: mailbox enabled
[    0.097507] raspberrypi-firmware soc:firmware: Attached to firmware from 2024-02-29T12:25:16, variant start_cd
[    0.101529] raspberrypi-firmware soc:firmware: Firmware hash is f4e2138c2adc8f3a92a3a65939e458f11d7298ba
[    0.122799] KASLR enabled
[    0.226394] bcm2835-dma fe007000.dma: DMA legacy API manager, dmachans=0x1
[    0.235346] SCSI subsystem initialized
[    0.235912] usbcore: registered new interface driver usbfs
[    0.236057] usbcore: registered new interface driver hub
[    0.236161] usbcore: registered new device driver usb
[    0.236493] usb_phy_generic phy: supply vcc not found, using dummy regulator
[    0.236814] usb_phy_generic phy: dummy supplies not allowed for exclusive requests
[    0.237426] pps_core: LinuxPPS API ver. 1 registered
[    0.237433] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.237466] PTP clock support registered
[    0.238006] Advanced Linux Sound Architecture Driver Initialized.
[    0.240156] vgaarb: loaded
[    0.240799] clocksource: Switched to clocksource arch_sys_counter
[    0.241472] VFS: Disk quotas dquot_6.6.0
[    0.241534] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[    0.241767] FS-Cache: Loaded
[    0.242126] CacheFiles: Loaded
[    0.262600] NET: Registered PF_INET protocol family
[    0.263700] IP idents hash table entries: 131072 (order: 8, 1048576 bytes, linear)
[    0.272889] tcp_listen_portaddr_hash hash table entries: 4096 (order: 5, 163840 bytes, linear)
[    0.273181] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.273214] TCP established hash table entries: 65536 (order: 7, 524288 bytes, linear)
[    0.273806] TCP bind hash table entries: 65536 (order: 10, 5242880 bytes, vmalloc hugepage)
[    0.281764] TCP: Hash tables configured (established 65536 bind 65536)
[    0.282103] UDP hash table entries: 4096 (order: 6, 393216 bytes, linear)
[    0.282666] UDP-Lite hash table entries: 4096 (order: 6, 393216 bytes, linear)
[    0.283558] NET: Registered PF_UNIX/PF_LOCAL protocol family
[    0.283678] PCI: CLS 0 bytes, default 64
[    0.286857] hw perfevents: enabled with armv8_cortex_a72 PMU driver, 7 counters available
[    0.361467] Initialise system trusted keyrings
[    0.361915] workingset: timestamp_bits=46 max_order=21 bucket_order=0
[    0.401071] zbud: loaded
[    0.408728] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.413900] Key type asymmetric registered
[    0.413921] Asymmetric key parser 'x509' registered
[    0.414018] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 246)
[    0.414370] io scheduler mq-deadline registered
[    0.414379] io scheduler kyber registered
[    0.425178] gpio-507 (ant1): hogged as output/low
[    0.426693] gpio-511 (ant2): hogged as output/high
[    0.428911] brcm-pcie fd500000.pcie: host bridge /scb/pcie@7d500000 ranges:
[    0.428950] brcm-pcie fd500000.pcie:   No bus range found for /scb/pcie@7d500000, using [bus 00-ff]
[    0.429041] brcm-pcie fd500000.pcie:      MEM 0x0600000000..0x063fffffff -> 0x00c0000000
[    0.429126] brcm-pcie fd500000.pcie:   IB MEM 0x0000000000..0x01ffffffff -> 0x0400000000
[    0.430648] brcm-pcie fd500000.pcie: PCI host bridge to bus 0000:00
[    0.430669] pci_bus 0000:00: root bus resource [bus 00-ff]
[    0.430685] pci_bus 0000:00: root bus resource [mem 0x600000000-0x63fffffff] (bus address [0xc0000000-0xffffffff])
[    0.430764] pci 0000:00:00.0: [14e4:2711] type 01 class 0x060400
[    0.431018] pci 0000:00:00.0: PME# supported from D0 D3hot
[    0.439742] pci_bus 0000:01: supply vpcie3v3 not found, using dummy regulator
[    0.440128] pci_bus 0000:01: supply vpcie3v3aux not found, using dummy regulator
[    0.440243] pci_bus 0000:01: supply vpcie12v not found, using dummy regulator
[    0.470963] brcm-pcie fd500000.pcie: link up, 5.0 GT/s PCIe x1 (SSC)
[    0.471080] pci 0000:01:00.0: [1912:0014] type 00 class 0x0c0330
[    0.471166] pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x00001fff 64bit]
[    0.471561] pci 0000:01:00.0: PME# supported from D0 D3hot D3cold
[    0.472538] pci 0000:00:00.0: BAR 8: assigned [mem 0x600000000-0x6000fffff]
[    0.472568] pci 0000:01:00.0: BAR 0: assigned [mem 0x600000000-0x600001fff 64bit]
[    0.472614] pci 0000:00:00.0: PCI bridge to [bus 01]
[    0.472632] pci 0000:00:00.0:   bridge window [mem 0x600000000-0x6000fffff]
[    0.472721] pci 0000:00:00.0: enabling device (0000 -> 0002)
[    0.472750] pci 0000:01:00.0: enabling device (0000 -> 0002)
[    0.476849] bcm2708_fb soc:fb: FB found 1 display(s)
[    0.487845] Console: switching to colour frame buffer device 228x61
[    0.492551] bcm2708_fb soc:fb: Registered framebuffer for display 0, size 1824x984
[    0.505584] iproc-rng200 fe104000.rng: hwrng registered
[    0.506048] vc-mem: phys_addr:0x00000000 mem_base=0x3f000000 mem_size:0x3f600000(1014 MiB)
[    0.541698] brd: module loaded
[    0.560662] loop: module loaded
[    0.562530] zram: Added device: zram0
[    0.563573] Loading iSCSI transport class v2.0-870.
[    0.573937] tun: Universal TUN/TAP device driver, 1.6
[    0.575450] bcmgenet fd580000.ethernet: GENET 5.0 EPHY: 0x0000
[    0.644994] unimac-mdio unimac-mdio.-19: Broadcom UniMAC MDIO bus
[    0.648162] xhci_hcd 0000:01:00.0: xHCI Host Controller
[    0.648207] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 1
[    0.653796] xhci_hcd 0000:01:00.0: hcc params 0x014051cf hci version 0x100 quirks 0x0000001100000410
[    0.657124] xhci_hcd 0000:01:00.0: xHCI Host Controller
[    0.657147] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 2
[    0.657169] xhci_hcd 0000:01:00.0: Host supports USB 3.0 SuperSpeed
[    0.657571] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 6.01
[    0.657586] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    0.657597] usb usb1: Product: xHCI Host Controller
[    0.657606] usb usb1: Manufacturer: Linux 6.1.46-rt13-v8 xhci-hcd
[    0.657615] usb usb1: SerialNumber: 0000:01:00.0
[    0.658954] hub 1-0:1.0: USB hub found
[    0.659033] hub 1-0:1.0: 4 ports detected
[    0.661141] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[    0.661432] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 6.01
[    0.661446] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    0.661456] usb usb2: Product: xHCI Host Controller
[    0.661465] usb usb2: Manufacturer: Linux 6.1.46-rt13-v8 xhci-hcd
[    0.661474] usb usb2: SerialNumber: 0000:01:00.0
[    0.662767] hub 2-0:1.0: USB hub found
[    0.662838] hub 2-0:1.0: 4 ports detected
[    0.666257] xhci-hcd fe9c0000.xhci: xHCI Host Controller
[    0.666295] xhci-hcd fe9c0000.xhci: new USB bus registered, assigned bus number 3
[    0.666630] xhci-hcd fe9c0000.xhci: USB3 root hub has no ports
[    0.666642] xhci-hcd fe9c0000.xhci: hcc params 0x0220fe65 hci version 0x110 quirks 0x0000000000010010
[    0.667048] xhci-hcd fe9c0000.xhci: irq 39, io mem 0xfe9c0000
[    0.667734] usb usb3: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 6.01
[    0.667749] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    0.667760] usb usb3: Product: xHCI Host Controller
[    0.667769] usb usb3: Manufacturer: Linux 6.1.46-rt13-v8 xhci-hcd
[    0.667777] usb usb3: SerialNumber: fe9c0000.xhci
[    0.669215] hub 3-0:1.0: USB hub found
[    0.669285] hub 3-0:1.0: 1 port detected
[    0.670509] dwc_otg: version 3.00a 10-AUG-2012 (platform bus)
[    0.670774] dwc_otg: FIQ enabled
[    0.670780] dwc_otg: NAK holdoff enabled
[    0.670786] dwc_otg: FIQ split-transaction FSM enabled
[    0.670805] Module dwc_common_port init
[    0.671869] usbcore: registered new interface driver uas
[    0.672064] usbcore: registered new interface driver usb-storage
[    0.672282] usbcore: registered new interface driver usbserial_generic
[    0.672345] usbserial: USB Serial support registered for generic
[    0.672768] mousedev: PS/2 mouse device common for all mice
[    0.680609] sdhci: Secure Digital Host Controller Interface driver
[    0.680620] sdhci: Copyright(c) Pierre Ossman
[    0.681486] sdhci-pltfm: SDHCI platform and OF driver helper
[    0.689974] hid: raw HID events driver (C) Jiri Kosina
[    0.690114] usbcore: registered new interface driver usbhid
[    0.690117] usbhid: USB HID core driver
[    0.690194] bcm2835_vchiq fe00b840.mailbox: there is not valid maps for state default
[    0.701949] IPVS: Registered protocols (TCP, UDP, SCTP, AH, ESP)
[    0.702006] IPVS: Connection hash table configured (size=4096, memory=32Kbytes)
[    0.702180] IPVS: ipvs loaded.
[    0.703812] NET: Registered PF_INET6 protocol family
[    0.704895] Segment Routing with IPv6
[    0.704923] In-situ OAM (IOAM) with IPv6
[    0.705017] NET: Registered PF_PACKET protocol family
[    0.705056] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[    0.705076] Key type dns_resolver registered
[    0.705949] registered taskstats version 1
[    0.705981] Loading compiled-in X.509 certificates
[    0.706405] Key type .fscrypt registered
[    0.706410] Key type fscrypt-provisioning registered
[    0.719903] uart-pl011 fe201000.serial: there is not valid maps for state default
[    0.720465] fe201000.serial: ttyAMA1 at MMIO 0xfe201000 (irq = 41, base_baud = 0) is a PL011 rev2
[    0.720672] serial serial0: tty port ttyAMA1 registered
[    0.730382] bcm2835-wdt bcm2835-wdt: Broadcom BCM2835 watchdog timer
[    0.730693] bcm2835-power bcm2835-power: Broadcom BCM2835 power domains driver
[    0.732943] mmc-bcm2835 fe300000.mmcnr: mmc_debug:0 mmc_debug2:0
[    0.732953] mmc-bcm2835 fe300000.mmcnr: DMA channel allocated
[    0.764133] of_cfs_init
[    0.764309] of_cfs_init: OK
[    0.767207] ALSA device list:
[    0.767217]   No soundcards found.
[    0.767292] Warning: unable to open an initial console.
[    0.801320] mmc0: SDHCI controller on fe340000.mmc [fe340000.mmc] using ADMA
[    0.825420] Freeing unused kernel memory: 23680K
[    0.825523] Run /init as init process
[    0.825526]   with arguments:
[    0.825528]     /init
[    0.825530]     splash
[    0.825532]   with environment:
[    0.825534]     HOME=/
[    0.825536]     TERM=linux
[    0.850290] mmc1: new high speed SDIO card at address 0001
[    0.865991] mmc0: new DDR MMC card at address 0001
[    0.866986] mmcblk0: mmc0:0001 BJTD4R 29.1 GiB
[    0.870515]  mmcblk0: p1 p2 p3 p4 < p5 p6 >
[    0.872082] mmcblk0: mmc0:0001 BJTD4R 29.1 GiB
[    0.872434] mmcblk0boot0: mmc0:0001 BJTD4R 4.00 MiB
[    0.874825] mmcblk0boot1: mmc0:0001 BJTD4R 4.00 MiB
[    0.877148] mmcblk0rpmb: mmc0:0001 BJTD4R 4.00 MiB, chardev (242:0)
[    1.681700] usb 2-3: new SuperSpeed USB device number 2 using xhci_hcd
[    1.705144] usb 2-3: New USB device found, idVendor=0424, idProduct=7800, bcdDevice= 3.00
[    1.705160] usb 2-3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    1.705168] usb 2-3: Product: LAN7800
[    1.705174] usb 2-3: Manufacturer: Microchip
[    1.705179] usb 2-3: SerialNumber: 001EC0E12C33
[    1.828884] usb 1-2: new low-speed USB device number 3 using xhci_hcd
[    2.021326] usb 1-2: New USB device found, idVendor=046d, idProduct=c31c, bcdDevice=64.00
[    2.021339] usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[    2.021344] usb 1-2: Product: USB Keyboard
[    2.021347] usb 1-2: Manufacturer: Logitech
[    2.057855] usb 1-2: ERROR: Endpoint drop flag = 0, add flag = 1, and endpoint is not disabled.
[    2.057867] xhci_hcd 0000:01:00.0: xhci_fixup_endpoint: Configure endpoint failed: -22
[    2.058252] input: Logitech USB Keyboard as /devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-2/1-2:1.0/0003:046D:C31C.0001/input/input0
[    2.117785] hid-generic 0003:046D:C31C.0001: input,hidraw0: USB HID v1.10 Keyboard [Logitech USB Keyboard] on usb-0000:01:00.0-2/input0
[    2.149996] usb 1-2: ERROR: Endpoint drop flag = 0, add flag = 1, and endpoint is not disabled.
[    2.150010] xhci_hcd 0000:01:00.0: xhci_fixup_endpoint: Configure endpoint failed: -22
[    2.150330] input: Logitech USB Keyboard Consumer Control as /devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-2/1-2:1.1/0003:046D:C31C.0002/input/input1
[    2.209424] input: Logitech USB Keyboard System Control as /devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-2/1-2:1.1/0003:046D:C31C.0002/input/input2
[    2.209829] hid-generic 0003:046D:C31C.0002: input,hidraw1: USB HID v1.10 Device [Logitech USB Keyboard] on usb-0000:01:00.0-2/input1
[    2.360105] zram0: detected capacity change from 0 to 8049256
[    6.708752] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Quota mode: none.
[    6.759066] EXT4-fs (mmcblk0p5): mounted filesystem with ordered data mode. Quota mode: none.
[    7.211476] EXT4-fs (mmcblk0p2): re-mounted. Quota mode: none.
[    7.234287] EXT4-fs (mmcblk0p6): mounted filesystem with ordered data mode. Quota mode: none.
[    7.428311] systemd[1]: System time before build time, advancing clock.
[    7.861195] systemd[1]: /lib/systemd/system/balena-host.socket:5: ListenStream= references a path below legacy directory /var/run/, updating /var/run/balena-host.sock \xe2\x86\x92 /run/balena-host.sock; please update the unit file accordingly.
[    7.881781] systemd[1]: /lib/systemd/system/balena-engine.socket:7: ListenStream= references a path below legacy directory /var/run/, updating /var/run/balena-engine.sock \xe2\x86\x92 /run/balena-engine.sock; please update the unit file accordingly.
[    8.263304] fuse: init (API version 7.37)
[    8.829653] piControl: loading out-of-tree module taints kernel.
[    8.835639] piControl: built: Mon May 26 03:48:05 PM UTC 2025
[    8.835660] piControl: RevPi Core
[    8.835665] piControl: MAJOR-No.  : 239
[    8.835975] piControl: MAJOR-No.  : 239  MINOR-No.  : 0
[    8.838946] piControl: read file finished, f_pos=6245
[    8.838985] piControl: 2 devices found
[    8.838988] piControl: 96 entries in total
[    8.839127] piControl: cl-comp:  0 addr  6  bit ff  len   8
[    8.839133] piControl: cl-comp:  1 addr 11  bit 00  len  16
[    8.839137] piControl: cl-comp:  2 addr 83  bit ff  len   8
[    8.839140] piControl: cl-comp:  3 addr 84  bit ff  len   8
[    8.840071] piControl: piControlInit done
[   11.618433] mc: Linux media interface: v0.10
[   11.637707] videodev: Linux video capture interface: v2.00
[   11.664543] rpivid_hevc: module is from the staging directory, the quality is unknown, you have been warned.
[   11.670249] rpivid feb10000.codec: Device registered as /dev/video19
[   11.905360] vc_sm_cma: module is from the staging directory, the quality is unknown, you have been warned.
[   11.908515] vc_sm_cma: module is from the staging directory, the quality is unknown, you have been warned.
[   11.910466] bcm2835_vc_sm_cma_probe: Videocore shared memory driver
[   11.910482] [vc_sm_connected_init]: start
[   11.911003] vc_sm_cma_vchi_init: failed to open VCHI service (-1)
[   11.911011] [vc_sm_connected_init]: failed to initialize shared memory service
[   11.915754] bcm2835_mmal_vchiq: module is from the staging directory, the quality is unknown, you have been warned.
[   11.919637] bcm2835_mmal_vchiq: module is from the staging directory, the quality is unknown, you have been warned.
[   11.926752] bcm2835_codec: module is from the staging directory, the quality is unknown, you have been warned.
[   11.929838] bcm2835_mmal_vchiq: Failed to open VCHI service connection (status=-1)
[   11.931985] bcm2835_v4l2: module is from the staging directory, the quality is unknown, you have been warned.
[   11.935707] bcm2835_mmal_vchiq: Failed to open VCHI service connection (status=-1)
[   11.972329] bcm2835_isp: module is from the staging directory, the quality is unknown, you have been warned.
[   11.978763] bcm2835_mmal_vchiq: Failed to open VCHI service connection (status=-1)
[   11.978861] : Unregister from media controller
[   11.978865] (efault): Unregistering node (null)[0] device node /dev/video0
[   11.978870] (efault): Unregistering node (null)[0] device node /dev/video0
[   11.978873] (efault): Unregistering node (null)[0] device node /dev/video0
[   11.978877] (efault): Unregistering node (null)[0] device node /dev/video0
[   11.979829] snd_bcm2835: module is from the staging directory, the quality is unknown, you have been warned.
[   12.135027] bcm2835_audio bcm2835_audio: card created with 8 channels
[   12.182473] Bluetooth: Core ver 2.22
[   12.182995] NET: Registered PF_BLUETOOTH protocol family
[   12.183005] Bluetooth: HCI device and connection manager initialized
[   12.183024] Bluetooth: HCI socket layer initialized
[   12.183038] Bluetooth: L2CAP socket layer initialized
[   12.183064] Bluetooth: SCO socket layer initialized
[   12.192158] Bluetooth: HCI UART driver ver 2.3
[   12.192173] Bluetooth: HCI UART protocol H4 registered
[   12.192900] Bluetooth: HCI UART protocol Three-wire (H5) registered
[   12.193622] Bluetooth: HCI UART protocol Broadcom registered
[   12.194877] hci_uart_bcm serial0-0: supply vbat not found, using dummy regulator
[   12.195087] hci_uart_bcm serial0-0: supply vddio not found, using dummy regulator
[   12.317410] uart-pl011 fe201000.serial: no DMA platform data
[   12.414414] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[   12.477413] lan78xx 2-3:1.0 (unnamed net_device) (uninitialized): int urb period 64
[   12.530398] cfg80211: Loaded X.509 cert 'benh@debian.org: 577e021cb980e0e820821ba7b54b4961b8b4fadf'
[   12.530838] cfg80211: Loaded X.509 cert 'romain.perier@gmail.com: 3abbc6ec146e09d1b6016ab9d6cf71dd233f0328'
[   12.531249] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[   12.534500] cfg80211: loaded regulatory.db is malformed or signature is missing/invalid
[   12.557529] Bluetooth: hci0: BCM: chip id 107
[   12.557825] Bluetooth: hci0: BCM: features 0x2f
[   12.559127] Bluetooth: hci0: BCM4345C0
[   12.559142] Bluetooth: hci0: BCM4345C0 (003.001.025) build 0000
[   12.562010] Bluetooth: hci0: BCM4345C0 'brcm/BCM4345C0.hcd' Patch
[   12.578004] brcmfmac: F1 signature read @0x18000000=0x15264345
[   12.601136] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43455-sdio for chip BCM4345/6
[   12.603679] usbcore: registered new interface driver brcmfmac
[   12.722917] usbcore: registered new interface driver lan78xx
[   12.846066] brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM4345/6 wl0: Nov  1 2021 00:37:12 version 7.45.241 (1a2f2fa CY) FWID 01-5209c09
[   13.159555] zram: Can't change algorithm for initialized device
[   13.261851] Bluetooth: hci0: BCM: features 0x2f
[   13.263409] Bluetooth: hci0: BCM43455 37.4MHz Raspberry Pi 3+
[   13.263425] Bluetooth: hci0: BCM4345C0 (003.001.025) build 0342
[   13.978581] lan78xx 2-3:1.0 enp1s0u3: renamed from eth1
[   14.193136] Adding 4024624k swap on /dev/zram0.  Priority:-2 extents:1 across:4024624k SSFS
[   15.510274] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[   15.510285] Bluetooth: BNEP filters: protocol multicast
[   15.510303] Bluetooth: BNEP socket layer initialized
[   15.519941] Bluetooth: MGMT ver 1.22
[   15.547425] NET: Registered PF_ALG protocol family
[   17.536356] lan78xx 2-3:1.0 enp1s0u3: Link is Up - 1Gbps/Full - flow control rx/tx
[   17.551308] IPv6: ADDRCONF(NETDEV_CHANGE): enp1s0u3: link becomes ready
[   17.575975] bcmgenet fd580000.ethernet: configuring instance for external RGMII (RX delay)
[   17.577638] bcmgenet fd580000.ethernet eth0: Link is Down
[   17.631451] brcmfmac: brcmf_cfg80211_set_power_mgmt: power save disabled
[   18.208300] brcmfmac: brcmf_cfg80211_set_power_mgmt: power save disabled
[   19.033584] i2c_dev: i2c /dev entries driver
[   22.113934] systemd-journald[1774]: Oldest entry in /run/log/journal/a7455007cc61481b82c881a49cbc17b0/system.journal is older than the configured file retention duration (1month), suggesting rotation.
[   22.113954] systemd-journald[1774]: /run/log/journal/a7455007cc61481b82c881a49cbc17b0/system.journal: Journal header limits reached or header out-of-date, rotating.
[   38.968402] Bridge firewalling registered
[   39.187535] Initializing XFRM netlink socket
[   42.429586] device-mapper: ioctl: 4.47.0-ioctl (2022-07-28) initialised: dm-devel@redhat.com
[   52.397757] EXT4-fs (mmcblk0p3): mounted filesystem with ordered data mode. Quota mode: none.
[  425.050161] brcmfmac: brcmf_cfg80211_set_power_mgmt: power save disabled
[  832.025752] brcmfmac: brcmf_cfg80211_set_power_mgmt: power save disabled
[ 1239.064454] brcmfmac: brcmf_cfg80211_set_power_mgmt: power save disabled
[ 1647.002862] brcmfmac: brcmf_cfg80211_set_power_mgmt: power save disabled
[ 1649.423580] br-a3b45ea05074: port 1(veth714a7fb) entered blocking state
[ 1649.423639] br-a3b45ea05074: port 1(veth714a7fb) entered disabled state
[ 1649.425192] device veth714a7fb entered promiscuous mode
[ 1650.789356] eth0: renamed from veth448e605
[ 1650.827295] IPv6: ADDRCONF(NETDEV_CHANGE): veth714a7fb: link becomes ready
[ 1650.827518] br-a3b45ea05074: port 1(veth714a7fb) entered blocking state
[ 1650.827559] br-a3b45ea05074: port 1(veth714a7fb) entered forwarding state
[ 1650.827773] IPv6: ADDRCONF(NETDEV_CHANGE): br-a3b45ea05074: link becomes ready
[ 1866.852725] piControl: problem at driver initialization
[ 1866.852739] piControl: no piControl reset possible, a firmware update is running
[ 1871.220717] piControl: problem at driver initialization
[ 1871.220730] piControl: no piControl reset possible, a firmware update is running
[ 2054.013540] brcmfmac: brcmf_cfg80211_set_power_mgmt: power save disabled
[ 2102.576892] br-a3b45ea05074: port 1(veth714a7fb) entered disabled state
[ 2102.577285] veth448e605: renamed from eth0
[ 2102.760997] br-a3b45ea05074: port 1(veth714a7fb) entered disabled state
[ 2102.836930] device veth714a7fb left promiscuous mode
[ 2102.836962] br-a3b45ea05074: port 1(veth714a7fb) entered disabled state
[ 2106.461400] br-a3b45ea05074: port 1(vethe1cce5b) entered blocking state
[ 2106.461474] br-a3b45ea05074: port 1(vethe1cce5b) entered disabled state
[ 2106.462934] device vethe1cce5b entered promiscuous mode
[ 2107.861372] eth0: renamed from veth9a67fc4
[ 2107.891167] IPv6: ADDRCONF(NETDEV_CHANGE): vethe1cce5b: link becomes ready
[ 2107.891406] br-a3b45ea05074: port 1(vethe1cce5b) entered blocking state
[ 2107.891429] br-a3b45ea05074: port 1(vethe1cce5b) entered forwarding state
[ 2111.548721] piControl: problem at driver initialization
[ 2111.548734] piControl: no piControl reset possible, a firmware update is running
[ 2115.916705] piControl: problem at driver initialization
[ 2115.916719] piControl: no piControl reset possible, a firmware update is running
[ 2119.280707] piControl: problem at driver initialization
[ 2119.280719] piControl: no piControl reset possible, a firmware update is running
[ 2123.652716] piControl: problem at driver initialization
[ 2123.652730] piControl: no piControl reset possible, a firmware update is running
[ 2259.884724] piControl: problem at driver initialization
[ 2259.884738] piControl: no piControl reset possible, a firmware update is running
[ 2349.044737] piControl: problem at driver initialization
[ 2349.044752] piControl: no piControl reset possible, a firmware update is running
[ 2461.017206] brcmfmac: brcmf_cfg80211_set_power_mgmt: power save disabled
[ 2868.088979] brcmfmac: brcmf_cfg80211_set_power_mgmt: power save disabled
[ 3172.956703] piControl: problem at driver initialization
[ 3172.956717] piControl: no piControl reset possible, a firmware update is running
[ 3256.048716] piControl: problem at driver initialization
[ 3256.048730] piControl: no piControl reset possible, a firmware update is running
[ 3275.035188] brcmfmac: brcmf_cfg80211_set_power_mgmt: power save disabled
[ 3288.736711] piControl: problem at driver initialization
[ 3288.736724] piControl: no piControl reset possible, a firmware update is running
[ 3317.092706] piControl: problem at driver initialization
[ 3317.092719] piControl: no piControl reset possible, a firmware update is running
wooyay1
Posts: 2
Joined: 29 May 2025, 11:59

Re: Balena OS and DIO

Post by wooyay1 »

I made progress:

Although I set the device type to revpi connect 4 in balena, the revpi drivers were not loaded out of the box.

I had to add a setting in balena device configuration:

Define DT overlays:
RESIN_HOST_CONFIG_dtoverlay = vc4-kms-v3d","dwc2,dr_mode=host,ant2","revpi-connect4"

After rebooting, piTest seems to work, and the kernel log shows a lot more revpi specific stuff.
User avatar
nicolaiB
KUNBUS
Posts: 1020
Joined: 21 Jun 2018, 10:33
Location: Berlin
Contact:

Re: Balena OS and DIO

Post by nicolaiB »

Thanks for sharing your findings. I will keep it in mind and maybe we will be able to come up with a automatic solution together with the balena team.

Nicolai
mpous-balena
Posts: 1
Joined: 05 Jun 2025, 17:03

Re: Balena OS and DIO

Post by mpous-balena »

Thanks for sharing all! This is Marc from balena and I would like to help more.

Actually I shared internally with the devices team your issues. Is it possible that you can share more details about the drivers that are not loaded after using the dtoverlay for Revolution Pi Connect 4.

In the other hand, is it possible that you share the files that you added to the balenaOS image to have the DIO module compatible with the RevPi?

Thanks!
Post Reply