Skip to content
View in the app

A better way to browse. Learn more.

Armbian Community Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

SPI activation on nanopi Neo

Featured Replies

Hi @all,

I currently try to build a door-opener with a NanoPi Neo and a MFRC522 Rfid-Module.

Unfortunately I don't get the SPI working.

I loaded the newest Armbian-Debian from the Website:

uname -r = 4.14.18-sunxi

and downloaded the SPI-library for NanoPi:

https://github.com/wertyzp/WiringNP

By using 

armbian-config

I activated "pwm", "sei-add-cs1", "spi-jedec-nor" and "spi-spidev".

The problem:

If I try to activate SPI with

gpio load spi

I get the following error-message:

modprobe: FATAL: Module spi-sun7i not found in directory /lib/modules/4.14.18-sunxi
gpio: Unable to load spi-sun7i

So it seems that wiringNp doesn't use "spi-dev" but "spi-sun7i" and I tried to install it from source from:

https://github.com/OLIMEX/OLINUXINO/blob/master/SOFTWARE/A20/A20-build-3.4.90/spi-sun7i.c

Unfortunately I can't find out how to write the Makefile so that I can compile the .ko-file and install the driver.

Can you help me writing the Makefile or have another idea how I could solve the problem?

 

Thanks in advance and greetings,

Latze

Edited by latze

On 5/7/2018 at 2:07 AM, latze said:

Hi @all,

I currently try to build a door-opener with a NanoPi Neo and a MFRC522 Rfid-Module.

Unfortunately I don't get the SPI working.

I loaded the newest Armbian-Debian from the Website:


uname -r = 4.14.18-sunxi

and downloaded the SPI-library for NanoPi:


https://github.com/wertyzp/WiringNP

By using 


armbian-config

I activated "pwm", "sei-add-cs1", "spi-jedec-nor" and "spi-spidev".

The problem:

If I try to activate SPI with


gpio load spi

I get the following error-message:


modprobe: FATAL: Module spi-sun7i not found in directory /lib/modules/4.14.18-sunxi
gpio: Unable to load spi-sun7i

So it seems that wiringNp doesn't use "spi-dev" but "spi-sun7i" and I tried to install it from source from:


https://github.com/OLIMEX/OLINUXINO/blob/master/SOFTWARE/A20/A20-build-3.4.90/spi-sun7i.c

Unfortunately I can't find out how to write the Makefile so that I can compile the .ko-file and install the driver.

Can you help me writing the Makefile or have another idea how I could solve the problem?

 

Thanks in advance and greetings,

Latze

Pay attention to the theme I created, I got it and there I brought libraries that used.

https://forum.armbian.com/topic/7635-rfid-mfrc522-on-nanopi-neo/

 

Guest
This topic is now closed to further replies.

Account

Navigation

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.