Идем на https://docs.armbian.com/User-Guide_Allwinner_overlays/#device-tree-overlays и читаем:
1. Check the README.<soc-id>-overlays in /boot/dtb/overlay/ (32-bit SoCs) or /boot/dtb/allwinner/overlay/ (64-bit SoCs) for a list of provided overlays, their required and optional parameters
2. Add names of overlays you want to activate to overlays= line in /boot/armbianEnv.txt, separated with spaces
3. Add required parameters with their values to /boot/armbianEnv.txt, one per line
4. Add optional parameters with their values to /boot/armbianEnv.txt if you want to change the default value, one per line
5. If you didn’t find the required overlay or want to change one of provided overlays, refer to “Using custom overlays” section
6. Reboot
Следуем инструкциям:
/boot/dtb/overlay# ls README.sun4i-a10-overlays sun4i-a10-spdif-out.dtbo sun5i-a13-i2c1.dtbo sun5i-a13-uart3.dtbo sun7i-a20-spdif-out.dtbo sun8i-h3-cir.dtbo sun8i-h3-uart2.dtbo README.sun5i-a13-overlays sun4i-a10-spi-jedec-nor.dtbo sun5i-a13-i2c2.dtbo sun7i-a20-analog-codec.dtbo sun7i-a20-spi-add-cs1.dtbo sun8i-h3-fixup.scr sun8i-h3-uart3.dtbo README.sun7i-a20-overlays sun4i-a10-spi-spidev.dtbo sun5i-a13-nand.dtbo sun7i-a20-can.dtbo sun7i-a20-spi-jedec-nor.dtbo sun8i-h3-i2c0.dtbo sun8i-h3-usbhost0.dtbo README.sun8i-h3-overlays sun4i-a10-uart2.dtbo sun5i-a13-pwm.dtbo sun7i-a20-fixup.scr sun7i-a20-spi-spidev.dtbo sun8i-h3-i2c1.dtbo sun8i-h3-usbhost1.dtbo sun4i-a10-analog-codec.dtbo sun4i-a10-uart3.dtbo sun5i-a13-spi0.dtbo sun7i-a20-i2c1.dtbo sun7i-a20-uart2.dtbo sun8i-h3-i2c2.dtbo sun8i-h3-usbhost2.dtbo sun4i-a10-can.dtbo sun4i-a10-uart4.dtbo sun5i-a13-spi1.dtbo sun7i-a20-i2c2.dtbo sun7i-a20-uart3.dtbo sun8i-h3-pps-gpio.dtbo sun8i-h3-usbhost3.dtbo sun4i-a10-fixup.scr sun4i-a10-uart5.dtbo sun5i-a13-spi2.dtbo sun7i-a20-i2c3.dtbo sun7i-a20-uart4.dtbo sun8i-h3-pwm.dtbo sun8i-h3-w1-gpio.dtbo sun4i-a10-i2c1.dtbo sun4i-a10-uart6.dtbo sun5i-a13-spi-jedec-nor.dtbo sun7i-a20-i2c4.dtbo sun7i-a20-uart5.dtbo sun8i-h3-spdif-out.dtbo sun4i-a10-i2c2.dtbo sun4i-a10-uart7.dtbo sun5i-a13-spi-spidev.dtbo sun7i-a20-mmc2.dtbo sun7i-a20-uart6.dtbo sun8i-h3-spi-add-cs1.dtbo sun4i-a10-nand.dtbo sun4i-a10-w1-gpio.dtbo sun5i-a13-uart0.dtbo sun7i-a20-nand.dtbo sun7i-a20-uart7.dtbo sun8i-h3-spi-jedec-nor.dtbo sun4i-a10-pps-gpio.dtbo sun5i-a13-analog-codec.dtbo sun5i-a13-uart1.dtbo sun7i-a20-pps-gpio.dtbo sun7i-a20-w1-gpio.dtbo sun8i-h3-spi-spidev.dtbo sun4i-a10-pwm.dtbo sun5i-a13-fixup.scr sun5i-a13-uart2.dtbo sun7i-a20-pwm.dtbo sun8i-h3-analog-codec.dtbo sun8i-h3-uart1.dtbo
дальше, я так и не понял что значат эти вот sun8i-h3 и sun4i-a10 вторая часть — это типа кристалл, а первая — архитектура АРМа? Кто в теме, поясните, ибо ЯННП
ну да ладно, не понял — компенсируем отвагой, кастую /proc/cpuinfo, вижу следующее
... еще 3 таких же ядра... processor : 3 model name : ARMv7 Processor rev 5 (v7l) BogoMIPS : 22.85 Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm CPU implementer : 0x41 CPU architecture: 7 CPU variant : 0x0 CPU part : 0xc07 CPU revision : 5
Hardware : Allwinner sun8i Family Revision : 0000 Serial : 02c00081f5affcb1
получается у меня sun8i что бы это не значило. продолжаем следовать первоначальной инструкции и читаем что написано в ридми для нужного мне оверлея (что за оверлей?)
# cat /boot/dtb/overlay/README.sun8i-h3-overlays This document describes overlays provided in the kernel packages For generic Armbian overlays documentation please see https://docs.armbian.com/User-Guide_Allwinner_overlays/
### Platform:
sun8i-h3 (Allwinner H3)
### Platform details:
Supported pin banks: PA, PC, PD, PG
Both SPI controllers have only one hardware CS pin exposed, adding fixed software (GPIO) chip selects is possible with a separate overlay
### Provided overlays:
- analog-codec - cir - i2c0 - i2c1 - i2c2 - pps-gpio - pwm - spdif-out - spi-add-cs1 - spi-jedec-nor - spi-spidev - uart1 - uart2 - uart3 - usbhost0 - usbhost1 - usbhost2 - usbhost3 - w1-gpio
### Overlay details:
[...]
### spi-spidev
Activates SPIdev device node (/dev/spidevX.Y) for userspace SPI access, where X is the bus number and Y is the CS number
SPI 0 pins (MOSI, MISO, SCK, CS): PC0, PC1, PC2, PC3 SPI 1 pins (MOSI, MISO, SCK, CS): PA15, PA16, PA14, PA13
Parameters:
param_spidev_spi_bus (int) SPI bus to activate SPIdev support on Required Supported values: 0, 1
param_spidev_spi_cs (int) SPI chip select number Optional Default: 0 Supported values: 0, 1 Using chip select 1 requires using «spi-add-cs1» overlay
param_spidev_max_freq (int) Maximum SPIdev frequency Optional Default: 1000000 Range: 3000 - 100000000
[...]
идем в /boot/armbianEnv.txt и приводим к виду:
# cat /boot/armbianEnv.txt
[...]
overlays=sun8i-h3-spi-spidev param_spidev_spi_bus=0 usbstoragequirks=0x2537:0x1066:u,0x2537:0x1068:u
ребутимся, устройства нет, dmesg молчит
куда смотреть? спасибо, звиняйте за простыню