LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 09-16-2005, 02:31 PM   #1
Igor007
Member
 
Registered: Aug 2004
Posts: 76

Rep: Reputation: 15
Kernel Cmpiling 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

Last edited by Igor007; 09-16-2005 at 02:33 PM.
 
Old 09-19-2005, 03:36 PM   #2
Igor007
Member
 
Registered: Aug 2004
Posts: 76

Original Poster
Rep: Reputation: 15
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
KGDB for Linux Kernel 2.6.10 sanjay_ach Programming 3 01-16-2006 08:51 PM
Linux 2.6.10 kgdb sanjay_ach Linux - Newbie 1 01-16-2006 08:48 PM
Where is KGDB version for kernel 2.6.12 ???? Igor007 Programming 0 09-08-2005 01:59 PM
questions on use of serial port when debugging kernel by vmware+kgdb sunzen.w Linux - Software 0 08-05-2004 01:31 AM
kgdb patch for RH9.0 linux kernel 2.4.20-8 devershetty Linux - Newbie 0 07-18-2003 03:05 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 04:49 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration