public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
* [linux-dvb] Firmware extraction script for Pinnacle PCTV Sat Pro USB
@ 2008-06-13 12:31 anton repko
  2008-06-13 14:54 ` Dominik Kuhlen
  0 siblings, 1 reply; 4+ messages in thread
From: anton repko @ 2008-06-13 12:31 UTC (permalink / raw)
  To: linux-dvb


[-- Attachment #1.1: Type: text/plain, Size: 2024 bytes --]

Hi,
I extracted firmware for DVB-S Pinnacle PCTV Sat Pro USB (450e) from file on
installation cd:
/mnt/cdrom0/Driver/PCTV 4XXe/pctv4XXe.sys
I placed it also on my site:
http://www.natur.cuni.cz/~repko/fw/pctv4XXe.sys
because Pinnacle has some new driver, which I haven't tried yet:
http://cdn.pinnaclesys.com/SupportFiles/PCTV%20Drivers/PCTV%20400e,%20450e,%20452e/XP32.ZIP


#!/bin/bash
dd if=pctv4XXe.sys of=dvb-ttusb2-a.raw bs=8 skip=22287 count=1390
dd if=pctv4XXe.sys of=dvb-ttusb2-b.raw bs=8 skip=23682 count=1408
dd if=pctv4XXe.sys of=dvb-usb-pctv-400e-01.raw bs=8 skip=25093 count=1315
dd if=pctv4XXe.sys of=dvb-ttusb2-c.raw bs=8 skip=26411 count=1232
dd if=pctv4XXe.sys of=dvb-ttusb2-d.raw bs=8 skip=27646 count=1326
dd if=pctv4XXe.sys of=dvb-ttusb2-e.raw bs=8 skip=28975 count=1378
dd if=pctv4XXe.sys of=dvb-usb-pctv-450e-01.raw bs=8 skip=30356 count=1323
dd if=pctv4XXe.sys of=dvb-usb-pctv-452e-01.raw bs=8 skip=31682 count=1375

for i in *.raw; do
    j=$(echo $i | sed s/raw/fw/)
    ./convert $i $j
    rm $i
done

where "convert" is compiled (gcc convert.c -o convert) from following
"convert.c":
#include <stdio.h>
int main (int argc, char *argv[])
{
    FILE *raw, *fw;
    unsigned char buf[22];
    int n;
    raw = fopen (argv[1], "r");
    fw = fopen (argv[2], "w");
    while (fread (buf, 1, 22, raw) == 22) {
        fwrite (buf, 1, 1, fw);
        n = buf[0];
        buf[n+5] = 0xff;
        fwrite (&buf[2], 1, n+4, fw);
    }
    fclose (raw);
    fclose (fw);
    return 0;
}

There are also some "TechnoTrend TT-USB2" firmwares, which were not usable
with my hardware. Created dvb-usb-pctv-450e-01.fw is identical to already
used firmware. I copied dvb-usb-pctv-450e-01.fw to
/lib/firmware/dvb-usb-pctv-400e-01.fw and it was uploaded and worked
correctly.
You can download extracted firmwares from attachment or
http://www.natur.cuni.cz/~repko/fw/dvb-usb-pctv-400e-01.fw
http://www.natur.cuni.cz/~repko/fw/dvb-usb-pctv-450e-01.fw
http://www.natur.cuni.cz/~repko/fw/dvb-usb-pctv-452e-01.fw

trch

[-- Attachment #1.2: Type: text/html, Size: 2960 bytes --]

[-- Attachment #2: dvb-usb-pctv-450e-01.fw --]
[-- Type: application/octet-stream, Size: 8818 bytes --]

[-- Attachment #3: dvb-usb-pctv-452e-01.fw --]
[-- Type: application/octet-stream, Size: 9187 bytes --]

[-- Attachment #4: Type: text/plain, Size: 150 bytes --]

_______________________________________________
linux-dvb mailing list
linux-dvb@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [linux-dvb] Firmware extraction script for Pinnacle PCTV Sat Pro USB
  2008-06-13 12:31 [linux-dvb] Firmware extraction script for Pinnacle PCTV Sat Pro USB anton repko
@ 2008-06-13 14:54 ` Dominik Kuhlen
  2008-06-18 18:46   ` anton repko
  0 siblings, 1 reply; 4+ messages in thread
From: Dominik Kuhlen @ 2008-06-13 14:54 UTC (permalink / raw)
  To: linux-dvb


[-- Attachment #1.1: Type: text/plain, Size: 1139 bytes --]

Hi,
On Friday 13 June 2008, anton repko wrote:
> Hi,
> I extracted firmware for DVB-S Pinnacle PCTV Sat Pro USB (450e) from file on
> installation cd:
> /mnt/cdrom0/Driver/PCTV 4XXe/pctv4XXe.sys
> I placed it also on my site:
> http://www.natur.cuni.cz/~repko/fw/pctv4XXe.sys
> because Pinnacle has some new driver, which I haven't tried yet:
> http://cdn.pinnaclesys.com/SupportFiles/PCTV%20Drivers/PCTV%20400e,%20450e,%20452e/XP32.ZIP
> 
> 
> #!/bin/bash
> dd if=pctv4XXe.sys of=dvb-ttusb2-a.raw bs=8 skip=22287 count=1390
> dd if=pctv4XXe.sys of=dvb-ttusb2-b.raw bs=8 skip=23682 count=1408
> dd if=pctv4XXe.sys of=dvb-usb-pctv-400e-01.raw bs=8 skip=25093 count=1315
> dd if=pctv4XXe.sys of=dvb-ttusb2-c.raw bs=8 skip=26411 count=1232
> dd if=pctv4XXe.sys of=dvb-ttusb2-d.raw bs=8 skip=27646 count=1326
> dd if=pctv4XXe.sys of=dvb-ttusb2-e.raw bs=8 skip=28975 count=1378
> dd if=pctv4XXe.sys of=dvb-usb-pctv-450e-01.raw bs=8 skip=30356 count=1323
> dd if=pctv4XXe.sys of=dvb-usb-pctv-452e-01.raw bs=8 skip=31682 count=1375
Are you sure that the 450e does need a firmware?
I know that the 452e does not.

Dominik

[-- Attachment #1.2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 197 bytes --]

[-- Attachment #2: Type: text/plain, Size: 150 bytes --]

_______________________________________________
linux-dvb mailing list
linux-dvb@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [linux-dvb] Firmware extraction script for Pinnacle PCTV Sat Pro USB
  2008-06-13 14:54 ` Dominik Kuhlen
@ 2008-06-18 18:46   ` anton repko
  2008-06-19 20:09     ` Michael Schöller
  0 siblings, 1 reply; 4+ messages in thread
From: anton repko @ 2008-06-18 18:46 UTC (permalink / raw)
  To: linux-dvb


[-- Attachment #1.1: Type: text/plain, Size: 1898 bytes --]

Hi,
2008/6/13 Dominik Kuhlen <dkuhlen@gmx.net>:

> Are you sure that the 450e does need a firmware?
> I know that the 452e does not.
>
Yes, the 450e uses firmware of the 400e (the hardware seems to be
identical).

As the 400e firmware is rather hard to find, I send complete extraction
script for driver found on the Pinnacle site (new version; firmware is the
same):

#!/bin/bash
wget "
http://cdn.pinnaclesys.com/SupportFiles/PCTV%20Drivers/PCTV%20400e,%20450e,%20452e/XP32.ZIP
"
cat >XP32.md5 <<!hash!
ba0bc4d0f84bb9f419e9fbf90ef1ed9f  XP32.ZIP
!hash!
md5sum -c XP32.md5
if [ $? -ne 0 ]; then exit 1; fi
unzip -j XP32.ZIP XP/pctv4XXe.sys
# dd if=pctv4XXe.sys of=dvb-ttusb2-a.raw bs=8 skip=22703 count=1392
# dd if=pctv4XXe.sys of=dvb-ttusb2-b.raw bs=8 skip=24098 count=1408
dd if=pctv4XXe.sys of=dvb-usb-pctv-400e-01.raw bs=8 skip=25509 count=1315
# dd if=pctv4XXe.sys of=dvb-ttusb2-c.raw bs=8 skip=26827 count=1232
# dd if=pctv4XXe.sys of=dvb-ttusb2-d.raw bs=8 skip=28062 count=1326
# dd if=pctv4XXe.sys of=dvb-ttusb2-e.raw bs=8 skip=29391 count=1378
dd if=pctv4XXe.sys of=dvb-usb-pctv-450e-01.raw bs=8 skip=30772 count=1323
# dd if=pctv4XXe.sys of=dvb-usb-pctv-452e-01.raw bs=8 skip=32098 count=1375
cat >convert.c <<!conv!
#include <stdio.h>
int main (int argc, char *argv[])
{
    FILE *raw, *fw;
    unsigned char buf[22];
    int n;
    raw = fopen (argv[1], "r");
    fw = fopen (argv[2], "w");
    while (fread (buf, 1, 22, raw) == 22) {
        fwrite (buf, 1, 1, fw);
        n = buf[0];
        buf[n+5] = 0xff;
        fwrite (&buf[2], 1, n+4, fw);
    }
    fclose (raw);
    fclose (fw);
    return 0;
}
!conv!
gcc convert.c -o convert
for i in *.raw; do
    j=$(echo $i | sed s/raw/fw/)
    ./convert $i $j
    rm $i
done
cp dvb-usb-pctv-400e-01.fw /lib/firmware/
#   uncomment next line to use the 450e firmware
# cp dvb-usb-pctv-450e-01.fw /lib/firmware/dvb-usb-pctv-400e-01.fw

[-- Attachment #1.2: Type: text/html, Size: 2802 bytes --]

[-- Attachment #2: Type: text/plain, Size: 150 bytes --]

_______________________________________________
linux-dvb mailing list
linux-dvb@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [linux-dvb] Firmware extraction script for Pinnacle PCTV Sat Pro USB
  2008-06-18 18:46   ` anton repko
@ 2008-06-19 20:09     ` Michael Schöller
  0 siblings, 0 replies; 4+ messages in thread
From: Michael Schöller @ 2008-06-19 20:09 UTC (permalink / raw)
  To: anton repko; +Cc: linux-dvb


[-- Attachment #1.1: Type: text/plain, Size: 3101 bytes --]

Well I relay brought up my problem with my 452e...
I just want to ask since 400e and 450e needs firmware...maybe 452e needs 
firmware too (for whatever reason maybe only on ppc architecture) and 
thats my problem? Could that be possible? If yes how to I get firmware 
for 452e and look if that solves my problem?
Well if I look at dmesg after plug in my 452e the last line was:

usbcore: registered new interface driver dvb-usb-tt-connect-s2-3600-01.fw

looks like some firmware is loading maybe thats a wrong one, since I buyed my 452e last month there could be an little change to the hardware so that dvb-usb-tt-connect-s2-3600-01.fw is not workin anymore.
However I have no clue how to extract the firmware the right way so if that could do someone for me I would be very thankful

Michael


anton repko schrieb:
> Hi,
> 2008/6/13 Dominik Kuhlen <dkuhlen@gmx.net <mailto:dkuhlen@gmx.net>>:
>
>     Are you sure that the 450e does need a firmware?
>     I know that the 452e does not.
>
> Yes, the 450e uses firmware of the 400e (the hardware seems to be 
> identical).
>
> As the 400e firmware is rather hard to find, I send complete 
> extraction script for driver found on the Pinnacle site (new version; 
> firmware is the same):
>
> #!/bin/bash
> wget 
> "http://cdn.pinnaclesys.com/SupportFiles/PCTV%20Drivers/PCTV%20400e,%20450e,%20452e/XP32.ZIP"
> cat >XP32.md5 <<!hash!
> ba0bc4d0f84bb9f419e9fbf90ef1ed9f  XP32.ZIP
> !hash!
> md5sum -c XP32.md5
> if [ $? -ne 0 ]; then exit 1; fi
> unzip -j XP32.ZIP XP/pctv4XXe.sys
> # dd if=pctv4XXe.sys of=dvb-ttusb2-a.raw bs=8 skip=22703 count=1392
> # dd if=pctv4XXe.sys of=dvb-ttusb2-b.raw bs=8 skip=24098 count=1408
> dd if=pctv4XXe.sys of=dvb-usb-pctv-400e-01.raw bs=8 skip=25509 count=1315
> # dd if=pctv4XXe.sys of=dvb-ttusb2-c.raw bs=8 skip=26827 count=1232
> # dd if=pctv4XXe.sys of=dvb-ttusb2-d.raw bs=8 skip=28062 count=1326
> # dd if=pctv4XXe.sys of=dvb-ttusb2-e.raw bs=8 skip=29391 count=1378
> dd if=pctv4XXe.sys of=dvb-usb-pctv-450e-01.raw bs=8 skip=30772 count=1323
> # dd if=pctv4XXe.sys of=dvb-usb-pctv-452e-01.raw bs=8 skip=32098 
> count=1375
> cat >convert.c <<!conv!
> #include <stdio.h>
> int main (int argc, char *argv[])
> {
>     FILE *raw, *fw;
>     unsigned char buf[22];
>     int n;
>     raw = fopen (argv[1], "r");
>     fw = fopen (argv[2], "w");
>     while (fread (buf, 1, 22, raw) == 22) {
>         fwrite (buf, 1, 1, fw);
>         n = buf[0];
>         buf[n+5] = 0xff;
>         fwrite (&buf[2], 1, n+4, fw);
>     }
>     fclose (raw);
>     fclose (fw);
>     return 0;
> }
> !conv!
> gcc convert.c -o convert
> for i in *.raw; do
>     j=$(echo $i | sed s/raw/fw/)
>     ./convert $i $j
>     rm $i
> done
> cp dvb-usb-pctv-400e-01.fw /lib/firmware/
> #   uncomment next line to use the 450e firmware
> # cp dvb-usb-pctv-450e-01.fw /lib/firmware/dvb-usb-pctv-400e-01.fw
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> linux-dvb mailing list
> linux-dvb@linuxtv.org
> http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb


[-- Attachment #1.2: Type: text/html, Size: 4439 bytes --]

[-- Attachment #2: Type: text/plain, Size: 150 bytes --]

_______________________________________________
linux-dvb mailing list
linux-dvb@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-06-19 20:10 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-13 12:31 [linux-dvb] Firmware extraction script for Pinnacle PCTV Sat Pro USB anton repko
2008-06-13 14:54 ` Dominik Kuhlen
2008-06-18 18:46   ` anton repko
2008-06-19 20:09     ` Michael Schöller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox