viernes, 10 de julio de 2009

Avermedia TDT-USB en Ubuntu

Editado: hay unas aclaraciones a este método en este otro artículo.

Me he pillado un receptor TDT usb, el mas barato que he visto. El AverTV Volar Black HD. Vamos a hacerlo funcionar. Primeramente hacen falta una serie de paquetes. Lo más rapido desde terminal:

sudo apt-get install mercurial me-tv dvb-utils

Te instala algunas dependencias adicionales. El Me-TV se conoce que es el programa para ver los canales. Pero no detecta el usb de momento. Así que hay que descargarse no se que movida de linuxtv.org. Sigo los pasos que he sacado de aquí:

hg clone http://linuxtv.org/hg/v4l-dvb
cd v4l-dvb
make
sudo make install

Esto se tira un rato majo.

No se si con esto valdría porque aquí seguía sin detectar nada así que seguimos con los pasos y cambiamos el firmware. Nos vamos a /lib/firmware, hacemos una copia de seguridad del dvb-usb-af9015.fw que viene, y en su lugar ponemos este otro: http://www.otit.fi/~crope/v4l-dvb/af9015/af9015_firmware_cutter/firmware_files/4.95.0/

Digo que no se si haría falta porque cuando yo hice este paso, seguía sin detectar. Fue después de reiniciar el equipo que funcionó, a lo mejor no había hecho falta.

Ahora ya podemos lanzar Me-TV y un asistente nos ayudará a escanear los canales. Como hemos instalado dvb-utils, nos permitirá buscar por país y región. La mía al menos viene, en caso de ser una región distinta tal vez haya que buscarse las habichuelas de otro modo.

Y ahora la penosidad: la pequeña antena que viene no sirve para nada. Dentro de casa no pilla nada, y saliendo a la terraza un poco de cobertura pesima y unos pocos canales que se entrecortan. Usando la antena de la comunidad, o tal vez una antena mejor, va muy bien.

3 comentarios:

Anónimo dijo...

Gracias, lo daba por perdido. Me hice con la antena que tenia buena pinta y creía que lo tenía todo solucionado, pero para ubuntu no lo tenia nada facil...Un saludo

Anónimo dijo...

Pues a mi no me funciona, tengo la misma tarjeta y todo igual pero:

1-no tengo dvb-usb-af9015.fw en el firmware

2-tampoco me deja copiar nada a la carpeta firmware

3-cuando hago el paso del make me sale todo esto...

albert@albert-laptop:~/v4l-dvb$ make
make -C /home/albert/v4l-dvb/v4l
make[1]: se ingresa al directorio `/home/albert/v4l-dvb/v4l'
creating symbolic links...
make -C firmware prep
make[2]: Entering directory `/home/albert/v4l-dvb/v4l/firmware'
make[2]: Leaving directory `/home/albert/v4l-dvb/v4l/firmware'
make -C firmware
make[2]: Entering directory `/home/albert/v4l-dvb/v4l/firmware'
CC ihex2fw
../../linux/firmware/ihex2fw.c:12:20: error: stdint.h: No such file or directory
../../linux/firmware/ihex2fw.c:13:23: error: arpa/inet.h: No such file or directory
../../linux/firmware/ihex2fw.c:14:19: error: stdio.h: No such file or directory
../../linux/firmware/ihex2fw.c:15:19: error: errno.h: No such file or directory
../../linux/firmware/ihex2fw.c:16:23: error: sys/types.h: No such file or directory
../../linux/firmware/ihex2fw.c:17:22: error: sys/stat.h: No such file or directory
../../linux/firmware/ihex2fw.c:18:22: error: sys/mman.h: No such file or directory
../../linux/firmware/ihex2fw.c:19:19: error: fcntl.h: No such file or directory
../../linux/firmware/ihex2fw.c:20:20: error: string.h: No such file or directory
../../linux/firmware/ihex2fw.c:21:20: error: unistd.h: No such file or directory
../../linux/firmware/ihex2fw.c:22:20: error: stdlib.h: No such file or directory
../../linux/firmware/ihex2fw.c:24:20: error: getopt.h: No such file or directory
../../linux/firmware/ihex2fw.c:29: error: expected specifier-qualifier-list before 'uint32_t'
../../linux/firmware/ihex2fw.c:37: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'nybble'
../../linux/firmware/ihex2fw.c:45: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'hex'
../../linux/firmware/ihex2fw.c:52: error: expected ')' before '*' token
../../linux/firmware/ihex2fw.c: In function 'usage':
../../linux/firmware/ihex2fw.c:61: warning: implicit declaration of function 'fprintf'
../../linux/firmware/ihex2fw.c:61: warning: incompatible implicit declaration of built-in function 'fprintf'
../../linux/firmware/ihex2fw.c:61: error: 'stderr' undeclared (first use in this function)
../../linux/firmware/ihex2fw.c:61: error: (Each undeclared identifier is reported only once
../../linux/firmware/ihex2fw.c:61: error: for each function it appears in.)
../../linux/firmware/ihex2fw.c: In function 'main':
../../linux/firmware/ihex2fw.c:72: error: storage size of 'st' isn't known
../../linux/firmware/ihex2fw.c:73: error: 'uint8_t' undeclared (first use in this function)
../../linux/firmware/ihex2fw.c:73: error: 'data' undeclared (first use in this function)
../../linux/firmware/ihex2fw.c:76: warning: implicit declaration of function 'getopt'
../../linux/firmware/ihex2fw.c:89: error: 'optind' undeclared (first use in this function)
../../linux/firmware/ihex2fw.c:92: warning: implicit declaration of function 'strcmp'
../../linux/firmware/ihex2fw.c:95: warning: implicit declaration of function 'open'
../../linux/firmware/ihex2fw.c:95: error: 'O_RDONLY' undeclared (first use in this function)

Albert Oliva dijo...

../../linux/firmware/ihex2fw.c:97: warning: incompatible implicit declaration of built-in function 'fprintf'
../../linux/firmware/ihex2fw.c:97: error: 'stderr' undeclared (first use in this function)
../../linux/firmware/ihex2fw.c:98: warning: implicit declaration of function 'strerror'
../../linux/firmware/ihex2fw.c:98: error: 'errno' undeclared (first use in this function)
../../linux/firmware/ihex2fw.c:98: warning: format '%s' expects type 'char *', but argument 3 has type 'int'
../../linux/firmware/ihex2fw.c:101: warning: implicit declaration of function 'fstat'
../../linux/firmware/ihex2fw.c:102: warning: implicit declaration of function 'perror'
../../linux/firmware/ihex2fw.c:105: warning: implicit declaration of function 'mmap'
../../linux/firmware/ihex2fw.c:105: error: 'NULL' undeclared (first use in this function)
../../linux/firmware/ihex2fw.c:105: error: 'PROT_READ' undeclared (first use in this function)
../../linux/firmware/ihex2fw.c:105: error: 'MAP_SHARED' undeclared (first use in this function)
../../linux/firmware/ihex2fw.c:106: error: 'MAP_FAILED' undeclared (first use in this function)
../../linux/firmware/ihex2fw.c:114: error: 'O_TRUNC' undeclared (first use in this function)
../../linux/firmware/ihex2fw.c:114: error: 'O_CREAT' undeclared (first use in this function)
../../linux/firmware/ihex2fw.c:114: error: 'O_WRONLY' undeclared (first use in this function)
../../linux/firmware/ihex2fw.c:116: warning: incompatible implicit declaration of built-in function 'fprintf'
../../linux/firmware/ihex2fw.c:117: warning: format '%s' expects type 'char *', but argument 3 has type 'int'
../../linux/firmware/ihex2fw.c:120: warning: implicit declaration of function 'process_ihex'
../../linux/firmware/ihex2fw.c:72: warning: unused variable 'st'
../../linux/firmware/ihex2fw.c: At top level:
../../linux/firmware/ihex2fw.c:127: error: expected ')' before '*' token
../../linux/firmware/ihex2fw.c: In function 'file_record':
../../linux/firmware/ihex2fw.c:244: error: 'struct ihex_binrec' has no member named 'addr'
../../linux/firmware/ihex2fw.c:244: error: 'struct ihex_binrec' has no member named 'addr'
../../linux/firmware/ihex2fw.c: In function 'output_records':
../../linux/firmware/ihex2fw.c:257: error: 'uint16_t' undeclared (first use in this function)
../../linux/firmware/ihex2fw.c:257: error: expected ';' before 'writelen'
../../linux/firmware/ihex2fw.c:259: error: 'struct ihex_binrec' has no member named 'addr'
../../linux/firmware/ihex2fw.c:259: warning: implicit declaration of function 'htonl'
../../linux/firmware/ihex2fw.c:259: error: 'struct ihex_binrec' has no member named 'addr'
../../linux/firmware/ihex2fw.c:260: error: 'struct ihex_binrec' has no member named 'len'
../../linux/firmware/ihex2fw.c:260: warning: implicit declaration of function 'htons'
../../linux/firmware/ihex2fw.c:260: error: 'struct ihex_binrec' has no member named 'len'
../../linux/firmware/ihex2fw.c:261: warning: implicit declaration of function 'write'
../../linux/firmware/ihex2fw.c:261: error: 'struct ihex_binrec' has no member named 'addr'
../../linux/firmware/ihex2fw.c:261: error: 'writelen' undeclared (first use in this function)
make[2]: *** [ihex2fw] Error 1
make[2]: Leaving directory `/home/albert/v4l-dvb/v4l/firmware'
make[1]: *** [firmware] Error 2
make[1]: se sale del directorio `/home/albert/v4l-dvb/v4l'
make: *** [all] Error 2

Soy muy novato en linux, a ti te suena de algo toda esa ristra de errores?

Como puedo arreglarlo??

Gracias!!