- 人气
- 0
- 资源
- 6
- 推广
- 0
- 帮助
- 4
- 技术
- 3
- 威望
- 0
- 阅读权限
- 30
- 精华
- 1
- 最后登录
- 2011-11-15
- 注册时间
- 2009-6-27
- 在线时间
- 259 小时
 
 - 帖子
- 92
- 积分
- 300
- 金币
- 512
- 注册时间
- 2009-6-27
|
发表于 2009-7-15 11:50:39
|显示全部楼层
Android 1.5 HTC – 烧机
July 3rd, 2009
通过上面三篇文章的学习,各位应该已经生成了烧机需要的Andoid影响文件。现在我们有一些必要的准备工作,以确保烧机成功
注1:烧机将会抹掉手机上的所有数据(不包括SD卡),电话、短信什么的。当然可能保留userdata分区不写,但这经常会导致一些奇怪的结果,所以我们尽量备份数据,然后将userdata区一并重写
注2:一般而言烧机不会让您的手机变砖,即使您的build不工作至少可以启动bootloader。什么事都有万一,所以我不能对您的手机的损坏负责。要清楚您到底在做什么,除了一步步的指导,我会试图给您足够的信息,让您知道为什么要这样做。有什么问题请在Android Platform Forum (http://groups.google.com/group/android-platform)提问。
基带Radio image
基带Radio image负责通信模块工作,也是不开源的所以得从HTC网站下载 (http://www.htc.com/www/support/android/adp.html).
我们的build基于cupcake版本,所以您必须用1.5版本的Radio image。老的版本是不兼容的
通过手机菜单确认您的手机基带版本,主画面:menu/设置/关于手机/Baseband版本应该是62.50s.20.17H_2.22.19.16I (just like the download name ota-radio-2_22_19_26I),如果不对,请升级您的基带版本(按照 http://www.htc.com/www/support/android/adp.html指导来,非常简单)
About phone screen
Fastboot
烧机过程需要fastboot工具,用我们刚刚编译生成的版本~/mydroid/out/host/linux-x86/bin
cp ~/mydroid/out/host/linux-x86/bin/fastboot/ ~/bin
(中文注:不建议用Windows版本,我总用不起来,Mac就算了) If you are a Windows user, you should use the fastboot executable provided by HTC. I don’t know if building the source on Mac OS X is as clear as on Ubuntu (it should be possible to compile the source) and that the fastboot version can be used.
Ubuntu中连接手机
In a previous blog post I explained how to connect your device with Ubuntu which runs within VMWare as Virtual Machine. Those steps (http://www.johandekoning.nl/inde ... -and-vmware-server/) are also relevant when running Ubuntu natively (except for the VMWare steps). Or follow the steps (when for example you want to use fastboot with Windows) which are written for the Android SDK http://developer.android.com/guide/developing/device.html
Flashing the device
烧机
So the HTC Android 1.5 version is running well? You made sure that the right radio version is installed? Fastboot is working properly? And made (optionally) a backup of your important data?
都准备好了,开始烧机了
首先您的机器要支持fastboot模式,Android开发机都支持,咱们买的G1刷一个SPL就可以了,具体操作到hiapk.com上查看。
如下步骤,很多文章都有,就简单翻一下
首先关机
按住camera键开机,屏幕出现三个踩滑板的机器人(也可能是彩虹什么的,无所谓了),打印HBOOT
按返回键,进入fastboot模式
连接USB,进入fastboot usb模式
Blog上说只能用开发机,G1不支持flash,实际上G1刷一个SPL就OK了
要烧的image在一下目录:
~/mydroid/out/target/product/dream
检查这几个文件是不是存在
• boot.img (用于启动设备,包含内核)
• system.img (Android系统,包含框架,驱动,应用,一切的一切)
• userdata.img (用户数据,也可以不刷这个分区,可以保留原来的用户数据,但是保险期间,刷一下也无妨)
• recovery.img
在输出目录中(~/mydroid/out/target/product/dream)执行下述命令烧机
sudo fastboot flash boot boot.img
sudo fastboot flash system system.img
sudo fastboot flash recovery recovery.img
sudo fastboot flash userdata userdata.img
(中文注:不知道别人怎么样,我的fastboot必须在root下执行,所以我加了一个sudo,这样的话,可能环境就不一样了,可能您需要为fastboot工具加上路径,如sudo /home/xxx/bin/fastboot flash boot boot.img)
Fastboot会先传输image文件,成功后再烧机写特定的分区。
(中文注:您需要一条好一点的USB线,我开始的时候因为USB先的问题总是不成功,还以为烧死了,电脑城的垃圾线十有八九不行的)
完了重启
fastboot reboot
还活着
第一次重启需要较长的时间,不要急。
(中文注:google上的kernel版本和HTC目前发布的WiFi驱动版本有点冲突,WiFi还起不来
内核输出:
[ 175.928619] wlan: version magic ‘2.6.27-00393-g6607056 preempt mod_unload ARMv6 ‘ should be ‘2.6.27-00394-gc6c6056 preempt mod_unload ARMv6 ‘
kernel 2.6.27-00394-gc6c6056
wlan.ko 2.6.27-00393-g6607056
这个问题比较麻烦,尚未解决)
Can
• Wifi and bluetooth should work properly (because we added the right driver versions)
• The Home button will work and you will have the Silent and Airplane option when holding the END CALL button (this is done by the SdkSetup package)
• The led light should work when you get an SMS or connect the device
• You should be able to make and receive calls
• Camera, GPS and all the other sensors should be working fine
• Start applications like Browser, Calculator, etc
• Make use of 3G connection
• Use android in a different language. The HTC version of Android has only the English language pack. Your own version has multiple language support.
Can’t
• Use the Calendar application. Because this application depends on some Google libraries which are not on the system. I was looking how to seperate the Calendar application so that it is not Google dependent (and submit the source back to the source tree)
• No Market application.
• No Google applications (like GMail, GTalk, Maps).
• No nice ringtones. The media directory which contains all the ringtones which are normally there is not part of the built.
• No synchronization with Google (like contacts and calendar)
下一步
I will write another post about how to add the Google Apps, Market and ringtones to your own build. For now the flashing part is completed (so turn on the lights again ). Questions and other feedback can be given to this post.
Blogpost in the Building Android 1.5 serie
• Building Android 1.5 – Build environment
• Building Android 1.5 – Getting the source
• Building Android 1.5 – Building the source
• Building Android 1.5 – Flashing the phone
• Building Android 1.5 – Google Apps and audio files
Tags: Android, English, Ubuntu
Posted in Uncategorized | 13 Comments » |
|