pctv452e and TT-S2-3600 step-by-step howto
Subsystems (2)
Hi,
I have attached a step-by-step howto for these devices
Happy testing,
Dominik
# 20080607:
# tested with 2.6.23-gentoo-r3 kernel # need to have a bash (for here-documents)
# 1. Check for old drivers already loaded:
lsmod | grep dvb
# should output nothing # if it does: do # rmmod <modulename>
# =2= dowload, patch, config and build driver
mkdir pctv452e
cd pctv452e
hg clone http://jusst.de/hg/multiproto
wget -O pctv452e.patch.bz2 http://www.linuxtv.org/pipermail/linux-dvb/attachments/20080606/cc54743f/attachment-0001.obj
bunzip2 pctv452e.patch.bz2
patch -p0 < pctv452e.patch
cd multiproto
# create minimal config # use 'make menuconfig' to add more stuff if you want cat << EOF > v4l/.config CONFIG_INPUT=y CONFIG_USB=y CONFIG_PARPORT=m CONFIG_FW_LOADER=m CONFIG_NET=y CONFIG_SND_AC97_CODEC=m CONFIG_I2C=m CONFIG_STANDALONE=y CONFIG_SND_MPU401_UART=m CONFIG_SND=m CONFIG_MODULES=y CONFIG_HAS_IOMEM=y CONFIG_PROC_FS=y CONFIG_I2C_ALGOBIT=m CONFIG_INET=y CONFIG_CRC32=m CONFIG_FB=y CONFIG_SYSFS=y CONFIG_PCI=y CONFIG_SND_PCM=m CONFIG_PARPORT_1284=y CONFIG_EXPERIMENTAL=y CONFIG_VIRT_TO_BUS=y CONFIG_DVB_CORE=m CONFIG_DVB_CAPTURE_DRIVERS=y CONFIG_DVB_USB=m CONFIG_DVB_USB_PCTV452E=m CONFIG_DVB_STB0899=m CONFIG_DVB_STB6100=m CONFIG_DVB_LNBP22=m EOF
make
cd v4l
## verify:
# ls *.ko ## should list: ## dvb-core.ko dvb-usb-pctv452e.ko dvb-usb.ko lnbp22.ko stb0899.ko stb6100.ko
# need to be root at this point insmod ./dvb-core.ko insmod ./dvb-usb.ko insmod ./lnbp22.ko insmod ./stb0899.ko insmod ./stb6100.ko insmod ./dvb-usb-pctv452e.ko
# dmesg should show: dvb-usb: found a 'PCTV HDTV USB' in warm state. pctv452e_power_ctrl: 1 dvb-usb: will pass the complete MPEG2 transport stream to the software demuxer. DVB: registering new adapter (PCTV HDTV USB) pctv452e_frontend_attach Enter stb0899_get_dev_id: Device ID=[3], Release=[0] stb0899_get_dev_id: Demodulator Core ID=[DMD1], Version=[1] stb0899_get_dev_id: FEC Core ID=[FEC1], Version=[1] stb0899_attach: Attaching STB0899 lnbp22_set_voltage: 2 (18V=1 13V=0) lnbp22_set_voltage: 0x60) pctv452e_frontend_attach Leave Ok DVB: registering frontend 0 (STB0899 Multistandard)... pctv452e_tuner_attach Enter stb6100_attach: Attaching STB6100 pctv452e_tuner_attach Leave input: IR-receiver inside an USB DVB receiver as /class/input/input5 dvb-usb: schedule remote query interval to 100 msecs. pctv452e_power_ctrl: 0 dvb-usb: PCTV HDTV USB successfully initialized and connected. usbcore: registered new interface driver pctv452e usbcore: registered new interface driver dvb-usb-tt-connect-s2-3600-01.fw
# you can drop root privileges at this point.
ls -l /dev/dvb/adapter0/
# total 0 # crw-rw---- 1 root video 212, 4 Jun 7 15:37 demux0 # crw-rw---- 1 root video 212, 5 Jun 7 15:37 dvr0 # crw-rw---- 1 root video 212, 3 Jun 7 15:37 frontend0 # crw-rw---- 1 root video 212, 7 Jun 7 15:37 net0
cd ..
cd ..
# you should be in pctv452e dir created above
#
# simpledvbtune:
wget -O simpledvbtune.c.bz2 http://www.linuxtv.org/pipermail/linux-dvb/attachments/20080419/6a41e0b0/attachment-0002.bin
bunzip2 simpledvbtune.c.bz2
gcc -Imultiproto/linux/include simpledvbtune.c -o simpledvbtune
# try it: ./simpledvbtune -f 11954 # hit enter to refresh messages ./simpledvbtune -f 11915 -d 2
############################
# next scan tool:
wget http://jusst.de/manu/scan.tar.bz2
tar xjf scan.tar.bz2
cd scan
rm *.o *.d
# update to most recent API patch -p0 < ../scan_mp_fix.patch
# build the stuff make
# start scan: ./scan dvb-s/Astra-19.2E
#
# or do single channel scan with external tuning application (need two terminals for this): ./simpledvbtune -f 11915 -d 2 ./scan -c # output: #using '/dev/dvb/adapter0/frontend0' and '/dev/dvb/adapter0/demux0' #0x0000 0x0081: pmt_pid 0x0062 PREMIERE -- PREMIERE HD (running, scrambled) #0x0000 0x0082: pmt_pid 0x0063 PREMIERE -- DISCOVERY HD (running, scrambled) #0x0000 0x0084: pmt_pid 0x0065 BetaDigital -- ANIXE HD (running) #0x0000 0x0083: pmt_pid 0x0064 BetaDigital -- ASTRA HD+ (running) #dumping lists (4 services) #Done.
Makefile.my renamed from Makefile +1 -3
@@ -14,7 +14,7 @@ removing = atsc_psip_section.c atsc_psip_section.h -CPPFLAGS += -I/usr/include -DDATADIR=\"$(prefix)/share\" +CPPFLAGS += -I../multiproto/linux/include -DDATADIR=\"$(prefix)/share\" .PHONY: all
@@ -27,8 +27,6 @@ atsc_psip_section.c atsc_psip_section.h: perl section_generate.pl atsc_psip_section.pl -include ../../Make.rules - install:: @echo installing scan files @mkdir -p $(DESTDIR)$(sharedir)/dvb/atsc
scan.c.my renamed from scan.c +11 -27
@@ -1673,38 +1673,22 @@ return -1; } - struct dvbfe_info fe_info1; - - // a temporary hack, need to clean - memset(&fe_info1, 0, sizeof (struct dvbfe_info)); - - if(t->modulation_system == 0) - fe_info1.delivery = DVBFE_DELSYS_DVBS; - else if(t->modulation_system == 1) - fe_info1.delivery = DVBFE_DELSYS_DVBS2; + enum dvbfe_delsys delsys; + if(t->modulation_system == 0) { + delsys = DVBFE_DELSYS_DVBS;info("using DVB-S");} + else if(t->modulation_system == 1) { + delsys = DVBFE_DELSYS_DVBS2;info("using DVB-S2");} + else { + info("unsupported modulation system: %d\n", t->modulation_system); + return -1; + } - int result = ioctl(frontend_fd, DVBFE_GET_INFO, &fe_info1); + int result = ioctl(frontend_fd, DVBFE_SET_DELSYS, &delsys); if (result < 0) { - perror("ioctl DVBFE_GET_INFO failed"); + perror("ioctl DVBFE_SET_DELSYS failed"); t->last_tuning_failed = 1; return -1; } - - switch (fe_info1.delivery) { - case DVBFE_DELSYS_DVBS: - info("----------------------------------> Using '%s' DVB-S\n", fe_info.name); - break; - case DVBFE_DELSYS_DSS: - info("----------------------------------> Using '%s' DSS\n", fe_info.name); - break; - case DVBFE_DELSYS_DVBS2: - info("----------------------------------> Using '%s' DVB-S2\n", fe_info.name); - break; - default: - info("Unsupported Delivery system (%d)!\n", fe_info1.delivery); - t->last_tuning_failed = 1; - return -1; - } if (__tune_to_transponder (frontend_fd, t) == 0) return 0;
_______________________________________________
linux-dvb mailing list
[email protected]
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb
Приветствую, Dominik
Quoted 2 lines
Quoted 2 lines
# update to most recent API patch -p0 < ../scan_mp_fix.patch
where from does possible download this patch ?
did you try to use szap2 with this card for dvb-s2 channels ?
Signature · 8 lines
Удачи, Игорь _______________________________________________ linux-dvb mailing list [email protected] http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb
Quoted 9 lines · Dominik Kuhlen
Hi,
I have attached a step-by-step howto for these devices
Happy testing,
Dominik
Quoted 6 lines
------------------------------------------------------------------------
_______________________________________________
linux-dvb mailing list
[email protected]
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb
Well bad news...it's not working.
I try to notice any difference in my system to your description and well it's not much... My dmesg line:
stb0899_get_dev_id: Device ID=[3], Release=[1]
Your dmesg line:
stb0899_get_dev_id: Device ID=[3], Release=[0]
all other dmesg messages are identical.
next difference
ls -l /dev/dvb/adapter0/
# total 0 # crw------- 1 schomi root 212, 4 Jun 7 15:37 demux0 # crw------- 1 schomi root 212, 5 Jun 7 15:37 dvr0 # crw------- 1 schomi root 212, 3 Jun 7 15:37 frontend0 # crw------- 1 schomi root 212, 7 Jun 7 15:37 net0
well just do be sure I also tried chmod a+rw * but that didn't change anything. Well since schomi is my user I think that should be ok...
So now to the real problem...
./simpledvbtune -f 11954
using '/dev/dvb/adapter0/frontend0' as frontend frontend fd=3: type=0DVBFE_SET_DELSYS: Invalid argument
ioclt: FE_SET_VOLTAGE : 1
High band
tone: 1
dvbfe setparams : delsys=1 1354MHz / Rate : 27500kBPSDVBFE_SET_PARAMS: Invalid argument
tuning qpsk failed
@Dominik
By any chance do you live in austria and can visit me ^^.
Michael
_______________________________________________
linux-dvb mailing list
[email protected]
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb
Quoted 40 lines · Michael Schöller
Quoted 9 lines · Dominik Kuhlen
Hi,
I have attached a step-by-step howto for these devices
Happy testing,
DominikQuoted 6 lines
------------------------------------------------------------------------
_______________________________________________
linux-dvb mailing list
[email protected]
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvbWell bad news...it's not working.
I try to notice any difference in my system to your description and well it's not much...
My dmesg line:
stb0899_get_dev_id: Device ID=[3], Release=[1]Your dmesg line:
stb0899_get_dev_id: Device ID=[3], Release=[0]all other dmesg messages are identical.
next difference
ls -l
/dev/dvb/adapter0/# total 0 # crw------- 1 schomi root 212, 4 Jun 7 15:37 demux0 # crw------- 1 schomi root 212, 5 Jun 7 15:37 dvr0 # crw------- 1 schomi root 212, 3 Jun 7 15:37 frontend0 # crw------- 1 schomi root 212, 7 Jun 7 15:37 net0well just do be sure I also tried chmod a+rw * but that didn't change anything. Well since schomi is my user I think that should be ok...
Quoted 11 lines
So now to the real problem...
./simpledvbtune -f 11954
using '/dev/dvb/adapter0/frontend0' as frontend frontend fd=3: type=0DVBFE_SET_DELSYS: Invalid argument
ioclt:FE_SET_VOLTAGE: 1
High band
tone: 1
dvbfe setparams : delsys=1 1354MHz / Rate : 27500kBPSDVBFE_SET_PARAMS: Invalid argument
tuning qpsk failed
Hmm, this is strange. looks like you are using old drivers or old dvb-core module that doesn't support the new ioctls Did you load the modules with
insmod ./dvb-core.ko
insmod ./dvb-usb.ko
insmod ./lnbp22.ko
insmod ./stb0899.ko
insmod ./stb6100.ko
insmod ./dvb-usb-pctv452e.ko
to be sure that no old/other modules were used?
Quoted 3 lines
@Dominik
By any chance do you live in austria and can visit me ^^.
No, sorry I don't.
Quoted 5 lines
Michael
Dominik
_______________________________________________
linux-dvb mailing list
[email protected]
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb
Quoted 11 lines · Dominik Kuhlen
Hmm, this is strange. looks like you are using old drivers or old dvb-core module that doesn't support the new ioctls Did you load the modules with
insmod ./dvb-core.ko
insmod ./dvb-usb.ko
insmod ./lnbp22.ko
insmod ./stb0899.ko
insmod ./stb6100.ko
insmod ./dvb-usb-pctv452e.ko
to be sure that no old/other modules were used?
Yes, I did as described. I also checked if no old modules are loaded. Just do be sure I downloaded the newest kernel from the PS3-kernel tree and compiled it before following the step by step how to.
However the error is still the same.
Well I try a shoot into the blue and say this is a compatibility problem of the code with the ppc architecture. Since this is the only significant difference I can think of.
Michael
_______________________________________________
linux-dvb mailing list
[email protected]
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb
I did an other test and compiled an new kernel Version 2.6.26-rc5 from the ps3 kernel tree and disabled all video 4 linux and dvb support in the kernel. After that I dried that step by step howto again. With the same result. So I was thinking maybe thats exactly the wrong way and someone is missing...are there any optins in the "Device Driver->multimedia device" tabs that must be enabled so that the hole stuff works.
BTW I noticed an really odd message when compiling multiproto drivers. I don't know remember exactly but It goes something like "VIDEO PLANB: need at leas kernel version 2.6.99".
I hope someone can finally help me.
Michael
Quoted 18 lines · Michael Schöller
Quoted 11 lines · Dominik Kuhlen
Hmm, this is strange. looks like you are using old drivers or old dvb-core module that doesn't support the new ioctls Did you load the modules with
insmod ./dvb-core.ko
insmod ./dvb-usb.ko
insmod ./lnbp22.ko
insmod ./stb0899.ko
insmod ./stb6100.ko
insmod ./dvb-usb-pctv452e.ko
to be sure that no old/other modules were used?Yes, I did as described. I also checked if no old modules are loaded. Just do be sure I downloaded the newest kernel from the PS3-kernel tree and compiled it before following the step by step how to.
However the error is still the same.
Well I try a shoot into the blue and say this is a compatibility problem of the code with the ppc architecture. Since this is the only significant difference I can think of.
Quoted 7 lines
Michael
------------------------------------------------------------------------_______________________________________________
linux-dvb mailing list
[email protected]
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb
_______________________________________________
linux-dvb mailing list
[email protected]
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb
[linux-dvb] pctv452e + PS3 + PPC Linux(YDL, Fedora)
In reply to Michael SchöllerWell I just want to point out that my hole Problem with the pctv452e still exists.
Maybe after one month there is a solution now?
An exact problem description is found here
http://www.linuxtv.org/pipermail/linux-dvb/2008-June/026824.html
and
http://www.linuxtv.org/pipermail/linux-dvb/2008-June/026495.html
and
http://www.linuxtv.org/pipermail/linux-dvb/2008-June/026823.html
Michael
_______________________________________________
linux-dvb mailing list
[email protected]
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb
Maybe this is an hint that will enable you to find the problem. I just looked at the dmesg messages right after I tried ./simpledvbtune -f 11954 and well this are the messages:
pctv452e_power_ctrl: 1
ioctl32(simpledvbtune:5591): Unknown cmd fd(3) cmd(80046f57){t:'o';sz:4} arg(ff8c43e8) on /dev/dvb/adapter0/frontend0lnbp22_set_voltage: 1 (18V=1 13V=0)lnbp22_set_voltage: 0x72)
ioctl32(simpledvbtune:5591): Unknown cmd fd(3) cmd(80ac6f53){t:'o';sz:172} arg(ff8c433c) on /dev/dvb/adapter0/frontend0lnbp22_set_voltage: 2 (18V=1 13V=0)lnbp22_set_voltage: 0x60)pctv452e_power_ctrl: 0
Maybe that helps..
Oh I almost forgot. The leds on the Receiver. After loading the kernel modules they go from orange to green. After trying simpledvbtune they go from green to orange and never back.
Michael
Quoted 80 lines · Dominik Kuhlen
Quoted 41 lines · Michael Schöller
Quoted 9 lines · Dominik Kuhlen
Hi,
I have attached a step-by-step howto for these devices
Happy testing,
DominikQuoted 7 lines
------------------------------------------------------------------------
_______________________________________________
linux-dvb mailing list
[email protected]
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvbWell bad news...it's not working.
I try to notice any difference in my system to your description and well it's not much... My dmesg line:
stb0899_get_dev_id: Device ID=[3], Release=[1]Your dmesg line:
stb0899_get_dev_id: Device ID=[3], Release=[0]all other dmesg messages are identical.
next difference
ls -l
/dev/dvb/adapter0/# total 0 # crw------- 1 schomi root 212, 4 Jun 7 15:37 demux0 # crw------- 1 schomi root 212, 5 Jun 7 15:37 dvr0 # crw------- 1 schomi root 212, 3 Jun 7 15:37 frontend0 # crw------- 1 schomi root 212, 7 Jun 7 15:37 net0well just do be sure I also tried chmod a+rw * but that didn't change anything. Well since schomi is my user I think that should be ok...
Quoted 12 lines
So now to the real problem...
./simpledvbtune -f 11954
using '/dev/dvb/adapter0/frontend0' as frontend frontend fd=3: type=0DVBFE_SET_DELSYS: Invalid argument
ioclt:FE_SET_VOLTAGE: 1
High band
tone: 1
dvbfe setparams : delsys=1 1354MHz / Rate : 27500kBPSDVBFE_SET_PARAMS: Invalid argument
tuning qpsk failedHmm, this is strange. looks like you are using old drivers or old dvb-core module that doesn't support the new ioctls Did you load the modules with
insmod ./dvb-core.ko
insmod ./dvb-usb.ko
insmod ./lnbp22.ko
insmod ./stb0899.ko
insmod ./stb6100.ko
insmod ./dvb-usb-pctv452e.ko
to be sure that no old/other modules were used?Quoted 3 lines
@Dominik
By any chance do you live in austria and can visit me ^^.No, sorry I don't.
Quoted 5 lines
Michael
Dominik
Quoted 6 lines
------------------------------------------------------------------------
_______________________________________________
linux-dvb mailing list
[email protected]
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb
_______________________________________________
linux-dvb mailing list
[email protected]
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb