Find the answer to your Linux question:
Results 1 to 2 of 2
Hi Guys I am using kgdb for Kernel debugging 2.6.13 kernel is used and latest kgdb for it I have set up all things according to the guide http://kgdb.linsyssoft.com/quickstart.htm I ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Sep 2005
    Posts
    20

    Compiling kernel and KGDB


    Hi Guys
    I am using kgdb for Kernel debugging

    2.6.13 kernel is used and latest kgdb for it

    I have set up all things according to the guide http://kgdb.linsyssoft.com/quickstart.htm

    I have compiled my kernel with the option that worked before changing only as a module to Yes where possible

    I have got errors

    All fs, SCISI, IDE, and char drivers required are included

    I have got some panic

    The following can make situation clear


    [root@localhost linux-2.6.13]# gdb ./vmlinux
    GNU gdb Red Hat Linux (6.1post-1.20040607.41rh)
    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 "i386-redhat-linux-gnu"...Using host libthread_db library "/lib/tls/libthread_db.so.1".

    (gdb)
    (gdb) shell echo -e "\003" >/dev/ttyS0
    (gdb) set remotebaud 115200
    (gdb) target remote /dev/ttyS0
    Remote debugging using /dev/ttyS0
    breakpoint () at kernel/kgdb.c:1788
    1788 atomic_set(&kgdb_setting_breakpoint, 0);
    warning: shared library handler failed to enable breakpoint
    (gdb) contine
    Undefined command: "contine". Try "help".
    (gdb) continue
    Continuing.
    [17179569.184000] Waiting for connection from remote gdb...
    [17179573.100000] PCI: Cannot allocate resource region 4 of device 0000:00:07.1
    [17179574.200000] Acquire WDT: I/O address 0x0043 already in use
    [17179574.204000] ib700wdt: failed to register misc device
    [17179574.208000] wdt: cannot register miscdev on minor=130 (err=-16)
    [17179574.208000] can't misc_register on minor=130
    [17179574.212000] eurwdt: can't misc_register on minor=130
    [17179574.212000] w83877f_wdt: I/O address 0x0443 already in use
    [17179574.216000] w83627hf WDT: cannot register miscdev on minor=130 (err=-16)
    [17179574.220000] sc520_wdt: cannot register miscdev on minor=130 (err=-16)
    [17179574.220000] sc1200wdt: io parameter must be specified
    [17179574.224000] Wafer 5823 WDT: I/O address 0x0443 already in use
    [17179574.228000] cpu5wdt: misc_register failed
    [17179574.228000] SoftDog: cannot register miscdev on minor=130 (err=-16)
    [17179574.232000] mwave: tp3780i::tp3780I_InitializeBoardData: Error: SMAPI is not available on this machine
    [17179574.236000] mwave: mwavedd::mwave_init: Error: Failed to initialize board data
    [17179574.236000] mwave: mwavedd::mwave_init: Error: Failed to initialize
    [17179602.976000] LocalTalk card not found; 220 = ff, 240 = ff.
    [17179603.132000] nsc-ircc, Wrong chip version 60
    [17179605.084000] rtrack2: port 0x30c already in use
    [17179605.108000] radio-sf16fmi: No PnP card found.
    [17179605.160000] fmr2: port 0x384 already in use
    [17179610.616000] trust: port 0x350 already in use
    [17179615.020000] sda: asking for cache data failed
    [17179615.044000] sda: assuming drive cache: write through
    [17179615.072000] sda: asking for cache data failed
    [17179615.176000] sda: assuming drive cache: write through
    [17179615.920000] inport.c: Didn't find InPort mouse at 0x23c
    [17179615.964000] logibm.c: Didn't find Logitech busmouse at 0x23c
    [17179616.284000] piix4_smbus 0000:00:07.3: Host SMBus controller not enabled!
    [17179617.544000] ad1848: specify port
    [17179617.928000] gus: can't grab synth port 0x330
    [17179618.016000] gus: can't grab synth port 0x350
    [17179618.248000] gus: can't grab synth port 0x330
    [17179618.336000] gus: can't grab synth port 0x350
    [17179618.716000] sb: can't grab irq 65535
    [17179618.736000] sb: can't grab irq 65535
    [17179618.772000] sb: can't grab irq 65535
    [17179621.068000] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
    [17179621.108000] [New Thread 1]

    Program received signal SIGTRAP, Trace/breakpoint trap.
    [Switching to Thread 1]
    breakpoint () at kernel/kgdb.c:1788
    1788 atomic_set(&kgdb_setting_breakpoint, 0);
    (gdb) continue
    Continuing.




    Please help
    Any help will be appreciated

  2. #2
    Just Joined!
    Join Date
    Sep 2005
    Posts
    20
    Guys

    I think this is a questions of compiling and running of the Kernel without modules
    Have anybody compiled and run successfully Linux kernel without modules.
    Are there any specific config options to set except making all required things to be included as a none-module

    Would you please share your experience and ideas

    Any help is appreciated

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •