Subject: Re: current kernel build fails in sys/dev/ic/com.c
To: None <current-users@NetBSD.org>
From: Garrett D'Amore <garrett_damore@tadpole.com>
List: current-users
Date: 07/23/2006 10:09:38
oliver gould wrote:
> On Thu, Jul 20, 2006 at 11:41:24, Garrett D'Amore wrote:
>   
>> I suspect you have not done a full and complete CVS update.  There
>> were changes in the com driver which require a full update to the
>> kernel source.
>>     
>
> The problem persits after a fresh checkout.  My kernel config is                
> attached.
>
>   
That is quite strange.  Others have been building com(4) for a while
since the relevant changes were made, without difficulty.

How are you building?  Are you using build.sh or something else?  Are
you working with a complete source tree?  The fresh checkout should be fine.

    -- Garrett

> ------------------------------------------------------------------------
>
> #
> # IBM Thinkpad X41 Island
> # ov gould
> #
> include 	"arch/i386/conf/std.i386"
>
> options 	INCLUDE_CONFIG_FILE	# embed config file in kernel binary
>
> maxusers	8			# estimated number of users
>
> # CPU support.  At least one is REQUIRED.
> options 	I686_CPU
>
> # CPU-related options.
> options 	MATH_EMULATE	# floating point emulation
> options 	VM86		# virtual 8086 emulation
>
> # Speedstep
> options 	ENHANCED_SPEEDSTEP
> options 	EST_FREQ_USERWRITE	# any user can set frequency
>
> options 	MTRR		# memory-type range register syscall support
> options 	PERFCTRS	# performance-monitoring counters support
>
> # Standard system options
>
> options 	UCONSOLE	# users can use TIOCCONS (for xconsole)
> options 	INSECURE	# disable kernel security levels - X needs this
>
> options 	RTC_OFFSET=0	# hardware clock is this many mins. west of GMT
> options 	NTP		# NTP phase/frequency locked loop
>
> options 	KTRACE		# system call tracing via ktrace(1)
> options 	SYSTRACE	# system call vetting via systrace(1)
>
> options 	SYSVMSG		# System V-like message queues
> options 	SYSVSEM		# System V-like semaphores
> options 	SYSVSHM		# System V-like memory sharing
>
> # Diagnostic/debugging support options
> options 	DDB		# in-kernel debugger
> options 	DDB_HISTORY_SIZE=512	# enable history editing in DDB
>
> # Compatibility options
> options 	COMPAT_30
> options 	COMPAT_LINUX	# binary compatibility with Linux
> options		COMPAT_BSDPTY	# multiplexed ptys
>
> # File systems
> file-system 	FFS		# UFS
> #file-system 	EXT2FS		# second extended file system (linux)
> file-system 	MSDOSFS		# MS-DOS file system
> file-system 	MFS		# memory file system
> file-system 	NFS		# Network File System client
> file-system 	CD9660		# ISO 9660 + Rock Ridge file system
> file-system 	FDESC		# /dev/fd
> file-system 	KERNFS		# /kern
> file-system	UNION		# union mounts
> file-system 	NULLFS		# loopback file system
> file-system 	PROCFS		# /proc
> file-system	PTYFS		# multiplexed ptys
>
> # File system options
> options 	SOFTDEP		# FFS soft updates support.
>
> # Networking options
> options 	INET		# IP + ICMP + TCP + UDP
> options 	INET6		# IPV6
> options 	IPSEC		# IP security
> options 	IPSEC_ESP	# IP security (encryption part; define w/IPSEC)
> #options 	IPFILTER_LOG	# ipmon(8) log support
>
> options 	NFS_BOOT_DHCP,NFS_BOOT_BOOTPARAM
>
> #
> # wscons options
> #
> # builtin terminal emulations
> options 	WSEMUL_VT100		# VT100 / VT220 emulation
> # different kernel output - see dev/wscons/wsdisplayvar.h
> options 	WS_KERNEL_FG=WSCOL_MAGENTA
> # compatibility to other console drivers
> options 	WSDISPLAY_COMPAT_PCVT		# emulate some ioctls
> options 	WSDISPLAY_COMPAT_SYSCONS	# emulate some ioctls
> options 	WSDISPLAY_COMPAT_USL		# VT handling
> options 	WSDISPLAY_COMPAT_RAWKBD		# can get raw scancodes
> options		WSDISPLAY_SCROLLSUPPORT
> # use a large software cursor that doesn't blink
> options 	PCDISPLAY_SOFTCURSOR
>
> # Kernel root file system and dump configuration.
> config		netbsd	root on ? type ?
>
> #
> # Device configuration
> #
>
> mainbus0 at root
> cpu* at mainbus?
>
> # SMP
> #ioapic*                at mainbus? apid ?
> #options                MULTIPROCESSOR
> #options                MPBIOS
> #options                COM_MPLOCK      # com MP locking; REQUIRED on MP i386
> #options                APM_NO_IDLE
>
> # SPLASHSCREEN
> #options	KVM86
>
> #options	SPLASHSCREEN
> #options	SPLASHSCREEN_PROGRESS
>
> #options	VESAFB_WIDTH=1024
> #options	VESAFB_HEIGHT=768
> #options VESAFB_DEPTH=16
>
> #vesabios* at vesabiosbus?
> #vesafb* at vesabios?
> #wsdisplay* at vesafb? console ?
>
> apm0	at mainbus0			# Advanced power management
>
> pnpbios0 at mainbus0
> # Tuning for power management, see apm(4) for more details.
> #options 	APM_NO_IDLE		# Don't call BIOS CPU idle function
> #options 	APM_V10_ONLY		# Use only the APM 1.0 calls
> #options 	APM_NO_POWEROFF		# Don't power off on halt(8)
> #options 	APM_POWER_PRINT		# Print stats on the console
> #options 	APM_DISABLE_INTERRUPTS=0 # Don't disable interrupts
>
> com* at pnpbios? index ?
>
> # Basic Bus Support
>
> # PCI bus support
> pci*   at mainbus? bus ?
> pci*   at pchb? bus ?
> pci*   at ppb? bus ?
>
>
> # PCI bridges
> pchb*	at pci? dev ? function ?	# PCI-Host bridges
> pcib*	at pci? dev ? function ?	# PCI-ISA bridges
> ppb*	at pci? dev ? function ?	# PCI-PCI bridges
>
> # ISA bus support
> isa*   at mainbus?
> isa*   at pcib?
>
>
> # PCMCIA bus support
> pcic0 at pci? dev ? function ?
> pcmcia*	at pcic? controller ? socket ?
>
> # ISA Plug-and-Play bus support
> isapnp0	at isa?
>
> # CardBus bridge support
> cbb*		at pci? dev ? function ?
> cardslot*	at cbb?
>
> # CardBus bus support
> cardbus*	at cardslot?
> pcmcia* 	at cardslot?
>
> # Coprocessor Support
>
> # Math Coprocessor support
> npx0	at isa? port 0xf0 irq 13	# x86 math coprocessor
>
> # Console Devices
>
> # wscons
> pckbc0		at isa?			# pc keyboard controller
> pckbd*		at pckbc?		# PC keyboard
> pms*		at pckbc?		# PS/2 mouse for wsmouse
> vga*		at pci? dev ? function ?
> wsdisplay*	at vga? console ?
> wskbd*		at pckbd? console ?
> wsmouse*	at pms? mux 0
>
> lms0	at	isa? port 0x23c irq 5
> lms1	at	isa? port 0x238 irq 5
> mms0	at	isa? port 0x23c irq 5
> mms1	at	isa? port 0x238 irq 5
> wsmouse*	at lms? mux 0
> wsmouse*	at mms? mux 0
>
> pcppi0		at isa?
> sysbeep0	at pcppi?
>
> # ISA serial interfaces
> options 	COM_HAYESP		# adds Hayes ESP serial board support
> com0	at isa? port 0x3f8 irq 4	# Standard PC serial ports
> com1	at isa? port 0x2f8 irq 3
> com2	at isa? port 0x3e8 irq 5
>
> # ATA (IDE) bus support
> atabus* at ata? 
> wd*     at atabus? drive ? flags 0x0000
>
> # ATAPI bus support
> atapibus* at atapi?
>
> # ATAPI devices 
> # flags have the same meaning as for IDE drives.
> sd*	at atapibus? drive ? flags 0x0000	# ATAPI disk drives
> cd*     at atapibus? drive ? #flags 0x0000      # ATAPI CD-ROM drives
>
> # IDE and related devices
> pciide*         at pci? dev ? function ? flags 0x0000   # GENERIC pciide driver
> piixide*        at pci? dev ? function ?        # Intel IDE controllers
>
>
> # Miscellaneous mass storage devices
>
> # ISA floppy
> fdc0	at isa? port 0x3f0 irq 6 drq 2	# standard PC floppy controllers
> fd*	at fdc? drive ?			# the drives themselves
>
> # Audio Devices
>
> # PCI audio devices
> auich*	at pci? dev ? function ?	# Intel ICH integrated AC'97 Audio
>
> # Audio support
> audio*	at audiobus?
>
> # MIDI support
> midi*	at pcppi?		# MIDI interface to the PC speaker
>
> # Network Interfaces
>
> # PCI network interfaces
> bge*	at pci? dev ? function ?
> iwi*	at pci? dev ? function ?
>
> ukphy*	at mii? phy ?			# generic unknown PHYs
> brgphy*	at mii? phy ?
>
> # USB Controller and Devices
>
> # PCI USB controllers
> uhci*	at pci?	dev ? function ?	# Universal Host Controller (Intel)
> ehci*	at pci?	dev ? function ?	# Enhanced Host Controller
>
> # USB bus support
> usb*	at uhci?
> usb*	at ehci?
>
> # USB Hubs
> uhub*	at usb?
> uhub*	at uhub? port ? configuration ? interface ?
>
> # USB HID device
> uhidev*	at uhub? port ? configuration ? interface ?
>
> # USB Mice
> ums*	at uhidev? reportid ?
> wsmouse* at ums? mux 0
>
> # USB Keyboards
> ukbd*	at uhidev? reportid ?
> wskbd*	at ukbd? console ? mux 1
>
>
> # USB Generic HID devices
> uhid*	at uhidev? reportid ?
>
> # USB audio
> uaudio*	at uhub? port ? configuration ?
>
>
> # USB Printer
> ulpt*	at uhub? port ? configuration ? interface ?
>
> # USB Mass Storage
> umass*	at uhub? port ? configuration ? interface ?
> wd*	at umass?
>
> # Prolific PL2301/PL2302 host-to-host adapter
> upl*	at uhub? port ?
>
> # USB Generic driver
> ugen*	at uhub? port ?
>
> # SCSI
> scsibus* at umass?
> scsibus* at scsi?
> sd*	at scsibus? target ? lun ?	# SCSI disk drives
>
> # Pseudo-Devices
>
> # disk/mass storage pseudo-devices
> pseudo-device	md		1	# memory disk device (ramdisk)
> pseudo-device	vnd		4	# disk-like interface to files
>
> pseudo-device	tun			# net tunnel over tty
>
> # network pseudo-devices
> pseudo-device	bpfilter		# Berkeley packet filter (req. for dhclient)
> pseudo-device	ipfilter		# IP filter (firewall) and NAT
> options		BRIDGE_IPF
> pseudo-device	pf
> pseudo-device	pflog
> pseudo-device	loop			# network loopback
>
> # miscellaneous pseudo-devices
> pseudo-device	pty			# pseudo-terminals
> pseudo-device	rnd			# /dev/random and in-kernel generator
> pseudo-device   cgd             4       # cryptographics disk
>
> pseudo-device	wsmux
> pseudo-device	wsfont
>   


-- 
Garrett D'Amore, Principal Software Engineer
Tadpole Computer / Computing Technologies Division,
General Dynamics C4 Systems
http://www.tadpolecomputer.com/
Phone: 951 325-2134  Fax: 951 325-2191