Jump to content
  • 0

How to enable SPI



Hi im not Linux user not all, can someone point me how to enable SPI ? 

I try this:


Enabling SPI

Enable the hardware through config:

sudo armbian-config

switch on SPI in System>Hardware>SPI-spidev & save

Update /etc/modules:

sudo nano /etc/modules

to include the following line:


Update /boot/armbianEnv.txt :

sudo nano /boot/armbianEnv.txt

to include the following:

param_spidev_spi_bus=1 #origianl is 0 but the resonance measurement.py module expects 1 so easier to fix here


The commands to verify the SPI bus should return output like:

$ ls /dev/spi* 


$ ls -l /dev/spi*

crw——- 1 root root 153, 0 Aug 25 11:05 /dev/spidev1.0

$ lsmod | grep -i spi

spidev 20480 1


But on $ ls /dev/spi* give me 

ls: cannot access '/dev/spi*': No such file or directory





Keep in mind English is not my native language.


Link to comment
Share on other sites

1 answer to this question

Recommended Posts

Donate your old hardware to community. Start a giveaway Raffle!

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.

Answer this question...

×   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.

  • Create New...