写在最前面,先知我YY下硬刷最好可能实现的功能:
1.把软件刷入flash,修改loader后,可以实现上电就自动运行程序; 2.硬刷后,程序自动起来,可以修改loader就行加密 3.硬刷后,有可能把osmocon cell 等软件整到windwos 省去虚拟机.操作方便...(这个是YY的,暂时还不知道....) 4.硬刷后,手机可以变成砖头. 5.刷机有风险,变砖头就损失20RMB,请慎重....哈哈!~ 大家自己玩玩就好了,有啥问题就别找我麻烦了...哈哈哈~~
资料来源:
<a href="http://bb.osmocom.org/trac/wiki/flashing_new" target="_blank">http://bb.osmocom.org/trac/wiki/flashing_new</a>
1.flash layout & memory layout
2.代码修改:
3.下载一个loader程序到ram,为后面刷机程序提供一个平台.
终端打印如下:
4.保留原始的loader
5.为了避免把手机变成砖头先测试下是否可以读写flash.(请参照上面一步的办法把手机里面原始flash的数据备份一份,否则整坏以后,手机就不能复原了)
测试如果没有问题,我们就可以刷入loader了.
这里需要注意的
menu.e88loader.bin 这个是* jolly/menu branch才能有的.请自行下载编译.
funlock 每次开机后都需要做这个。
menu这个文件,就是类似一个菜单的东西.
6.把app程序刷入flash.
app刷入flash,需要利用第五步的menu程序.
menu程序识别app的方式:header + app
temp文件必须是偶数长度
刷app到flash:
注意刷入数据flash的范围
7.余下来的操作:
Power off your phone.
Disconnect the serial cable.
Turn it on (push power button), the OSMOCOM menu will appear and show available applications.
Use up/down keys or digits to select the application.
Press the green off-hook button, the application will be loaded to ram and is started.
Alternatively press the digit as shown in front of the application's name.
刷机后的效果图,刷机确实成功了..不是YY的..
