From nobody@FreeBSD.ORG Mon Mar 15 09:18:04 1999
Return-Path: <nobody@FreeBSD.ORG>
Received: by hub.freebsd.org (Postfix, from userid 32767)
	id 63F5814C3F; Mon, 15 Mar 1999 09:18:03 -0800 (PST)
Message-Id: <19990315171803.63F5814C3F@hub.freebsd.org>
Date: Mon, 15 Mar 1999 09:18:03 -0800 (PST)
From: rjbubon@bigI.com
Sender: nobody@FreeBSD.ORG
To: freebsd-gnats-submit@freebsd.org
Subject: Brooktree support broken in kernel build after move from 2.2.8 to 3.1
X-Send-Pr-Version: www-1.0

>Number:         10602
>Category:       kern
>Synopsis:       Brooktree support broken in kernel build after move from 2.2.8 to 3.1
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    ken
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Mar 15 09:20:01 PST 1999
>Closed-Date:    Mon Mar 22 23:23:45 PST 1999
>Last-Modified:  Mon Mar 22 23:24:36 PST 1999
>Originator:     Robert J Bubon
>Release:        3.1
>Organization:
Bolder Internet Group, Inc.
>Environment:
FreeBSD viper.secure.bigi.com 3.1-RELEASE FreeBSD 3.1-RELEASE #0: Mon Feb 15 11:08:08 GMT 1999     jkh@usw3.freebsd.org:/usr/src/sys/compile/GENERIC  i386
>Description:
I upgraded 2 systems from 2.2.8 to 3.1.
I needed to rebuild the kernel with bktr0 support on one system.

make depend failed on new kernel
aram.c vnode_if.c config.c
../../pci/brooktree848.c:379: smbus_if.h: No such file or directory
../../pci/brooktree848.c:380: iicbus_if.h: No such file or directory
../../pci/bt848_i2c.c:61: iicbb_if.h: No such file or directory
../../pci/bt848_i2c.c:62: smbus_if.h: No such file or directory
mkdep: compile failed
*** Error code 1

Tried building a kernel on other system. Same result.

>How-To-Repeat:
Upgrade system from 2.2.8 to 3.1
Add to GENERIC kernel config file brooktree support
device          bktr0
controller      snd0
device sb0      at isa? port 0x220 irq 5 drq 1 vector sbintr
device sbxvi0   at isa? drq 5
device sbmidi0  at isa? port 0x330
device awe0     at isa? port 0x620 

config GENERIC then make depend it.

It should eventually fail with the following:
aram.c vnode_if.c config.c
../../pci/brooktree848.c:379: smbus_if.h: No such file or directory
../../pci/brooktree848.c:380: iicbus_if.h: No such file or directory
../../pci/bt848_i2c.c:61: iicbb_if.h: No such file or directory
../../pci/bt848_i2c.c:62: smbus_if.h: No such file or directory
mkdep: compile failed
*** Error code 1

>Fix:
Looks as if various includes and data structures have moved around
between the releases.


>Release-Note:
>Audit-Trail:

From: Thomas David Rivers <rivers@dignus.com>
To: freebsd-gnats-submit@FreeBSD.org, rjbubon@bigI.com
Cc:  
Subject: Re: kern/10602: Brooktree support broken in kernel build after move from 2.2.8 to 3.1
Date: Mon, 15 Mar 1999 14:48:33 -0500 (EST)

 Support for building the BrookTree device changed...  It's someone spelled
 out in the the LINT file... To get it working, I put the following
 entries at the end of my config file:
 
 
     # Brooktree driver has been ported to the new I2C framework. Thus,
     # you'll need at least iicbus, iicbb and smbus. iic/smb are only needed if you
     # want to control other I2C slaves connected to the external connector of
     # some cards.
     # 
     device          bktr0
     controller smbus0
     device smb0     at smbus?
     
     controller iicbus0
     controller iicbb0
     
     device ic0      at iicbus?
     device iic0     at iicbus?
     device iicsmb0  at iicbus?
     
     controller pcf0 at isa? port 0x320 net irq 5
     
     
    
  	- Dave Rivers - 
 
 
State-Changed-From-To: open->closed 
State-Changed-By: ken 
State-Changed-When: Mon Mar 22 23:23:45 PST 1999 
State-Changed-Why:  
Dave Rivers answered the question.  The bktr driver depends on a few other 
device drivers in the 3.x tree. 


Responsible-Changed-From-To: freebsd-bugs->ken 
Responsible-Changed-By: ken 
Responsible-Changed-When: Mon Mar 22 23:23:45 PST 1999 
Responsible-Changed-Why:  
I'm closing the PR. 
>Unformatted:
