Re: Help with debugging kernel oops..

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

 



On Fri, 2004-06-25 at 17:36, Ahmed A wrote:
> Hello,
> 
> I am using an embedded XScale board.  I am trying to
> run Linux 2.4.21 kernel (with some patches to make it
> work on this platform).  I have cross-compilation
> tools.  
> 
> The kernel boots up pretty much all the way, gets an
> IP address from DHCP, mounts nfs root, however panics
> during Freeing init memory (I think).  Naturally I
> don't have access to the  ksyms file, so the ksymoops
> utility for this platform is not very helpful.  Can
> someone please suggeset ways/steps, or if there are
> pointers on the net, to debug the oops trace. I am
> pasting the output of the serial port below.  
> 
> Can someone please tell me what the phrase "In
> interrupt handler - not syncing" means, specifically
> the "not syncing" part.
> 
> Thanks in advance,
> Ahmed.
> 
> RedBoot>
> RedBoot> load -r -b 0x01008000 -h 10.0.16.156 zImage2
> Using default protocol (TFTP)
> Raw file loaded 0x01008000-0x010bf00f, assumed entry
> at 0x01008000
> RedBoot>
> RedBoot> go 0x01008000
> Uncompressing
> Linux....................................................
> done, booting the kernel.
> Linux version 2.4.21-rmk1-ds3-iop1 (root@xlin6) (gcc
> version 3.3.1 (MontaVista 3.3.1-3.0.10.0300532
> 2003-12-24)) #6 Thu Jun 24 12:03:16 PDT 2004
> CPU: XScale-IOP80321 revision 2
> Machine: Intel IQ31244
> Warning: bad configuration page, trying to continue
> alloc_bootmem_low
> memtable_init
> On node 0 totalpages: 24576
> zone(0): 24576 pages.
> zone(1): 0 pages.
> zone(2): 0 pages.
> Kernel command line: ip=boot root=nfs
> console=ttyS0,115200 mem=96M
> Setting up timer drift code
> Calibrating delay loop... 593.10 BogoMIPS
> Memory: 96MB = 96MB total
> Memory: 95504KB available (1237K code, 240K data, 224K
> init)
> XScale Cache/TLB Locking Copyright(c) 2001 MontaVista
> Software, Inc.
> Dentry cache hash table entries: 16384 (order: 5,
> 131072 bytes)
> Inode cache hash table entries: 8192 (order: 4, 65536
> bytes)
> Mount cache hash table entries: 512 (order: 0, 4096
> bytes)
> Buffer-cache hash table entries: 4096 (order: 2, 16384
> bytes)
> Page-cache hash table entries: 32768 (order: 5, 131072
> bytes)
> POSIX conformance testing by UNIFIX
> PCI: bus0: Fast back to back transfers disabled
> PCI: bus1: Fast back to back transfers disabled
> Linux NET4.0 for Linux 2.4
> Based upon Swansea University Computer Society
> NET3.039
> Initializing RT netlink socket
> Intel IOP3xx AAU RAID Copyright(c) 2003 Intel
> Corporation
> Starting kswapd
> Journalled Block Device driver loaded
> Installing knfsd (copyright (C) 1996
> okir@monad.swb.de).
> pty: 256 Unix98 ptys configured
> Serial driver version 5.05c (2001-07-08) with
> MANY_PORTS SHARE_IRQ SERIAL_PCI enabled
> ttyS00 at 0xfe800000x (irq = 28) is a 16550A
> RAMDISK driver initialized: 16 RAM disks of 8192K size
> 1024 blocksize
> Intel(R) PRO/1000 Network Driver - version 5.0.43-k1
> Copyright (c) 1999-2003 Intel Corporation.
> eth0: Intel(R) PRO/1000 Network Connection
> eth1: Intel(R) PRO/1000 Network Connection
> SCSI subsystem driver Revision: 1.00
> NET4: Linux TCP/IP 1.0 for NET4.0
> IP Protocols: ICMP, UDP, TCP
> IP: routing cache hash table of 512 buckets, 4Kbytes
> TCP: Hash tables configured (established 8192 bind
> 16384)
> e1000: eth0 NIC Link is Up 100 Mbps Full Duplex
> Sending BOOTP requests .<6>e1000: eth1 NIC Link is Up
> 100 Mbps Full Duplex
> . OK
> IP-Config: Got BOOTP answer from 10.0.16.156, my
> address is 10.0.16.198
> IP-Config: Complete:
>       device=eth0, addr=10.0.16.198,
> mask=255.255.255.0, gw=10.0.16.2,
>      host=10.0.16.198,
> domain=corp.silverbacksystems.com,
> nis-domain=corp.silverbacksystems.com,
>      bootserver=10.0.16.156, rootserver=10.0.16.156,
> rootpath=/opt/montavista/pro/devkit/arm/xscale_
> le/target
> NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
> NetWinder Floating Point Emulator V0.97 (double
> precision)
> Looking up port of RPC 100003/2 on 10.0.16.156
> Looking up port of RPC 100005/1 on 10.0.16.156
> VFS: Mounted root (nfs filesystem).
> Freeing init memory: 224K
> Bad mode in data abort handler detected: mode ABT_32
> Vectors: (0xffff0000 to 0xffff0040)
> 0000: 00000000 00000000 00000000 00000000 00000000
> 00000000 00000000 00000000
> 0020: 00000000 00000000 00000000 00000000 00000000
> 00000000 00000000 00000000
> Stubs: (0xffff0200 to 0xffff04b8)
> 0200: 00000000 00000000 00000000 00000000 00000000
> 00000000 00000000 00000000
> 0220: 00000000 00000000 00000000 00000000 00000000
> 00000000 00000000 00000000
> 0240: 00000000 00000000 00000000 00000000 00000000
> 00000000 00000000 00000000
> 0260: 00000000 00000000 00000000 00000000 00000000
> 00000000 00000000 00000000
> 0280: 00000000 00000000 00000000 00000000 00000000
> 00000000 00000000 00000000
> 02a0: 00000000 00000000 00000000 00000000 00000000
> 00000000 00000000 00000000
> 02c0: 00000000 00000000 00000000 00000000 00000000
> 00000000 00000000 00000000
> 02e0: 00000000 00000000 00000000 00000000 00000000
> 00000000 00000000 00000000
> 0300: 00000000 00000000 00000000 00000000 00000000
> 00000000 00000000 00000000
> 0320: 00000000 00000000 00000000 00000000 00000000
> 00000000 00000000 00000000
> 0340: 00000000 00000000 00000000 00000000 00000000
> 00000000 00000000 00000000
> 0360: 00000000 00000000 00000000 00000000 00000000
> 00000000 00000000 00000000
> 0380: 00000000 00000000 00000000 00000000 00000000
> 00000000 00000000 00000000
> 03a0: 00000000 00000000 00000000 00000000 00000000
> 00000000 00000000 00000000
> 03c0: 00000000 00000000 00000000 00000000 00000000
> 00000000 00000000 00000000
> 03e0: 00000000 00000000 00000000 00000000 00000000
> 00000000 00000000 00000000
> 0400: 00000000 00000000 00000000 00000000 00000000
> 00000000 00000000 00000000
> 0420: 00000000 00000000 00000000 00000000 00000000
> 00000000 00000000 00000000
> 0440: 00000000 00000000 00000000 00000000 00000000
> 00000000 00000000 00000000
> 0460: 00000000 00000000 00000000 00000000 00000000
> 00000000 00000000 00000000
> 0480: 00000000 00000000 00000000 00000000 00000000
> 00000000 00000000 00000000
> 04a0: 00000000 00000000 00000000 00000000 00000000
> 00000000
> Internal error: Oops: 0
> CPU: 0
> pc : [<ffff000c>]    lr : [<c00eb590>]    Not tainted
> sp : c017fec4  ip : 00000000  fp : c01956a8
> r10: a0016cb4  r9 : c0195ed8  r8 : c03c4acc
> r7 : c03c4800  r6 : 00080000  r5 : 00000000  r4 :
> c03c4acc
> r3 : 00000007  r2 : c5e42bf4  r1 : c6c10000  r0 :
> c03c4acc
> Flags: nZCv  IRQs off  FIQs on  Mode ABT_32  Segment
> kernel
> Control: 397F  Table: A0008000  DAC: 0000001D
> Process swapper (pid: 0, stack limit = 0xc017e368)
> Stack: (0xc017ff0c to 0xc0180000)
> ff00:                            ffffffff c03c4974
> c03c4960 c01966dc c00eb590
> ff20: c03c4974 00000000 c01966dc 00000000 c017ff3c
> a0016cb4 c0056744 c017ff3c
> ff40: c017ff3c c0195260 00000000 c0180040 00000000
> 60000093 ffffffff a0016cb4
> ff60: 00000000 c0052dcc c0195260 c0052ca8 00000001
> c0180060 fffffffe c0195240
> ff80: c00529d8 c017ffd0 0000001f 00000200 c0043468
> 60000013 c0042020 00000001
> ffa0: 00000032 00000000 60000013 c0043428 c017e000
> c018cbe8 c018cbf8 c0180d08
> ffc0: 69052c32 a0016cb4 00000000 20000013 c017ffe4
> c004345c c0043468 60000013
> ffe0: ffffffff c00434c0 c0196b30 c01b1830 c0008670
> c018d010 c01b1830 c0008080
> Backtrace: not available
> Code: bad PC value.
> Kernel panic: Aiee, killing interrupt handler!
> In interrupt handler - not syncing

If you can't use ksymoops, try to recompile your kernel with -g and use
gdb with the address where the kernel crashes.

Then you can do:

# gdb /usr/src/linux/vmlinux
(gdb) disassemble [saved IP address]

And see the part of code where your kernel crashes, anyway I think that
you can use kgdb or kdb.

-- 
Alejandro Sanchez Acosta <asanchez@gnu.org>


--
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