Mailing List archive

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

[linux-dvb] Re: Still getting segmentation faults when I modprobebttv



Hello Luke,

I've just finished my new attempt, starting again from scratch, mostly
following advice from Vincenzo Di Massa and Michael Hunold.

This is what I did:

1. Unpacked 2.4.23 kernel, configured with video4linux, i2c, etc.
2. Build kernel & modules & installed both
3. cvs co dvb-kernel
4. ran getlinks script in dvb-kernel
5. make in dvb-kernel/build-2.4
6. install in dvb-kernel/build-2.4
7. Booted up the new 2.4.23 TV kernel
8. Run dvb-nebula script to start modules.

BTW, I assume you don't have to be running the new kernel when you
"make install" in dvb-kernel/build-2.4?  I.e., steps 5 & 6 can be done
before step 7?
You need to boot the new kernel before doing anything with "dvb-kernel", ie. move step 7 up to before step 3.

"dvb-kernel" always compiles its modules against the currently running kernel by resolving the /lib/modules/<kernel-version>/build/ link.

So you have compiled the driver against your old running kernel and most likely some driver structures have changed, so bttv and the dvb-bt8x8 parts use different sizes for their basic structures.

(It's also possible that Vincenzo meant I should also do the extra steps
of unpacking bttv and patching it, and getting video4linux (2) and
making and installing that too.  But I did not unpack, build and install
video4linux-20031201.tar.gz - I just relied on what was in the released
2.4.23 kernel.)
The documentation is a little bit misleading, I admit. You definately need the "video4linux-xxxxyyzz.tar.gz" package from www.bytesex.org. You need to compile in all requirements for the in-kernel 2.4.23 bttv driver (that is i2c interface and i2c bitbanging stuff), so that the external driver can be compiled and run, too.

I also get this error from "make install" in dvb-kernel/build-2.4
depmod: *** Unresolved symbols in /lib/modules/2.4.23-tv/misc/dvb-bt8xx.o
That's not good. "depmod -ae" will show you the symbols that are missing. If everything fits together, no symbols should be unresolved, of course.

# ./dvb-nebula start
Inserting DVB modules into kernel./dvb-nebula: line 41:  1773 Segmentation fault
      modprobe bttv

And modprobe appears to have hung, so I'll need to reboot after I send
this email.

But the dvb-nebula script doesn't appear to pass the card parameter (I
note that 104 = 0x68).  Does that matter?  If such a parameter is
needed for the modprobe, I think it would have to be added to
/etc/modules.conf, wouldn't it?
If you have "make install"ed the driver, you don't have to use the insmod script. Try it manually, so you can monitor the syslog to see what's actually happening.

Simply load the basic modules via modprobe:

> modprobe bttv card=0x68 i2c_hw=1
> modprobe dvb-bt8xx
> modprobe nxt6000

luke
CU
Michael.



--
Info:
To unsubscribe send a mail to ecartis@linuxtv.org with "unsubscribe linux-dvb" as subject.



Home | Main Index | Thread Index