Re: regarding kgdb in ppc

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

 



Hi SK,
Thanks for the all the support.

No, I am not trying with the versions mentioned in your doc.
Versions i use are  Target Kernel -  linux-2.6.15.5 and
                            kgdb - linux-2.6.15.5-kgdb-2.4 .
I will try now with the versions mentioned in the doc and wil let you know the results.
with the versions mentioned in your doc, i am able to boot the kernel and control it.
Still few issues exists, need to go further.
At the first step it doesn't set a breakpoint. But later it does when i do 'ctrl+c'.

DUMP from  the HOST PC:
root@peacock:/home/dinesh/sudheer# gdb vmlinux
GNU gdb 6.3-debian
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i486-linux-gnu"...Using host libthread_db library "/lib/tls/i686/cmov/libthread_db.so.1".

(gdb) target remote /dev/ttyS0
Remote debugging using /dev/ttyS0
breakpoint () at kgdbstub.c:1005
1005    kgdbstub.c: No such file or directory.
        in kgdbstub.c
        warning: shared library handler failed to enable breakpoint
        (gdb) continue
        Continuing.
        [New Thread 1]
        <Ctrl + c>
        Program received signal SIGTRAP, Trace/breakpoint trap.
        [Switching to Thread 1]
        breakpoint () at kgdbstub.c:1005
        1005    in kgdbstub.c
        (gdb)

Its fine here.

On the TARGET PC:
Much of the booting process looks fine but the kernel crashes saying "can't mount the file system " .

My grub.conf looks as below:
--------
title Red Hat Enterprise Linux AS-up (2.6.9-34.EL)
        root (hd0,6)
        kernel /boot/vmlinuz-2.6.9-34.EL ro root=LABEL=/ rhgb quiet
        initrd /boot/initrd-2.6.9-34.EL.img
title Linux-2.4.23
        root (hd0,6)
        kernel /boot/vmlinuz-2.4.23 ro root=/dev/hda5 rhgb  gdb gdbbaud=115200
        initrd /boot/initrd-2.4.23.img
savedefault
boot
-----
Initially i didnt add the initrd in the grub.conf. - target kernel finally crashes.
Then executed the command mkinird and copied and added  initrd in the grub.conf - situation is same.
I changed the root parameter to LABEL=/ - situation is same.

Need to work on it more. 

Thanks
Sudheer


SK

--
Shakthi Kannan
http://www.shakthimaan.com



[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