MY-R16-EK166 FAQ Reference Manual

来自明远智睿的wiki
跳转至: 导航搜索

About R16 increase spi

Linux system:

1)Add spi drivers to the kernel
$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)Modification

  
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  

changed to

   
[spi_board0]
modalias      = "spidev"  
sflash_size   = 32  
max_speed_hz  = 50000000  
bus_num       = 0  
chip_select   = 0  
mode          = 0  

Android system:

1)Add spi drivers to the kernel
$cd lichee/linux-3.4
$make ARCH=arm menuconfig
Device Drivers --->
SPI support --->
<*> User mode SPI device driver support

2)Modification

   
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   

changed to

 
[spi_board0]  
modalias      = "spidev"    
sflash_size   = 32    
max_speed_hz  = 50000000    
bus_num       = 0   
chip_select   = 0   
mode          = 0