Can't get SPI to work with Rock Pi 4

Hi,

OSError: /dev/spidev1.0 does not exist

Probably I’m doing something wrong and/or missing something basic and obvious here but I can’t seem to be able to get the spi/spidev to work.
I’ve looked around trying to find where to set the overlays to work but I don’t find where to enable this.
So far I’m liking diet pi, but getting this to work is taking me a lot meanwhile it has been pretty simple in my experience in other distributions like RaspBian on Radxa’s debian 11 that I’ve tried previously. Hopefully there’s something pretty obvious here.
Help will be greatly appreciated!

Thanks!

  • DietPi version | v8.17.2
  • Distro version | Bullseye
  • Kernel version | Linux DietPi 5.15.93-rockchip64 #23.02.2 SMP PREEMPT Fri Feb 17 23:48:36 UTC 2023 aarch64 GNU/Linux
  • Architecture | arm64
  • SBC model | ROCK 4 (aarch64)

@MichaIng probably something you could help with

A post was split to a new topic: Rock Pi 4 B boot from SSD

So I managed to get this working, and yup it was pretty simple, although it has taken me quite long:

in /boot/dietpiEnv.txt needed to add:
overlays=spi-spidev
param_spidev_spi_bus=1

and now it seems to work, so yes it was pretty simple…DUH!

Was this really needed? This looks like a variable which remains just unused. But the overlay makes sense :+1:.