1、安装pinctrl-upboard
GitHub - up-division/pinctrl-upboard: pin controller driver for UP HAT pins
2、加载SPI设备
up-community/driver at main · up-board/up-community · GitHub
先把这两个链接的文件克隆下来并解压。
cd pinctrl-upboard-master/files/
make
cd spi-enable/
sudo ./install_hooks
sudo acpi-add spidev*
由此便解决spi驱动安装。