全志a33android编译,编译lichee - 全志A33的环境搭建

编译lichee

mklichee

编译过程

INFO:----------------------------------------

INFO:buildlichee。。。

INFO:chip:sun8iw5p1

INFO:platform:android

INFO:kernel:linux-3.4

INFO:board:y3

INFO:output:out/sun8iw5p1/android/y3

INFO:----------------------------------------

INFO:buildbuildroot。。。

externaltoolchainhasbeeninstalled

INFO:buildbuildrootOK.

INFO:buildkernel。。。

INFO:preparetoolchain。。。

Buildingkernel

CHKinclude/linux/version.h

CHKinclude/generated/utsrelease.h

make[1]:“include/generated/mach-types.h”是最新的。

CALLscripts/checksyscalls.sh

CHKinclude/generated/compile.h

CCarch/arm/mach-sunxi/pm/standby/common.o

省略大部分编译过程。。。

make:Leavingdirectory`/opt/item_A33/lichee/linux-3.4/modules/mali‘

regeneraterootfscpio

8772blocks

9475blocks

build_ramfs

Copyboot.imgtooutputdirectory。。。

Copymodulestotarget。。。

INFO:buildkernelOK.

INFO:buildrootfs。。。

INFO:skipmakerootfsforandroid

INFO:buildrootfsOK.

INFO:----------------------------------------

INFO:buildlicheeOK.

INFO:----------------------------------------

(至此编译成功)

单独编译buildroot

mkbr

编译过程

INFO:buildbuildroot。。。

externaltoolchainhasbeeninstalled

INFO:buildbuildrootOK.

单独编译内核

mkkernel

编译过程

INFO:buildkernel。。。

INFO:preparetoolchain。。。

Buildingkernel

CHKinclude/linux/version.h

CHKinclude/generated/utsrelease.h

make[1]:“include/generated/mach-types.h”是最新的。

CALLscripts/checksyscalls.sh

CHKinclude/generated/compile.h

CCarch/arm/mach-sunxi/pm/standby/common.o

CCarch/arm/mach-sunxi/pm/standby/standby_clock.o

CCarch/arm/mach-sunxi/pm/standby/standby_ir.o

CCarch/arm/mach-sunxi/pm/standby/standby_key.o

CCarch/arm/mach-sunxi/pm/standby/standby_power.o

CCarch/arm/mach-sunxi/pm/standby/standby_twi.o

CCarch/arm/mach-sunxi/pm/standby/standby_usb.o

ASarch/arm/mach-sunxi/pm/standby/standby_delay.o

CCarch/arm/mach-sunxi/pm/standby/。/arisc/standby_arisc.o

CCarch/arm/mach-sunxi/pm/standby/。/arisc/arisc_hwmsgbox.o

(省略编译过程。,。)

make:Leavingdirectory`/opt/item_A33/lichee/linux-3.4/modules/mali’

regeneraterootfscpio

8772blocks

9475blocks

build_ramfs

Copyboot.imgtooutputdirectory。。。

Copymodulestotarget。。。

INFO:buildkernelOK.

(至此,内核编译完成)

编译brandy

Bandy目录中存放的是A33平台的bootloader,该目录为A33启动代码,默认不编译。

编译u-boot

cdlichee/brandy/u-boot-2011.09/

makedistclean

makesun8iw5p1_config

make-j2

当编译成功,生成的u-boot-sun8iw5pl.bin文件会自动拷贝到对应的tool目录下,这时候可以直接打包或者其他操作。U-boot-sun8iw5pl.bin启动时是uboot核心可执行程序。

“u-boot-sun8iw5p1.bin”-》“/opt/item_A33/lichee/brandy/u-boot-2011.09/。。/。。/tools/pack/chips/sun8iw5p1/bin/u-boot-sun8iw5p1.bin”

编译android

编译android前请先编译内核

选择方案

souecebuild/envsetup.sh

lunch

出现以下设置选项,请依照设置

You‘rebuildingonLinux

Lunchmenu.。.pickacombo:

1.aosp_arm-eng

2.aosp_x86-eng

3.aosp_mips-eng

4.vbox_x86-eng

5.aosp_manta-userdebug

6.aosp_deb-userdebug

7.aosp_flo-userdebug

8.aosp_grouper-userdebug

9.aosp_tilapia-userdebug

10.mini_armv7a_neon-userdebug

11.mini_x86-userdebug

12.mini_mips-userdebug

13.aosp_mako-userdebug

14.aosp_hammerhead-userdebug

15.astar_y3-eng

16.astar_y3-user

Whichwouldyoulike?[aosp_arm-eng]15

============================================

PLATFORM_VERSION_CODENAME=REL

PLATFORM_VERSION=4.4.2

TARGET_PRODUCT=astar_y3

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.13.0-46-generic-x86_64-with-Ubuntu-12.04-precise

HOST_BUILD_TYPE=release

BUILD_ID=KVT49L

OUT_DIR=out

============================================

拷贝kenrel和modules

extract-bsp

编译android

make-j?

(?表示启用几个进程编译,一般不要超过cpu的核数)

最后显示信息

Installsystemfsimage:out/target/product/astar-y3/system.img

out/target/product/astar-y3/system.img+out/target/product/astar-y3/obj/PACKAGING/recovery_patch_intermediates/recovery_from_boot.pmaxsize=822163584blocksize=4224total=591028141reserve=8308608

Android打包

cd到android根目录用pack打包

pack

显示以下信息

copyingtoolsfile

copyingconfigsfile

copyingbootresource

copyingbootfile

packingforandroid

normal

/opt/item_A33/lichee/tools/pack/pctools/linux/eDragonEx/

/opt/item_A33/lichee/tools/pack/out

BeginParsesys_partion.fex

Addpartionboot-resource.fexBOOT-RESOURCE_FEX

Addpartionveryboot-resource.fexBOOT-RESOURCE_FEX

FilePath:boot-resource.fex

FileLength=4bec00Addpartionenv.fexENV_FEX000000000

Addpartionveryenv.fexENV_FEX000000000

FilePath:env.fex

FileLength=20000Addpartionboot.fexBOOT_FEX00000000

Addpartionveryboot.fexBOOT_FEX00000000

FilePath:boot.fex

FileLength=afa000Addpartionsystem.fexSYSTEM_FEX000000

Addpartionverysystem.fexSYSTEM_FEX000000

FilePath:system.fex

FileLength=23175bdcAddpartionrecovery.fexRECOVERY_FEX0000

Addpartionveryrecovery.fexRECOVERY_FEX0000

FilePath:recovery.fex

FileLength=db2000Addpartiondiskfs.fexDISKFS_FEX000000

Addpartionverydiskfs.fexDISKFS_FEX000000

FilePath:diskfs.fex

FileLength=200sys_config.fexLen:0xf397

config.fexLen:0x9ac4

split_xxxx.fexLen:0x200

sys_partition.fexLen:0xf0a

boot0_nand.fexLen:0x8000

boot0_sdcard.fexLen:0x8000

u-boot.fexLen:0xbc000

fes1.fexLen:0x1f60

usbtool.fexLen:0x20600

aultools.fexLen:0x25d92

aultls32.fexLen:0x2295a

cardtool.fexLen:0x14000

cardscript.fexLen:0x6ea

sunxi_mbr.fexLen:0x10000

dlinfo.fexLen:0x4000

arisc.fexLen:0x2bee9

boot-resource.fexLen:0x4bec00

Vboot-resource.fexLen:0x4

env.fexLen:0x20000

Venv.fexLen:0x4

boot.fexLen:0xafa000

Vboot.fexLen:0x4

system.fexLen:0x23175bdc

Vsystem.fexLen:0x4

recovery.fexLen:0xdb2000

Vrecovery.fexLen:0x4

diskfs.fexLen:0x200

Vdiskfs.fexLen:0x4

BuildImg0

Dragonexecuteimage.cfgSUCCESS!

----------imageisat----------

/opt/item_A33/lichee/tools/pack/sun8iw5p1_android_y3.img

packfinish

制作完成

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值