Enable I2C, I2s, SPI in boot-config file?
#3
It seems that the way things are, the devices are not enablet right away. However, they can be enabled via "dts overlays", essentially additional changes to the internal "device tree" structure.

See https://github.com/ayufan-rock64/linux-b...al-devices

There is an example there of enabling a network interface. I found that I could enable the i2c-0 bus (the one on pins P3 and P5) by the following command, run as root:

enable_dtoverlay i2c0 i2c@ff150000 okay

where the names such as "i2c@ff150000" are found in the device-tree-source file on the github repository:

https://github.com/ayufan-rock64/linux-k...k3328.dtsi

Now, note that a number of GPIOs are already in use for various other purposes (the SPI for exampe is used for an on-board memory chip) and might not be readily available.

To have this happen on startup, put it into /etc/rc.local


Messages In This Thread
RE: Enable I2C, I2s, SPI in boot-config file? - by KnReLe - 07-16-2018, 07:44 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Rock64 won't boot luminosity7 10 4,033 03-16-2024, 08:33 AM
Last Post: dmitrymyadzelets
  Rock64 doesn't boot dstallmo 1 311 03-16-2024, 08:29 AM
Last Post: dmitrymyadzelets
  Boot from SPI first mjnck 1 1,508 02-29-2024, 02:12 PM
Last Post: reukiodo
  ROCK64 v3 can it boot from USB? Tsagualsa 4 2,052 11-29-2022, 11:31 AM
Last Post: Macgyver
  Rock64 u-boot for eMMC Build Error mexicanflyer 0 1,039 09-18-2022, 02:29 PM
Last Post: mexicanflyer
  Rock64 enable 1-wire to read DS18B20 or Dallas temperature sensor Perry 2 3,068 02-12-2021, 08:02 PM
Last Post: Perry
  boot hdd usb3 philipe 1 2,632 01-27-2021, 02:12 PM
Last Post: tllim
  Libreelec Rock64 - 4GB no boot spiker15 3 4,545 11-02-2020, 12:36 AM
Last Post: wilsonYan
  Rock64 - boot helpmerock 2 3,522 10-08-2020, 01:29 PM
Last Post: helpmerock
  No boot up after power on Whoopsadaisy 4 5,634 09-26-2020, 05:14 PM
Last Post: simonsouth

Forum Jump:


Users browsing this thread: 1 Guest(s)