Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 24 Aug 2011 09:54:26 +0200
From:      Polytropon <freebsd@edvax.de>
To:        FreeBSD Questions <freebsd-questions@freebsd.org>
Subject:   PCI TV card with bktr kernel device
Message-ID:  <20110824095426.d6e1aa8a.freebsd@edvax.de>

next in thread | raw e-mail | index | archive | help
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, ...



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