Skip to content
View in the app

A better way to browse. Learn more.

Learn more

BPI M2 Zero can't get spi to show

Featured Replies

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

Solved by martinayotte

  • Author
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 ^^

Guest
This topic is now closed to further replies.

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.