Jump to content

Board won't boot after enabling SPI interface


Go to solution Solved by thc013,

Recommended Posts

Posted (edited)

Hello !

i'm trying to enable the SPI interface on a OrangePi4B board using Focal latest stable build, so I edit `/boot/armbianEnv.txt` to add these lines :

overlays=spi-spidev
param_spidev_spi_bus=0


But after rebooting, I'm unable to access to the board anymore (No IP address is assigned to the board by the DHCP server).

What's wrong ?
Is there any additionnal steps ?
 

FYI, I also tried to enable SPI using armbian-config tool but it doesn't work neither. As this tool doesn't even specify the `param_spidev_spi_bus` parameters which is required according to the overlay README.

Edited by Falcounet
add build info
  • Solution
Posted

overlays=spi-spidev
param_spidev_spi_bus=1

 

or

overlays=spi-spidev spi-add-cs1

param_spidev_spi_bus=1
param_spidev_spi_cs=0

 

spidev is 1

 

installed wiringop ?

 19 mosi          

 21 miso                        22 ce  (my configuration) (gpio pin 56 with wiringop)

 23 clk                           24 cs

 

so for example my spidev setting in nrf24

 

radio = RF24(56, 10)

 

and for exampe mysensors

 


 ./configure --spi-spidev-device=/dev/spidev1.0 --my-transport=rf24 --my-rf24-ce-pin=56 --my-rf24-cs-pin=42 --my-rf24-irq-pin=55

 

but there indeed a error in the dmesg for spi in 5.10.10 but it works tested with a nrf24 module

 

 

 

 

 

 

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines