/dev/spidev0,0 on the Rock64 - Does anyone know how to enable it?
#6
Weird. I repeated steps again (using the same kernel 4.4.132-1075-rockchip-ayufan-ga83beded8524) with success.
  • Do all under root ("sudo bash") (Permission denied!). '#' is root prompt, '$' is user prompt.
  • "dtc" warning are ok.
  • Yes, you must change device from /dev/spidev0,0 to spidev32766.1 in application. The numbering is platform dependent.

Every eink module have own demo. Let's choose 1.54" and demo.
Connect SPI device pinheader Pi-2 Bus:
  • VCC = pin 17 (3.3V)
  • GND = pin 20 (GND)
  • DIN <- pin 19 (GPIO3_A1 (SPI_TXD_M2))
  • CLK <- pin 24 (GPIO3_A0 (SPI_CLK_M2))
  • CS <- pin 26 GPIO2_B4 (SPI_CSN1_M0)
  • D/C <- pin 15 GPIO3_A4
  • RES <- pin 16 GPIO3_A5
  • BUSY -> pin 18 GPIO3_A6

And demo the demo (under root) but untested:
Code:
# ls /dev/spidev*
/dev/spidev32766.1

# ### retrieve original
# wget https://www.waveshare.com/w/upload/7/73/1.54inch_e-Paper_Module_code.7z
# apt install p7zip
# 7zr x 1.54inch_e-Paper_Module_code.7z raspberrypi/python/*
# ### use attached copy (modified but unable to check it)
# tar xf epaper_demo.tar
# ls *.py *.bmp
epd1in54.py  epdif.py  main.py monocolor.bmp
# ### compare changes
# for i in raspberrypi/python/*.py; do diff -u $i .; done

# ### install required libraries and fonts
# git clone https://github.com/Leapo/Rock64-R64.GPIO.git
# ln -s Rock64-R64.GPIO/R64 .
# apt install fonts-freefont-ttf
# apt install python-pil
# apt install python-pip python-setuptools python-dev
# pip install spidev

# ### try demo
# python main.py


Attached Files
.tar   epaper_demo.tar (Size: 20 KB / Downloads: 394)
I left this community in Aug 2019 due to PINE64 refusal to produce/deliver ROCK64-1G version 3 after more than one year of changing statuses to "planning", "evaluating", "releasing", "availability", "estimated availability" and finally "no schedule" Angry. ROCK64 is dead platform without any advantage. Buy Raspberry PI 4 !
Away
  Reply


Messages In This Thread
RE: /dev/spidev0,0 on the Rock64 - Does anyone know how to enable it? - by mcerveny - 08-21-2018, 05:14 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  irradium (based on crux linux) Rock64 riscv64, aarch64 mara 0 134 03-24-2024, 01:07 PM
Last Post: mara
  Rock64 v2 - did not work song / audio sqw200zu 2 1,328 03-14-2024, 03:09 AM
Last Post: dmitrymyadzelets
  Rock64 won't boot dstallmo 0 323 12-27-2023, 10:34 AM
Last Post: dstallmo
  HDMI doesn't work on rock64 Noung1991 1 594 11-21-2023, 08:33 AM
Last Post: as365n4
  Rock64 + Klipper + KlipperScreen Instructions godzilla62 0 594 10-22-2023, 01:52 AM
Last Post: godzilla62
  Rock64 Debian 11 (Bullseye) install problem jbize 15 8,233 10-12-2023, 05:14 PM
Last Post: tpaul
  slarm64 (unofficial slackware) Rock64 RK3328 (aarch64) mara 133 189,464 10-09-2023, 03:31 AM
Last Post: mara
  arch rock64 does not boot nemnob 0 582 07-09-2023, 03:28 AM
Last Post: nemnob
  RXDP from Win10 to Armbian on Rock64 Transportsicherung 0 632 05-27-2023, 06:11 AM
Last Post: Transportsicherung
  how to use spidev0.1? jclab-joseph 2 2,261 02-06-2023, 04:43 PM
Last Post: monte

Forum Jump:


Users browsing this thread: 1 Guest(s)