> In this case I was able to get into the Dracut emergency console, I was > able to chroot and it seemed to fix whatever was wrong by running a lvscan. > > > I exited the Dracut shell and it went to a disabled wait. Brought it up in > emergency mode, set up chroot and got ...
reboot_mode = check_hard_reboot_mode(); #else reboot_mode = check_reboot_mode(); #endif } 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. boot_into_fastboot跟boot_into_recovery均为全局变量,用来记录是否进入fastboot跟recovery; 我们在LK的config.h中并未看到USE_PON_REBOOT_REG的定义,所以调用...
{kernel_shutdown_prepare(SYSTEM_POWER_OFF);// 执行重启的准备工作:调用reboot通知队列,关闭usermodehelper,关闭所有设备if(pm_power_off_prepare)pm_power_off_prepare();migrate_to_reboot_cpu();// 迁移所有任务到cpu0上syscore_shutdown();// 关闭syscore设备pr_emerg("Power down\n");kmsg_dump(KMSG_...
戈壁老王 143声望64粉丝 做为一个不称职的老年码农,一直疏忽整理笔记,开博记录一下,用来丰富老年生活, « 上一篇 Android平台上ABI的确认 下一篇 » 引用和评论 注册登录 获取验证码 新手机号将自动注册 登录 微信登录免密码登录密码登录 继续即代表同意《服务协议》和《隐私政策》...
printk(KERN_EMERG "Restarting system with command '%s'./n", cmd); machine_restart(cmd); } void machine_restart(char * __unused) { arm_pm_restart(reboot_mode); } arm_pm_restart(reboot_mode); 这个函数是要每个target自己定义的,
7.* This is not safe to call in interrupt context. 8.*/ 9.void kernel_restart(char *cmd) 10.{ 11.kernel_restart_prepare(cmd); 12.if (!cmd) 13.printk(KERN_EMERG "Restarting system.\n"); 14.else 15.printk(KERN_EMERG "Restarting system with command '%s'.\n", cmd); 16.kmsg_...
* Reboot into the recovery system to wipe the /cache partition. * 重启系统来删除 /cache目录文件 * @throws IOException if something goes wrong. */ public static void rebootWipeCache(Context context) throws IOException { bootCommand(context, "--wipe_cache"); ...
recovery工作的是要bootloader支持的,因为bootloader要选择启动哪个kernel和ramdisk。 设置模块中进行恢复出厂设置操作,recovery Power.reboot("recovery"); rebootsystem case1:factoryreset Settings/src/com/android/settings/MasterClear.java sendBroadcast(newIntent("android.intent.action.MASTER_CLEAR")); ...
[cpp] void kernel_power_off(void) { kernel_shutdown_prepare(SYSTEM_POWER_OFF); if (pm_power_off_prepare) pm_power_off_prepare(); disable_nonboot_cpus(); syscore_shutdown(); printk(KERN_EMERG "Power down.\n"); kmsg_dump(KMSG_DUMP_POWEROFF); machine_power_off(); } EXPORT_SYMBOL_...
* Reboot into the recovery system to wipe the /cache partition. * 重启系统来删除 /cache目录文件 * @throws IOException if something goes wrong. */publicstaticvoidrebootWipeCache(Context context)throws IOException{bootCommand(context,"--wipe_cache");} ...