Changes between Version 52 and Version 53 of Android Porting Guide


Ignore:
Timestamp:
Oct 21, 2012, 4:36:36 PM (7 years ago)
Author:
GNUtoo
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Android Porting Guide

    v52 v53  
    1010When porting SHR, at some point you'll have to boot it.
    1111Since a lot of things can go wrong during boot we'll use some tricks to get some output in the case where things go wrong.
     12Some android phones have a recovery partition, we can use that to dual-boot: we could put SHR kernel on the recovery partition and keep the android kernel on the boot partition.
    1213==== Ramconsole ====
    1314Ramconsole is a way to recover the in-ram messages from the previsous boot.
    1415It requires you to reboot without removing the battery:
    1516 * Add the following kernel argument to your kernel arguments
    16 {{{ panic=1 }}}
    17 
    18 
     17{{{
     18panic=1
     19}}}
     20 * watchdogs can also make the kernel reboot.
     21Once the kernel has rebooted into android you can get the dmesg log here:
     22{{{
     23-r--r--r--    1 root     root         27703 Aug 13 21:10 /proc/last_kmsg
     24}}}
    1925=== wakelocks and suspend ===
    2026Use the android fsousaged plugin for handling suspend resume, note that this plugin depend on a kernel part will tell the userspace the cause of the resume, on the htc dream it's implemented as theses 2 commits: [http://gitorious.org/htc-msm-2-6-32/leviathan-incoming/commit/85316f24d67727fa65247027681f3507e7b14d8c commit1] and [http://gitorious.org/htc-msm-2-6-32/leviathan-incoming/commit/013075354e0b533991650ec756605ad4731e6a0c commit2]