Jump to content

Board won't boot after enabling SPI interface


Falcounet

Recommended Posts

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
Link to comment
Share on other sites

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

 

 

 

 

 

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines