主题 : mini210开发板,有没有做recovery模式呢?为什么我编译出来的recovery.img不能用? 复制链接 | 浏览器收藏 | 打印
级别: 新手上路
UID: 60766
精华: 0
发帖: 4
金钱: 20 两
威望: 4 点
贡献值: 0 点
综合积分: 8 分
注册时间: 2011-12-16
最后登录: 2011-12-19
楼主  发表于: 2011-12-19 11:09

 mini210开发板,有没有做recovery模式呢?为什么我编译出来的recovery.img不能用?

在开发板自带的源码下:
操作过程如下:
1.make ramdisk,在out/target/product/generic目录下,生成root目录;
2.make recovery ,在out/target/product/generic目录下,生成system目录;
3,.按照genrootfs.sh生成recovery_dir.
4.将源码bootable/recovery/etc 目录下的init.rc,拷贝到recovery_dir目录下;
5.将系统压缩成yaffs文件系统,使用TF卡进行烧写。
烧写完成,系统起来以后,遇到下面的问题:
[   23.963053] init: critical process 'recovery' exited 4 times in 4 minutes; re
booting into recovery mode
     请问,我该怎么做才能够在开发板上做recovery模式的恢复呢?

*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
贡献值: 71 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
1楼  发表于: 2011-12-19 12:22
按照我对Android recovery模式的理解,recovery.img (kernel zImage + recovery ramdisk image)的使用需要和bootloader配合。在bootloader阶段检测到需要boot进recovery模式的标志时,从recovery分区读出recovery.img而不是正常boot时候的boot.img, 从而使用它取代boot.img来启动。
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."