http://www.linuxidc.com/Linux/2014-04/100645.htm
Ubuntu 14.04 LTS下安装Google Chrome浏览器
https://www.virtualbox.org/
virtualbox
sudo apt-get install uboot-mkimage
sudo apt-get install meld
http://meld.sourceforge.net/install.html
Meld : Install
源码下载
http://packages.ubuntu.com/zh-cn/precise/all/meld/download
meld_1.5.3-1ubuntu1_all.deb 的下载页面
本地编译MTK6582的步骤4
2015/4/16 11:27 开始写
2015/4/20 10:45 完工
0、获取MTK6582的Android源码包:
首先通过SST工具(推荐XShell、SecureCRT等)远程登录到服务器,命令行操作:
wenyb@ubuntu:~/wyb/d800$ git clone git@paxserver:d800s/ap
wenyb@ubuntu:~/wyb/d800$ cd ..
wenyb@ubuntu:~/wyb$ tar zcvf d800.tar.gz d800/
然后将压缩包d800.tar.gz拷贝到本地备用。
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、MTK6582的android的环境搭建:
使用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
(1)
安装JDK1.6,使用如下命令
sudo chmod u+x jdk-6u23-linux-x64.bin
sudo cp -a jdk-6u23-linux-x64.bin /opt
sudo /opt/jdk-6u23-linux-x64.bin
sudo rm -f /opt/jdk-6u23-linux-x64.bin
(2)
设置JDK环境变量,在HOME根目录下按键盘Crtr+H显示HOME目录下所有文件,打开.bashrc,在最后加入以下代码
#set java environment
export JAVA_HOME=/opt/jdk1.6.0_23
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系统)
java version "1.6.0_23"
Java(TM) SE Runtime Environment (build 1.6.0_23-b02)
Java HotSpot(TM) Server VM (build 16.3-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
7、使用git命令切换分支:
(1)切换到tablet分支的步骤
rootroot@wenyb1903:~/d800/ap/d800_android$ git branch
* master
rootroot@wenyb1903:~/d800/ap/d800_android$ git remote
origin
rootroot@wenyb1903:~/d800/ap/d800_android$ git remote -v
origin git@paxserver:d800s/ap (fetch)
origin git@paxserver:d800s/ap (push)
rootroot@wenyb1903:~/d800/ap/d800_android$ cd ..
rootroot@wenyb1903:~/d800/ap$ git branch -a
* master
remotes/origin/20140122_oldpackedsaved
remotes/origin/D800-MXA-364-02CC_AP_V1.00T2_20150327
remotes/origin/D800-MXA-364-02CC_AP_V1.00_20150327
remotes/origin/HEAD -> origin/master
remotes/origin/PCI
remotes/origin/QA1_20140423_factory
remotes/origin/bctc
remotes/origin/d800s_QA0_20140325_ethernet
remotes/origin/debug
remotes/origin/debug_tablet
remotes/origin/emv_debug
remotes/origin/master
remotes/origin/pci
remotes/origin/release
remotes/origin/share_network
remotes/origin/spdev
remotes/origin/tablet
remotes/origin/tablet_0906_released
remotes/origin/ums
remotes/origin/usb-boot
rootroot@wenyb1903:~/d800/ap$ git checkout tablet
Branch tablet set up to track remote branch tablet from origin.
Switched to a new branch 'tablet'
(2)确认已经切换到tablet分支:
rootroot@wenyb1903:~/d800/ap$ git branch
master
* tablet
rootroot@wenyb1903:~/d800/ap$ git remote
origin
rootroot@wenyb1903:~/d800/ap$ git remote -v
origin git@paxserver:d800s/ap (fetch)
origin git@paxserver:d800s/ap (push)
rootroot@wenyb1903:~/d800/ap$ git branch -a
master
* tablet
remotes/origin/20140122_oldpackedsaved
remotes/origin/D800-MXA-364-02CC_AP_V1.00T2_20150327
remotes/origin/D800-MXA-364-02CC_AP_V1.00_20150327
remotes/origin/HEAD -> origin/master
remotes/origin/PCI
remotes/origin/QA1_20140423_factory
remotes/origin/bctc
remotes/origin/d800s_QA0_20140325_ethernet
remotes/origin/debug
remotes/origin/debug_tablet
remotes/origin/emv_debug
remotes/origin/master
remotes/origin/pci
remotes/origin/release
remotes/origin/share_network
remotes/origin/spdev
remotes/origin/tablet
remotes/origin/tablet_0906_released
remotes/origin/ums
remotes/origin/usb-boot
8、测试MTK android编译环境是否搭建成功
(1)
切换到MTK源码根目录下,使用命令./mk check-env,若显示如下信息则安装成功
**********checking Env************
Your building environment is OK
The detail information is in "checkenv.log"!
*************************************************
Ubuntu10.04搭建MTK android编译环境
(2)
同时在MTK源码根目录下生成checkenv.log文件,打开文件,显示ubuntu10.04大部分自带工具都和MTK的推荐的一致,如下:
Build Environment Requirement
===================================================
* ********* Suggested OS and Tool Chain to install *********
*
* OS : Linux distribution Ubuntu 10.04
* Memory Size : 4G or above
* make : GNU Make 3.81 or 3.82
* perl : Version 5.10.X
* python : Version 2.6.X
* arm-linux-androideabi-gcc : Version 4.6.X
* gcc : Version 4.4.3
* jdk : Version 1.6.X
* bison : Version 2.4.X
* flex : Version 2.5.X
* gperf : Version 3.0.X
* mingw : Installed
* unix2dos/tofrodos : Installed
* **********************************************************
===================================================
Build Environment Check Result Report
*************************************************************
[OS]: Ubuntu 10.04.4 (64-bit) [OK]
[Physical Memory Size] : 4052924 K-Bytes [WARNING]
it's smaller than recommendation, may cause out-of-memory build error
[make]: 3.81 (64-bit) [OK]
[perl]: 5.10.1 (64-bit) [OK]
[python]: 2.6.5 (64-bit) [OK]
[arm-linux-androideabi-gcc]: 4.6. (64-bit) [OK]
[gcc]: 4.4.3 (64-bit) [OK]
[jdk]: 1.6.0_45 (64-bit) [OK]
[bison]: 2.4.1 (64-bit) [OK]
[flex]: 2.5.35 (64-bit) [OK]
[gperf]: 3.0.3 (64-bit) [OK]
[mingw]: Installed [OK]
[unix2dos/tofrodos]: Installed [OK]
*************************************************************
Ubuntu10.04搭建MTK android编译环境
(3)
也可以解决下这个问题
[Physical Memory Size] : 4052924 K-Bytes [WARNING]
it's smaller than recommendation, may cause out-of-memory build error
打开mediatek/build/tools/checkEnv.py
修改lowMen为0
9、将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 即可。
10、编译步骤:
rootroot@rootroot-Lenovo:~/d800/ap/d800_android$ ./mk -t d800 n
本地大概要2小时,服务器要1小时多点。
编译成功的提示:
Checking memory usage DONE!
==> [OK] 2015/04/16 16:57:09
单独编译preloader_d800.bin的命令:
rootroot@rootroot-Lenovo:~/d800/ap/d800_android$ ./mk -t d800 r pl
11、编译生成的img文件在:Z:\d800\ap\d800_android\out\target\product\d800
Z:\d800\ap\d800_android\out\target\product\d800 的目录结构:
2015/04/16 16:56 <DIR> .
2015/04/16 16:00 <DIR> ..
2015/04/16 16:00 <DIR> mediatek
2015/04/16 16:53 5,206,016 boot.img
2015/04/16 16:54 950,985 ramdisk-recovery.img
2015/04/16 15:51 57 clean_steps.mk
2015/04/16 16:42 <DIR> symbols
2015/04/16 16:54 <DIR> recovery
2015/04/16 15:48 512 EBR1
2015/04/16 15:51 203 previous_build_config.mk
2015/04/16 16:56 61,047 installed-files.txt
2015/04/16 16:43 <DIR> cache
2015/04/16 16:42 <DIR> root
2015/04/16 16:44 19,341,832 userdata.img
2015/04/16 15:48 259,033 logo.bin
2015/04/16 16:11 1,669 factory.ini
2015/04/16 16:43 6,316,180 cache.img
2015/04/16 16:53 13 custom_build_verno
2015/04/16 16:10 4,548,584 kernel
2015/04/16 15:48 212,096 lk.bin
2015/04/16 16:43 135,168 secro.img
2015/04/16 15:53 7 android-info.txt
2015/04/16 15:51 4,548,584 kernel_d800.bin
2015/04/16 16:01 <DIR> common
2015/04/16 16:18 <DIR> test
2015/04/16 15:48 77,724 preloader_d800.bin
2015/04/16 16:56 257,797,808 system.img
2015/04/16 16:44 <DIR> data
2015/04/16 16:48 <DIR> system
2015/04/16 16:56 <DIR> obj
2015/04/16 16:53 653,808 ramdisk.img
2015/04/16 16:54 5,502,976 recovery.img
2015/04/16 16:43 <DIR> secro
2015/04/16 15:48 6,973 MT6582_Android_scatter.txt
2015/04/16 15:48 512 MBR
22 个文件 305,621,787 字节
13 个目录 13,907,607,552 可用字节
12、烧录系统:
注意:一定要先执行 步骤9:将shell从DASH切换到BASH,否则编译出来的 preloader_d800.bin 文件有问题(其它文件都是正常的)。
烧录系统的时候需要安装驱动:PCLoader20150417.rar
D:\PCLoader20150417\drivers\Driver_Auto_Installer_v1.1236.00\Install.bat
然后使用:SP_Flash_Tool_exe_v3.1336.0.198.zip的Flash_tool.exe既可烧录。
烧录之前先拔掉USB连接线和电源。在Flash_tool.exe中选择好img文件的目录、点击Download之后,插入USB线就开始烧录了。
烧录完成之后,拔掉USB线然后接上电源即可正常开机(如果你编译的系统是正确的话^_)。
Ubuntu 14.04 LTS下安装Google Chrome浏览器
https://www.virtualbox.org/
virtualbox
sudo apt-get install uboot-mkimage
sudo apt-get install meld
http://meld.sourceforge.net/install.html
Meld : Install
源码下载
http://packages.ubuntu.com/zh-cn/precise/all/meld/download
meld_1.5.3-1ubuntu1_all.deb 的下载页面
本地编译MTK6582的步骤4
2015/4/16 11:27 开始写
2015/4/20 10:45 完工
0、获取MTK6582的Android源码包:
首先通过SST工具(推荐XShell、SecureCRT等)远程登录到服务器,命令行操作:
wenyb@ubuntu:~/wyb/d800$ git clone git@paxserver:d800s/ap
wenyb@ubuntu:~/wyb/d800$ cd ..
wenyb@ubuntu:~/wyb$ tar zcvf d800.tar.gz d800/
然后将压缩包d800.tar.gz拷贝到本地备用。
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、MTK6582的android的环境搭建:
使用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
(1)
安装JDK1.6,使用如下命令
sudo chmod u+x jdk-6u23-linux-x64.bin
sudo cp -a jdk-6u23-linux-x64.bin /opt
sudo /opt/jdk-6u23-linux-x64.bin
sudo rm -f /opt/jdk-6u23-linux-x64.bin
(2)
设置JDK环境变量,在HOME根目录下按键盘Crtr+H显示HOME目录下所有文件,打开.bashrc,在最后加入以下代码
#set java environment
export JAVA_HOME=/opt/jdk1.6.0_23
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系统)
java version "1.6.0_23"
Java(TM) SE Runtime Environment (build 1.6.0_23-b02)
Java HotSpot(TM) Server VM (build 16.3-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
7、使用git命令切换分支:
(1)切换到tablet分支的步骤
rootroot@wenyb1903:~/d800/ap/d800_android$ git branch
* master
rootroot@wenyb1903:~/d800/ap/d800_android$ git remote
origin
rootroot@wenyb1903:~/d800/ap/d800_android$ git remote -v
origin git@paxserver:d800s/ap (fetch)
origin git@paxserver:d800s/ap (push)
rootroot@wenyb1903:~/d800/ap/d800_android$ cd ..
rootroot@wenyb1903:~/d800/ap$ git branch -a
* master
remotes/origin/20140122_oldpackedsaved
remotes/origin/D800-MXA-364-02CC_AP_V1.00T2_20150327
remotes/origin/D800-MXA-364-02CC_AP_V1.00_20150327
remotes/origin/HEAD -> origin/master
remotes/origin/PCI
remotes/origin/QA1_20140423_factory
remotes/origin/bctc
remotes/origin/d800s_QA0_20140325_ethernet
remotes/origin/debug
remotes/origin/debug_tablet
remotes/origin/emv_debug
remotes/origin/master
remotes/origin/pci
remotes/origin/release
remotes/origin/share_network
remotes/origin/spdev
remotes/origin/tablet
remotes/origin/tablet_0906_released
remotes/origin/ums
remotes/origin/usb-boot
rootroot@wenyb1903:~/d800/ap$ git checkout tablet
Branch tablet set up to track remote branch tablet from origin.
Switched to a new branch 'tablet'
(2)确认已经切换到tablet分支:
rootroot@wenyb1903:~/d800/ap$ git branch
master
* tablet
rootroot@wenyb1903:~/d800/ap$ git remote
origin
rootroot@wenyb1903:~/d800/ap$ git remote -v
origin git@paxserver:d800s/ap (fetch)
origin git@paxserver:d800s/ap (push)
rootroot@wenyb1903:~/d800/ap$ git branch -a
master
* tablet
remotes/origin/20140122_oldpackedsaved
remotes/origin/D800-MXA-364-02CC_AP_V1.00T2_20150327
remotes/origin/D800-MXA-364-02CC_AP_V1.00_20150327
remotes/origin/HEAD -> origin/master
remotes/origin/PCI
remotes/origin/QA1_20140423_factory
remotes/origin/bctc
remotes/origin/d800s_QA0_20140325_ethernet
remotes/origin/debug
remotes/origin/debug_tablet
remotes/origin/emv_debug
remotes/origin/master
remotes/origin/pci
remotes/origin/release
remotes/origin/share_network
remotes/origin/spdev
remotes/origin/tablet
remotes/origin/tablet_0906_released
remotes/origin/ums
remotes/origin/usb-boot
8、测试MTK android编译环境是否搭建成功
(1)
切换到MTK源码根目录下,使用命令./mk check-env,若显示如下信息则安装成功
**********checking Env************
Your building environment is OK
The detail information is in "checkenv.log"!
*************************************************
Ubuntu10.04搭建MTK android编译环境
(2)
同时在MTK源码根目录下生成checkenv.log文件,打开文件,显示ubuntu10.04大部分自带工具都和MTK的推荐的一致,如下:
Build Environment Requirement
===================================================
* ********* Suggested OS and Tool Chain to install *********
*
* OS : Linux distribution Ubuntu 10.04
* Memory Size : 4G or above
* make : GNU Make 3.81 or 3.82
* perl : Version 5.10.X
* python : Version 2.6.X
* arm-linux-androideabi-gcc : Version 4.6.X
* gcc : Version 4.4.3
* jdk : Version 1.6.X
* bison : Version 2.4.X
* flex : Version 2.5.X
* gperf : Version 3.0.X
* mingw : Installed
* unix2dos/tofrodos : Installed
* **********************************************************
===================================================
Build Environment Check Result Report
*************************************************************
[OS]: Ubuntu 10.04.4 (64-bit) [OK]
[Physical Memory Size] : 4052924 K-Bytes [WARNING]
it's smaller than recommendation, may cause out-of-memory build error
[make]: 3.81 (64-bit) [OK]
[perl]: 5.10.1 (64-bit) [OK]
[python]: 2.6.5 (64-bit) [OK]
[arm-linux-androideabi-gcc]: 4.6. (64-bit) [OK]
[gcc]: 4.4.3 (64-bit) [OK]
[jdk]: 1.6.0_45 (64-bit) [OK]
[bison]: 2.4.1 (64-bit) [OK]
[flex]: 2.5.35 (64-bit) [OK]
[gperf]: 3.0.3 (64-bit) [OK]
[mingw]: Installed [OK]
[unix2dos/tofrodos]: Installed [OK]
*************************************************************
Ubuntu10.04搭建MTK android编译环境
(3)
也可以解决下这个问题
[Physical Memory Size] : 4052924 K-Bytes [WARNING]
it's smaller than recommendation, may cause out-of-memory build error
打开mediatek/build/tools/checkEnv.py
修改lowMen为0
9、将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 即可。
10、编译步骤:
rootroot@rootroot-Lenovo:~/d800/ap/d800_android$ ./mk -t d800 n
本地大概要2小时,服务器要1小时多点。
编译成功的提示:
Checking memory usage DONE!
==> [OK] 2015/04/16 16:57:09
单独编译preloader_d800.bin的命令:
rootroot@rootroot-Lenovo:~/d800/ap/d800_android$ ./mk -t d800 r pl
11、编译生成的img文件在:Z:\d800\ap\d800_android\out\target\product\d800
Z:\d800\ap\d800_android\out\target\product\d800 的目录结构:
2015/04/16 16:56 <DIR> .
2015/04/16 16:00 <DIR> ..
2015/04/16 16:00 <DIR> mediatek
2015/04/16 16:53 5,206,016 boot.img
2015/04/16 16:54 950,985 ramdisk-recovery.img
2015/04/16 15:51 57 clean_steps.mk
2015/04/16 16:42 <DIR> symbols
2015/04/16 16:54 <DIR> recovery
2015/04/16 15:48 512 EBR1
2015/04/16 15:51 203 previous_build_config.mk
2015/04/16 16:56 61,047 installed-files.txt
2015/04/16 16:43 <DIR> cache
2015/04/16 16:42 <DIR> root
2015/04/16 16:44 19,341,832 userdata.img
2015/04/16 15:48 259,033 logo.bin
2015/04/16 16:11 1,669 factory.ini
2015/04/16 16:43 6,316,180 cache.img
2015/04/16 16:53 13 custom_build_verno
2015/04/16 16:10 4,548,584 kernel
2015/04/16 15:48 212,096 lk.bin
2015/04/16 16:43 135,168 secro.img
2015/04/16 15:53 7 android-info.txt
2015/04/16 15:51 4,548,584 kernel_d800.bin
2015/04/16 16:01 <DIR> common
2015/04/16 16:18 <DIR> test
2015/04/16 15:48 77,724 preloader_d800.bin
2015/04/16 16:56 257,797,808 system.img
2015/04/16 16:44 <DIR> data
2015/04/16 16:48 <DIR> system
2015/04/16 16:56 <DIR> obj
2015/04/16 16:53 653,808 ramdisk.img
2015/04/16 16:54 5,502,976 recovery.img
2015/04/16 16:43 <DIR> secro
2015/04/16 15:48 6,973 MT6582_Android_scatter.txt
2015/04/16 15:48 512 MBR
22 个文件 305,621,787 字节
13 个目录 13,907,607,552 可用字节
12、烧录系统:
注意:一定要先执行 步骤9:将shell从DASH切换到BASH,否则编译出来的 preloader_d800.bin 文件有问题(其它文件都是正常的)。
烧录系统的时候需要安装驱动:PCLoader20150417.rar
D:\PCLoader20150417\drivers\Driver_Auto_Installer_v1.1236.00\Install.bat
然后使用:SP_Flash_Tool_exe_v3.1336.0.198.zip的Flash_tool.exe既可烧录。
烧录之前先拔掉USB连接线和电源。在Flash_tool.exe中选择好img文件的目录、点击Download之后,插入USB线就开始烧录了。
烧录完成之后,拔掉USB线然后接上电源即可正常开机(如果你编译的系统是正确的话^_)。