Hi thanks, but i think that yingchun is right, apanic trys write into
mtd partition of name 'kpanic'. I can specify it by config
APANIC_PLABEL and in method 'mtd_panic_notify_add' is all magic.
Please do you know how to create this mtd partition for apanic driver,
or maybe I could try write panic stacktrace into console, because
apanic has method apanic_write_console, but I don't know how to enable
console on i9000.

On Oct 19, 2:30 pm, Kolja Dummann <[email protected]> wrote:
> Hi,
>
> it does not write to a partition it uses the RAM. When it reboots it
> checks if the reboot was cause of a panic and then spawns last_kmsg in
> proc, which contains the dmsg of the last linux session.
>
> cheers Kolja.
>
>
>
>
>
>
>
> On Wed, Oct 19, 2011 at 12: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??
>
> > 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