Hi to all,
I think I found a solution for this problem. You can read it on this message, at crysol.org: http://crysol.org/es/node/1082#comment-5014
Thanks.
Hi to all,
I think I found a solution for this problem. You can read it on this message, at crysol.org: http://crysol.org/es/node/1082#comment-5014
Thanks.
thanks for your effort !
anyway still got some errors
i replaced the config and patched successfully. I have to admit my spanish isn't really good/home/holger/Downloads/rtl2831-r2/v4l/v4l2-dev.c:371:2: error: unknown field 'ioctl' specified in initializer
/home/holger/Downloads/rtl2831-r2/v4l/v4l2-dev.c:371:2: warning: initialization from incompatible pointer type
make[3]: *** [/home/holger/Downloads/rtl2831-r2/v4l/v4l2-dev.o] Fehler 1
Hello and thanks for testing!
Please, could you paste here the full compilation log. I've not modified every file, just only the ones I need, but these may be different for you. Thanks.
Edit: Oops, sorry. The patch is malformed:
Please, wait until I fix itpatching file linux/drivers/media/video/v4l2-common.c
patch: **** malformed patch at line 582: --- 909,908 ----
Edit: done. I edited the patch by hand... bad idea Please, insert coin and try again!
Last edited by oscarah; May 30th, 2011 at 07:23 PM. Reason: New info
Hi,
I have tried to compile the module with the patch but I still get an error. This time is the following:
/home/gamx/Temp/rtl2831-r2_patched/v4l/flexcop-i2c.c: In function 'flexcop_i2c_init':
/home/gamx/Temp/rtl2831-r2_patched/v4l/flexcop-i2c.c:253:39: error: 'I2C_CLASS_TV_DIGITAL' undeclared (first use in this function)
/home/gamx/Temp/rtl2831-r2_patched/v4l/flexcop-i2c.c:253:39: note: each undeclared identifier is reported only once for each function it appears in
make[3]: *** [/home/gamx/Temp/rtl2831-r2_patched/v4l/flexcop-i2c.o] Error 1
make[2]: *** [_module_/home/gamx/Temp/rtl2831-r2_patched/v4l] Error 2
make[2]: Leaving directory `/usr/src/linux-headers-2.6.38-8-generic'
make[1]: *** [default] Error 2
make[1]: Leaving directory `/home/gamx/Temp/rtl2831-r2_patched/v4l'
make: *** [all] Error 2
Gamx
Yep, you should use the config I use. All IR modules must be disabled for now. Sorry.
My fault. My Spanish is good but I did not read the instructions carefully enough. Sorry.
With your config file (replacing the one in the v4l directory) I manage to get a bit further but I still get an error. Am I supposed to change anything more? I am not an expert...
/home/gamx/Temp/rtl2831-r2_patched/v4l/v4l2-compat-ioctl32.c: In function 'native_ioctl':
/home/gamx/Temp/rtl2831-r2_patched/v4l/v4l2-compat-ioctl32.c:232:21: error: 'const struct file_operations' has no member named 'ioctl'
/home/gamx/Temp/rtl2831-r2_patched/v4l/v4l2-compat-ioctl32.c:237:19: error: 'const struct file_operations' has no member named 'ioctl'
/home/gamx/Temp/rtl2831-r2_patched/v4l/v4l2-compat-ioctl32.c: In function 'get_v4l2_format32':
/home/gamx/Temp/rtl2831-r2_patched/v4l/v4l2-compat-ioctl32.c:379:2: warning: case value '0' not in enumerated type 'enum v4l2_buf_type'
/home/gamx/Temp/rtl2831-r2_patched/v4l/v4l2-compat-ioctl32.c: In function 'put_v4l2_format32':
/home/gamx/Temp/rtl2831-r2_patched/v4l/v4l2-compat-ioctl32.c:410:2: warning: case value '0' not in enumerated type 'enum v4l2_buf_type'
/home/gamx/Temp/rtl2831-r2_patched/v4l/v4l2-compat-ioctl32.c: In function 'v4l2_compat_ioctl32':
/home/gamx/Temp/rtl2831-r2_patched/v4l/v4l2-compat-ioctl32.c:981:17: error: 'const struct file_operations' has no member named 'ioctl'
make[3]: *** [/home/gamx/Temp/rtl2831-r2_patched/v4l/v4l2-compat-ioctl32.o] Error 1
make[2]: *** [_module_/home/gamx/Temp/rtl2831-r2_patched/v4l] Error 2
make[2]: Leaving directory `/usr/src/linux-headers-2.6.38-8-generic'
make[1]: *** [default] Error 2
make[1]: Leaving directory `/home/gamx/Temp/rtl2831-r2_patched/v4l'
make: *** [all] Error 2
Thanks,
Gamx
Last edited by gamx; June 4th, 2011 at 11:49 AM.
SOLVED !!!!!!!... sorry my english is not so good, but I paste here a comment (pending of moderation) left at metalzonix. In that post metalzonix had a recipe for ubuntu 10.10. With that recipe and the patch of crysol I tried to combine doing the following (comments in spanish):
¡¡¡ Lo conseguí !!! he combinado las instrucciones de este post con el parche http://crysol.org/es/node/1082#comment-5014
No soy experto en esto… en un probar por probar hice lo siguiente (trataré de recordarlo todo, no tomé notas porque no creía que funcionaría):
# sudo apt-get install linux-source linux-headers-$(uname -r)
# sudo apt-get install mercurial
# hg clone http://linuxtv.org/hg/~jhoogenraad/rtl2831-r2
# cd rtl2831-r2/
hasta aquí como en este post…. ahora el parche tal y como dice
# rtl2831-r2$ wget http://arco.esi.uclm.es/~oscar.acena...l_2.6.38.patch
# rtl2831-r2$ patch -p1 < kernel_2.6.38.patch
Dado que el post que habla del parche también habla de un archivo config… yo añado su descarga (aunque no se si hice algo con él, de hecho no se si vale o no)
# rtl2831-r2$ wget http://arco.esi.uclm.es/~oscar.acena...rtl2831/config
Ahora continúo como en este post
# sudo make menuconfig
Y aquí viene, creo, lo importante… deshabilité todo (salvo el apartado audio, quité las marcas a todo) y solo dejé lo que hacía referencia a RTL2831u
# sudo make clean
# sudo make
# sudo make install
Algún error por medio creo que dió, pero dió la sensación que la instalación finalizó correctamente así que… desconecté y volví a conectar el tdt usb stick zappa y…
# lsmod | grep dvb
bingooooooooooo !!! me apareció esto…
dvb_usb_rtl2831u 93776 0
dvb_usb 19240 1 dvb_usb_rtl2831u
dvb_core 90137 1 dvb_usb
Abrí VLC, desempolvé mi archivo channels.conf y…. viendo la tdt en Ubuntu 11.04.
Rogaría a metalzonix, que tú si que sabes, que depurara o diera sentido a lo que he escrito en este comentario, con el fin de ver si he recordado algo mal o he hecho algo de más o de menos.
GRACIAS.
Finally it works for me. I had to disable V4L (on top of what was already disabled in the config file mentioned above) and now it seems to work.
Thanks to all,
Gamx
yeah, nice work dudes...finally i have a running dvb-t device
Thanks ppsalama, this process worked for me perfectly on a Linux Mint (Katya) amd64 architecture.
Muchas gracias.
Aerrow-"what's our best case scenario?" Stork-"I am hoping to pass out before we go splat!"
Game-Ubuntu/BSD/others Work-XP Server-Ubuntu Mediacentre-PS3 now WITHOUT Ubuntu
Wifes-XPUbuntu Daughter-Vista Son1-Zenwalk (broken) Son2-too young
Bookmarks