Date: Thu, 17 Apr 1997 22:10:56 -0400 From: Mike Tancsa <mike@sentex.net> To: Sas.Widjaja@mckesson.com Cc: questions@freebsd.org Subject: Re: FreeBSD 2.1.7 KERNEL recompilation Message-ID: <3.0.1.32.19970417221056.00ad9720@sentex.net> In-Reply-To: <0011700003696660000002*@MHS>
next in thread | previous in thread | raw e-mail | index | archive | help
> 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) *
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3.0.1.32.19970417221056.00ad9720>