/****************************************************************************
* I.MX6 android shutdown 内核崩溃
* 说明:
* 本文主要是记录解决I.MX6的关机会进入halt模式,导致内核崩溃。
*
* 2016-3-24 深圳 南山平山村 曾剑锋
***************************************************************************/ 一、参考文章:
android 关机 流程分析
http://blog.chinaunix.net/uid-24227137-id-3248111.html 二、 现象:
SysRq : Emergency Remount R/O
EXT4-fs (mmcblk0p4): re-mounted. Opts: (null)
EXT4-fs (mmcblk0p6): re-mounted. Opts: (null)
Emergency Remount complete
System halted.
BUG: soft lockup - CPU# stuck for 23s! [Thread-:]
Modules linked in: Pid: , comm: Thread-
CPU: Not tainted (3.0. #)
PC is at machine_halt+0x8/0xc
LR is at smp_send_stop+0x9c/0xc4
pc : [<c004d7dc>] lr : [<c0052f98>] psr:
sp : d0e53e88 ip : fp : 78393c6c
r10: r9 : d0e52000 r8 : c004ca84
r7 : r6 : 4321fedc r5 : r4 : 4321fedc
r3 : r2 : r1 : r0 :
Flags: nZCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment user
Control: 10c53c7d Table: 24fa804a DAC: PC: 0xc004d75c:
d75c e5843004 eaffffda eb01b99d e3500000 1affffed e5973004 e12fff33 e10f3000
d77c e3130080 1a000003 f1080080 eaffffd4 eb19c101 eaffffe0 e59f0018 e3a010fa
d79c eb0101fd f1080080 eaffffcd c06dccf4 c0a0ce64 c09886b4 c085477c e1a0200d 三、 解决方法:
cat kernel/sys.c
/*
* Reboot system call: for obvious reasons only root may call it,
* and even root needs to set up some magic numbers in the registers
* so that some mistake won't make this reboot the whole machine.
* You can also set the meaning of the ctrl-alt-del-key here.
*
* reboot doesn't sync: do that yourself before calling this.
*/
SYSCALL_DEFINE4(reboot, int, magic1, int, magic2, unsigned int, cmd,
void __user *, arg)
{
......
//if ((cmd == LINUX_REBOOT_CMD_POWER_OFF) && !pm_power_off)
// cmd = LINUX_REBOOT_CMD_HALT;
......
}

I.MX6 android shutdown 内核崩溃的更多相关文章

  1. I.MX6 Android shutdown shell command

    /******************************************************************************* * I.MX6 Android shu ...

  2. I.MX6 android 移除shutdown功能

    /************************************************************************ * I.MX6 android 移除shutdown ...

  3. I.MX6 Android 5.1 快速合成系统

    /**************************************************************************** * I.MX6 Android 5.1 快速 ...

  4. Android平台程序崩溃的类型及原因列举

    Android平台程序崩溃大家都应该遇到过,force close和ANR应该是大家遇到较多的. 这里把Android平台程序崩溃的各种类型做一个简述和原因列举. 1.ANR(可见ANR): 发生场景 ...

  5. I.MX6 Android i2c-tools porting

    /************************************************************************** * I.MX6 Android i2c-tool ...

  6. I.MX6 android 禁止低电量自动关机

    /************************************************************************ * I.MX6 android 禁止低电量自动关机 ...

  7. I.MX6 Android 5.1 纯Linux、U-Boot编译

    /***************************************************************************** * I.MX6 Android 5.1 纯 ...

  8. I.MX6 Android backlight modify by C demo

    /************************************************************************** * I.MX6 Android backligh ...

  9. I.MX6 Android netperf

    /***************************************************************************** * I.MX6 Android netpe ...

随机推荐

  1. 在centos 6.4下安装opencv 2.3.1

    系统环境介绍: centos 6.4 1.安装依赖包 yum install cmake gcc gcc-c++ gtk+-devel gimp-devel gimp-devel-tools gimp ...

  2. 50个C++源码学习网站

    C/C++是最主要的编程语言.这里列出了50名优秀网站和网页清单,这些网站提供c/c++源代码 .这份清单提供了源代码的链接以及它们的小说明.我已尽力包括最佳的C/C++源代码的网站.这不是一个完整的 ...

  3. Xen学习——原理要点归纳总结

    Xen是半虚拟化,需要修改操作系统内核.Vmware是完全虚拟化. XEN的系统架构: Xen Hypervisor: 直接运行在硬件上,介于操作系统和硬件之间的一层软件,负责管理CPU.内存.中断. ...

  4. OPTICS光学算法

    package com.my.optics; public class DataPoint { private String name;//样本的名字 private double dimensioi ...

  5. Ext4.2 grid 条件查询使用

    项目中用到Ext4.2,初次接触,用的不是太熟,做个总结,恳请指正! 1.grid重新设置条件,查询结果不是从第1页开始 在处理grid条件查询时,点击搜索按钮调用store.load()方法时,会把 ...

  6. qwt 6.1.0集成进Qt creator 2.8.1步骤

    环境准备与文件编译 ·关于Qt 发现一个Qt正确安装的教程,非常棒!http://www.wikihow.com/Install-Qt-SDK-on-Ubuntu-Linux Qt版本是4.8.5,在 ...

  7. PD code与name联动(取消)设置

    在powerdesign中,code与name老是联动,修改了name中的数据,code随之修改,影响效率,设置Tools-General Options-Dialog  中的Name to Code ...

  8. RE:转:一些不常用的html代码

    1. oncontextmenu="window.event.returnvalue=false" 将彻底屏蔽鼠标右键<table border oncontextmenu= ...

  9. [scalability] Find all documents that contain a list of words

    Given a list of millions of documents, how would you find all documents that contain a list of words ...

  10. leetcode3 Two Sum III – Data structure design

    Question: Design and implement a TwoSum class. It should support the following operations: add and f ...