全志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


你可能感兴趣的:(全志A31S源码编译)