On Wed, Oct 19, 2011 at 6:47 PM, petter <[email protected]> wrote:
> Hi thanks for reply, I've checked out apanic.c driver and it looks
> good, but I dont't know, to which mtd partition it will write panic
> result??
you must add a new mtd partition, name default is kpanic(when you make
menuconfig, you can set it).
and I would advice you pull a omap android git tree and see how it work.
or you can try google.

> On Oct 18, 8:11 am, yingchun li <[email protected]> wrote:
>> 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

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

Reply via email to