MY-R16-EK166 常见问题参考手册
来自明远智睿的wiki
关于R16增加spi
Linux系统:
1)在内核中添加spi驱动
$cd tinaV2.1
$source build/envsetup.sh
$lunch astar_parrot-tina
$make kernel_menuconfig
Device Drivers --->
SPI support --->
<*> User mode SPI device driver support
2)修改
tinaV2.1/target/allwinner/astar-parrot/configs/sys_config.fex [spi_board0] modalias = "at25df641" sflash_size = 32 max_speed_hz = 50000000 bus_num = 0 chip_select = 0 mode = 0
修改成
[spi_board0] modalias = "spidev" sflash_size = 32 max_speed_hz = 50000000 bus_num = 0 chip_select = 0 mode = 0
Android系统:
1)在内核中添加spi驱动
$cd lichee/linux-3.4
$make ARCH=arm menuconfig
Device Drivers --->
SPI support --->
<*> User mode SPI device driver support
2)修改
lichee/tools/pack/chips/sun8iw5p1/configs/evb-30/sys_config.fex [spi_board0] modalias = "at25df641" sflash_size = 32 max_speed_hz = 50000000 bus_num = 0 chip_select = 0 mode = 0
修改成
[spi_board0] modalias = "spidev" sflash_size = 32 max_speed_hz = 50000000 bus_num = 0 chip_select = 0 mode = 0