明远智睿R16 android4.4 常见问题参考手册
1 R16 android4.4 常见问题1.1 在内核中添加spi驱动
$cd lichee/linux-3.4 $make ARCH=ARM menuconfig $lunch astar_parrot-tina
$make kernel_menuconfig
Device Drivers ---> SPI support ---> <*> User mode SPI device driver support
修改
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
1.2 以太网不能用
在内核增加驱动
$make ARCH=arm menuconfig
Device Drivers --->
USB Network Adapters --->
<*> Multi-purpose USB Networking Frameworksuch as cable modems)
<*> SMSC LAN95XX based USB 2.0 10/100 ethernet devices
1.3 默认勾选使用以太网
1)在frameworks\base\packages\SettingsProvider\res\values\default.xml
<bool name="def_ethernet_on">true</bool> 改成true
<bool name="def_ethernet_mode">true</bool> 添加以下这两句
<bool name="def_ethernet_conf">true</bool>
<string name="def_ethernet_IFname" translatable="false">eth0</string>
2)在frameworks\base\packages\SettingsProvider\src\com\android\providers\settings\DatabaseHelper.java 添加
loadBooleanSetting(stmt, Settings.Global.ETHERNET_CONF, R.bool.def_ethernet_conf)
loadStringSetting(stmt, Settings.Global.ETHERNET_IFNAME, R.string.def_ethernet_ifname)
*博客内容为网友个人发布,仅代表博主个人观点,如有侵权请联系工作人员删除。