kgdb error: Ignoring packet error, continuing....

2008-07-03 Thread karim sk

   Hi,

   I am trying to setup kgdb on serial console in freebsd. I have done
   the following steps.

   1. Compile the kernel with the following options
   options DDB
   options KDB
   makeoptions DEBUG-g

   2.Installed the kernel on the target machine.
   3. Transferred the kernel.debug to host machine.
   4. Modified the file /boot/device.hints in the target machine to have
   sio flags as
   hint.sio.0.at=isa
   hint.sio.0.port=0X3F8
   hint.sio.0.flags=0x80
   hint.sio.0.irq=4
   5. Reboot the target machine. At the loader prompt type the following
   set comconsole_speed=9600
   boot -d
   Then the target machine stops at ddb prompt.
   6.In the host machine type the following at kgdb prompt
   kgdb set remotebaud 9600
   kgdb file kernel.debug
   kgdb target remote /dev/cuad0

   This is not able to establish the connection.
   It is giving following errors.
   Ignoring packet error, continuing...
   Ignoring packet error,  continuing...
   Couldn't establish connection to remote target.
   Malformed response to offset query, timeout.

   Can any body tell why packet error is coming when kgdb is trying to
   establish the connection.

   Thanks in advance.

   Karim


 _

   I use Krify Mail - http://mail.krify.com  Get  yourmail at  Krify
   today!
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Modifying the loaded kernel image

2008-06-27 Thread karim sk
DIV style=font-family:Arial, sans-serif; font-size:10pt;FONT 
size=2SPAN style=font-family: Arial,sans-serif;Hi,BRBRI need to 
modify one of the kernel hardware module ( which is part of kernel image) and i 
have to load that module instead of the old one.BRSo what i am doing now is 
BRDuring boot up step into loader prompt and i am typing the following 
commands.BRload kernel (Load the kernel )BRload module ( To load my 
customized module)BRboot ( To start the normal boot).BRBRNow i am facing 
some problem here. Loading of my module is successful but my module 
registration is not getting successful. i.e. OS is reporting that 
module_register got failed as there exists already a module with that name. Now 
the problem is i cant do unload of the old component as it is not a 
module.nbsp; Can any body tell me how to remove the component from the kernel 
image with out recompiling the kernel.BRBRBRThanks in 
advance.BRKarim.BRBR/SPAN/FONTBRnbsp;BRHRI use Krify Mail - 
http://mail.krify.comnbsp; Getnbsp; yourmail atnbsp; Krify today!/DIV___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]