Mailing List Archive

Re: [ivtv-users] Acer aspire idea 500?
Steve,

Copying the ivtv-devel list (as a rule, I like to keep development
discussions in the open...)

On Mon, 2009-06-08 at 17:59 +0100, Steve Firth wrote:
> Hi
> Thanks for the answer.
>
> I'm not an expert on this area, so not sure how relevant this is,
> but the I have had analog TV working (in UK), admittedly not in
> MythTV, but manually using scan etc for channel setting and then
> "cat /dev/video0 | xine/mplayer" etc So something somewhere is
> connected correctly for analog TV. I'm hoping that this may mean that
> we are already at stage "2" of your list?

Well, we can get the firmware loaded once without knowing the right
reset pin. If we don't have the right reset pin subsequent firmware
loads fail.

The xc3028 seems to need different firmware segments loaded when things
change. Adding

options tuner debug=1

to /etc/modprobe.conf (or your distro's equivalent) will log a little
bit more of what's going on with xc3028 firmware loads during normal
operations (I think).


>
> FYI My installation (Ubuntu 9.04) is fairly standard, I've just
>
> * Upped VMALLOC in boot to get the 2nd card working (VERY memory
> hungry)

It's not real memory. It's a few page table entries to get a 64 MB
address window per CX23418 to map in memory and registers over the PCI
bus.


> * Copied xc3028-v27.fw to the firmware directory (Suggesting that
> your guess is correct)
>
> I could not get tuners then working in mythtv, but as mentioned
> above, I did get analog tv working from the command line.

This could be from having the wrong reset line. Check the kernel logs
(dmesg and /var/log/messages) when you try to tune to different stations
and see if there are any xc2028 firmware gripes.


> The MPC718 card only has an simple RF shield soldered above it, so I
> could remove this to take a peek at the chips inside. Not diffficult,
> as there are only 3 fixing points but it may take me a day or so to
> find out my soldering iron and earthed bench equipment as an ESD
> precaution. There are a couple of Xtals on the underside, one looks
> like 32MHz, the second is impossible to read.

Cool. Just take your time - we can always work with guesses until you
have time to get the cover off. High-res picutres of both sides of the
card with the RF shields off would be nice; but a list of chips might
do.


> There is a photo of the card on the web (google images) where there
> appears to be another Xtal under the RF shield: I'll try to check this
> out.

Yuan has some fuzzed out photos. Not very useful.


> Can I work out the I2C address via Windows XP? It must be useful for
> something ;-)

It might be listed in the *inf file. If not it's hardcoded into Windows
driver - which requires diassembly of the Windows driver - not what I'd
want to do. Using the i2c-dev module and i2c-detect would be infinitely
easier.

For reference, here's i2c-detect output from my HVR-1600

# modprobe i2c-dev
# i2cdetect -l
i2c-1 smbus SMBus PIIX4 adapter at 0b00 SMBus adapter
i2c-0 i2c cx18 i2c driver #0-0 I2C adapter
i2c-2 i2c cx18 i2c driver #0-1 I2C adapter

# i2cdetect -y 0
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- 19 -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- UU -- -- --
50: 50 -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- 63 -- -- -- -- -- -- -- -- -- -- -- --
70: 70 71 72 73 -- -- -- --

19 = cx25447
4c = cs5345
UU = device has been claimed by a driver
50 = ATMEL eeprom
63 = mxl5005s
70-73 = Z8F0811 IR microcontroller

# i2cdetect -y 2
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- UU -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --

61 = simple tuner mixer/oscillator chip
UU = device has been claimed by a driver

> There's quite a few of these boxes out there, if I can get it working
> I'd be happy to script-up my steps above for anyone else who would
> like to use a decent OS/Media Centre . I'm absolutely fed up with
> trying to use XP-MCE!

OK, give me a few days I'll do modifications closer to the weekend.

Regards,
Andy

>
> Regards
> Steve Firth
>
> ----- Original message -----
> Sent: 2009/06/07 21:37:33
> Subject: Re: Re: [ivtv-users] Acer aspire idea 500?
>
> On Sun, 2009-06-07 at 19:39 +0100, Steve Firth wrote:
> > Hi, I was following with interest the email discussion about
> getting
> > the cx18 drivers etc working with the acer aspire idea 510 (I have
> the
> > 500 model)
> > but the chat seemed to fizzle in june 2008. Did anyone ever get
> this
> > working?
>
>
> It fizzled. There's an entry in the cx18 driver for the Yuan MPC718,
> but it is incomplete. Here's what I think I can do:
>
> 1. Fix the analog basedband part (CVBS, S-Video) of the card based on
> the windows *.inf file.
>
> 2. Get analog tuning working based on knowing the card has an XCeive
> XC3028 analog/digital tuner. For this I need someone to figure out
> for
> certain what GPIO pin is used to reset the XC3028. This will require
> someone with patience as the brute force search may require up to 32
> loads/unloads/recompiles of the driver.
>
> 3. I might be able to get DVB-T working, but will need to rely
> heavily
> on someone with the hardware and access to DVB-T. Here's how things
> will go:
>
> a. Someone really needs to figure out what DVB-T demodulator is on
> the
> MPC718. It's housed in the metal can. :( The Yuan PG718 looks like a
> PCI version of the MPC718, so maybe if someone can provide a list of
> the
> chips on that card, it'll be the same. The Yuan MPC788 is reported to
> use an XCeive XC3028 with an Intel/Zarlink CE6353/ZL10353 - so I can
> use
> that as a first guess.
>
> b. I need to know the crystal freq used with the demod. If it's the
> Zarlink 10353 or equivalent, I'm betting it's a 20.48 MHz crystal.
> Visual confirmation would be nice.
>
> c. I need to know the I2C address of the digital demodulator. If it's
> the Zarlink 10353 or equivalent, I'm guessing it's at 0x1e as most
> Zl10353 eval kits used this apparently. If not, there's a way to use
> the i2c-dev module and the i2c-detect tool (lm-sensors package) to
> try
> and figure it out.
>
> d. I need to know if the MPC718 uses a Parallel or Serial TS. This
> will
> require module loads/unloads/recompiles of the driver. Hopefully this
> will be an experiment that has to be run only once or twice.
>
>
> So,
>
> 1. How bad do you want it to work?
> 2. Do you have a technical contact at Yuan?
>
> ;)
>
> Regards,
> Andy
>
> > Cheers
> > spf
>
>
>
> _______________________________________________
> ivtv-users mailing list
> ivtv-users@ivtvdriver.org
> http://ivtvdriver.org/mailman/listinfo/ivtv-users


_______________________________________________
ivtv-devel mailing list
ivtv-devel@ivtvdriver.org
http://ivtvdriver.org/mailman/listinfo/ivtv-devel
Re: [ivtv-users] Acer aspire idea 500? [ In reply to ]
Andy,
I tried the patches for the ACER 500 that you posted.

Purely FYI There was just one small problem with the compile in that my
version of cx18-drivers.h was missing the LEADTEK_DVR1300H entry
which I added as below:


#define CX18_CARD_LEADTEK_PVR2100 6 /* Leadtek WinFast
PVR2100/DVR3100 H */
#define CX18_CARD_LEADTEK_DVR3100H 7 /* Leadtek WinFast
PVR2100/DVR3100 H */
#define CX18_CARD_LAST 7


I probably have an old version. Thereafter it compiled and installed,
but I no longer get any /dev/video* (which I did get previously)
nor /dev/dvb/* (which I did NOT get previously). I've posted
the relevant section from dmesg below. This was following

adding patch .c files to directory
sudo make
sudo make install
"reboot"

I've not seen the "bad EEPROM" message before.

Please also find below lspci output, in case it helps.

Please note that I currently only have one card installed, the second
one is still on the bench in case you need any more hardware data, I
don't want to risk damaging it with too much unnecessary soldering
and removals.

dmesg

[ 11.942443] cx18: Start initialization, version 1.2.0
[ 11.942502] cx18-0: Initializing card 0
[ 11.942505] cx18-0: Autodetected Yuan MPC718 MiniPCI DVB-T/Analog
card
[ 11.943341] cx18 0000:02:00.0: PCI INT A -> GSI 20 (level, low) ->
IRQ 20
[ 11.943352] cx18-0: Unreasonably low latency timer, setting to 64
(was 2)
[ 11.946434] cx18-0: cx23418 revision 01010000 (B)
[ 11.949211] phy0: Selected rate control algorithm 'pid'
[ 12.078412] Broadcom 43xx driver loaded [ Features: PLR, Firmware-ID:
FW13 ]
[ 12.102583] HDA Intel 0000:00:1b.0: PCI INT A -> GSI 16 (level, low)
-> IRQ 16
[ 12.102639] HDA Intel 0000:00:1b.0: setting latency timer to 64
[ 12.125858] tveeprom 0-0050: Encountered bad packet header [00].
Corrupt or not a Hauppauge eeprom.
[ 12.125863] cx18-0: Invalid EEPROM
[ 12.125867] cx18-0: Experimenters needed for device to work well.
[ 12.125869] To help, mail the ivtv-devel list (www.ivtvdriver.org).
[ 12.258180] tuner 1-0061: chip found @ 0xc2 (cx18 i2c driver #0-1)
[ 12.306617] xc2028 1-0061: creating new instance
[ 12.306620] xc2028 1-0061: type set to XCeive xc2028/xc3028 tuner
[ 12.306986] cx18-0: Registered device video0 for encoder MPEG (64 x
32 kB)
[ 12.306990] DVB: registering new adapter (cx18)
[ 12.307305] cx18-0: frontend initialization failed
[ 12.307508] cx18-0: DVB failed to register
[ 12.307570] cx18-0: Registered device video32 for encoder YUV (16 x
128 kB)
[ 12.307628] cx18-0: Registered device vbi0 for encoder VBI (20 x
51984 bytes)
[ 12.307688] cx18-0: Registered device video24 for encoder PCM audio
(256 x 4 kB)
[ 12.307763] cx18-0: Registered device radio0 for encoder radio
[ 12.308241] cx18-0: Error -1 registering devices
[ 12.308320] xc2028 1-0061: destroying instance
[ 12.308892] cx18-0: Error -1 on initialization
[ 12.308902] cx18: probe of 0000:02:00.0 failed with error -1
[ 12.308952] cx18: End initialization

steve@Cinema:~$ ls /dev/dvb*
ls: cannot access /dev/dvb*: No such file or directory
steve@Cinema:~$ ls /dev/vid*
ls: cannot access /dev/vid*: No such file or directory


ALSO FROM LSPCI


02:00.0 Multimedia video controller: Conexant Systems, Inc. CX23418
Single-Chip MPEG-2 Encoder with Integrated Analog Video/Broadcast Audio
Decoder




_______________________________________________
ivtv-devel mailing list
ivtv-devel@ivtvdriver.org
http://ivtvdriver.org/mailman/listinfo/ivtv-devel
Re: [ivtv-users] Acer aspire idea 500? [ In reply to ]
Steve,

On Sun, 2009-06-21 at 11:02 +0100, steve wrote:
> Andy,
> I tried the patches for the ACER 500 that you posted.
>
> Purely FYI There was just one small problem with the compile in that my
> version of cx18-drivers.h was missing the LEADTEK_DVR1300H entry
> which I added as below:
>
>
> #define CX18_CARD_LEADTEK_PVR2100 6 /* Leadtek WinFast
> PVR2100/DVR3100 H */
> #define CX18_CARD_LEADTEK_DVR3100H 7 /* Leadtek WinFast
> PVR2100/DVR3100 H */
> #define CX18_CARD_LAST 7
>
>
> I probably have an old version.

You may eventually want a clone or tarball of my working repository for
the MPC-718.

For a tarball:

http://linuxtv.org/hg/~awalls/cx18-mpc718/archive/tip.tar.bz2

For a local working repository copy:

hg clone http://linuxtv.org/hg/~awalls/cx18-mpc718

Or to stick with what you have and pick up new patches individually:

http://linuxtv.org/hg/~awalls/cx18-mpc718/



There were some changes made to the cx18 driver and xc2028 tuner driver
to get the DVR3100H working with DVB-T (those changes are in my
repository and also in the latest v4l-dvb). I think for 8 MHz UHF
DVB-T, you'll be OK even if you stick with just applying the specific
patches I made for the Yuan MPC-718.


> Thereafter it compiled and installed,
> but I no longer get any /dev/video* (which I did get previously)
> nor /dev/dvb/* (which I did NOT get previously). I've posted
> the relevant section from dmesg below. This was following

Looking below, it appears that I guessed the wrong I2C address for the
XC3028 tuner chip. This caused DVB registration to fail and hence
driver init to fail. I have added a patch to use the correct I2C
address.



> adding patch .c files to directory
> sudo make
> sudo make install
> "reboot"
>
> I've not seen the "bad EEPROM" message before.

That's because I added support for reading the EEPROM that I saw on the
MPC-718 (it's on the back). Either I goofed something up, or you didn't
get the patch applied properly to cx18-driver.c:cx18_read_eeprom() and
cx18-driver.c:cx18_process_eeprom.

You should have seen an eeprom dump and then the message:

"Unknown EEPROM encoding"

Either way, things should have proceeded anyway.

I have added a patch to disable trying to obtain an EEPROM dump from the
MPC718 (for now).


> Please also find below lspci output, in case it helps.
>
> Please note that I currently only have one card installed, the second
> one is still on the bench in case you need any more hardware data, I
> don't want to risk damaging it with too much unnecessary soldering
> and removals.

That's fine. The only trip-up would be a ZL10353 chip being installed
on the new card instead of a MT352 chip.

I've added a patch to hopefully handle an MPC-718 with a ZL10353 as
well.


> dmesg
>
> [ 11.942443] cx18: Start initialization, version 1.2.0
> [ 11.942502] cx18-0: Initializing card 0
> [ 11.942505] cx18-0: Autodetected Yuan MPC718 MiniPCI DVB-T/Analog
> card

Good.

> [ 11.943341] cx18 0000:02:00.0: PCI INT A -> GSI 20 (level, low) ->
> IRQ 20
> [ 11.943352] cx18-0: Unreasonably low latency timer, setting to 64
> (was 2)
> [ 11.946434] cx18-0: cx23418 revision 01010000 (B)
> [ 11.949211] phy0: Selected rate control algorithm 'pid'
> [ 12.078412] Broadcom 43xx driver loaded [ Features: PLR, Firmware-ID:
> FW13 ]
> [ 12.102583] HDA Intel 0000:00:1b.0: PCI INT A -> GSI 16 (level, low)
> -> IRQ 16
> [ 12.102639] HDA Intel 0000:00:1b.0: setting latency timer to 64
> [ 12.125858] tveeprom 0-0050: Encountered bad packet header [00].
> Corrupt or not a Hauppauge eeprom.
> [ 12.125863] cx18-0: Invalid EEPROM

Hmmm. This should have been an eeprom dump with an "Unknown EEPROM
encoding" message. But the driver will ignore this anyway.

> [ 12.125867] cx18-0: Experimenters needed for device to work well.
> [ 12.125869] To help, mail the ivtv-devel list (www.ivtvdriver.org).
> [ 12.258180] tuner 1-0061: chip found @ 0xc2 (cx18 i2c driver #0-1)
> [ 12.306617] xc2028 1-0061: creating new instance
> [ 12.306620] xc2028 1-0061: type set to XCeive xc2028/xc3028 tuner
^^^^
Ooops, I guessed address 0x60 not 0x61. This is likely why DVB
registration failed below.

> [ 12.306986] cx18-0: Registered device video0 for encoder MPEG (64 x
> 32 kB)
> [ 12.306990] DVB: registering new adapter (cx18)
> [ 12.307305] cx18-0: frontend initialization failed
> [ 12.307508] cx18-0: DVB failed to register

Likely due to using the wrong I2C address for the XC3028 tuner.


> [ 12.307570] cx18-0: Registered device video32 for encoder YUV (16 x
> 128 kB)
> [ 12.307628] cx18-0: Registered device vbi0 for encoder VBI (20 x
> 51984 bytes)
> [ 12.307688] cx18-0: Registered device video24 for encoder PCM audio
> (256 x 4 kB)
> [ 12.307763] cx18-0: Registered device radio0 for encoder radio
> [ 12.308241] cx18-0: Error -1 registering devices
> [ 12.308320] xc2028 1-0061: destroying instance
> [ 12.308892] cx18-0: Error -1 on initialization
> [ 12.308902] cx18: probe of 0000:02:00.0 failed with error -1
> [ 12.308952] cx18: End initialization

If DVB fails, everything fails. :(

I'll have to change that someday.


> steve@Cinema:~$ ls /dev/dvb*
> ls: cannot access /dev/dvb*: No such file or directory
> steve@Cinema:~$ ls /dev/vid*
> ls: cannot access /dev/vid*: No such file or directory


Thanks for the testing and feedback. PLease continue testing. BTW you
may want to add a

options cx18 debug=255
options tuner-xc2028 debug=3
options mt352 debug=3
options zl10353 debug=3
options tuner debug=3

to your /etc/modprobe.conf (or equivalent file) to have the drivers log
somewhat verbosely while figuring things out. (I picked debug level '3'
out of the air for the non-cx18 modules. That should give enough debug
level for now.)

Regards,
Andy


_______________________________________________
ivtv-devel mailing list
ivtv-devel@ivtvdriver.org
http://ivtvdriver.org/mailman/listinfo/ivtv-devel