The Android source files for pcDuino3 family has been released in the image download page.
The following are the steps to build the Android OS for pcDuino3:
1) Kernel
#cd lichee #./build.sh -p sun7i_android
2) Android
#cd ../android #. build/envsetup.sh #lunch wing_pcduino-eng #extract-bsp #make -j16 #make #pack
There are many differences between different options:
- Display (HDMI/LVDS)
- Audio Output (HDMI/Headphone)
- Ethernet(100M/1000M)
- Wifi(RTL8188EUS/RT5370)
To build Android for different option, the description is as follows:
1. The display defaults with HDMI version, and if you need to make the display as LVDS. Please do the following to change:
Before build the kernel:
#cd lichee/tools/pack/chips/sun7i/configs/android/wing-pcduino/?
Use sys_config_lvds.fex to replace sys_config.fex
2. Audio defaults with HDMI output, and if you want to make the microphone jack output. Please modify the file android/device/softwinner/common/hardware/audio/audio_hw.c
Change
#define CARD_A1X_DEFAULT CARD_A1X_HDMI
to
#define CARD_A1X_DEFAULT CARD_A1X_CODEC
3. The Ethernet defaults with 1000M. If you want to change it to 100M. Please modify lichee/linux-3.4/arch/arm/configs/sun7ismp_android_defconfig
Change
CONFIG_SUNXI_GMAC=y
CONFIG_GMAC_SCRIPT_SYS=y
CONFIG_GMAC_CLK_SYS=y
CONFIG_GMAC_RING=y
# CONFIG_GMAC_CHAINED is not set
# CONFIG_SUNXI_EMAC is not set
to
# CONFIG_SUNXI_GMAC is not set
CONFIG_SUNXI_EMAC=y
4. The WiFi defaults with RTL8188EUS. If you need to change it to RT5370 Wifi dongle, please modify
1) lichee/bootimg/boot.ext4
rm boot.ext4
ln -s boot_rt5370.ext4 boot.ext4
2) android/device/softwinner/wing-pcduino/BoardConfig.mk
Change
BOARD_WIFI_VENDOR := realtek
#BOARD_WIFI_VENDOR := ralink
to
#BOARD_WIFI_VENDOR := realtek
BOARD_WIFI_VENDOR := ralink
Leave a Reply
You must be logged in to post a comment.