Here is the output from modinfo in Balena:
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 ...
Search found 8 matches
- 12 Aug 2025, 16:21
- Forum: Software
- Topic: Pi5 CANbus with Balena
- Replies: 11
- Views: 44454
- 12 Aug 2025, 16:08
- Forum: Software
- Topic: Pi5 CANbus with Balena
- Replies: 11
- Views: 44454
Re: Pi5 CANbus with Balena
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:
"spi1-2cs,cs1_pin=11","mcp251xfd,spi1-1,interrupt ...
Under Device Configuration, I have overridden the "Define DT overlays" with:
"spi1-2cs,cs1_pin=11","mcp251xfd,spi1-1,interrupt ...
- 12 Aug 2025, 15:03
- Forum: Software
- Topic: Pi5 CANbus with Balena
- Replies: 11
- Views: 44454
Re: Pi5 CANbus with Balena
Hi Nicolai, I've been tinkering with this some more and my hypothesis is that the mcp251xfd overlay of the RPi5 image doesn't support use of SPI5. Whenever I try to apply the mcp251xfd overlay with SPI5, it throws those errors about SPI0.
To enable SPI5 support, I think I would need to create a ...
To enable SPI5 support, I think I would need to create a ...
- 13 Jun 2025, 17:52
- Forum: Software
- Topic: Pi5 CANbus with Balena
- Replies: 11
- Views: 44454
- 09 May 2025, 15:47
- Forum: Software
- Topic: Pi5 CANbus with Balena
- Replies: 11
- Views: 44454
Re: Pi5 CANbus with Balena
Hi Nicolai, that's what is strange. I'm setting spi5 exactly how you wrote in your post, but the error is coming back as spi0.
- 07 May 2025, 17:57
- Forum: Software
- Topic: Pi5 CANbus with Balena
- Replies: 11
- Views: 44454
Re: Pi5 CANbus with Balena
I'm having trouble with that one. I tried adding it with the previous can0 overlay and also just by itself.
I get the following conflict:
root@balena:~# dmesg | grep spi
[ 3.009703] spi spi0.0: chipselect 0 already in use
[ 3.009712] spi_master spi0: spi_device register error /axi/pcie@1000120000 ...
I get the following conflict:
root@balena:~# dmesg | grep spi
[ 3.009703] spi spi0.0: chipselect 0 already in use
[ 3.009712] spi_master spi0: spi_device register error /axi/pcie@1000120000 ...
- 05 May 2025, 17:42
- Forum: Software
- Topic: Pi5 CANbus with Balena
- Replies: 11
- Views: 44454
Re: Pi5 CANbus with Balena
Thanks! I started looking through the overlay files and was almost there. I tried the overlays you recommended:
"spi1-2cs,cs1_pin=11","mcp251xfd,spi1-1,interrupt=6,oscillator=20000000"
After removing the default param spi=on that was causing a gpio conflict, I was able to get can0 working ...
"spi1-2cs,cs1_pin=11","mcp251xfd,spi1-1,interrupt=6,oscillator=20000000"
After removing the default param spi=on that was causing a gpio conflict, I was able to get can0 working ...
- 25 Apr 2025, 04:20
- Forum: Software
- Topic: Pi5 CANbus with Balena
- Replies: 11
- Views: 44454
Pi5 CANbus with Balena
Hi, I am trying to get the Pi5 CANbus to work with Balena OS. I have successfully loaded Balena and I am using dt overlays that work with a different MCP2515-based CAN hat. I doubt these are correct for RevPi. I'm unable to see the can devices in ifconfig. Could you tell me the correct overlays that ...