本地编译 全志a33 的步骤

来源:互联网 发布:安卓简单捕鱼源码 编辑:程序博客网 时间:2024/04/30 15:07
本地编译 全志a33 的步骤
2015/4/30 16:33 开始写
2015/4/30 17:50 完工








0、获取 全志a33 的Android源码包:
android_4.4.tar.bz2 Android4.4.2的压缩包
lichee.tar.bz2      内核的压缩包


参考指令:
rootroot@rootroot-Lenovo:~$ pwd
/home/rootroot


rootroot@rootroot-Lenovo:~$ mkdir evb_a33


rootroot@rootroot-Lenovo:~$ cd evb_a33


拷贝 android_4.4.tar.bz2 和 lichee.tar.bz2 到 evb_a33 目录。
rootroot@rootroot-Lenovo:~/evb_a33$ ll
total 9760456
drwxrwxr-x  2 rootroot rootroot       4096  4?.30 16:41 ./
drwxr-xr-x 28 rootroot rootroot       4096  4?.30 16:41 ../
-rwxr--r--  1 rootroot rootroot 4330274446  2?.11 15:45 android_4.4.tar.bz2*
-rwxr--r--  1 rootroot rootroot 5664415552  1?.22 09:44 lichee.tar.bz2*


rootroot@rootroot-Lenovo:~/evb_a33$ tar jxvf lichee.tar.bz2 


rootroot@rootroot-Lenovo:~/evb_a33$ mkdir android


rootroot@rootroot-Lenovo:~/evb_a33$ mv android_4.4.tar.bz2 android/


rootroot@rootroot-Lenovo:~/evb_a33$ cd android/


rootroot@rootroot-Lenovo:~/evb_a33/android$ tar jxvf android_4.4.tar.bz2 








1、安装ubuntu
已经验证过的系统:ubuntu-14.04.2-desktop-amd64.iso、ubuntu-12.04.2-desktop-amd64.iso。
ubuntu的官方下载地址:
http://releases.ubuntu.com/releases/10.04/
http://cdimage.ubuntu.com/releases/
http://old-releases.ubuntu.com/releases/lucid/




如果没有特殊理由,推荐使用ubuntu长期支持的版本(LTS版本)。
Ubuntu10.04.4在公司的电脑上找不到 有线网卡的驱动,暂时放弃了(看资料是MTK对ubuntu10.04支持比较好,可以在虚拟机中验证了)。
ubuntu14.04.2可以。(Ubuntu 12.04也没有 有线网卡的驱动。)
本文以Ubuntu 12.04.2 LTS为例。
注意:公司的联想电脑按 F12 可以设置启动选项,进BIOS。
这样就可以用UltraISO制作U盘启动安装Ubuntu了。


安装Ubuntu的教程请参考:
http://digi.163.com/11/0127/18/6RE3LQL400162OUT.html
图文教程:手把手教你用U盘安装Ubuntu


http://www.linuxidc.com/Linux/2012-11/74695.htm
U盘安装Ubuntu 12.10


http://jingyan.baidu.com/article/a3761b2b66fe141577f9aa51.html
怎么用u盘安装ubuntu




手动分区的建议设置:
/boot  分配100M即可
swap   交换分区 4G
/home  剩下的容量
/      注意这里需要设置为主分区!!!!




小知识:
查看ubuntu的版本:
rootroot@wenyb1903:~$ cat /etc/issue
Ubuntu 12.04.2 LTS \n \l


查看ubuntu是32位还是64位(x86_64):
rootroot@wenyb1903:~$ uname -a
Linux wenyb1903 3.5.0-23-generic #35~precise1-Ubuntu SMP Fri Jan 25 17:13:26 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux


http://www.360doc.com/content/13/0921/23/6496277_316103639.shtml
查看ubuntu是32位还是64位的方法及其版本号 


http://www.cnblogs.com/zero1665/archive/2010/05/24/1742962.html
查看ubuntu版本号








2、全志a33的android的环境搭建(和MT6582的环境一样):
使用apt-get安装所需要的软件:




(1)
建议:update Manager不要更新。




(2)
首先安装openssh-server,这样就可以在Windows下通过SSH软件连接Ubuntu的电脑操作了。
sudo apt-get install openssh-server


注意:ubuntu14.04下出现依赖库的问题。


http://segmentfault.com/q/1010000000312702
ubuntu 12.04 安装 openssh-server 失败,请问怎么该弄?
sudo apt-get install openssh-client=1:5.9p1-5ubuntu1




(3)
安装编译anroid所需要的软件:
注意:Ubuntu 12.04.2必须增加源,否则有些软件安装不上!!!!


请参考这2个帖子增加源:
http://blog.sina.com.cn/s/blog_6c41c7510101bilw.html
中国地区的官方ubuntu源


http://bbs.21ic.com/icview-708728-1-1.html
[i.MX] 关于android编译环境的安装
楼主你好,这里出现这个是由于apt-get 依赖版本过高的原因,你在google一下是可以搜索到的。解决办法,建议你下载android前,先更新一下你的源:


A、首先备份Ubuntu 11.10源列表
sudo cp /etc/apt/sources.list /etc/apt/sources.list.backup (备份下当前的源列表)


B、修改更新源
#sudo gedit /etc/apt/sources.list


#Delete all item in this file, then copy the following server addresses to it (163 or Souhu):
#163:
deb http://mirrors.163.com/ubuntu/ precise main restricted
deb-src http://mirrors.163.com/ubuntu/ precise main restricted
deb http://mirrors.163.com/ubuntu/ precise-updates main restricted
deb-src http://mirrors.163.com/ubuntu/ precise-updates main restricted
deb http://mirrors.163.com/ubuntu/ precise universe
deb-src http://mirrors.163.com/ubuntu/ precise universe
deb http://mirrors.163.com/ubuntu/ precise-updates universe
deb-src http://mirrors.163.com/ubuntu/ precise-updates universe
deb http://mirrors.163.com/ubuntu/ precise multiverse
deb-src http://mirrors.163.com/ubuntu/ precise multiverse
deb http://mirrors.163.com/ubuntu/ precise-updates multiverse
deb-src http://mirrors.163.com/ubuntu/ precise-updates multiverse
deb http://mirrors.163.com/ubuntu/ precise-backports main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ precise-backports main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ precise-security main restricted
deb-src http://mirrors.163.com/ubuntu/ precise-security main restricted
deb http://mirrors.163.com/ubuntu/ precise-security universe
deb-src http://mirrors.163.com/ubuntu/ precise-security universe
deb http://mirrors.163.com/ubuntu/ precise-security multiverse
deb-src http://mirrors.163.com/ubuntu/ precise-security multiverse
deb http://extras.ubuntu.com/ubuntu precise main
deb-src http://extras.ubuntu.com/ubuntu precise main


C、保存退出。然后执行命令:
#sudo apt-get update
更新之后,你再安装那些包的话就不会有问题了。




sudo apt-get install flex
sudo apt-get install build-essential
sudo apt-get install curl
sudo apt-get install zlib1g-dev
sudo apt-get install g++-multilib(必须加源,否则这里会出现依赖库的问题)
sudo apt-get install g++-4.4-multilib
sudo apt-get install libc6-dev-i386
sudo apt-get install lib32ncurses5-dev
sudo apt-get install ia32-libs(!!!!这个有问题,先使用下面的代替)
# sudo apt-get install libc6:i386 libgcc1:i386 gcc-4.6-base:i386 libstdc++5:i386 libstdc++6:i386
sudo apt-get install libc6:i386
sudo apt-get install libgcc1:i386
sudo apt-get install gcc-4.6-base:i386
sudo apt-get install libstdc++5:i386
sudo apt-get install libstdc++6:i386


sudo apt-get install x11proto-core-dev
sudo apt-get install libx11-dev
sudo apt-get install lib32readline5-dev(sudo apt-get install lib32readline-gplv2-dev)
sudo apt-get install lib32z1-dev
sudo apt-get install mingw32
sudo apt-get install tofrodos
sudo apt-get install perl
sudo apt-get install python2.7




sudo apt-get install git-core
sudo apt-get install gnupg


sudo apt-get install bison
sudo apt-get install gperf


sudo apt-get install zip


sudo apt-get install libc6-dev


sudo apt-get install x11proto-core-dev


sudo apt-get install lib32z-dev
sudo apt-get install libgl1-mesa-dev


sudo apt-get install python-markdown
sudo apt-get install libxml2-utils
sudo apt-get install xsltproc




(4)
选择安装的软件(根据自己的需要,自行选择:)
开启ubuntu系统的root用户的方法:
sudo passwd root
[sudo] password for rootroot:
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully




sudo apt-get install nautilus-open-terminal




sudo apt-get install wine(根据自己的需要可选安装)




(5)
安装samba:
sudo apt-get install samba


sudo smbpasswd -a rootroot
(输入密码2次:rootroot)
New SMB password:
Retype new SMB password:


sudo cp /etc/samba/smb.conf /etc/samba/smb.conf.bak
sudo gedit /etc/samba/smb.conf


(在最后面添加以下内容:)
[rootroot]
comment = Root Directories
path = /
public = yes
browseable = yes
writable = yes
valid users = rootroot


重启samba:
sudo /etc/init.d/smbd restart


获取当前电脑配置的IP地址:
sudo ifconfig








3、安装JDK1.6.45
(1)
安装JDK1.6.45,使用如下命令
sudo chmod u+x jdk-6u45-linux-x64.bin  
sudo cp -a jdk-6u45-linux-x64.bin /opt  
sudo /opt/jdk-6u45-linux-x64.bin  
sudo rm -f /opt/jdk-6u45-linux-x64.bin




(2)
设置JDK环境变量,在HOME根目录下按键盘Crtr+H显示HOME目录下所有文件,打开.bashrc,在最后加入以下代码
#set java environment  
export JAVA_HOME=/opt/jdk1.6.0_45
export JRE_HOME=$JAVA_HOME/jre  
export CLASSPATH=$CLASSPATH:$JAVA_HOME/lib:$JRE_HOME/lib  
export PATH=$PATH:$JAVA_HOME/bin:$JRE_HOME/bin  




(3)
测试JDK是否安装成功,使用命令java -version 如果显示(需要注销,或者重启ubuntu系统)
rootroot@rootroot-Lenovo:~$ java -version
java version "1.6.0_45"
Java(TM) SE Runtime Environment (build 1.6.0_45-b06)
Java HotSpot(TM) 64-Bit Server VM (build 20.45-b01, mixed mode)
则JDK安装成功。








4、改变gcc版本(如果需要安装虚拟机VirtualBox,请一定在这一步骤之前安装,否则会出错!!!!)
如果linux系统的gcc版本超过4.4,那么就需要降低版本来适应MTK的编译要求。
gcc -v可以查看版本,我的是4.7的,所以要先安装:$sudo apt-get install gcc-4.4,
进入/usr/bin/目录,$ls -l gcc*查看到gcc是链接到4.7的,执行:
     $sudo mv gcc gcc.bak
     $sudo ln -s gcc-4.4 gcc
这样就把编译器改成4.4版本了,对于g++也是如法炮制:
     $sudo mv g++ g++.bak
     $sudo ln -s g++-4.4 g++




rootroot@wenyb1903:~/d800/ap/d800_android$ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.6/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu/Linaro 4.6.3-1ubuntu5' --with-bugurl=file:///usr/share/doc/gcc-4.6/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.6 
--enable-shared --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.6 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --enable-plugin --enable-objc-gc --disable-werror --with-arch-32=i686 --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnuThread model: posix
gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5) 




rootroot@wenyb1903:~/d800/ap/d800_android$ g++ -v
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.6/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu/Linaro 4.6.3-1ubuntu5' --with-bugurl=file:///usr/share/doc/gcc-4.6/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.6 
--enable-shared --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.6 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --enable-plugin --enable-objc-gc --disable-werror --with-arch-32=i686 --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnuThread model: posix
gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5) 
rootroot@wenyb1903:~/d800/ap/d800_android$ 
rootroot@wenyb1903:~/d800/ap/d800_android$ 
rootroot@wenyb1903:~/d800/ap/d800_android$ 
rootroot@wenyb1903:~/d800/ap/d800_android$ 
rootroot@wenyb1903:~/d800/ap/d800_android$ 








5、Ubuntu14.04下还需要安装:sudo apt-get install libswitch-perl 
http://www.cnblogs.com/kobe8/p/3998379.html
在Ubuntu14.04上编译Android4.0.1出现的几个问题 sudo apt-get install libswitch-perl 


(1)、 出错以下出错信息:
Import includes file: out/target/product/mx3/obj/STATIC_LIBRARIES/libwebcore_intermediates/import_includes  
target Generated: libwebcore <= external/webkit/Source/WebCore/css/tokenizer.flex  
<span style="rgb(255, 255, 51);">Can't locate Switch.pm in @INC (you may need to install the Switch module)</span> (@INC contains: /etc/perl /usr/local/lib/perl/5.18.2 /usr/local/share/perl/5.18.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.18 /usr/share/perl/5.18 /usr/local/lib/site_perl .) at external/webkit/Source/WebCore/make-hash-tools.pl line 23.  
BEGIN failed--compilation aborted at external/webkit/Source/WebCore/make-hash-tools.pl line 23.  
Can't locate Switch.pm in @INC (you may need to install the Switch module) (@INC contains: /etc/perl /usr/local/lib/perl/5.18.2 /usr/local/share/perl/5.18.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.18 /usr/share/perl/5.18 /usr/local/lib/site_perl .) at external/webkit/Source/WebCore/make-hash-tools.pl line 23.  
BEGIN failed--compilation aborted at external/webkit/Source/WebCore/make-hash-tools.pl line 23.  
make: *** [out/target/product/mx3/obj/STATIC_LIBRARIES/libwebcore_intermediates/Source/WebCore/html/DocTypeStrings.cpp] Error 2  
make: *** Waiting for unfinished jobs....  
make: *** [out/target/product/mx3/obj/STATIC_LIBRARIES/libwebcore_intermediates/Source/WebCore/platform/ColorData.cpp] Error 2  
target Generated: libwebcore <= external/webkit/Source/WebCore/html/parser/HTMLEntityNames.in  


解决方法是安装perl的switch库:
sudo apt-get install libswitch-perl 








6、参考资料:
http://blog.csdn.net/man_embedded/article/details/40111023
linux下编译MTK android的环境搭建


http://jingyan.baidu.com/article/624e7459abb8eb34e8ba5aa2.html
Ubuntu10.04搭建MTK android编译环境


http://blog.csdn.net/doon/article/details/8053174
ubuntu 12.04 64位设置兼容32位的实现


http://blog.csdn.net/yimiyangguang1314/article/details/39996851
Ubuntu 12.04 64bit 无法识别交叉编译器解决办法


http://pkgs.org/download/ia32-libs
ia32-libs Download (DEB)


http://source.android.com/source/initializing.html
Initializing a Build Environment


http://processors.wiki.ti.com/index.php/TI-Android-JB-4.2.2-DevKit-4.1.1_DeveloperGuide
TI-Android-JB-4.2.2-DevKit-4.1.1 DeveloperGuide


编译手册:
X:\android\device\softwinner\polaris-common\Documents\A33\Firmware
A33_Tablet SDK Quick Start Guide.pdf (在 全志a33 的BSP里)


http://download.csdn.net/detail/u013267581/8478365
全志A33用户手册
SINA33_用户手册_v1.0.pdf








7、将shell从DASH切换到BASH:
http://blog.csdn.net/smilettxp/article/details/19118057?reload
ubuntu 12.04编译MTK6582——FAQ


现象:
加载MT6582_Android_scatter.txt文件后,Flash_tool无法显示下载内容时,查看XXXX_preloader.log中有如下提示:


/bin/sh: 1: [: -a: unexpected operator


awk: line 4: function strtonum never defined
awk: line 4: function strtonum never defined


解决办法:/bin/sh: 1: [: -a: unexpected operator 分析原因为/bin/sh的链接到/bin/dash,而不是/bin/bash(可以用命令ls /bin/sh -lh查看链接的时bash还是dash)
修改sh默认指向到/bin/bash,如下:
sudo dpkg-reconfigure dash 选择no,即可。


awk:line的解决办法是安装gnu awk,如下:
sudo apt-get install gawk 即可。








8、编译步骤:
四、编译 Android 系统


(一)解压 Android 源码(本文最前面有介绍)


1、lichee:源码位置:光盘\源码\lichee.tar.gz
将其拷贝到自己的工作目录下,进行解压
tar zxvf lichee.tar.gz


2、Android:源码位置:光盘\源码\android.tar.bz2.*
将其拷贝到自己的工作目录下,进行解压
cat android.tar.bz2.a* | tar xj


3、其中 lichee 目录为 uboot、Linux 以及一些脚本配置的源码,android 目录为 android 部分的源码。这两部分需要分开编译。


(二)编译 lichee 目录


1、进入 lichee 目录
cd lichee


2、第一次编译前,执行配置命令,后续再次编译可省略
./build.sh config
选择 0 sun8iw5p1 回车
选择 0 android 回车
选择 0 linux-3.4 回车
选择 0 evb 回车


3、编译 lichee 目录
./build.sh


4、编译完成




rootroot@rootroot-Lenovo:~/evb_a33$ cd lichee/


rootroot@rootroot-Lenovo:~/evb_a33/lichee$ ./build.sh config


Welcome to mkscript setup progress
All available chips:
   0. sun8iw5p1
Choice: 0
All available platforms:
   0. android
   1. dragonboard
   2. linux
Choice: 0
All available kernel:
   0. linux-3.4
Choice: 0
All available boards:
   0. evb
   1. maple
   2. redwood
   3. y2
   4. y3
Choice: 0
rootroot@rootroot-Lenovo:~/evb_a33/lichee$


rootroot@rootroot-Lenovo:~/evb_a33/lichee$ ./build.sh 


编译完成:
regenerate rootfs cpio
8772 blocks
9473 blocks
build_ramfs
Copy boot.img to output directory ...
Copy modules to target ...
INFO: build kernel OK.
INFO: build rootfs ...
INFO: skip make rootfs for android
INFO: build rootfs OK.
INFO: ----------------------------------------
INFO: build lichee OK.
INFO: ----------------------------------------
rootroot@rootroot-Lenovo:~/evb_a33/lichee$ 








(三)编译 android 目录
1、进入 android 目录
cd android


2、设置环境变量
Source build/envsetup.sh


3、选择配置方案
Lunch
输入我们选择的配置方案
选择 14. astar_evb-eng 回车
(注意:不同的电脑,可能 astar_evb-eng 的编号不一样,但是选择 astar_evb-eng 前的编号即可!)


4、拷贝 lichee 目录下编译好的 uboot 跟 kernel
extract-bsp


5、编译(j8 为 8 线程编译,请根据自己 PC 机器的 CPU 能力选择线程数)
make -j8


6、编译完之后,进行打包
pack


最后生成可以烧写的镜像 sun8iw5p1_android_evb.img
镜像所在目录为 lichee/tools/pack




rootroot@rootroot-Lenovo:~/evb_a33/lichee$ cd ../android/


rootroot@rootroot-Lenovo:~/evb_a33/android$ source build/envsetup.sh 
including device/lge/mako/vendorsetup.sh
including device/lge/hammerhead/vendorsetup.sh
including device/asus/tilapia/vendorsetup.sh
including device/asus/flo/vendorsetup.sh
including device/asus/deb/vendorsetup.sh
including device/asus/grouper/vendorsetup.sh
including device/generic/x86/vendorsetup.sh
including device/generic/mips/vendorsetup.sh
including device/generic/armv7-a-neon/vendorsetup.sh
including device/softwinner/astar-evb/vendorsetup.sh
including device/softwinner/polaris-common/vendorsetup.sh
including device/softwinner/astar-y3/vendorsetup.sh
including device/samsung/manta/vendorsetup.sh
including sdk/bash_completion/adb.bash


rootroot@rootroot-Lenovo:~/evb_a33/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_mako-userdebug
     6. aosp_hammerhead-userdebug
     7. aosp_tilapia-userdebug
     8. aosp_flo-userdebug
     9. aosp_deb-userdebug
     10. aosp_grouper-userdebug
     11. mini_x86-userdebug
     12. mini_mips-userdebug
     13. mini_armv7a_neon-userdebug
     14. astar_evb-eng
     15. astar_y3-eng
     16. astar_y3-user
     17. aosp_manta-userdebug


Which would you like? [aosp_arm-eng] 14


============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.4.2
TARGET_PRODUCT=astar_evb
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.16.0-30-generic-x86_64-with-Ubuntu-14.04-trusty
HOST_BUILD_TYPE=release
BUILD_ID=KVT49L
OUT_DIR=out
============================================


rootroot@rootroot-Lenovo:~/evb_a33/android$  
rootroot@rootroot-Lenovo:~/evb_a33/android$ extract-bsp 
/home/rootroot/evb_a33/android/device/*/astar-evb/bImage copied!
/home/rootroot/evb_a33/android/device/*/astar-evb/modules copied!
 
rootroot@rootroot-Lenovo:~/evb_a33/android$ make -j4


rootroot@rootroot-Lenovo:~/evb_a33/android$ pack
copying tools file
copying configs file
copying boot resource
copying boot file
packing for android
normal
/home/rootroot/evb_a33/lichee/tools/pack/pctools/linux/eDragonEx/
/home/rootroot/evb_a33/lichee/tools/pack/out
Begin Parse sys_partion.fex
Add partion boot-resource.fex BOOT-RESOURCE_FEX
Add partion very boot-resource.fex BOOT-RESOURCE_FEX
FilePath: boot-resource.fex
FileLength=4bec00Add partion env.fex ENV_FEX000000000
Add partion very env.fex ENV_FEX000000000
FilePath: env.fex
FileLength=20000Add partion boot.fex BOOT_FEX00000000
Add partion very boot.fex BOOT_FEX00000000
FilePath: boot.fex
FileLength=b31000Add partion system.fex SYSTEM_FEX000000
Add partion very system.fex SYSTEM_FEX000000
FilePath: system.fex
FileLength=2278ec60Add partion recovery.fex RECOVERY_FEX0000
Add partion very recovery.fex RECOVERY_FEX0000
FilePath: recovery.fex
FileLength=dd4800Add partion diskfs.fex DISKFS_FEX000000
sys_config.fex Len: 0xf205
config.fex Len: 0x98ac
split_xxxx.fex Len: 0x200
sys_partition.fex Len: 0xe2e
boot0_nand.fex Len: 0x8000
boot0_sdcard.fex Len: 0x8000
u-boot.fex Len: 0xbc000
fes1.fex Len: 0x1fc0
usbtool.fex Len: 0x20600
aultools.fex Len: 0x25d92
aultls32.fex Len: 0x2295a
cardtool.fex Len: 0x14000
cardscript.fex Len: 0x6ea
sunxi_mbr.fex Len: 0x10000
dlinfo.fex Len: 0x4000
arisc.fex Len: 0x2ed88
boot-resource.fex Len: 0x4bec00
Vboot-resource.fex Len: 0x4
env.fex Len: 0x20000
Venv.fex Len: 0x4
boot.fex Len: 0xb31000
Vboot.fex Len: 0x4
system.fex Len: 0x2278ec60
Vsystem.fex Len: 0x4
recovery.fex Len: 0xdd4800
Vrecovery.fex Len: 0x4
diskfs.fex Len: 0x200
BuildImg 0
Dragon execute image.cfg SUCCESS !
----------image is at----------


/home/rootroot/evb_a33/lichee/tools/pack/sun8iw5p1_android_evb.img


pack finish
rootroot@rootroot-Lenovo:~/evb_a33/android$ 








9、烧录系统:
windows下的刷机工具:PhoenixSuit1.0.6.rar
注意:这个工具是网络上找到的烧录 全志a31s 的工具。非 全志官方/代理商/方案公司提供的烧录 全志a33 的专用烧录工具。


安装完成之后,选择升级到1.10(不升级也可以用,但是升级之后可以选择刷机的分区)。
 
单或多分区下载(勾选此项,刷机工具下载你选择的分区)
全选(若全部不选,则只下载boot0,boot1)
BOOTLOADER
ENV
BOOT
SYSTEM
RECOVERY
 
 
刷机步骤:
拔掉电源线(电源关机)→拔掉USB线→打开PhoenixSuit1.10→选择“一键刷机”→点“浏览”找到编译好的IMG包:sun8iw5p1_android_evb.img→选择:单或多分区下载/全选→点“立即升级”→


是否进行对设备进行固件烧写操作?(是)


无设备连接!!!(点“确定”)


引导升级模式失败(点“确定”)


是否进入强制烧写模式?
    1、长按电源键10秒以上来关掉设备电源
    2、松开电源键,按下任意一个非电源键并且不要松手
    3、将需要升级的设备连接至PC机
    4、短按电源键5到10次
    5、松开所有的按键,设备将会进入自动升级
    按住“VOL+”按键(开发板上的最左边的按键)不放,点“确定”之后,连接USB线,短按电源键(开发板的PWRON键)5到10次 ,然后两个按键都松开,就会进入烧写模式。
 
提示信息:是否强制格式化?
强制格式化会导致文件丢失,请事先备份重要文件!
 
选择Yes,进入格式化升级模式。
选择No,进入普通升级模式。(推荐使用)
    点“是”
 
正在烧写固件:53% 耗时【0】分【30】秒 (大概一分钟即可烧录完成。)一分钟零4秒
 
下载过程中,就可以打开电源开关了,这样刷机完成之后 开发板就会 自动重启了。

0 0
原创粉丝点击