Re: bttv under RedHat 6.2 (w/updates)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Fri, 1 Jun 2001, Andrew Daviel wrote:

> However, I'd really like things to work on a RedHat install with the RPM
> library up-to-date. My attempts to use at least the RedHat kernel source
> RPM failed for some reason (make modules failed, symbols missing or
> duplicated etc.)

After much fiddling around, I got bttv-0.7.63 to build on a RH 6.2 system
upgraded with RedHat's kernel-2.2.19-6.2.1.src.rpm

The problem seemed to be that bttv's modules weren't getting their
module-version-number #defines into the linux/modules include file magic
that makes module versioning work.

I have these changes left over in my bttv directory.  I think this
qualifies as a seriously disgusting hack - but it did work for me.



--- bttv-0.7.63/driver/bttv-if.c~	Sun Jan 21 07:36:18 2001
+++ bttv-0.7.63/driver/bttv-if.c	Sun Apr 22 01:13:36 2001
@@ -26,6 +26,10 @@
 */
 
 #define __NO_VERSION__ 1
+#define __module__up
+#include <linux/modules/videodev.ver>
+#include <linux/modules/i2c-core.ver>
+#include <linux/modules/i2c-algo-bit.ver>
 
 #include <linux/version.h>
 #include <linux/module.h>
--- bttv-0.7.63/driver/bttv-driver.c~	Fri Mar 30 16:02:40 2001
+++ bttv-0.7.63/driver/bttv-driver.c	Sun Apr 22 01:13:20 2001
@@ -19,6 +19,10 @@
     along with this program; if not, write to the Free Software
     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 */
+#define __module__up
+#include <linux/modules/videodev.ver>
+#include <linux/modules/i2c-core.ver>
+#include <linux/modules/i2c-algo-bit.ver>
 
 #include <linux/version.h>
 #include <linux/module.h>
--- bttv-0.7.63/driver/bttv-cards.c~	Wed Apr 11 11:17:04 2001
+++ bttv-0.7.63/driver/bttv-cards.c	Sun Apr 22 01:16:10 2001
@@ -25,6 +25,11 @@
 */
 
 #define __NO_VERSION__ 1
+#define __module__up
+#include <linux/modules/videodev.ver>
+#include <linux/modules/i2c-core.ver>
+#include <linux/modules/i2c-algo-bit.ver>
+#include <linux/modules/ksyms.ver>
 
 #include <linux/version.h>
 #include <linux/delay.h>






 
> Ideas/suggestions/ anyone know of some RPMs for bttv/i2c that will work
> with the RedHat kernel ?

Probably the best way to go would be to construct a patch that adds 
a recent bttv into the kernel source tree, and then hook that into
kernel-2.2.spec and build a customized kernel RPM that includes the new
bttv.

Incidently, with both 2.2.19 and 2.4.2 I've never managed to build a
working kernel in /usr/src/linux from the kernel-source RPM.  In order to
rebuild, I always seem to have to modify the spec file (and possibly add
some patches) and do an "rpm -bb" to construct a new kernel binary RPM.

This is what you want to do anyway for deploying to several machines, but
it really sucks for patching and debugging drivers.



> On 7.1 XFS, with the 2.4.2-SGI_XFS_1.0 kernel and bttv that came with it,
> xawtv seems to hang the system. I'm still working on this too....
 

I'd like to move to RedHat 7.1; please let me know if you get a solution
for bttv under 2.4.2.


Steve
 

--
Steve Tell  tell@xxxxxxxxxxxxxxx 





[Index of Archives]     [Linux DVB]     [Video Disk Recorder]     [Asterisk]     [Photo]     [DCCP]     [Netdev]     [Xorg]     [Util Linux NG]     [Xfree86]     [Free Photo Albums]     [Fedora Users]     [Fedora Women]     [ALSA Users]     [ALSA Devel]     [Linux USB]

Powered by Linux