Jump to content

BPI M2 Zero can't get spi to show


Go to solution Solved by martinayotte,

Recommended Posts

Posted
Armbianmonitor:

Hey,

 

I am using the Image from the Armbian Download site: Armbian_20.11.6_Bananapim2zero_bullseye_current_5.10.4

and I am trying to get SPI to work,

enabled it using armbian-config

and through editing the /boot/armbianEnv.txt

 

verbosity=1
bootlogo=false
console=both
disp_mode=1920x1080p60
overlay_prefix=sun8i-h3
rootdev=UUID=034edbda-9395-4820-87a1-f3a83bad8a58
rootfstype=ext4
overlays=spi-spidev
usbstoragequirks=0x2537:0x1066:u,0x2537:0x1068:u

 

But after a reboot it does not show in /dev/

(what seems odd, i2c-0 shows in /dev/ even though it is not enabled in the armbianEnv.txt)

 

As far as I understand it, the dts for h3 should be the same for h2+ ?

I also found a file called "sun8i-h2-plus-bananapi-m2-zero.dtb" under /boot/dtb after some research I found out that this is a device tree binary (thats also why I cant read it) but I couldn't find any information on how to use it. Or how I could replace the spi-spidev.dtd with this h2 one.

 

I also already tried the focal_current_5.10.4 Image same result.

 

Thanks in advance :)

Lukas

Posted
vor 8 Minuten schrieb martinayotte:

You've forgot to define "param_spidev_spi_bus" which is mandatory ...

 

Thank you very much, should the armbian-config have set this option ?

 

Sorry I didn't find it in overlay documentation that this flag is needed ^^

Posted
20 hours ago, Lukas S said:

Sorry I didn't find it in overlay documentation that this flag is needed ^^

Look at this doc file : /boot/dtb/overlay/README.sun8i-h3-overlays

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

Important Information

Terms of Use - Privacy Policy - Guidelines