From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from bsmtp.bon.at ([213.33.87.14]) by www.linuxtv.org with esmtp (Exim 4.63) (envelope-from ) id 1K9QSV-0004gN-J4 for linux-dvb@linuxtv.org; Thu, 19 Jun 2008 22:10:19 +0200 Message-ID: <485ABD03.7070602@schoeller-soft.net> Date: Thu, 19 Jun 2008 22:09:39 +0200 From: =?ISO-8859-1?Q?Michael_Sch=F6ller?= MIME-Version: 1.0 To: anton repko References: <200806131654.11715.dkuhlen@gmx.net> In-Reply-To: Cc: linux-dvb@linuxtv.org Subject: Re: [linux-dvb] Firmware extraction script for Pinnacle PCTV Sat Pro USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============0748699562==" Mime-version: 1.0 Sender: linux-dvb-bounces@linuxtv.org Errors-To: linux-dvb-bounces+mchehab=infradead.org@linuxtv.org List-ID: This is a multi-part message in MIME format. --===============0748699562== Content-Type: multipart/alternative; boundary="------------070007060407060801020108" This is a multi-part message in MIME format. --------------070007060407060801020108 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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 >: > > 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 < 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 < #include > 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 --------------070007060407060801020108 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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>:
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

--------------070007060407060801020108-- --===============0748699562== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ linux-dvb mailing list linux-dvb@linuxtv.org http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb --===============0748699562==--