diff options
author | Andrew de Quincy <devnull@localhost> | 2004-08-26 18:05:18 +0000 |
---|---|---|
committer | Andrew de Quincy <devnull@localhost> | 2004-08-26 18:05:18 +0000 |
commit | 62525e8bd6a4a521756045e14978c17d80191ec0 (patch) | |
tree | 3ecab82ce913101c2a1c011f91be6d29e5cad9a2 /linux/Documentation | |
parent | 743c0cb9646b60661e2b69252bd823ce1c4d849f (diff) | |
download | mediapointer-dvb-s2-62525e8bd6a4a521756045e14978c17d80191ec0.tar.gz mediapointer-dvb-s2-62525e8bd6a4a521756045e14978c17d80191ec0.tar.bz2 |
Updated docs for new firmware download script
Diffstat (limited to 'linux/Documentation')
-rw-r--r-- | linux/Documentation/dvb/avermedia.txt | 26 | ||||
-rw-r--r-- | linux/Documentation/dvb/firmware.txt | 160 | ||||
-rw-r--r-- | linux/Documentation/dvb/readme.txt | 6 | ||||
-rw-r--r-- | linux/Documentation/dvb/ttusb-dec.txt | 31 | ||||
-rw-r--r-- | linux/Documentation/dvb/vp7041.txt | 25 |
5 files changed, 14 insertions, 234 deletions
diff --git a/linux/Documentation/dvb/avermedia.txt b/linux/Documentation/dvb/avermedia.txt index 5d8dbdada..09020ebd2 100644 --- a/linux/Documentation/dvb/avermedia.txt +++ b/linux/Documentation/dvb/avermedia.txt @@ -6,7 +6,6 @@ HOWTO: Get An Avermedia DVB-T working under Linux Assumptions and Introduction The Avermedia DVB-T Getting the card going - Getting the Firmware Receiving DVB-T in Australia Known Limitations Further Update @@ -149,28 +148,9 @@ Getting the card going to start accessing the card with utilities such as scan, tzap, dvbstream etc. - The current version of the frontend module sp887x.o, contains - no firmware drivers?, so the first time you open it with a DVB - utility the driver will try to download some initial firmware - to the card. You will need to download this firmware from the - web, or copy it from an installation of the Windows drivers - that probably came with your card, before you can use it. - - The default Linux filesystem location for this firmware is - /usr/lib/hotplug/firmware/sc_main.mc . - _________________________________________________________ - -Getting the Firmware - - As the firmware for the card is no longer contained within the - driver, it is necessary to extract it from the windows - drivers. - - The Windows drivers for the Avermedia DVB-T can be obtained - from: http://babyurl.com/H3U970 and you can get an application - to extract the firmware from: - http://www.kyz.uklinux.net/cabextract.php. - _________________________________________________________ + The frontend module sp887x.o, requires an external firmware. + Please use the command "get_dvb_firmware sp887x" to download + it. Then copy it to /usr/lib/hotplug/firmware. Receiving DVB-T in Australia diff --git a/linux/Documentation/dvb/firmware.txt b/linux/Documentation/dvb/firmware.txt deleted file mode 100644 index d97852d32..000000000 --- a/linux/Documentation/dvb/firmware.txt +++ /dev/null @@ -1,160 +0,0 @@ -Some DVB cards and many newer frontends require proprietary, -binary-only firmware. - -The DVB drivers will be converted to use the request_firmware() -hotplug interface (see linux/Documentation/firmware_class/). -(CONFIG_FW_LOADER) - -The firmware can be loaded automatically via the hotplug manager -or manually with the steps described below. - -Currently the drivers still use various different methods -to load their firmwares, so here's just a short list of the -current state: - -Drivers using the firmware hotplug interface: -- dvb-ttpci -- tda1004x: - -Proprietary solutions which need to be converted: -- ttusb-budget: firmware is compiled in (dvb-ttusb-dspbootcode.h) -- sp887x: firmware is compiled in (sp887x_firm.h) -- alps_tdlb7: firmware is loaded from path specified by - "mcfile" module parameter; the binary must be - extracted from the Windows driver (Sc_main.mc). -- ttusb-dec: see "ttusb-dec.txt" for details -- vp7041: see vp7041.txt for more information - -0) Getting a usable firmware file - -- For the dvb-ttpci driver/av7110 card you can download the firmware files from -http://linuxtv.org/download/dvb/firmware/ - -Please note that in case of the dvb-ttpci driver this is *not* the "Root" -file you probably know from the 2.4 DVB releases driver. - -The ttpci-firmware utility from linuxtv.org CVS can be used to -convert Dpram and Root files into a usable firmware image. -See dvb-kerrnel/scripts/ in http://linuxtv.org/cvs/. - -> wget http://www.linuxtv.org/download/dvb/firmware/dvb-ttpci-01.fw-261c -> mv dvb-ttpci-01.fw-261c /usr/lib/hotplug/firmware/dvb-ttpci-01.fw - -- The tda1004x driver needs a copy of the DLL "ttlcdacc.dll" from the Haupauge or Technotrend -windows driver. Currently the DLL from v2.15a of the technotrend driver is supported. Other versions can -added reasonably painlessly. - -Windows driver URL: http://www.technotrend.de/ - -> wget http://www.technotrend.de/new/215/TTweb_215a_budget_20_05_2003.zip -> unzip -j TTweb_215a_budget_20_05_2003.zip Software/Oem/PCI/App/ttlcdacc.dll - -Rename "ttlcdacc.dll" to "tda1004x.bin" -- that's currently the default name -for the firmware file. - -1) Automatic firmware loading - -You need to install recent hotplug scripts if your distribution did not do it -for you already, especially the /etc/hotplug/firmware.agent. -http://linux-hotplug.sourceforge.net/ (Call /sbin/hotplug without arguments -to find out if the firmware agent is installed.) - -The firmware.agent script expects firmware binaries in -/usr/lib/hotplug/firmware/. To avoid naming and versioning -conflicts we propose the following naming scheme: - - /usr/lib/hotplug/firmware/dvb-{driver}-{ver}.fw for MPEG decoders etc. - /usr/lib/hotplug/firmware/dvb-fe-{driver}-{ver}.fw for frontends - - {driver} name is the basename of the driver kernel module (e.g. dvb-ttpci) - {ver} is a version number/name that should change only when the - driver/firmware internal API changes (so users are free to install the - latest firmware compatible with the driver). - -Currently the drivers mentionend above support firmware upload through the -hotplug manager. If you have such a card, a simple "modprobe" of the driver -will take care of everything, ie. - -> modprobe dvb-ttpci -or -> modprobe tda1004x - -If you have the hotplug firmware scripts installed, both drivers will ask the hotplug -daemon for their default firmware. If the scripts are there, but the firmware cannot -be found, an error message will be printed immediately. Make sure that the firmware -are in a path where the hotplug manager can find them. - -Please note that the default firmware name of the tda1004x doesn't follow the -naming conventions stated above. It's still called "tda1004x.bin". - -2) Manually loading the firmware into a driver - -Step a) Mount sysfs-filesystem. - -Sysfs provides a means to export kernel data structures, their attributes, -and the linkages between them to userspace. - -For detailed informations have a look at Documentation/filesystems/sysfs.txt -All you need to know at the moment is that firmware loading only works through -sysfs. - -> mkdir /sys -> mount -t sysfs sysfs /sys - -Step b) Exploring the firmware loading facilities - -Firmware_class support is located in -/sys/class/firmware - -> dir /sys/class/firmware - -The "timeout" values specifies the amount of time that is waited before the -firmware upload process is cancelled. The default values is 10 seconds. If -you use a hotplug script for the firmware upload, this is sufficient. If -you want to upload the firmware by hand, however, this might be too fast. - -> echo "180" > /sys/class/firmware/timeout - -Step c) Loading the driver and uploading the firmware manually - -"modprobe" will take care that every needed module will be loaded -automatically - -> modprobe dvb-ttpci -or -> modprobe tda1004x - -If you don't have the hotplug subsystem running, the "modprobe" process will -now hang until -a) you upload the firmware or -b) the timeout occurs. - -Change to another terminal and have a look at - -> dir /sys/class/firmware/ - -total 0 -drwxr-xr-x 2 root root 0 Jul 29 11:00 0000:03:05.0 --rw-r--r-- 1 root root 0 Jul 29 10:41 timeout - -"0000:03:05.0" is the id of the device that needs an firmware upload. - -In this example, this is the pci id of my dvb-c card. It depends on the pci slot, -so it changes if you plug the card to different slots. For the tda1004x, -the id will be an artifical number consisting on the i2c bus the device is on. - -You can upload the firmware like that: - -> export DEVDIR=/sys/class/firmware/0000\:03\:05.0 -> echo 1 > $DEVDIR/loading - -For the dvb-ttpci card: -> cat dvb-ttpci-01.fw > $DEVDIR/data - -For the tda1004x frontend, the path above might be different, but the other things -are the same: -> cat tda1004x.bin > $DEVDIR/data - -> echo 0 > $DEVDIR/loading - -That's it. The driver should be up and running now. diff --git a/linux/Documentation/dvb/readme.txt b/linux/Documentation/dvb/readme.txt index 727e30470..b308a7962 100644 --- a/linux/Documentation/dvb/readme.txt +++ b/linux/Documentation/dvb/readme.txt @@ -28,9 +28,9 @@ is the who-is-who of DVB development "faq.txt" contains frequently asked questions and their answers. -"firmware.txt" -contains informations for required external firmware -files and where to get them. +"get_dvb_firmware" +script to download and extract firmware for those devices +that require it. "ttusb-dec.txt" contains detailed informations about the diff --git a/linux/Documentation/dvb/ttusb-dec.txt b/linux/Documentation/dvb/ttusb-dec.txt index 485dab5ad..5c1e984c2 100644 --- a/linux/Documentation/dvb/ttusb-dec.txt +++ b/linux/Documentation/dvb/ttusb-dec.txt @@ -23,34 +23,17 @@ To Do: Getting the Firmware -------------------- -The firmware can be found in the software update zip files on this page: -http://www.hauppauge.de/sw_dec.htm - -The firmwares are named as follows: -DEC2000-t: STB_PC_T.bin -DEC2540-t: STB_PC_X.bin -DEC3000-s: STB_PC_S.bin - -Note that firmwares since version 2.16 beta2 for the DEC2000-t give the device -the USB ID of the DEC3000-s. The driver copes with this. - -Instructions follow for retrieving version 2.16 of the firmware: - -wget http://hauppauge.lightpath.net/de/dec216.exe -unzip -j dec216.exe software/OEM/STB/App/Boot/STB_PC_T.bin -unzip -j dec216.exe software/OEM/STB/App/Boot/STB_PC_X.bin -unzip -j dec216.exe software/OEM/STB/App/Boot/STB_PC_S.bin +To download the firmware, use the following commands: +"get_dvb_firmware dec2000t" +"get_dvb_firmware dec2540t" +"get_dvb_firmware dec3000s" Compilation Notes for 2.4 kernels --------------------------------- For 2.4 kernels the firmware for the DECs is compiled into the driver itself. -The firmwares are expected to be in the build-2.4 directory at compilation -time. -mv STB_PC_T.bin build-2.4/dvb-ttusb-dec-2000t.fw -mv STB_PC_X.bin build-2.4/dvb-ttusb-dec-2540t.fw -mv STB_PC_S.bin build-2.4/dvb-ttusb-dec-3000s.fw +Copy the three files downloaded above into the build-2.4 directory. Hotplug Firmware Loading for 2.6 kernels @@ -58,6 +41,4 @@ Hotplug Firmware Loading for 2.6 kernels For 2.6 kernels the firmware is loaded at the point that the driver module is loaded. See linux/Documentation/dvb/firmware.txt for more information. -mv STB_PC_T.bin /usr/lib/hotplug/firmware/dvb-ttusb-dec-2000t.fw -mv STB_PC_X.bin /usr/lib/hotplug/firmware/dvb-ttusb-dec-2540t.fw -mv STB_PC_S.bin /usr/lib/hotplug/firmware/dvb-ttusb-dec-3000s.fw +Copy the three files downloaded above into the /usr/lib/hotplug/firmware directory. diff --git a/linux/Documentation/dvb/vp7041.txt b/linux/Documentation/dvb/vp7041.txt index fe8ddae14..a706f3be5 100644 --- a/linux/Documentation/dvb/vp7041.txt +++ b/linux/Documentation/dvb/vp7041.txt @@ -65,29 +65,8 @@ the hotplug-path) needn't match your system, but probably it will :). First of all you have to extract the firmware from the windows driver: -Therefore "Peter Schildmann" originally wrote a shell script, I adopted -it to a Perl script for easier supporting different firmware version. -The firmware extract script can be found inside the dvb-kernel-cvs -(script/vp7041_extract_firmware.pl). - -If you want to extract the firmware, you have to run the script like this: - -perl vp7041_extract_firmware.pl <driverfile> <fw-destination-path> - -The driverfile can be found in the windows driver package. As of version -2.42 the windows driver the file is called "UDTTload.sys", older (but -working) versions have "twinload.sys" respectively . (On a -windows system, where the driver is in use, it can be found in -\PathtoWindows\System32\drivers) -The name of the firmware-file for linux has to be "dvb-vp7041-<ver>.fw" -(the script cares about). -The firmware has to be put into /usr/lib/hotplug/firmware (As I said -Debian). - -If you figured out the driver file extract the firmware: - -perl vp7041_extract_firmware.pl /path/to/UDTTload.sys \ - /usr/lib/hotplug/firmware +Please use the command "get_dvb_firmware vp7041" to download and extract the +firmware. Then copy it to /usr/lib/hotplug/firmware. 1.2. Compiling |