Re: oops debugging

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



bunty wrote:


hello,
         i have downloaded ksymoops from kernel.org. i am doing kernel modificaiton work and when i did that and boot new kernel image i face oops mesasage which hangs kernel.
         now i want to use that utility how can i use it?
First you need to obtain kernel oops in some way - I just copy-paste it 'cause I'm working on embedded system and can see kernel msgs on hosts terminal. You could probably do the same, but I haven't done this, so somebody else will need to explain this - my guess would be to pass appropriate bootargs to kernel at boot to redirect /dev/console to maybe file or better serial port that is connected to another machine.

Another way is to write down the oops messages and the feed that to ksymoops (time consuming).

what i am doing is compiling other kernel than by default system kernel and booting that new kernel and fcaing the problem and if i want to use that utility i can only run it through my default system kernel. can anybody tell me what parameters need to pass with ksymoops utility?


Runing ksymoops with no arguments provides you with minimum required options (for utility to work without complaining :)


eg.
ksymoops 2.4.9 on i686 2.4.21-231-default.  Options used
     -V (default)
     -k /proc/ksyms (default)
     -l /proc/modules (default)
     -o /lib/modules/2.4.21-231-default/ (default)
     -m /boot/System.map-2.4.21-231-default (default)

If you don't have eg. /proc/ksyms information (which you don't if doing post mortem analysis) then invoke ksymoops like this

ksymoops -L -K \
-v <vmlinux> \
-o <modules> \
-m <systemmap> \
< <saved-oops-message>

You must provide kernel image and system map used that caused the oops.
See ksymoops --help for more info...

regards,
h

--
hinko <dot> kocevar <at> iskramedical <dot> si
Hinko Kocevar, developer
Iskra Medical d.o.o., Stegne 23, 1k LJ, SLO-EU

	"Aì rén"	|	[Analects XII:22]

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux