* Debug kernel oops
@ 2017-02-14 7:35 Madhu K
2017-02-14 12:31 ` Joshua Clayton
0 siblings, 1 reply; 2+ messages in thread
From: Madhu K @ 2017-02-14 7:35 UTC (permalink / raw)
To: linux-arm-kernel
Hi All,
How to debug the kernel oops for arm boards?
Below is my board and setup details.
1) I am using Beaglebone black board which is running with 4.9.2 kernel
version.
2) I wrote some i2c driver on host machine, it is cross compiled for arm
and loaded on beaglebone black.
3) Insmod is proper, but while unloading the module I am seeing some kernel
oops.
4) How to debug that oops? which tools we have to use?
Thanks in advance
Madhu
^ permalink raw reply [flat|nested] 2+ messages in thread
* Debug kernel oops
2017-02-14 7:35 Debug kernel oops Madhu K
@ 2017-02-14 12:31 ` Joshua Clayton
0 siblings, 0 replies; 2+ messages in thread
From: Joshua Clayton @ 2017-02-14 12:31 UTC (permalink / raw)
To: linux-arm-kernel
On Monday, February 13, 2017 11:35:43 PM PST Madhu K wrote:
> Hi All,
>
> How to debug the kernel oops for arm boards?
>
> Below is my board and setup details.
>
> 1) I am using Beaglebone black board which is running with 4.9.2 kernel
> version.
> 2) I wrote some i2c driver on host machine, it is cross compiled for arm
> and loaded on beaglebone black.
> 3) Insmod is proper, but while unloading the module I am seeing some kernel
> oops.
> 4) How to debug that oops? which tools we have to use?
>
dmesg is your first tool.
And the oops itself is your second debugging tool.
There are plenty of resources on how to decode an oops, such as
... (goes and types "kernel oops example" into a web browser search),
http://opensourceforu.com/2011/01/understanding-a-kernel-oops/
Then add some extra print statements (temporary, for debugging)
to enable you to understand what you are doing wrong.
Good luck.
> Thanks in advance
> Madhu
>
> _______________________________________________
> linux-arm-kernel mailing list
> linux-arm-kernel at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-02-14 12:31 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-02-14 7:35 Debug kernel oops Madhu K
2017-02-14 12:31 ` Joshua Clayton
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox