/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: 461)
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 7 1,007 11-19-2024, 02:54 PM
Last Post: mara
  Upgrading ancient Rock64 timxjr1300 0 56 11-15-2024, 09:50 AM
Last Post: timxjr1300
  arch rock64 does not boot nemnob 1 959 09-20-2024, 11:18 AM
Last Post: AwU2HBg
  DietPi OS for ROCK64 MichaIng 42 43,603 09-01-2024, 06:43 AM
Last Post: RaymondDay
Smile First Lakka image for Rock64! Luke 47 81,033 09-01-2024, 06:05 AM
Last Post: RaymondDay
  Rock64 v2 - did not work song / audio sqw200zu 2 1,864 03-14-2024, 03:09 AM
Last Post: dmitrymyadzelets
  Rock64 won't boot dstallmo 0 636 12-27-2023, 10:34 AM
Last Post: dstallmo
  HDMI doesn't work on rock64 Noung1991 1 1,077 11-21-2023, 08:33 AM
Last Post: as365n4
  Rock64 + Klipper + KlipperScreen Instructions godzilla62 0 1,083 10-22-2023, 01:52 AM
Last Post: godzilla62
  Rock64 Debian 11 (Bullseye) install problem jbize 15 11,233 10-12-2023, 05:14 PM
Last Post: tpaul

Forum Jump:


Users browsing this thread: 3 Guest(s)