* how to set kmem_debug on DEC
@ 1995-12-01 5:00 Tony Chung
1995-12-02 5:00 ` Jeffrey M. Denham
1995-12-12 5:00 ` Stuart Kreitman
0 siblings, 2 replies; 3+ messages in thread
From: Tony Chung @ 1995-12-01 5:00 UTC (permalink / raw)
On page 2-84 of the Writing Device Drivers: Reference
"You can enable this debugging feature at boot time by providing
the boot parameter kmem_debug=1."
The question is how? Which file to insert this "kmem_debug=1"?
Thanks for any help.
---
=============================
Tony Chung
chungto@ampex.com
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: how to set kmem_debug on DEC
1995-12-01 5:00 how to set kmem_debug on DEC Tony Chung
@ 1995-12-02 5:00 ` Jeffrey M. Denham
1995-12-12 5:00 ` Stuart Kreitman
1 sibling, 0 replies; 3+ messages in thread
From: Jeffrey M. Denham @ 1995-12-02 5:00 UTC (permalink / raw)
In article <DIvy76.5I6@ampex.com>, chungto@ampex.com (Tony Chung) writes:
>On page 2-84 of the Writing Device Drivers: Reference
> "You can enable this debugging feature at boot time by providing
>the boot parameter kmem_debug=1."
>
>The question is how? Which file to insert this "kmem_debug=1"?
>
>Thanks for any help.
>---
>=============================
>Tony Chung
>chungto@ampex.com
>
>
Two ways to do this:
1. Boot time.
>>>> boot -flags i
Attempt the prompt type the kernel name and the paramter:
vmunix kmem_debug=1
2. Use sysconfigtab. Add these lines to /etc/sysconfigtab:
generic:
kmem-debug = 1
The first approach is for one boot up only. The second will set kmem_debug
each time you boot.
--
-----------------------------------------------------------------------------
Jeff Denham, Unix Software Group, Digital Equipment Corporation
email: denham@zk3.dec.com, voice: (603) 881-0057
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: how to set kmem_debug on DEC
1995-12-01 5:00 how to set kmem_debug on DEC Tony Chung
1995-12-02 5:00 ` Jeffrey M. Denham
@ 1995-12-12 5:00 ` Stuart Kreitman
1 sibling, 0 replies; 3+ messages in thread
From: Stuart Kreitman @ 1995-12-12 5:00 UTC (permalink / raw)
add the line:
options KDEBUG
to /sys/conf/<MACHINE>, and rerun config. This is also a menu choice
during doconfig, might be easier to perform.
Once you have a kdebug'able kernel, you need to connect the host
and target machine serial ports with a null modem between them.
On the target machine:
$ halt
>>> set BOOT_OSFLAGS k
>>> boot
On the host machine:
$ dbx -remote
The kdebug kernel comes up a little way and sends a beacon down the wire.
If things aren't good, and the host dbx doesn't respond, then the target
won't come up.
It's really cool to copy the target kernel and driver source to the host,
then, you can do source level debugging on your driver. Yay!
So what kinda driver you got?
Stuart Kreitman
Faster Raster Systems
--
Stuart Kreitman
Faster Raster Systems 415-493-6912
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~1995-12-12 5:00 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1995-12-01 5:00 how to set kmem_debug on DEC Tony Chung
1995-12-02 5:00 ` Jeffrey M. Denham
1995-12-12 5:00 ` Stuart Kreitman
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox