全志A31S源码编译

环境:ubuntu12.10


问题1:
root@ubuntu:/home/ygm/source/lichee# ./build.sh -h(选择v1版本fiber_a31st-eng)
root@ubuntu:/home/ygm/source/lichee# ./build.sh -p xxxxxxxxxxxx
#######################################
#  skip make buildroot for fiber_a31s512m #
#######################################
/home/ygm/source/lichee/buildroot
build standby
make: Entering directory `/home/ygm/source/lichee/linux-3.3/arch/arm/mach-sun6i/pm/standby'
arm-linux-gnueabi-gcc -I. -I/home/ygm/source/lichee/linux-3.3/include -I/home/ygm/source/lichee/linux-3.3/arch/arm/mach-sun6i/include -g -c -nostdlib -march=armv7-a -marm -D__STANDBY_MODULE__ -fno-unwind-tables -fno-asynchronous-unwind-tables -mlittle-endian -O2 --min_array_alignment=4 --no_unaligned_access common.c           -o common.o
make: arm-linux-gnueabi-gcc: Command not found


解决:Are you compiling on a 64-bit OS? Try:


sudo apt-get install ia32-libs




问题2:
"mkimage" command not found - U-Boot images will not be built
make[1]: *** [arch/arm/boot/uImage] Error 1


解决:root@ubuntu:/home/ygm/source/lichee# apt-get install uboot-mkimage


问题3:
./scripts/build_rootfs.sh: line 19: fakeroot: command not found
解决:root@ubuntu:/home/ygm/source/lichee# apt-get install fakeroot


最终:
###############################
#         compile success     #
###############################




/*
12.04出错解决:
ubuntu 12.04安装 ia32-libs
http://pkgs.org/ubuntu-12.04/ubuntu-main-amd64/lib32stdc++6_4.6.3-1ubuntu5_amd64.deb.html
ubuntu 12.04
lib32stdc++6 - GNU Standard C++ Library v3 (32 bit Version)
Install Howto


    Update the package index:
    # sudo apt-get update

    Install lib32stdc++6 deb package:
    # sudo apt-get install lib32stdc++6


*/
------------------------------------------------------------------------------------------------




root@ubuntu:/home/ygm/source/android# source build/envsetup.sh
including device/samsung/manta/vendorsetup.sh
including device/generic/armv7-a-neon/vendorsetup.sh
including device/generic/mips/vendorsetup.sh
including device/generic/x86/vendorsetup.sh
including device/softwinner/fiber-a31st/vendorsetup.sh
including device/softwinner/fiber-common/vendorsetup.sh
including device/softwinner/fiber-a31st512m/vendorsetup.sh
including device/softwinner/fiber-a31stm/vendorsetup.sh
including device/softwinner/fiber-w02/vendorsetup.sh
including device/lge/mako/vendorsetup.sh
including device/lge/hammerhead/vendorsetup.sh
including device/asus/grouper/vendorsetup.sh
including device/asus/deb/vendorsetup.sh
including device/asus/flo/vendorsetup.sh
including device/asus/tilapia/vendorsetup.sh
including sdk/bash_completion/adb.bash
root@ubuntu:/home/ygm/source/android# lunch


You're building on Linux


Lunch menu... pick a combo:
     1. aosp_arm-eng
     2. aosp_x86-eng
     3. aosp_mips-eng
     4. vbox_x86-eng
     5. aosp_manta-userdebug
     6. mini_armv7a_neon-userdebug
     7. mini_mips-userdebug
     8. mini_x86-userdebug
     9. fiber_a31st-eng
     10. fiber_a31st-user
     11. fiber_a31st512m-eng
     12. fiber_a31st512m-user
     13. fiber_a31stm-eng
     14. fiber_a31stm-user
     15. fiber_w02-eng
     16. fiber_w02-user
     17. aosp_mako-userdebug
     18. aosp_hammerhead-userdebug
     19. aosp_grouper-userdebug
     20. aosp_deb-userdebug
     21. aosp_flo-userdebug
     22. aosp_tilapia-userdebug


Which would you like? [aosp_arm-eng] 9


============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.4.2
TARGET_PRODUCT=fiber_a31st512m
TARGET_BUILD_VARIANT=eng
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=cortex-a7
HOST_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-3.5.0-17-generic-x86_64-with-Ubuntu-12.10-quantal
HOST_BUILD_TYPE=release
BUILD_ID=KOT49H
OUT_DIR=out
============================================


root@ubuntu:/home/ygm/source/android#extract-bsp
root@ubuntu:/home/ygm/source/android#make -j4
在out/target/product/fiber-xxx/ 目录下面会生成boot.img, recovery.img, system.img 3个包。


(之前将.cfg文件拷贝到
 /home/ygm/source/lichee/tools/pack_v1.0/chips/sun6i/configs/android/fiber-a31st)
root@ubuntu:/home/ygm/source/android#pack -d 
会报错的:
You will need a 64-bit version of Ubuntu. Ubuntu 10.04 is recommended. Building using a newer version of Ubuntu is currently only experimentally supported and is not guaranteed to work on branches other than master.
apt-get install bison;
apt-get install flex;
apt-get install python-markdown;


sudo apt-get install git-core gnupg  gperf build-essential \
zip curl zlib1g-dev libc6-dev lib32ncurses5-dev ia32-libs \
x11proto-core-dev libx11-dev lib32readline5-dev lib32z-dev libxml2-utils\

not install follow:

libgl1-mesa-dev g++-multilib mingw32 tofrodos  xsltproc

last again source build/enxxx.sh


  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
全志A31最全开发资料包(用户手册+硬件参考设计+Check List+软硬件设计文档资料): Firmware Hardware IC PMU A31&A31s SDKv4.5 规格说明书.pdf A31(s)_fiber_fex_guide_v2.0.pdf A31-A31s-Android4.4快速移植指南(SDKv4.5).pdf A31-A31s-Android4.4系统方向配置说明.pdf A31s_SDK4.5_512M_for_KitKat方案规格及配置说明.pdf A31_Camera模组自适应说明_V1.0_20130529.pdf A31_linux_bsp_user_manual.pdf A31_Standby调试说明文档_20130418.pdf A31平台audio适配层使用说明文档.pdf A31平台camera模块开发说明文档(新驱动).pdf A31平台CTP模块开发说明文档.pdf A31平台DMA开发说明文档.pdf A31平台G-sensor模块开发说明文档.pdf A31平台IIC设备驱动开发说明文档.pdf A31平台LCD模块开发说明文档.pdf A31平台Script和GPIO开发说明文档.pdf A31平台SPI设备驱动开发说明文档.pdf A31平台电话系统开发说明文档V2.0.pdf A31平台音频模块开发说明文档.pdf A3x_Android4.2_Miracast_Source Design Reference_20130926.pdf A3x平台android4.4 wifi模块移植说明文档_20140114.pdf eDP芯片ANX9804和ANX6345配置说明.pdf USB driver如何添加定制的VID_PID.pdf 00-123.txt A31 hardware design checklist_V1_20-121226.pdf DRAM-Layout说明-V3.0.pdf A31_3G网卡支持列表_20130530.pdf A31_CMOS Approval List_20140117.pdf A31_DDR支持列表_201308.pdf A31_G-sensor支持列表_20130530.pdf A31_NAND支持列表_v2.12_20130724.pdf A31_以太网转换器支持列表_20130530.pdf A31_显示屏支持列表_20130530.pdf A31_触摸屏支持列表_20130530.pdf A3x_eMMC support list_(SDK V3.3).pdf A3x_WIFI+BT支持列表_20130927.pdf 射频天线设计指导文档_20130926.pdf PCB参考 原理图 支持列表 硬件设计指南

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

ygmdream

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值