Re: IOLog on serial port? Or to use kprintf?
site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com 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. 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.... 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 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 (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/site_archiver%40lists.a... Or U can direct only kprintf() to serial port??? 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. I don't think recompiling is necessary. Having a serial device that is supported is (and, unfortunately, I can't help you there). This email sent to site_archiver@lists.apple.com
participants (1)
-
Justin Walker