On Wed, Oct 12, 2011 at 3:22 PM, petter <[email protected]> wrote:
> Hi, I am trying to bring host mode for galaxys (https://github.com/
> havlenapetr/android_kernel_samsung/tree/hostmode_2) I've ported it
> from galaxys2 source code(it should be similiar hardware). I have some
> mismatch somewhere with my platform in host mode module, because when
> I try to start host mode my kernel freeze and phone just reboot. I
> modified dmesg in toolbox(https://github.com/havlenapetr/
> android_system_core/commit/ff67144c61b06a3b7dba590ac0ab60a6afbb1da9),
> so I ran dmesg in daemon mode for logging. I add a lot of printk into
> host module, so I hoped that some printk dmesg will catch and put them
> into log file into /data/local/ before kernel freeze, but when phone
> rebooted in my dmesg log file wasn't any log from host mode module, so
> I think that kernel freeze so quickly that dmesg doesn't catch any
> printk from host module. Is therre any way how to catch kernel
> freeze(I think it is PANIC) in kernel and than put stacktrace or
> something somewhere into file, before kernel restarts???
You can add the android panic driver, it locat in drivers/misc/apanic.c,
it will save logs to mtd partition and copy to /data/dontpanic/apanic_console
and apanic_threads.
and you must enable android ramconsole driver for apanic, and if kernel reboot,
/proc/last_kmsg will save your log too.
br,
Yingchun

> unsubscribe: [email protected]
> website: http://groups.google.com/group/android-kernel

-- 
unsubscribe: [email protected]
website: http://groups.google.com/group/android-kernel

Reply via email to