Re: IOLog on serial port? Or to use kprintf?
Re: IOLog on serial port? Or to use kprintf?
- Subject: Re: IOLog on serial port? Or to use kprintf?
- From: Justin Walker <email@hidden>
- Date: Fri, 21 Jan 2005 18:03:24 -0800
On Jan 21, 2005, at 16:00, Parav Pandit wrote:
Hi,
Currently I see my IOLog() messages in to the
/var/log/system.log file.
Can I redirect it to my serial port?
My Sytem is MAC OS X 10.3.7 on Power MAC G5.
If yes, Do I have to set do nvram
boot-args="debug=0x08" ?
(DB_KPRT)
I learned from Kernel Programming.pdf .
I tried it, but I still get IOLog() messages in the
same file.
I believe this should work, if you have a serial port.
Or U can direct only kprintf() to serial port???
Only kprintf()s go to the serial port.
what should be serial port setting for MAC OS X G5?
is it 57600 8N1 or 38400 8N1 ?
Don't know; it may be 38.4.
G5 has that modem kind of RJ11 conector, not the
serial port that we see on PC, so do I need to connect
it
via RJ11 connector to other host ?
If all you have is RJ11....
Note that just having an RJ11 jack is not sufficient to guarantee you
have a working serial device that can be used by the low-level code in
the kernel.
If I have to use kprintf() in my driver code, do I
need to recompile the
kernel, to see the messages on the console / serial
port?
I think need to recompile in DEBUG mode, right?
I don't think recompiling is necessary. Having a serial device that is
supported is (and, unfortunately, I can't help you there).
I searched the xnu code, but I don't find any code of
the kprintf in any of the c files.
Where is the kprintf() definition???
You can't have searched very thoroughly. I found it right away. Try
"find /path/to/xno -type f | xargs grep kprintf"
Regards,
Justin
--
/~\ The ASCII Justin C. Walker, Curmudgeon-at-Large
\ / Ribbon Campaign
X Help cure HTML Email
/ \
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden