From: Hendrik Oenings <debian@oenings.de>
To: Olli Salonen <olli.salonen@iki.fi>
Cc: Mailinglist linux-media <linux-media@vger.kernel.org>
Subject: Re: dvb-s2 card "TeVii S472" (cx23885)
Date: Wed, 27 Apr 2016 21:39:34 +0200 [thread overview]
Message-ID: <20160427213934.184bc70d@spock> (raw)
In-Reply-To: <CAAZRmGyDAhE6caz+wmJySQ-xjESiE5-=h9YCE7VamHxXNV8sBQ@mail.gmail.com>
Hi together,
I tried to recompile with the newest media_tree, so I just copied your
modifications to the new media_tree. (I also refetched the media_build.)
It wasn't very helpful, but I've seen that there is a kernel
error message (which was there before too, but I hadn't seen it because
I worked on X).
$ su -c "modprobe cx23885"
modprobe: ERROR: could not insert 'cx23885': Exec format error
$ dmesg
...
[XXXXXX.XXXXXX] frame_vector: exports duplicate symbol
frame_vector_create (owned by kernel)
I've looked up the reason for the re-export and I have seen that
frame_vector was built as an module, but is compiled into the kernel.
Changing this in the ./media/v4l/.config from m to y worked, so I can
now load the module.
The kernel message is gone away, but there is another problem now,
dmesg says and w_scan doesn't work either:
[XXX] m88ds3103 7-0068: found a 'Montage Technology M88DS3103' in cold
state
[XXX] m88ds3103 7-0068: downloading firmware from file
'dvb-demod-m88ds3103.fw'
[XXX] m88ds3103 7-0068: firmware did not run
I've copied the firmware as suggested to /lib/firmware.
Regards,
Hendrik
Am Tue, 26 Apr 2016 09:03:24 +0300
schrieb Olli Salonen <olli.salonen@iki.fi>:
> Hi Hendrik, Hans,
>
> My media_tree Hendrik is pulling from Github is just a rather recent
> copy of the media_tree master branch on git.linuxtv.org (it's missing
> like the last 10 patches that have been added within the last 24
> hours) with 2 simple patches on top that should not break anything.
>
> Also, the media_build is recent, since you just cloned it.
>
> Hans, do you know if there are any known issues with the current
> media_build/media_tree on certain kernels?
>
> Thanks.
>
> Cheers,
> -olli
>
> On 25 April 2016 at 19:14, Hendrik Oenings <debian@oenings.de> wrote:
> > Hi Olli,
> >
> > I've tested the driver, it compiles well and I've installed it on my
> > system.
> > But there's a problem: Everytime I try to load the driver (exact:
> > the module cx23885), modprobe (or insmod) is giving me the
> > following: # modprobe cx23885
> > modprobe: ERROR: could not insert 'cx23885': Exec format error
> >
> > I've also tried to compile it with the current 4.6er kernel, but it
> > stays the same.
> > $ uname -r
> > 4.6.0-rc5
> >
> > I've also tried to recompile the driver, but it didn't help.
> >
> > Maybe it is important to mention that some patches fail at the
> > beginning of the build process (pr_fmt, debug).
> >
> > The installed module seems to be correct file format (my arch is
> > x86_64):
> > $ file \
> > /lib/modules/4.6.0-rc5/kernel/drivers/media/pci/cx23885/cx23885.ko
> >
> > /lib/modules/4.6.0-rc5/kernel/drivers/media/pci/cx23885/cx23885.ko:
> > ELF 64-bit LSB relocatable, x86-64, version 1 (SYSV),
> > BuildID[sha1]=07a3f2f2fe383ab691b0022568dcd4d8315dc4b8, not stripped
> >
> > Regards,
> > Hendrik
> >
> > On Mo, 25 Apr 2016 11:56:37 +0300, Olli Salonen
> > <olli.salonen@iki.fi> wrote:
> >
> >> Hello Hendrik,
> >>
> >> I've created an initial version of the driver.
> >> https://github.com/trsqr/media_tree/commit/b59f25b18bbe84e009618eefeaf646f5939bdd53
> >>
> >> To build, do the following:
> >>
> >> git clone git://linuxtv.org/media_build.git
> >> git clone --depth=1 https://github.com/trsqr/media_tree.git -b
> >> s472 ./media cd media_build
> >> make dir DIR=../media
> >> make distclean
> >> make
> >>
> >> To install after a successful build:
> >>
> >> sudo make install
> >>
> >> Download also the following firmware and place it in /lib/firmware:
> >> http://palosaari.fi/linux/v4l-dvb/firmware/M88DS3103/3.B/
> >>
> >> The thing is, I had to guess the following parameters in
> >> drivers/media/pci/cx23885/cx23885-dvb.c file:
> >>
> >> +static const struct m88ds3103_config tevii_s472_m88ds3103_config
> >> = {
> >> + .i2c_addr = 0x68,
> >> + .clock = 27000000,
> >> + .i2c_wr_max = 33,
> >> + .clock_out = 0,
> >> + .ts_mode = M88DS3103_TS_PARALLEL,
> >> + .ts_clk = 16000,
> >> + .ts_clk_pol = 0,
> >> + .lnb_en_pol = 0,
> >> + .lnb_hv_pol = 1,
> >> + .agc = 0x99,
> >> +};
> >>
> >> If the driver does not work (it loads and appears to tune, but does
> >> not find channels), try altering ts_clk_pol, lnb_en_pol and
> >> lnb_hv_pol. The possible values are 1 and 0 so there should not be
> >> that many iterations needed.. Current values are based on best
> >> guess.
> >>
> >> Cheers,
> >> -olli
> >>
> >>
> >>
> >> On 24 April 2016 at 19:00, Hendrik Oenings <debian@oenings.de>
> >> wrote:
> >> > Hi Olli,
> >> >
> >> > I'm glad that there is someone trying to help me and of course
> >> > I'm able to test a driver.
> >> >
> >> > Because of the attached photos, I think it is better not to send
> >> > this mail to the mailing list.
> >> >
> >> > cx23885, m88ds3103 and m88ts2022 are the values I also think
> >> > they're correct. cx23885 is also mentioned by lspci, the other
> >> > values I've also seen often while searching for a solution.
> >> >
> >> > Here is also the full output of lspci concerning the tv card
> >> > which is probably helpful.
> >> > # lspci -vv
> >> > [...]
> >> > 03:00.0 Multimedia video controller: Conexant Systems, Inc.
> >> > CX23885 PCI Video and Audio Decoder (rev 04) Subsystem: Device
> >> > d472:9022 Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV-
> >> > VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx- Status: Cap+
> >> > 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort-
> >> > <MAbort- >SERR- <PERR- INTx- Latency: 0, Cache Line Size: 64
> >> > bytes Interrupt: pin A routed to IRQ 19 Region 0: Memory at
> >> > f7c00000 (64-bit, non-prefetchable) [size=2M] Capabilities: [40]
> >> > Express (v1) Endpoint, MSI 00 DevCap: MaxPayload 128 bytes,
> >> > PhantFunc 0, Latency L0s <64ns, L1 <1us ExtTag- AttnBtn-
> >> > AttnInd- PwrInd- RBE- FLReset- DevCtl: Report errors:
> >> > Correctable- Non-Fatal- Fatal- Unsupported- RlxdOrd- ExtTag-
> >> > PhantFunc- AuxPwr- NoSnoop+ MaxPayload 128 bytes, MaxReadReq 512
> >> > bytes DevSta: CorrErr- UncorrErr- FatalErr- UnsuppReq-
> >> > AuxPwr- TransPend- LnkCap: Port #0, Speed 2.5GT/s, Width x1,
> >> > ASPM L0s L1, Exit Latency L0s <2us, L1 <4us ClockPM- Surprise-
> >> > LLActRep- BwNot- ASPMOptComp- LnkCtl: ASPM Disabled; RCB 64
> >> > bytes Disabled- CommClk+ ExtSynch- ClockPM- AutWidDis- BWInt-
> >> > AutBWInt- LnkSta: Speed 2.5GT/s, Width x1, TrErr- Train-
> >> > SlotClk+ DLActive- BWMgmt- ABWMgmt- Capabilities: [80] Power
> >> > Management version 2 Flags: PMEClk- DSI+ D1+ D2+ AuxCurrent=0mA
> >> > PME(D0+,D1+,D2+,D3hot+,D3cold-) Status: D0 NoSoftRst- PME-Enable-
> >> > DSel=0 DScale=0 PME- Capabilities: [90] Vital Product Data
> >> > Product Name: "
> >> > End
> >> > Capabilities: [a0] MSI: Enable- Count=1/1 Maskable-
> >> > 64bit+ Address: 0000000000000000 Data: 0000
> >> > Capabilities: [100 v1] Advanced Error Reporting
> >> > UESta: DLP- SDES- TLP- FCP- CmpltTO- CmpltAbrt-
> >> > UnxCmplt- RxOF- MalfTLP- ECRC- UnsupReq- ACSViol- UEMsk:
> >> > DLP- SDES- TLP- FCP- CmpltTO- CmpltAbrt- UnxCmplt- RxOF-
> >> > MalfTLP- ECRC- UnsupReq- ACSViol- UESvrt: DLP+ SDES- TLP-
> >> > FCP+ CmpltTO- CmpltAbrt- UnxCmplt- RxOF+ MalfTLP+ ECRC-
> >> > UnsupReq- ACSViol- CESta: RxErr- BadTLP- BadDLLP- Rollover-
> >> > Timeout- NonFatalErr- CEMsk: RxErr- BadTLP- BadDLLP- Rollover-
> >> > Timeout- NonFatalErr- AERCap: First Error Pointer: 00, GenCap-
> >> > CGenEn- ChkCap- ChkEn- Capabilities: [200 v1] Virtual Channel
> >> > Caps: LPEVC=0 RefClk=100ns PATEntryBits=1 Arb: Fixed+
> >> > WRR32+ WRR64+ WRR128- Ctrl: ArbSelect=WRR64 Status: InProgress-
> >> > Port Arbitration Table [240] <?>
> >> > VC0: Caps: PATOffset=00 MaxTimeSlots=1
> >> > RejSnoopTrans- Arb: Fixed- WRR32- WRR64- WRR128- TWRR128-
> >> > WRR256- Ctrl: Enable+ ID=0 ArbSelect=Fixed
> >> > TC/VC=01 Status: NegoPending- InProgress-
> >> > Kernel driver in use: cx23885
> >> > Kernel modules: cx23885
> >> > [...]
> >> >
> >> > Regards,
> >> > Hendrik
> >> >
> >> > On Sun, 24 Apr 2016 08:34:14 +0300
> >> > Olli Salonen <olli.salonen@iki.fi> wrote:
> >> >> Hi Hendrik,
> >> >>
> >> >> Can you take a high resolution picture of the device? I can
> >> >> build you a test driver if you're able to try it out for me?
> >> >>
> >> >> I believe it's CX23885, M88DS3103 and M88TS2022, but it could be
> >> >> good if you can check.
> >> >>
> >> >> Cheers,
> >> >> -olli
> >> >>
> >> >> On 23 April 2016 at 15:51, Hendrik Oenings <debian@oenings.de>
> >> >> wrote:
> >> >> > Hi all,
> >> >> >
> >> >> > I'm trying to use the dvb-s2 pci-express card "TeVii S472"
> >> >> > with the linux kernel. I haven't found a usable driver until
> >> >> > now, but I've seen that the previous cards (S471, S470) are
> >> >> > supported by the current linux kernel. The driver from the
> >> >> > manufacturer's site is more than one year old and doesn't
> >> >> > compile with current kernels.
> >> >> >
> >> >> > I'd be grateful for any information or ideas.
> >> >> >
> >> >> > Regards,
> >> >> > Hendrik
> >> >> > --
> >> >> > To unsubscribe from this list: send the line "unsubscribe
> >> >> > linux-media" in the body of a message to
> >> >> > majordomo@vger.kernel.org More majordomo info at
> >> >> > http://vger.kernel.org/majordomo-info.html
> >> >
> >
> > --
> > To unsubscribe from this list: send the line "unsubscribe
> > linux-media" in the body of a message to majordomo@vger.kernel.org
> > More majordomo info at http://vger.kernel.org/majordomo-info.html
> --
> To unsubscribe from this list: send the line "unsubscribe
> linux-media" in the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2016-04-27 19:39 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-04-23 12:51 dvb-s2 card "TeVii S472" (cx23885) Hendrik Oenings
[not found] ` <CAAZRmGzG72hm_sd9qpYx7Mo28oSxBgRghPRt42OPN-3xnj94uw@mail.gmail.com>
[not found] ` <20160424180038.03776e74@spock>
[not found] ` <CAAZRmGyDJJPRgNKD25DL=a1fyYX3rP0-tcbxcP+7AJv5wVz_Uw@mail.gmail.com>
2016-04-25 16:14 ` Hendrik Oenings
2016-04-26 6:03 ` Olli Salonen
2016-04-27 19:39 ` Hendrik Oenings [this message]
2016-04-28 8:27 ` Olli Salonen
2016-04-28 14:50 ` Hendrik Oenings
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20160427213934.184bc70d@spock \
--to=debian@oenings.de \
--cc=linux-media@vger.kernel.org \
--cc=olli.salonen@iki.fi \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox