Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 12 Nov 1998 08:59:12 -0500
From:      Kai Richardson <Kai.Richard@dsams.com>
To:        "'freebsd-questions@freebsd.org'" <freebsd-questions@FreeBSD.ORG>
Subject:   Kernel help
Message-ID:  <00CF9AB31F4CD2118E6A00609720EB181B7E2D@mail.dsams.com>

next in thread | raw e-mail | index | archive | help
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_000_01BE0E44.A05AD568
Content-Type: text/plain

Hello,	
	I have recently set up a new FreeBSD server for the first time, and
I am having problems with getting X server started.  I have built two custom
kernels, one without X server and using a SCO terminal, and the other with X
server using the vt100 terminal.  I have followed the directions in the
FreeBSD manual, but it just does not seem to want to work.

Here are the two kernel configuration files.  When I load the first one,
called "KAIBSDKRNL", I get no error messages upon bootup, everything seems
to work fine, including my mouse and vi.  When I load the second, called
"NEWKAIKRNL", I get several errors upon bootup, my mouse stops working, and
directional keys in vi stop working.  The errors that I get are as follows:

rc.i386 configuring syscons:

Keymapkbdcontrol:  setting keymap:  inappropriate ioctl for device
blank_timevid control: must be on a virtual console: inappropriate ioctl for
device
mousedmoused:  cannot open /dev/consolectl: device not configured
vidcontrol: must be on a virtual console: inappropriate ioctl for device.

I have also included my rc.i386 file.  There really is only a two line
difference between the two kernel config files, and that is at the terminal
section.  Any assistance you could provide me would be greatly appreciated.
I am fairly new to unix and have really hit a snag.  Thanks.

 <<KAIBSDKRNL>>  <<NEWKAIKRNL>>  <<rc.i386>> 

Kai richardson

------_=_NextPart_000_01BE0E44.A05AD568
Content-Type: application/octet-stream;
	name="KAIBSDKRNL"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
	filename="KAIBSDKRNL"
Content-Location: ATT-0-AECEDFC16A79D2118E7B00609720EB18-K
	AIBSD%7E1

#
# GENERIC -- Generic machine with WD/AHx/NCR/BTx family disks
#
# For more information read the handbook part System Administration ->=20
# Configuring the FreeBSD Kernel -> The Configuration File.=20
# The handbook is available in /usr/share/doc/handbook or online as
# latest version from the FreeBSD World Wide Web server=20
# <URL:http://www.FreeBSD.ORG/>;
#
# An exhaustive list of options and more detailed explanations of the=20
# device lines is present in the ./LINT configuration file. If you are=20
# in doubt as to the purpose or necessity of a line, check first in =
LINT.
#
#	$Id: GENERIC,v 1.77.2.25 1998/07/20 20:11:04 msmith Exp $

machine		"i386"
# cpu		"I386_CPU"
# cpu		"I486_CPU"
cpu		"I586_CPU"
# cpu		"I686_CPU"
ident		KAIBSDKRNL
maxusers	10



# options		MATH_EMULATE		#Support for x87 emulation
options		INET			#InterNETworking
options		FFS			#Berkeley Fast Filesystem
options		NFS			#Network Filesystem
options		MSDOSFS			#MSDOS Filesystem
options		"CD9660"		#ISO 9660 Filesystem
options		PROCFS			#Process filesystem
options		"COMPAT_43"		#Compatible with BSD 4.3 [KEEP THIS!]
options		SCSI_DELAY=3D15		#Be pessimistic about Joe SCSI device
options		BOUNCE_BUFFERS		#include support for DMA bounce buffers
options		UCONSOLE		#Allow users to grab the console
options		FAILSAFE		#Be conservative
options		USERCONFIG		#boot -c editor
options		VISUAL_USERCONFIG	#visual boot -c editor

config		kernel	root on wd0

controller	isa0
# controller	eisa0
controller	pci0

controller	fdc0	at isa0 port "IO_FD1" bio irq 6 drq 2 vector fdintr
disk		fd0	at fdc0 drive 0
# disk		fd1	at fdc0 drive 1
# Unless you know very well what you're doing, leave ft0 at drive 2, or
# remove the line entirely if you don't need it.  Trying to configure
# it on another unit might cause surprises, see PR kern/7176.
# tape		ft0	at fdc0 drive 2

options		"CMD640"	# work around CMD640 chip deficiency
controller	wdc0	at isa0 port "IO_WD1" bio irq 14 vector wdintr
disk		wd0	at wdc0 drive 0
# disk		wd1	at wdc0 drive 1

controller	wdc1	at isa0 port "IO_WD2" bio irq 15 vector wdintr
disk		wd2	at wdc1 drive 0
# disk		wd3	at wdc1 drive 1

options		ATAPI		#Enable ATAPI support for IDE bus
# options		ATAPI_STATIC	#Don't do it as an LKM
device		wcd1		#IDE CD-ROM
device		wfd0		#IDE floppy (LS-120)

# A single entry for any of these controllers (ncr, ahb, ahc, amd) is
# sufficient for any number of installed devices.

# controller	ncr0
# controller	amd0
# controller	ahb0
# controller	ahc0
# controller	dpt0
# controller	bt0	at isa? port "IO_BT0" bio irq ? vector bt_isa_intr
# controller	uha0	at isa? port "IO_UHA0" bio irq ? drq 5 vector uhaintr
# controller	aha0	at isa? port "IO_AHA0" bio irq ? drq 5 vector ahaintr
# controller	aic0	at isa? port 0x340 bio irq 11 vector aicintr
# controller	nca0	at isa? port 0x1f88 bio irq 10 vector ncaintr
# controller	nca1	at isa? port 0x350 bio irq 5 vector ncaintr

# controller	sea0	at isa? bio irq 5 iomem 0xc8000 iosiz 0x2000 vector =
seai# ntr

options   		DPT_MEASURE_PERFORMANCE	# Required by DPT driver??
#options		DPT_VERIFY_HINTR	# Some hardware must have it!
#options		DPT_TRACK_CCB_STATES	# Some hardware must have it!
#options    		DPT_HANDLE_TIMEOUTS	# Some hardware must have it!
#options		DPT_TIMEOUT_FACTOR=3D4	# Some hardware needs more

# controller	scbus0

# device		sd0

# device		od0	#See LINT for possible `od' options.

# device		st0

# device		cd0	#Only need one of these, the code dynamically grows

# device		wt0	at isa? port 0x300 bio irq 5 drq 1 vector wtintr
# device		mcd0	at isa? port 0x300 bio irq 10 vector mcdintr

# controller	matcd0	at isa? port 0x230 bio

# device		scd0	at isa? port 0x230 bio

# syscons is the default console driver, resembling an SCO console
device		sc0	at isa0 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		XSERVER			# support for X server
#options		FAT_CURSOR		# start with block cursor
# If you have a ThinkPAD, uncomment this along with the rest of the =
PCVT lines
#options		PCVT_SCANSET=3D2		# IBM keyboards are non-std

# Mandatory, don't remove
device		npx0	at isa0 port "IO_NPX" flags 0x1 irq 13 vector npxintr

#
# Laptop support (see LINT for more options)
#
# device		apm0    at isa?	disable	# Advanced Power Management
# options		APM_BROKEN_STATCLOCK	# Workaround some buggy APM BIOS
# PCCARD (PCMCIA) support
#controller	card0
#device		pcic0	at card?
#device		pcic1	at card?

device		sio0	at isa0 port "IO_COM1" tty irq 4 vector siointr
device		sio1	at isa0 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 isa0 port? tty irq 7 vector lptintr
# device		lpt1	at isa? port? tty
# device		mse0	at isa? port 0x23c tty irq 5 vector mseintr

device		psm0	at isa0 port "IO_KBD" conflicts tty irq 12 vector psmintr

# Order is important here due to intrusive probes, do *not* alphabetize
# this list of network interfaces until the probes have been fixed.
# Right now it appears that the ie0 must be probed before ep0. See
# revision 1.20 of this file.
# device de0
# device fxp0
# device tx0
# device vx0

# device ed0 at isa? port 0x280 net irq 10 iomem 0xd8000 vector edintr
# device ie0 at isa? port 0x300 net irq 10 iomem 0xd0000 vector ieintr
device ep0 at isa0 port 0x300 net irq 10 vector epintr
# device ex0 at isa? port? net irq? vector exintr
# device fe0 at isa? port 0x300 net irq ? vector feintr
# device le0 at isa? port 0x300 net irq 5 iomem 0xd0000 vector le_intr
# device lnc0 at isa? port 0x280 net irq 10 drq 0 vector lncintr
# device ze0 at isa? port 0x300 net irq 5 iomem 0xd8000 vector zeintr
# device zp0 at isa? port 0x300 net irq 10 iomem 0xd8000 vector zpintr
# device cs0 at isa? disable port 0x300 net irq ? vector csintr

pseudo-device	loop
pseudo-device	ether
pseudo-device	log
#pseudo-device	sl	1
pseudo-device	ppp	1
pseudo-device	vn	1
pseudo-device	tun	1
pseudo-device	pty	16
pseudo-device	gzip		# Exec gzipped a.out's

# KTRACE enables the system-call tracing facility ktrace(2).
# This adds 4 KB bloat to your kernel, and slightly increases
# the costs of each syscall.
options		KTRACE		#kernel tracing

# This provides support for System V shared memory.
#
options         SYSVSHM
options		SYSVMSG

------_=_NextPart_000_01BE0E44.A05AD568
Content-Type: application/octet-stream;
	name="NEWKAIKRNL"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
	filename="NEWKAIKRNL"
Content-Location: ATT-1-AFCEDFC16A79D2118E7B00609720EB18-N
	EWKAI%7E1

#
# GENERIC -- Generic machine with WD/AHx/NCR/BTx family disks
#
# For more information read the handbook part System Administration ->=20
# Configuring the FreeBSD Kernel -> The Configuration File.=20
# The handbook is available in /usr/share/doc/handbook or online as
# latest version from the FreeBSD World Wide Web server=20
# <URL:http://www.FreeBSD.ORG/>;
#
# An exhaustive list of options and more detailed explanations of the=20
# device lines is present in the ./LINT configuration file. If you are=20
# in doubt as to the purpose or necessity of a line, check first in =
LINT.
#
#	$Id: GENERIC,v 1.77.2.25 1998/07/20 20:11:04 msmith Exp $

machine		"i386"
# cpu		"I386_CPU"
# cpu		"I486_CPU"
cpu		"I586_CPU"
# cpu		"I686_CPU"
ident		NEWKAIKRNL
maxusers	10



# options		MATH_EMULATE		#Support for x87 emulation
options		INET			#InterNETworking
options		FFS			#Berkeley Fast Filesystem
options		NFS			#Network Filesystem
options		MSDOSFS			#MSDOS Filesystem
options		"CD9660"		#ISO 9660 Filesystem
options		PROCFS			#Process filesystem
options		"COMPAT_43"		#Compatible with BSD 4.3 [KEEP THIS!]
options		SCSI_DELAY=3D15		#Be pessimistic about Joe SCSI device
options		BOUNCE_BUFFERS		#include support for DMA bounce buffers
options		UCONSOLE		#Allow users to grab the console
options		FAILSAFE		#Be conservative
options		USERCONFIG		#boot -c editor
options		VISUAL_USERCONFIG	#visual boot -c editor

config		kernel	root on wd0

controller	isa0
# controller	eisa0
controller	pci0

controller	fdc0	at isa0 port "IO_FD1" bio irq 6 drq 2 vector fdintr
disk		fd0	at fdc0 drive 0
# disk		fd1	at fdc0 drive 1
# Unless you know very well what you're doing, leave ft0 at drive 2, or
# remove the line entirely if you don't need it.  Trying to configure
# it on another unit might cause surprises, see PR kern/7176.
# tape		ft0	at fdc0 drive 2

options		"CMD640"	# work around CMD640 chip deficiency
controller	wdc0	at isa0 port "IO_WD1" bio irq 14 vector wdintr
disk		wd0	at wdc0 drive 0
# disk		wd1	at wdc0 drive 1

controller	wdc1	at isa0 port "IO_WD2" bio irq 15 vector wdintr
disk		wd2	at wdc1 drive 0
# disk		wd3	at wdc1 drive 1

options		ATAPI		#Enable ATAPI support for IDE bus
# options		ATAPI_STATIC	#Don't do it as an LKM
device		wcd1		#IDE CD-ROM
device		wfd0		#IDE floppy (LS-120)

# A single entry for any of these controllers (ncr, ahb, ahc, amd) is
# sufficient for any number of installed devices.

# controller	ncr0
# controller	amd0
# controller	ahb0
# controller	ahc0
# controller	dpt0
# controller	bt0	at isa? port "IO_BT0" bio irq ? vector bt_isa_intr
# controller	uha0	at isa? port "IO_UHA0" bio irq ? drq 5 vector uhaintr
# controller	aha0	at isa? port "IO_AHA0" bio irq ? drq 5 vector ahaintr
# controller	aic0	at isa? port 0x340 bio irq 11 vector aicintr
# controller	nca0	at isa? port 0x1f88 bio irq 10 vector ncaintr
# controller	nca1	at isa? port 0x350 bio irq 5 vector ncaintr

# controller	sea0	at isa? bio irq 5 iomem 0xc8000 iosiz 0x2000 vector =
seai# ntr

options   		DPT_MEASURE_PERFORMANCE	# Required by DPT driver??
#options		DPT_VERIFY_HINTR	# Some hardware must have it!
#options		DPT_TRACK_CCB_STATES	# Some hardware must have it!
#options    		DPT_HANDLE_TIMEOUTS	# Some hardware must have it!
#options		DPT_TIMEOUT_FACTOR=3D4	# Some hardware needs more

# controller	scbus0

# device		sd0

# device		od0	#See LINT for possible `od' options.

# device		st0

# device		cd0	#Only need one of these, the code dynamically grows

# device		wt0	at isa? port 0x300 bio irq 5 drq 1 vector wtintr
# device		mcd0	at isa? port 0x300 bio irq 10 vector mcdintr

# controller	matcd0	at isa? port 0x230 bio

# device		scd0	at isa? port 0x230 bio

# syscons is the default console driver, resembling an SCO console
#device		sc0	at isa0 port "IO_KBD" tty irq 1 vector scintr
# Enable this and PCVT_FREEBSD for pcvt vt220 compatible console driver
#
device		vt0	at isa0 port "IO_KBD" tty irq 1 vector pcrint
options		"PCVT_FREEBSD=3D210"
options		XSERVER			# support for X server
#options		FAT_CURSOR		# start with block cursor
# If you have a ThinkPAD, uncomment this along with the rest of the =
PCVT lines
#options		PCVT_SCANSET=3D2		# IBM keyboards are non-std

# Mandatory, don't remove
device		npx0	at isa0 port "IO_NPX" flags 0x1 irq 13 vector npxintr

#
# Laptop support (see LINT for more options)
#
# device		apm0    at isa?	disable	# Advanced Power Management
# options		APM_BROKEN_STATCLOCK	# Workaround some buggy APM BIOS
# PCCARD (PCMCIA) support
#controller	card0
#device		pcic0	at card?
#device		pcic1	at card?

device		sio0	at isa0 port "IO_COM1" tty irq 4 vector siointr
device		sio1	at isa0 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 isa0 port? tty irq 7 vector lptintr
# device		lpt1	at isa? port? tty
# device		mse0	at isa? port 0x23c tty irq 5 vector mseintr

device		psm0	at isa0 port "IO_KBD" conflicts tty irq 12 vector psmintr

# Order is important here due to intrusive probes, do *not* alphabetize
# this list of network interfaces until the probes have been fixed.
# Right now it appears that the ie0 must be probed before ep0. See
# revision 1.20 of this file.
# device de0
# device fxp0
# device tx0
# device vx0

# device ed0 at isa? port 0x280 net irq 10 iomem 0xd8000 vector edintr
# device ie0 at isa? port 0x300 net irq 10 iomem 0xd0000 vector ieintr
device ep0 at isa0 port 0x300 net irq 10 vector epintr
# device ex0 at isa? port? net irq? vector exintr
# device fe0 at isa? port 0x300 net irq ? vector feintr
# device le0 at isa? port 0x300 net irq 5 iomem 0xd0000 vector le_intr
# device lnc0 at isa? port 0x280 net irq 10 drq 0 vector lncintr
# device ze0 at isa? port 0x300 net irq 5 iomem 0xd8000 vector zeintr
# device zp0 at isa? port 0x300 net irq 10 iomem 0xd8000 vector zpintr
# device cs0 at isa? disable port 0x300 net irq ? vector csintr

pseudo-device	loop
pseudo-device	ether
pseudo-device	log
#pseudo-device	sl	1
pseudo-device	ppp	1
pseudo-device	vn	1
pseudo-device	tun	1
pseudo-device	pty	16
pseudo-device	gzip		# Exec gzipped a.out's

# KTRACE enables the system-call tracing facility ktrace(2).
# This adds 4 KB bloat to your kernel, and slightly increases
# the costs of each syscall.
options		KTRACE		#kernel tracing

# This provides support for System V shared memory.
#
options         SYSVSHM
options		SYSVMSG

------_=_NextPart_000_01BE0E44.A05AD568
Content-Type: application/octet-stream;
	name="rc.i386"
Content-Disposition: attachment;
	filename="rc.i386"
Content-Location: ATT-2-B0CEDFC16A79D2118E7B00609720EB18-R
	C63DA%7E1.I38

#!/bin/sh -
#
#	$Id: rc.i386,v 1.18.2.10 1998/03/07 09:06:19 jkh Exp $
#	Do i386 specific processing
#

echo -n 'Initial rc.i386 initialization:'
if [ "X$apm_enable" = X"YES" ] ; then
	echo -n ' apm'
	apmconf -e > /dev/null 2>&1
fi

# Start the SCO binary emulation if requested.
if [ "X${ibcs2_enable}" = X"YES" ]; then
	echo -n ' ibcs2';		ibcs2 > /dev/null 2>&1
fi

# Start the Linux binary emulation if requested.
if [ "X${linux_enable}" = X"YES" ]; then
	echo -n ' linux';		linux > /dev/null 2>&1
fi

if [ "X${xtend_enable}" = X"YES" ]; then
 	echo -n ' xtend';	/usr/libexec/xtend
fi
echo '.'

##########################################################################
####### Syscons section						  ########
##########################################################################

# stdin must be redirected because it might be for a serial console
kbddev=/dev/ttyv0
viddev=/dev/ttyv0

echo -n "rc.i386 configuring syscons:"

# keymap
if [ "X${keymap}" != X"NO" ]; then
	echo -n ' keymap';	kbdcontrol <${kbddev} -l ${keymap}
fi

# keyrate
if [ "X${keyrate}" != X"NO" ]; then
	echo -n ' keyrate';	kbdcontrol <${kbddev} -r ${keyrate}
fi

# keybell
if [ "X${keybell}" != X"NO" ]; then
	echo -n ' keybell';	kbdcontrol <${kbddev} -b ${keybell}
fi

# change function keys
if [ "X${keychange}" != X"NO" ]; then
	echo -n " keychange"
	set - ${keychange}
	while [ $# -gt 0 ]
	do
		kbdcontrol <${kbddev} -f "$1" "$2"
		shift; shift
	done
fi

# cursor type
if [ "X${cursor}" != X"NO" ]; then
	echo -n ' cursor';	vidcontrol <${viddev} -c ${cursor}
fi

# screen mapping
if [ "X${scrnmap}" != X"NO" ]; then
	echo -n ' screen_map';	vidcontrol <${viddev} -l ${scrnmap}
fi

# font 8x16
if [ "X${font8x16}" != X"NO" ]; then
	echo -n ' font8x16';	vidcontrol <${viddev} -f 8x16 ${font8x16}
fi

# font 8x14
if [ "X${font8x14}" != X"NO" ]; then
	echo -n ' font8x14';	vidcontrol <${viddev} -f 8x14 ${font8x14}
fi

# font 8x8
if [ "X${font8x8}" != X"NO" ]; then
	echo -n ' font8x8';	vidcontrol <${viddev} -f 8x8 ${font8x8}
fi

# blank time
if [ "X${blanktime}" != X"NO" ]; then
	echo -n ' blank_time';	vidcontrol <${viddev} -t ${blanktime}
fi

# screen saver
if [ "X${saver}" != X"NO" ] ; then
	echo -n ' screensaver'
	modstat | grep _saver || \
		modload -u -o /tmp/saver_mod -q /lkm/${saver}_saver_mod.o
fi

# mouse daemon
if [ "X${moused_enable}" = X"YES" ] ; then
	echo -n ' moused'
	moused ${moused_flags} -p ${moused_port} -t ${moused_type}
	vidcontrol <${viddev} -m on
fi
echo '.'

# interrupts for /dev/random device
if [ "X${rand_irqs}" != X"NO" ] ; then
	echo -n 'entropy IRQs:'
	for irq in ${rand_irqs}; do
		echo -n " ${irq}" && rndcontrol -q -s ${irq}
	done
	echo '.'
fi

------_=_NextPart_000_01BE0E44.A05AD568--

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?00CF9AB31F4CD2118E6A00609720EB181B7E2D>