Sandr Posted July 9, 2017 Posted July 9, 2017 Good day. My trouble - is not started spi, on orange pi pc, with ARMBIAN 5.25 stable Ubuntu 16.04.2 LTS 4.10.0-sun8i I read documentation for DTB overlays on official site https://docs.armbian.com/Hardware_Allwinner_overlays/ Check armbianEnv.txt, edit DTB (dts) sun8i-h3-orangepi-pc.dts And change status from "disabled" to "okay spi@01c68000 { ...... status = "okay"; ....... This is my /boot/armbianEnv.txt verbosity=1 console=serial overlay_prefix=sun8i-h3 overlays=w1-gpio spi-spidev param_spidev_spi_bus=0 But SPI not started This is boot log http://sprunge.us/SJQh
zador.blood.stained Posted July 9, 2017 Posted July 9, 2017 3 hours ago, Sandr said: My trouble - is not started spi, on orange pi pc, with ARMBIAN 5.25 stable Ubuntu 16.04.2 LTS 4.10.0-sun8i I read documentation for DTB overlays on official site https://docs.armbian.com/Hardware_Allwinner_overlays/ And I'm assuming you saw this in the docs page you linked: Quote DT overlays are a Work-in-Progress (WIP) feature, present only in fresh images starting with 5.30, nightly and user made images For older images (even upgraded to 5.30 or later) manual update of the u-boot and the boot script is required 1
Sandr Posted July 24, 2017 Author Posted July 24, 2017 I have upgrade my system to ARMBIAN 5.31 stable Ubuntu 16.04.2 LTS 4.11.5-sun8i But in docs Quote older images (even upgraded to 5.30 or later) manual update of the u-boot and the boot script is required And new question: where i can find docs - How manual update u-boot and boot script?
Igor Posted July 24, 2017 Posted July 24, 2017 Replace /boot/boot.cmd with this: https://github.com/armbian/build/blob/master/config/bootscripts/boot-sunxi.cmd and recompile: mkimage -C none -A arm -T script -d /boot/boot.cmd /boot/boot.scr Provide logs with armbianmonitor -u (I assume you can boot the board?) 1
Sandr Posted July 24, 2017 Author Posted July 24, 2017 Here is http://sprunge.us/WEiK log file ps: Thank you ! ls /dev/spi* /dev/spidev0.0 1
Sandr Posted July 24, 2017 Author Posted July 24, 2017 And new question I cant find gpio module gpio-sunxi > modprobe gpio-sunxi modprobe: FATAL: Module gpio-sunxi not found in directory /lib/modules/4.11.5-sun8i and of course Quote sunxi-tools is already the newest version (1.4.2-1~armbian5.31+1)
zador.blood.stained Posted July 24, 2017 Posted July 24, 2017 12 minutes ago, Sandr said: I cant find gpio module gpio-sunxi It's not required even on the legacy kernel and obviously it's not present on the mainline, generic sysfs interface should be used instead.
Recommended Posts