[mythtv-users] ivtv, CLE266 module load order error

Mike Hicks hick0088 at tc.umn.edu
Wed Oct 15 17:05:47 EDT 2003


On Wed, 2003-10-15 at 08:31, Derek Anderson wrote:
> 	alias char-major-81 videodev
> 	alias char-major-81-0 via_v4l_drv
> 	alias char-major-81-1 via_v4l_drv
> 	alias char-major-81-2 via_v4l_drv
> 
> 	alias char-major-81-3 ivtv
> 	alias char-major-61 lirc_i2c
> 	options ivtv #debug=1
> 	options tuner type=2
> 	options msp3400 once=1 simple=1
> 	add below ivtv msp3400 saa7115 tuner
> 	add above ivtv lirc_dev lirc_i2c
> 
> well, it appears that this is working simply by coincidence.  (at least 
> on my box)  when i moved starting mythbackend to init.d, mythbackend 
> starts before xfree.  this causes ivtv to be loaded before via_v4l_drv. 
>   and low and behold, ivtv was still grabbing video0.

Yeah, that's normal behavior for Linux kernel modules.  The first driver
takes /dev/video0 (or /dev/sda, or eth0, etc), and the second driver to
load takes the next available slot.

The answer lies with putting "via_v4l_drv" in one of the "add above" or
"add below" lines, forcing that driver to load before the ivtv driver. 
I can never remember how those work exactly, so you'll have to try them
each way (I'm guessing you can just tack it onto the "add below" line,
though)

Otherwise, many people do what you mentioned, and just force the drivers
to load in the proper order through a boot script..

-- 
 _  _  _  _ _  ___    _ _  _  ___ _ _  __   Okay, who stopped the
/ \/ \(_)| ' // ._\  / - \(_)/ ./| ' /(__   payment on my reality
\_||_/|_||_|_\\___/  \_-_/|_|\__\|_|_\ __)  check?
[ Mike Hicks | http://umn.edu/~hick0088/ | mailto:hick0088 at tc.umn.edu ]
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://mythtv.org/pipermail/mythtv-users/attachments/20031015/6400d658/attachment.pgp


More information about the mythtv-users mailing list