LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Installing MythTV - hotplug firmware (https://www.linuxquestions.org/questions/linux-software-2/installing-mythtv-hotplug-firmware-407185/)

durrantj 01-23-2006 10:03 PM

Installing MythTV - hotplug firmware
 
I am installing MythTV and trying to follow the directions on

http://www.quietglow.com/docs/ubuntumythtv.html

I am almost done with Step One - setting up the drivers when I get the following message:

v4l-cx2341x-init.mpg needs copying to the hotplug firmware
directory if needed for PVR350 mpeg initialization

Any ideas what this means, since I am using a PVR150, not a PVR350 and where is the hotplug firmware directory?

TIA

durrantj 01-23-2006 10:23 PM

I should clarify what is happening, when I do the command 'dmesg', among other things I get:
[4294701.126000] ivtv: ==================== START INIT IVTV ====================
[4294701.126000] ivtv: version 0.4.2 (tagged release) loading
[4294701.126000] ivtv: Linux version: 2.6.12-10-386 386 gcc-3.4
[4294701.126000] ivtv: In case of problems please include the debug info between
[4294701.126000] ivtv: the START INIT IVTV and END INIT IVTV lines, along with
[4294701.126000] ivtv: any module options, when mailing the ivtv-users mailinglist.
[4294701.139000] ivtv0: Autodetected WinTV PVR 150 card (cx23416 based)
[4294701.143000] ACPI: PCI Interrupt 0000:00:11.0[A] -> Link [LNKC] -> GSI 3 (level, low) -> IRQ 3
[4294701.220000] tveeprom: ivtv version
[4294701.220000] tveeprom: Hauppauge: model = 26692, rev = B282, serial# = 7714463
[4294701.220000] tveeprom: tuner = LG TAPC H791F (idx = 82, type = 39)
[4294701.220000] tveeprom: tuner fmt = NTSC(M) (eeprom = 0x08, v4l2 = 0x00001000)
[4294701.220000] tveeprom: audio processor = CX25843 (type = 25)
[4294701.220000] tveeprom: decoder processor = CX25843 (type = 1e)
[4294701.220000] ivtv0: i2c attach to card #0 ok [client=tveeprom, addr=50]
[4294701.262000] input: ImPS/2 Generic Wheel Mouse on isa0060/serio1
[4294701.311000] tuner (ivtv): chip found at addr 0xc2 i2c-bus ivtv i2c driver #0
[4294701.311000] ivtv0: i2c attach to card #0 ok [client=(tuner unset), addr=61]
[4294701.746000] cx25840 0-0044: ivtv driver
[4294701.746000] cx25840 0-0044: cx25843-23 found @ 0x88 (ivtv i2c driver #0)
[4294702.357000] ts: Compaq touchscreen protocol output
[4294702.477000] cx25840 0-0044: unable to open firmware v4l-cx25840.fw
[4294702.526000] ivtv0: i2c attach to card #0 ok [client=cx25840, addr=44]
[4294702.631000] wm8775 0-001b: ivtv driver
[4294702.631000] wm8775 0-001b: chip found @ 0x36 (ivtv i2c driver #0)
[4294702.638000] ivtv0: i2c attach to card #0 ok [client=wm8775, addr=1b]
[4294703.390000] ivtv0: unable to open firmware v4l-cx2341x-enc.fw
[4294703.390000] ivtv0: did you put the firmware in the hotplug firmware directory?
[4294703.390000] ivtv0 warning: failed loading encoder firmware
[4294703.390000] ivtv0 warning: Error loading firmware -3!
[4294703.390000] ivtv0: Error -3 initializing firmware.
[4294703.433000] ivtv0: Error -12 on initialization
[4294703.434000] ivtv: probe of 0000:00:11.0 failed with error -12
[4294703.434000] ivtv: ==================== END INIT IVTV ===================

haertig 01-23-2006 10:36 PM

See the IVTV "General HowTo":

http://ivtvdriver.org/index.php/Howto

... and the IVTV specifics regarding firmware:

http://ivtvdriver.org/index.php/Firmware

For a PVR-150 you do NOT need v4l-cx2341x-dec.fw or v4l-cx2341x-init-mpeg.bin

The hotplug firmware directory may be different on different distributions. The firmware link above tells you how to find out where it is on your distro.

===== Stuff below this line may or may not apply to your situation =====

NOTE: IVTV hotplug did NOT work for me reliably on Debian SID running kernel 2.6.14-1-686. Check your /var/log/messages and/or /var/log/syslog to see if the same problem affects you. I had to comment out hotplug lines in the IVTV source code, recompile, and reinstall. Thus forcing IVTV to use the older non-hotplug method of loading firmware. YMMV. Here's what I had to do to disable hotplug, just in case you need to do the same.

Edit three files:
Code:

.../driver/cx25840.h
.../driver/ivtv-driver.h
.../driver/ivtv-firmware.c

Find all the lines that look like this:
Code:

#if defined(CONFIG_FW_LOADER) || defined(CONFIG_FW_LOADER_MODULE)
...and replace each one with:
Code:

#if 0
...then recompile and manually copy v4l-cx2341x-enc.fw and v4l-cx25840.fw to /lib/modules/. Symlinks to these files did NOT work from /lib/modules/. I had to actually copy the files.

haertig 01-23-2006 10:41 PM

It looks like you were posting at the same time I was typing my post above, so I hadn't seen your additional info from the logfile.

When I ran into entries like this:
Code:

unable to open firmware v4l-cx25840.fw
...it was because I had symlinks to the firmware files. Once I copied the ACTUAL FILES to the directory this error went away.

The error I was getting that meant hotplug was not working was something like:
Code:

unable to find firmware
Note "find" rather than "open" in the error message. I doesn't appear that you are running into this situation, so I assume your hotplug is basically working.

durrantj 01-24-2006 12:55 PM

I found this site:

http://ivtvdriver.org/index.php/Howto:Ubuntu

which appears to have the answer. I will try it out tonight or tomorrow.


All times are GMT -5. The time now is 06:21 AM.