R16 android4.4常见问题

一.增加spi

    在内核中添加spi 驱动

    $cd lichee/linux-3.4

    $make ARCH=arm 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

二.以太网不能用

    在内核增加驱动

    $make ARCH=arm menuconfig

    Device Drivers --->

        [*] Network device support --->

            USB Network Adapters --->

                    <*> Multi-purpose USB Networking Frameworksuch as cable modems)

                    <*> SMSC LAN95XX based USB 2.0 10/100 ethernet devices

三.默认勾选使用以太网

    1.在frameworks\base\packages\SettingsProvider\res\values\default.xml

        true  改成true

        true

        添加以下这两句

        true

        eth0

    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);

你可能感兴趣的:(R16 android4.4常见问题)