Return to BSD News archive
Xref: sserve comp.os.linux.misc:15616 comp.os.386bsd.misc:2485 comp.unix.unixware:5568 comp.unix.solaris:16697 Newsgroups: comp.os.linux.misc,comp.os.386bsd.misc,comp.unix.unixware,comp.unix.solaris Path: sserve!newshost.anu.edu.au!munnari.oz.au!bunyip.cc.uq.oz.au!harbinger.cc.monash.edu.au!msuinfo!agate!howland.reston.ans.net!europa.eng.gtefsd.com!MathWorks.Com!news.kei.com!news.byu.edu!news.provo.novell.com!uel!simonr From: simonr@novell.co.uk (Simon Ritter) Subject: Re: Serial console question Sender: news@novell.co.uk (NetNews Administration) Message-ID: <CqCw0E.3M9@novell.co.uk> Date: Wed, 25 May 1994 11:31:25 GMT References: <CqAFp2.FLn@osuunx.ucc.okstate.edu> Organization: Novell Europe X-Newsreader: TIN [version 1.2 PL0] Followup-To: comp.os.linux.misc,comp.os.386bsd.misc,comp.unix.unixware,comp.unix.solaris Lines: 36 Terry Klarich (terry@osuunx.ucc.okstate.edu) wrote: : Is there a way to have the system's console on one of the serial ports? : I got used to this on sco unix and xenix. Any comments? I've seen a couple of posts requesting this info, so here it is. Maybe this should be added to the FAQ's. Edit the file /etc/conf/pack.d/sysmsg/space.c. At the bottom of this you will find the following lines: extern int kdputchar(), kdgetchar(); extern int asyputchar(), asygetchar(); extern int asyputchar2(), asygetchar2(); struct conssw conssw = { kdputchar, 0, kdgetchar }; Change all occurences of kdputchar and kdgetchar to asycputchar and asycgetchar. Rebuild your kernel and reboot, connecting a terminal to the first serial port. Behold, all messages on the serial port. ----------------------------------------------------------------------------- Simon Ritter ¦ Sell your house, sell your car, Senior Consultant (The UNIX bits) ¦ sell everything you own, but don't Novell Consulting Services Europe ¦ sell out. sritter@novell.co.uk ¦ Life is Vertical! ----------------------------------------------------------------------------- DISCLAIMER: The views expressed above are my own and in no way reflect those of my employer, whether they be past, present or future. -----------------------------------------------------------------------------