From owner-freebsd-questions Thu Apr 17 19:06:54 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id TAA24482 for questions-outgoing; Thu, 17 Apr 1997 19:06:54 -0700 (PDT) Received: from sand.sentex.ca (sand.sentex.ca [206.222.77.6]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id TAA24472 for ; Thu, 17 Apr 1997 19:06:48 -0700 (PDT) Received: from gravel (gravel.sentex.ca [205.211.165.210]) by sand.sentex.ca (8.8.5/8.8.3) with SMTP id WAA06046; Thu, 17 Apr 1997 22:11:02 -0400 (EDT) Message-Id: <3.0.1.32.19970417221056.00ad9720@sentex.net> X-Sender: mdtancsa@sentex.net X-Mailer: Windows Eudora Pro Version 3.0.1 (32) Date: Thu, 17 Apr 1997 22:10:56 -0400 To: Sas.Widjaja@mckesson.com From: Mike Tancsa Subject: Re: FreeBSD 2.1.7 KERNEL recompilation Cc: questions@freebsd.org In-Reply-To: <0011700003696660000002*@MHS> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > I would like to re-compile the GENERIC KERNEL to support my IDE ATAPI > CD-ROM drive, PS/2 mouse and to run the XFree86. The following are > part of the KERNEL that I would like to modified, I have some > questions on the options. Would you please help me to identify them. > ># syscons is the default console driver, resembling an SCO console >device sc0 at isa? port "IO_KBD" tty irq 1 vector scintr ># Enable this and PCVT_FREEBSD for pcvt vt220 compatible console driver >#device vt0 at isa? port "IO_KBD" tty irq 1 vector pcrint >#options "PCVT_FREEBSD=210" # pcvt running on FreeBSD 2.1 >#options XSERVER # include code for XFree86 > | > +------> SHOULD THESE BE UN-COMMENTED FOR XFree86 OPTIONS ?? (sc0???) Yes. ># Mandatory, don't remove >device npx0 at isa? port "IO_NPX" irq 13 vector npxintr >device sio0 at isa? port "IO_COM1" tty irq 4 vector siointr >device sio1 at isa? port "IO_COM2" tty irq 3 vector siointr >device sio2 at isa? disable port "IO_COM3" tty irq 5 vector siointr >device sio3 at isa? disable port "IO_COM4" tty irq 9 vector siointr >device lpt0 at isa? port? tty irq 7 vector lptintr >device mse0 at isa? port 0x23c tty irq 5 vector mseintr >device psm0 at isa? disable port "IO_KBD" conflicts tty irq 12 vector smintr > | > +---> FOR PS/2 MOUSE (REMOVED DISABLE ???) Yes.. You can remove the disable part... When the line is commented out with # in front of it, it means the code is not compiled into the kernel at all. By putting a disable in the config line however, the code is in the kernel, it merely is not active at boot time. For example, when you initially are at the boot prompt, you can do a -c for config where you could enable the ps/2 mouse driver. In your case, since you want to use it, remove the disable keywork from the line and recompile your kernel... For a complete explanation of the different kernel options, have a look at the file LINT in the same directory. So, the steps you want are cd /usr/src/sys/i386/conf cp GENERIC saskernel vi saskernel make sure that you have a line that says options XSERVER take out the disable part device psm0 at isa? port "IO_KBD" conflicts tty irq 12 vector save the changes config saskernel cd ../../compile/saskernel make depend;make;make install at this point, if all compiled well, do a sync;shutdown -r now *The sync command isnt necessary, but I like to flush anyways... ---Mike ********************************************************************** Mike Tancsa (mike@sentex.net) * To do is to be -- Nietzsche Sentex Communications Corp, * To be is to do -- Sartre Cambridge, Ontario * Do be do be do -- Sinatra (http://www.sentex.net/~mdtancsa) *