Operating System - HP-UX
1833781 Members
2087 Online
110063 Solutions
New Discussion

HP-RT setting up kernel debugger

 
SOLVED
Go to solution
Judy Traynor
Valued Contributor

HP-RT setting up kernel debugger

I get an error when I try to invoke pdb on my hp-ux 10.20 system. I am trying to debug a kernel on an hp-rt 3.01 system. The error I get is as follows:

./pdb -f/dev/tty0p0 -P /HP-RT/temp/hp-rt
Passed through init_rs232_card ()
WARNING - rdb_host_read timeout
WARNING - rdb_host_read timeout
WARNING - rdb_host_read timeout

I have verified that RDB is in the kernel.
Sail With the Wind
3 REPLIES 3
Paula J Frazer-Campbell
Honored Contributor
Solution

Re: HP-RT setting up kernel debugger

Vincenzo Restuccia
Honored Contributor

Re: HP-RT setting up kernel debugger

1) Connect a serial port from the host HP-UX system to port B of your
HP-RT system. For this example, connect HP-UX /dev/tty01 to HP-RT
/dev/tty01. Use the appropriate cable connections for your HP-RT and
HP-UX systems.

2) Set up the device file for the serial port on the HP-UX system if it
is not already available. You can use SAM, or:

mknod(1M) on series 700s
or

mksf(1M) on series 800s

Access permissions on this device file should be rw-rw-rw.

You should be able to use cu to connect to the HP-RT system from HP-UX
to verify the RS232-C Serial Connection.

3) Compile your driver using the -g option for debugging.

4) Make sure that the $HPRTroot/etc/ttys file that will be used to
make your kernel has logon enabled for port B. Here is an example of
the entry for /dev/tty01 for the HP-RT system:

/dev/tty1:1:default96:hp:/bin/login
^
^-----this must be a "1" for pdb to work correctly

5) Make your new kernel. Specify that you want to enable kernel
debugging.

If you make the kernel using the HPRTadm script answer "y" when it asks:

Enable kernel debugging? (y/N)

If you make the kernel using the hp-rt.make file, make sure you specify
RDB= as an option.

Note: Your driver source must remain in the location it resides in when
the kernel is made. The location is kept in the kernel file.

6) Boot your new kernel using the -k option to indicate that you will
be debugging after HP-RT comes up. For example:

ISL> rtboot -ak -rramdisk /hp-rt

7) Start the kernel debugger using the -P option to indicate that HP-RT
is already booted. For example:

(host) $ pdb -P -f/dev/tty01 /usr/tftpdir/hp-rt
Judy Traynor
Valued Contributor

Re: HP-RT setting up kernel debugger

I already tried what was in the document before I posted my question. I can connect to the console with the cu command. I have also verifed that RDB is in the kernel, however I'm still getting the

WARNING - rdb_host_read timeout

Sail With the Wind