From owner-freebsd-questions@FreeBSD.ORG Wed Aug 24 07:54:29 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1C5A7106566C for ; Wed, 24 Aug 2011 07:54:29 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx01.qsc.de (mx01.qsc.de [213.148.129.14]) by mx1.freebsd.org (Postfix) with ESMTP id C0B858FC0C for ; Wed, 24 Aug 2011 07:54:28 +0000 (UTC) Received: from r56.edvax.de (port-92-195-72-156.dynamic.qsc.de [92.195.72.156]) by mx01.qsc.de (Postfix) with ESMTP id 317AB3D7A4 for ; Wed, 24 Aug 2011 09:54:27 +0200 (CEST) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id p7O7sQgw017190 for ; Wed, 24 Aug 2011 09:54:26 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Wed, 24 Aug 2011 09:54:26 +0200 From: Polytropon To: FreeBSD Questions Message-Id: <20110824095426.d6e1aa8a.freebsd@edvax.de> Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: PCI TV card with bktr kernel device X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Aug 2011 07:54:29 -0000 In the past years, I could use a very simple PCI TV card with FreeBSD. It's a Haupauge WinTV supported by the bktr driver (BT878) that I've always included in my system kernel. I have copied this from my previous configuration: # TV device bktr options BROOKTREE_SYSTEM_DEFAULT=BROOKTREE_PAL options BKTR_USE_PLL options BKTR_GPIO_ACCESS options BKTR_USE_FREEBSD_SMBUS I also paid attention to include this which I think was a requirement: # System management bus device smbus device iicbus device iicsmb device iicbb device iic Sadly, the kernel of 8.2-STABLE doesn't successfully compile with those settings, Those are the errors reported when building the kernel: ===> bktr (obj) ===> bktr/bktr (obj) [...] ===> bktr (depend) ===> bktr/bktr (depend) [...] cc -c -O2 -pipe -fno-strict-aliasing -march=prescott -std=c99 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/altq -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -mno-align-long-strings -mpreferred-stack-boundary=2 -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -ffreestanding -fstack-protector -Werror /usr/src/sys/dev/bktr/bktr_i2c.c cc1: warnings being treated as errors /usr/src/sys/dev/bktr/bktr_i2c.c: In function 'bti2c_smb_callback': /usr/src/sys/dev/bktr/bktr_i2c.c:131: warning: implicit declaration of function 'mtx_lock' /usr/src/sys/dev/bktr/bktr_i2c.c:131: warning: nested extern declaration of 'mtx_lock' /usr/src/sys/dev/bktr/bktr_i2c.c:131: error: 'Giant' undeclared (first use in this function) /usr/src/sys/dev/bktr/bktr_i2c.c:131: error: (Each undeclared identifier is reported only once /usr/src/sys/dev/bktr/bktr_i2c.c:131: error: for each function it appears in.) /usr/src/sys/dev/bktr/bktr_i2c.c:136: warning: implicit declaration of function 'mtx_unlock' /usr/src/sys/dev/bktr/bktr_i2c.c:136: warning: nested extern declaration of 'mtx_unlock' /usr/src/sys/dev/bktr/bktr_i2c.c: In function 'bti2c_iic_callback': /usr/src/sys/dev/bktr/bktr_i2c.c:168: error: 'Giant' undeclared (first use in this function) /usr/src/sys/dev/bktr/bktr_i2c.c: In function 'bti2c_iic_reset': /usr/src/sys/dev/bktr/bktr_i2c.c:195: error: 'Giant' undeclared (first use in this function) /usr/src/sys/dev/bktr/bktr_i2c.c: In function 'bti2c_iic_setsda': /usr/src/sys/dev/bktr/bktr_i2c.c:208: error: 'Giant' undeclared (first use in this function) /usr/src/sys/dev/bktr/bktr_i2c.c: In function 'bti2c_iic_setscl': /usr/src/sys/dev/bktr/bktr_i2c.c:225: error: 'Giant' undeclared (first use in this function) /usr/src/sys/dev/bktr/bktr_i2c.c: In function 'bti2c_iic_getsda': /usr/src/sys/dev/bktr/bktr_i2c.c:243: error: 'Giant' undeclared (first use in this function) /usr/src/sys/dev/bktr/bktr_i2c.c: In function 'bti2c_write': /usr/src/sys/dev/bktr/bktr_i2c.c:260: error: 'Giant' undeclared (first use in this function) /usr/src/sys/dev/bktr/bktr_i2c.c: In function 'bti2c_smb_readb': /usr/src/sys/dev/bktr/bktr_i2c.c:330: error: 'Giant' undeclared (first use in this function) *** Error code 1 There were no problems on 5.x and 7.x with this kind of configuration. Is this also a functionality that is not present anymore, or am I missing some change that has to be made on current 8.x systems? -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...