Jump to content

H2+ SPI with OrangePi Zero running Linux 5.10.xx-sunxi


gounthar

Recommended Posts

Armbianmonitor:

Hello there,

 

I have an Orange Pi Zero running Armbian 22.02.0-trunk.0003 Bullseye with Linux 5.10.89-sunxi.
I have followed this thread about H3 and SPI, but it does not work for me. I have checked the right (?) options in armbian-config, added spi0-spidev in armbianEnv.txt.
Here is my armbianEnv.txt:

verbosity=1
bootlogo=false
console=serial
disp_mode=1920x1080p60
overlay_prefix=sun8i-h3
overlays=i2c0 pwm spi-add-cs1 spi-jedec-nor spi-spidev usbhost2 usbhost3 spi0-spidev
rootdev=UUID=1244dc6c-1888-4768-9cbd-922ca4cc3436
rootfstype=ext4
usbstoragequirks=0x2537:0x1066:u,0x2537:0x1068:u

 

I don't have any spi subfolder in /dev.
I'm almost sure I have forgotten something really trivial, but I can't see what for the time being.

 

Can anyone point me the obvious mistake I made?

Thanks.

Link to comment
Share on other sites

It is possible that there are some options missing from armbianEnv.txt. On my Banana Pi M2 Zero, beyond setting the overlays, some additional settings had to be added to armbianEnv.txt. These options are:

param_spidev_spi_bus=1
param_spidev_spi_cs=0

If I understood the page about the OrangePi Zero (https://linux-sunxi.org/Xunlong_Orange_Pi_Zero), using BUS 1 and CS 0 should work (however, I don't have one to test).

 

You can find a more complete description about all possible parameters for armbianEnv.txt for the H3 on the page https://github.com/armbian/sunxi-DT-overlays/tree/master/sun8i-h3

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