Re: Help to make a driver. ISDB-Tb

2011-05-16 Thread Alfredo Jesús Delaiti

Hi


Digital television: not tune any channels with w-scan or gnome-dvb-setup.
But with the latter, it captures 2 weak signals, but I can not know 
which is.
Under windows also capture 2 channel and I'm in a place where the 
signal is low.

I'll try to have more signal strength.

If I run dmesg after scan channels I get the following:

[ 3474.858537] mb86a20s: mb86a20s_set_frontend:
[ 3474.858541] mb86a20s: mb86a20s_set_frontend: Calling tuner set 
parameters

[ 3474.981157] mb86a20s: mb86a20s_read_status:
[ 3474.981649] mb86a20s: mb86a20s_read_status: val = 2, status = 0x01


I improved the antenna signal and I've got this:

alfredo@linux:~ mplayer -dumpstream dvb://'C5N HD' -dumpfile 
mplayer-dumpfile.ts
MPlayer dev-SVN-r33321-4.5-openSUSE Linux 11.4 (x86_64)-Packman (C) 
2000-2011 MPlayer Team

Can't open joystick device /dev/input/js0: No such file or directory
Can't init input joystick
mplayer: could not open config files /home/alfredo/.lircrc and 
/etc/lirc/lircrc

mplayer: No such file or directory
Failed to read LIRC config file ~/.lircrc.
Loading extension-related profile 'vo.vdpau'

Playing dvb://C5N HD.
dvb_tune Freq: 551142857
dvb_streaming_read, attempt N. 6 failed with errno 0 when reading 2048 bytes
dvb_streaming_read, attempt N. 5 failed with errno 0 when reading 2048 bytes
dvb_streaming_read, attempt N. 4 failed with errno 0 when reading 2048 bytes
dvb_streaming_read, attempt N. 3 failed with errno 0 when reading 2048 bytes
dvb_streaming_read, attempt N. 2 failed with errno 0 when reading 2048 bytes
dvb_streaming_read, attempt N. 1 failed with errno 0 when reading 2048 bytes
dvb_streaming_read, return 0 bytes
dvb_streaming_read, attempt N. 6 failed with errno 0 when reading 2048 bytes
dvb_streaming_read, attempt N. 5 failed with errno 0 when reading 2048 bytes
dvb_streaming_read, attempt N. 4 failed with errno 0 when reading 2048 bytes
dvb_streaming_read, attempt N. 3 failed with errno 0 when reading 2048 bytes
dvb_streaming_read, attempt N. 2 failed with errno 0 when reading 2048 bytes
dvb_streaming_read, attempt N. 1 failed with errno 0 when reading 2048 bytes
dvb_streaming_read, return 0 bytes
Core dumped ;)

Exiting... (End of file)

dmesg

[11359.790188] cx23885[0]/0: restarting queue
[11359.790197] cx23885[0]/0: queue is empty - first active
[11359.790202] cx23885[0]/0: cx23885_start_dma() w: 752, h: 32, f: 2
[11359.790209] cx23885[0]/0: cx23885_sram_channel_setup() Configuring 
channel [TS1 B]

[11359.790423] cx23885[0]/0: cx23885_start_dma() enabling TS int's and DMA
[11359.790436] cx23885[0]/0: [880058342e00/0] cx23885_buf_queue - 
first active

[11359.790441] cx23885[0]/0: queue is not empty - append to active
[11359.790445] cx23885[0]/0: [88002d4fba00/1] cx23885_buf_queue - 
append to active

[11359.790449] cx23885[0]/0: queue is not empty - append to active
[11359.790453] cx23885[0]/0: [88003758ae00/2] cx23885_buf_queue - 
append to active

[11359.790457] cx23885[0]/0: queue is not empty - append to active
[11359.790460] cx23885[0]/0: [88005815f800/3] cx23885_buf_queue - 
append to active

[11359.790464] cx23885[0]/0: queue is not empty - append to active
[11359.790468] cx23885[0]/0: [88003758ac00/4] cx23885_buf_queue - 
append to active

[11359.790472] cx23885[0]/0: queue is not empty - append to active
[11359.790476] cx23885[0]/0: [88005ae15600/5] cx23885_buf_queue - 
append to active

[11359.790480] cx23885[0]/0: queue is not empty - append to active
[11359.790484] cx23885[0]/0: [88005ae15000/6] cx23885_buf_queue - 
append to active

[11359.790488] cx23885[0]/0: queue is not empty - append to active
[11359.790492] cx23885[0]/0: [88005ae15400/7] cx23885_buf_queue - 
append to active

[11359.790496] cx23885[0]/0: queue is not empty - append to active
[11359.790499] cx23885[0]/0: [88005a0ce000/8] cx23885_buf_queue - 
append to active

[11359.790503] cx23885[0]/0: queue is not empty - append to active
[11359.790507] cx23885[0]/0: [88005a0cea00/9] cx23885_buf_queue - 
append to active

[11359.790511] cx23885[0]/0: queue is not empty - append to active
[11359.790515] cx23885[0]/0: [88005a0cee00/10] cx23885_buf_queue - 
append to active

[11359.790519] cx23885[0]/0: queue is not empty - append to active
[11359.790523] cx23885[0]/0: [8800374ffe00/11] cx23885_buf_queue - 
append to active

[11359.790527] cx23885[0]/0: queue is not empty - append to active
[11359.790531] cx23885[0]/0: [8800582a0c00/12] cx23885_buf_queue - 
append to active

[11359.790535] cx23885[0]/0: queue is not empty - append to active
[11359.790539] cx23885[0]/0: [8800582a0600/13] cx23885_buf_queue - 
append to active

[11359.790543] cx23885[0]/0: queue is not empty - append to active
[11359.790547] cx23885[0]/0: [8800582a/14] cx23885_buf_queue - 
append to active

[11359.790551] cx23885[0]/0: queue is not empty - append to active
[11359.790554] cx23885[0]/0: [8800582a0a00/15] cx23885_buf_queue - 
append to active

[11359.790558] cx23885[0]/0: 

Re: Help to make a driver. ISDB-Tb

2011-05-02 Thread Mauro Carvalho Chehab
Em 01-05-2011 22:57, Alfredo Jesús Delaiti escreveu:
 Hi Mauro
 

 I guess the error is in this part of the module mb86a20s.c
 
 /* Check if it is a mb86a20s frontend */
 rev = mb86a20s_readreg(state, 0);
 if (rev == 0x13) {
 ^^
 
 printk(KERN_INFO Detected a Fujitsu mb86a20s frontend\n);
 } else {
 printk(KERN_ERR Frontend revision %d is unknown - aborting.\n,
 rev);
 goto error;
 }

From this message:
[ 14.288626] Frontend revision 255 is unknown - aborting.

I suspect that the I2C gate needed to access the frontend is at the wrong 
state. That's why you're
getting 0xff (255) value there.

 
 I reiterate my gratitude,
 
 Alfredo
 

--
To unsubscribe from this list: send the line unsubscribe linux-media in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: Help to make a driver. ISDB-Tb

2011-05-01 Thread Alfredo Jesús Delaiti

Hi Mauro

Thank you very much for your time and answer

El 30/04/11 22:18, Mauro Carvalho Chehab escribió:

drivers/media/video/cx23885/cx23885-cards.c:240:3: error: 
‘CX23885_BOARD_MYGICA_X8507’ undeclared here (not in a function)

You forgot to declare this constant somewhere with #define.
I found it. I had written CX23885_BOARD_MYGICA_X507 rather than 
CX23885_BOARD_MYGICA_X8507 in cx23885.h



It is not that simple. You need to setup the GPIO pins of your device, and
set the DVB frontend according to how this is wired inside the board,
and providing the information about the used frontend. I think that your
device is based on mb86a20s demod.

Yes.
If I compare to the X8506 images taken from 
http://www.mingo-hmw.com/forum/viewthread.php?tid=85682 and 
http://www.dcfever.com/trading/view.php?itemID=436551, with the X8507 
taken from 
http://www.linuxtv.org/wiki/index.php/File:MyGica_X8507_1.png; I see 
that the difference is on the plate added to the main board. Best viewed 
with the image of the X8507 and corresponds to the frontend.

For this last reason is that I risk trying to do something.


It requires you some knowledge about Engineering

At this point I have no problems, but still need to read a lot.

, as well as C programming
experience.
At this point yes. The last time I programmed anything was more than 
twenty years and was in pascal or qbasic, I do not remember.


I modify the following files: cx23885-cards.c, cx23885-dvb.c, 
cx23885-video.c, cx23885.h


Then compile and install. The result when loading was as follows:


[ 10.461192] cx23885 driver version 0.0.2 loaded
[ 10.461288] cx23885 :02:00.0: PCI INT A - GSI 19 (level, low) - 
IRQ 19
[ 10.461487] CORE cx23885[0]: subsystem: 14f1:8502, board: Mygica X8507 
[card=30,insmod option]

[ 11.027607] cx25840 5-0044: cx23885 A/V decoder found @ 0x88 (cx23885[0])
[ 12.193826] cx25840 5-0044: loaded v4l-cx23885-avcore-01.fw firmware 
(16382 bytes)

[ 12.202863] tuner 4-0061: chip found @ 0xc2 (cx23885[0])
[ 12.235023] xc5000 4-0061: creating new instance
[ 12.235719] xc5000: Successfully identified at address 0x61
[ 12.235721] xc5000: Firmware has not been loaded previously
[ 12.235802] cx23885[0]/0: registered device video1 [v4l2]
[ 12.241230] xc5000: waiting for firmware upload 
(dvb-fe-xc5000-1.6.114.fw)...

[ 12.262115] xc5000: firmware read 12401 bytes.
[ 12.262117] xc5000: firmware uploading...
[ 13.637009] xc5000: firmware upload complete...
[ 14.250077] cx23885_dvb_register() allocating 1 frontend(s)
[ 14.250081] cx23885[0]: cx23885 based dvb card
[ 14.288344] mb86a20s: mb86a20s_attach:
[ 14.288626] Frontend revision 255 is unknown - aborting.
[ 14.288705] cx23885[0]: frontend initialization failed
[ 14.288710] cx23885_dvb_register() dvb_register failed err = -1
[ 14.288714] cx23885_dev_setup() Failed to register dvb adapters on VID_B
[ 14.288721] cx23885_dev_checkrevision() Hardware revision = 0xb0
[ 14.288729] cx23885[0]/0: found at :02:00.0, rev: 2, irq: 19, 
latency: 0, mmio: 0xfd60

[ 14.288737] cx23885 :02:00.0: setting latency timer to 64
[ 14.288828] cx23885 :02:00.0: irq 44 for MSI/MSI-X

I guess the error is in this part of the module mb86a20s.c

/* Check if it is a mb86a20s frontend */
rev = mb86a20s_readreg(state, 0);
if (rev == 0x13) {
^^

printk(KERN_INFO Detected a Fujitsu mb86a20s frontend\n);
} else {
printk(KERN_ERR Frontend revision %d is unknown - aborting.\n,
rev);
goto error;
}

I reiterate my gratitude,

Alfredo

--
Dona tu voz
http://www.voxforge.org/es

--
To unsubscribe from this list: send the line unsubscribe linux-media in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: Help to make a driver. ISDB-Tb

2011-04-30 Thread Mauro Carvalho Chehab
Alfredo,

Em 30-04-2011 14:09, Alfredo Jesús Delaiti escreveu:
 Hi
 
 I'm trying to make the driver for X8507 Mygica.
 I have reference to the Mygica X8506 card, because I found that only differ 
 in the frontend according to photos I've seen on the Internet.
 
 I am following the recommended process:
 
 http://www.linuxtv.org/wiki/index.php/Development:_How_to_add_support_for_a_device

 drivers/media/video/cx23885/cx23885-cards.c:240:3: error: 
 ‘CX23885_BOARD_MYGICA_X8507’ undeclared here (not in a function)

You forgot to declare this constant somewhere with #define.

 Clarification: I am not a programmer and am trying to get to work compared 
 with other controller. I am using the kernel 2.6.38 and OpenSUSE 11.4
 I attached the modified file

It is not that simple. You need to setup the GPIO pins of your device, and
set the DVB frontend according to how this is wired inside the board,
and providing the information about the used frontend. I think that your
device is based on mb86a20s demod. You need to tell that to cx23885-dvb,
providing the type of connection used (serial or parallel).

It requires you some knowledge about Engineering, as well as C programming
experience.

Mauro.
--
To unsubscribe from this list: send the line unsubscribe linux-media in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html