Difference between revisions of "Talk:AVerMedia AVerTV HD Express A918R"

From LinuxTVWiki
Jump to: navigation, search
Line 1: Line 1:
Hello,
+
After some days of investigations without any success, conclusion is:
  
After spending some days trying to compile and compile without any success, my conclusion is: I need some help to make "AVerMedia AVerTV HD Express A918R" working in linux.
+
!!  Help needed to make "AVerMedia AVerTV HD Express A918R" working in linux. !!
  
 
= Investigations =
 
= Investigations =
== * step 1 ==
+
== Step 1 ==
 
What I tried is to tweak ''''dvb-usb-ids.h'''' file so that the A918R card (Id=0x'''0918''') is seen as default AFATECH_AF9015_9015 (Id=0x9015):
 
What I tried is to tweak ''''dvb-usb-ids.h'''' file so that the A918R card (Id=0x'''0918''') is seen as default AFATECH_AF9015_9015 (Id=0x9015):
 
  /* #define USB_PID_AFATECH_AF9015_9015 0x9015 */
 
  /* #define USB_PID_AFATECH_AF9015_9015 0x9015 */
Line 14: Line 14:
 
but no luck.
 
but no luck.
  
== * step 2 ==
+
== Step 2 ==
 
Tried compilation from hg_clone or media_build, but got this error I could not solved:
 
Tried compilation from hg_clone or media_build, but got this error I could not solved:
  
Line 43: Line 43:
 
   &af9015_usb_table[AVERTV_A918R],
 
   &af9015_usb_table[AVERTV_A918R],
 
   },
 
   },
 
'''dvb-usb-af9015.mod.c'''
 
  MODULE_ALIAS("usb:v07CAp0918d*dc*dsc*dp*ic*isc*ip*");
 
 
  
 
'''Result''':
 
'''Result''':
Line 63: Line 59:
 
=> no idea how to solve "ERROR: could not insert 'dvb_usb_af9015': Exec format error"
 
=> no idea how to solve "ERROR: could not insert 'dvb_usb_af9015': Exec format error"
  
 +
== Step 3 ==
 +
Compilation success with kernel 3.5.0-21 and files modification step 2
  
 +
# '''modprobe -v''' dvb_usb_af9015
 +
insmod /lib/modules/3.5.0-21-generic/kernel/drivers/media/rc/rc-core.ko
 +
insmod /lib/modules/3.5.0-21-generic/kernel/drivers/media/dvb/dvb-core/dvb-core.ko
 +
insmod /lib/modules/3.5.0-21-generic/kernel/drivers/media/dvb/dvb-usb/dvb-usb.ko
 +
insmod /lib/modules/3.5.0-21-generic/kernel/drivers/media/dvb/dvb-usb/dvb-usb-af9015.ko
  
------------------------------------
+
# '''dmesg'''
If someone knows how to make some further test, please advise !
+
af9015: recv bulk message failed:-110
 +
af9015: recv bulk message failed:-110
 +
af9015: recv bulk message failed:-110
 +
af9015: recv bulk message failed:-110
 +
af9015: eeprom read failed=-1
 +
dvb_usb_af9015: probe of 2-1.3:1.0 failed with error -1
 +
usbcore: registered new interface driver dvb_usb_af9015
  
If someone else can propose a 'dvb-usb-af9015.ko' module for test, he is welcome !
+
------------------------------------
 +
= Current status =
 +
AverTV A918R needs some deeper investigations.
 +
If someone knows how to make some further test, please advise.
  
 
Thanks.
 
Thanks.

Revision as of 15:07, 28 December 2012

After some days of investigations without any success, conclusion is:

!! Help needed to make "AVerMedia AVerTV HD Express A918R" working in linux.  !!

Investigations

Step 1

What I tried is to tweak 'dvb-usb-ids.h' file so that the A918R card (Id=0x0918) is seen as default AFATECH_AF9015_9015 (Id=0x9015):

/* #define USB_PID_AFATECH_AF9015_9015		0x9015 */
#define USB_PID_AFATECH_AF9015_9015		0x0918

If this works, the conlusion would be that there is no special tweaks necessary for card A918R, which could be then added to files dvb-usb-ids.h and af9015.c files for next updates.

I also tried to add this line to /etc/modprobe.conf:

alias usb:v07CAp0918d*dc*dsc*dp*ic*isc*ip* dvb-usb-af9015

but no luck.

Step 2

Tried compilation from hg_clone or media_build, but got this error I could not solved:

# make
make -C /home/share/DVB/hg_clone/media_build/v4l 
make[1]: entrant dans le répertoire « /home/share/DVB/hg_clone/media_build/v4l »
perl scripts/make_config_compat.pl /lib/modules/3.5.0-21-generic/build ./.myconfig ./config-compat.h
Usb headers not found at scripts/make_config_compat.pl line 239.
make[1]: *** [config-compat.h] Erreur 2

Then tried to from linux source 3.5.0, using kernel 3.5.0-21-generic, after modification of following kernel media files:

dvb-usb-ids.h

#define USB_PID_AVERMEDIA_A918R   0x0918

af9015.c

 enum af9015_usb_table_entry {
 AVERTV_A918R,
 [AVERTV_A918R] = {
 USB_DEVICE(USB_VID_AVERMEDIA, USB_PID_AVERMEDIA_A918R)},
 .devices = {
 {
 .name = "AVerMedia AVerTV HD Express A918R",
 .cold_ids = {
 &af9015_usb_table[AVERTV_A918R],
 },

Result:

# modprobe dvb-usb-af9015 -v
 insmod /lib/modules/3.5.0-21-generic/kernel/drivers/media/dvb/dvb-usb/dvb-usb.ko 
 ERROR: could not insert 'dvb_usb_af9015': Exec format error
# file dvb-usb-af9015.ko
 dvb-usb-af9015.ko: ELF 32-bit LSB relocatable, Intel 80386, version 1 (SYSV), 
 BuildID[sha1]=0xdd8f226ff1ef165ce8f099889940955310be6e02, not stripped
# dmesg
kernel	[ 6346.104417] dvb_usb: disagrees about version of symbol module_layout

=> no idea how to solve "ERROR: could not insert 'dvb_usb_af9015': Exec format error"

Step 3

Compilation success with kernel 3.5.0-21 and files modification step 2

# modprobe -v dvb_usb_af9015
insmod /lib/modules/3.5.0-21-generic/kernel/drivers/media/rc/rc-core.ko 
insmod /lib/modules/3.5.0-21-generic/kernel/drivers/media/dvb/dvb-core/dvb-core.ko 
insmod /lib/modules/3.5.0-21-generic/kernel/drivers/media/dvb/dvb-usb/dvb-usb.ko 
insmod /lib/modules/3.5.0-21-generic/kernel/drivers/media/dvb/dvb-usb/dvb-usb-af9015.ko 
# dmesg
af9015: recv bulk message failed:-110
af9015: recv bulk message failed:-110
af9015: recv bulk message failed:-110
af9015: recv bulk message failed:-110
af9015: eeprom read failed=-1
dvb_usb_af9015: probe of 2-1.3:1.0 failed with error -1
usbcore: registered new interface driver dvb_usb_af9015

Current status

AverTV A918R needs some deeper investigations. If someone knows how to make some further test, please advise.

Thanks.