Pi5 CANbus with Balena

Topics about the Software of Revolution Pi
agregg
Posts: 7
Joined: 25 Apr 2025, 04:15

Re: Pi5 CANbus with Balena

Post by agregg »

Oh interesting. I flashed the RevPi5 with BalenaOS for Raspberry Pi5 (ver 6.5.24+rev6). I'm in the process of upgrading to 6.5.48 now and I'll see if that changes anything.
Under Device Configuration, I have overridden the "Define DT overlays" with:

Code: Select all

"spi1-2cs,cs1_pin=11","mcp251xfd,spi1-1,interrupt=6,oscillator=20000000","spi5-1cs","mcp251xfd,spi5-1,interrupt=25,oscillator=20000000"
That produces the dmesg errors that I posted earlier. If I remove the CAN1 piece and just use:

Code: Select all

"spi1-2cs,cs1_pin=11","mcp251xfd,spi1-1,interrupt=6,oscillator=20000000"
then CAN0 works.
agregg
Posts: 7
Joined: 25 Apr 2025, 04:15

Re: Pi5 CANbus with Balena

Post by agregg »

Here is the output from modinfo in Balena:

Code: Select all

root@balena:~# modinfo mcp251xfd
filename:       /lib/modules/6.12.32-v8-16k/kernel/drivers/net/can/spi/mcp251xfd/mcp251xfd.ko.zst
license:        GPL v2
description:    Microchip MCP251xFD Family CAN controller driver
author:         Marc Kleine-Budde <mkl@pengutronix.de>
srcversion:     5E04F01E22C25908AB34EC9
alias:          spi:mcp251xfd
alias:          spi:mcp251863
alias:          spi:mcp2518fd
alias:          spi:mcp2517fd
alias:          of:N*T*Cmicrochip,mcp251xfdC*
alias:          of:N*T*Cmicrochip,mcp251xfd
alias:          of:N*T*Cmicrochip,mcp251863C*
alias:          of:N*T*Cmicrochip,mcp251863
alias:          of:N*T*Cmicrochip,mcp2518fdC*
alias:          of:N*T*Cmicrochip,mcp2518fd
alias:          of:N*T*Cmicrochip,mcp2517fdC*
alias:          of:N*T*Cmicrochip,mcp2517fd
depends:        can-dev
intree:         Y
name:           mcp251xfd
vermagic:       6.12.32-v8-16k SMP preempt mod_unload modversions aarch64
Post Reply