Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

How do I install VGA2USB in Arch Linux?

I downloaded the driver vga2usb-3.26.0.27-ubuntu-3.0.0-12-server_X86_64.tbz

I tried with latest kernel did not worked failed with same issue, now showing with the stable kernel, that also failed.

$ uname -a
Linux myhost 2.6.32-lts x86_64 Intel(R) Core(TM) i7-2600 CPU @ 3.40GHz GenuineIntel GNU/Linux
$ lsusb | grep Epiphan
Bus 002 Device 004: ID 5555:1110 Epiphan Systems Inc. VGA2USB
$ cd /var/tmp/vga
$ ls
Config.mak      drvwrapper.o      vga2usb-3.26.0.27-ubuntu-3.0.0-12-server_X86_64.tbz
drvwrapper.c      Makefile      vga2usb_bins.o
drvwrapper.h      modules.order   vga2usb.ko
drvwrapper_lib.c  Module.symvers  vga2usb.mod.c
drvwrapper_lib.h  README      vga2usb.mod.o
drvwrapper_lib.o  v2u_id.h      vga2usb.o
$ make clean; make; make install
rm -f vga2usb.o vga2usb.ko drvwrapper.o drvwrapper_lib.o
ERROR: modinfo: could not open vga2usb.ko: No such file or directory
make -C /lib/modules/2.6.32-lts/build SUBDIRS=/var/tmp/vga modules
make[1]: Entering directory `/usr/src/linux-2.6.32-lts'
  CC [M]  /var/tmp/vga/drvwrapper.o
In file included from include/linux/irq.h:29:0,
                 from /usr/src/linux-2.6.32-lts/arch/x86/include/asm/hardirq.h:5,
                 from include/linux/hardirq.h:10,
                 from include/linux/interrupt.h:12,
                 from include/linux/usb.h:15,
                 from /var/tmp/vga/drvwrapper.c:21:
/usr/src/linux-2.6.32-lts/arch/x86/include/asm/irq_regs.h: In function ‘set_irq_regs’:
/usr/src/linux-2.6.32-lts/arch/x86/include/asm/irq_regs.h:26:2: warning: variable ‘tmp__’ set but not used [-Wunused-but-set-variable]
In file included from /usr/src/linux-2.6.32-lts/arch/x86/include/asm/hardirq.h:5:0,
                 from include/linux/hardirq.h:10,
                 from include/linux/interrupt.h:12,
                 from include/linux/usb.h:15,
                 from /var/tmp/vga/drvwrapper.c:21:
include/linux/irq.h: In function ‘alloc_desc_masks’:
include/linux/irq.h:441:8: warning: variable ‘gfp’ set but not used [-Wunused-but-set-variable]
  CC [M]  /var/tmp/vga/drvwrapper_lib.o
In file included from include/linux/irq.h:29:0,
                 from /usr/src/linux-2.6.32-lts/arch/x86/include/asm/hardirq.h:5,
                 from include/linux/hardirq.h:10,
                 from include/linux/interrupt.h:12,
                 from include/linux/usb.h:15,
                 from /var/tmp/vga/drvwrapper_lib.c:21:
/usr/src/linux-2.6.32-lts/arch/x86/include/asm/irq_regs.h: In function ‘set_irq_regs’:
/usr/src/linux-2.6.32-lts/arch/x86/include/asm/irq_regs.h:26:2: warning: variable ‘tmp__’ set but not used [-Wunused-but-set-variable]
In file included from /usr/src/linux-2.6.32-lts/arch/x86/include/asm/hardirq.h:5:0,
                 from include/linux/hardirq.h:10,
                 from include/linux/interrupt.h:12,
                 from include/linux/usb.h:15,
                 from /var/tmp/vga/drvwrapper_lib.c:21:
include/linux/irq.h: In function ‘alloc_desc_masks’:
include/linux/irq.h:441:8: warning: variable ‘gfp’ set but not used [-Wunused-but-set-variable]
  LD [M]  /var/tmp/vga/vga2usb.o
  Building modules, stage 2.
  MODPOST 1 modules
WARNING: "kernel_stack" [/var/tmp/vga/vga2usb.ko] undefined!
WARNING: "pv_lock_ops" [/var/tmp/vga/vga2usb.ko] undefined!
WARNING: "param_ops_int" [/var/tmp/vga/vga2usb.ko] undefined!
WARNING: "__video_register_device" [/var/tmp/vga/vga2usb.ko] undefined!
WARNING: "kthread_create_on_node" [/var/tmp/vga/vga2usb.ko] undefined!
WARNING: "_raw_spin_unlock_irqrestore" [/var/tmp/vga/vga2usb.ko] undefined!
WARNING: "current_task" [/var/tmp/vga/vga2usb.ko] undefined!
WARNING: "_raw_spin_lock_irq" [/var/tmp/vga/vga2usb.ko] undefined!
WARNING: "_raw_spin_lock" [/var/tmp/vga/vga2usb.ko] undefined!
WARNING: "_raw_spin_lock_irqsave" [/var/tmp/vga/vga2usb.ko] undefined!
WARNING: "param_ops_uint" [/var/tmp/vga/vga2usb.ko] undefined!
  LD [M]  /var/tmp/vga/vga2usb.ko
make[1]: Leaving directory `/usr/src/linux-2.6.32-lts'
make -C /lib/modules/2.6.32-lts/build SUBDIRS=/var/tmp/vga modules
make[1]: Entering directory `/usr/src/linux-2.6.32-lts'
  Building modules, stage 2.
  MODPOST 1 modules
WARNING: "kernel_stack" [/var/tmp/vga/vga2usb.ko] undefined!
WARNING: "pv_lock_ops" [/var/tmp/vga/vga2usb.ko] undefined!
WARNING: "param_ops_int" [/var/tmp/vga/vga2usb.ko] undefined!
WARNING: "__video_register_device" [/var/tmp/vga/vga2usb.ko] undefined!
WARNING: "kthread_create_on_node" [/var/tmp/vga/vga2usb.ko] undefined!
WARNING: "_raw_spin_unlock_irqrestore" [/var/tmp/vga/vga2usb.ko] undefined!
WARNING: "current_task" [/var/tmp/vga/vga2usb.ko] undefined!
WARNING: "_raw_spin_lock_irq" [/var/tmp/vga/vga2usb.ko] undefined!
WARNING: "_raw_spin_lock" [/var/tmp/vga/vga2usb.ko] undefined!
WARNING: "_raw_spin_lock_irqsave" [/var/tmp/vga/vga2usb.ko] undefined!
WARNING: "param_ops_uint" [/var/tmp/vga/vga2usb.ko] undefined!
make[1]: Leaving directory `/usr/src/linux-2.6.32-lts'
make -C /lib/modules/2.6.32-lts/build SUBDIRS=/var/tmp/vga modules_install
make[1]: Entering directory `/usr/src/linux-2.6.32-lts'
  INSTALL /var/tmp/vga/vga2usb.ko
  DEPMOD  2.6.32-lts
make[1]: Leaving directory `/usr/src/linux-2.6.32-lts'
depmod -a

Then I ran

$ cp -R vga2usb.ko /lib/modules/2.6.32-lts/
$ modprobe vga2usb
FATAL: Error inserting vga2usb (/lib/modules/2.6.32-lts/vga2usb.ko): Unknown symbol in module, or unknown parameter (see dmesg)

Here's the dmesg output:

…
[  539.531837] Linux video capture interface: v2.00
[  539.550998] vga2usb: Unknown symbol param_ops_uint
[  539.551222] vga2usb: Unknown symbol _raw_spin_lock_irqsave
[  539.551257] vga2usb: Unknown symbol _raw_spin_lock
[  539.551377] vga2usb: Unknown symbol _raw_spin_lock_irq
[  539.551875] vga2usb: Unknown symbol current_task
[  539.551911] vga2usb: Unknown symbol _raw_spin_unlock_irqrestore
[  539.551992] vga2usb: Unknown symbol kthread_create_on_node
[  539.552090] vga2usb: Unknown symbol __video_register_device
[  539.552249] vga2usb: Unknown symbol param_ops_int
[  539.552286] vga2usb: Unknown symbol pv_lock_ops
[  539.552323] vga2usb: Unknown symbol kernel_stack
[  559.145304] vga2usb: Unknown symbol param_ops_uint
[  559.145530] vga2usb: Unknown symbol _raw_spin_lock_irqsave
[  559.145565] vga2usb: Unknown symbol _raw_spin_lock
[  559.145686] vga2usb: Unknown symbol _raw_spin_lock_irq
[  559.146183] vga2usb: Unknown symbol current_task
[  559.146219] vga2usb: Unknown symbol _raw_spin_unlock_irqrestore
[  559.146300] vga2usb: Unknown symbol kthread_create_on_node
[  559.146399] vga2usb: Unknown symbol __video_register_device
[  559.146557] vga2usb: Unknown symbol param_ops_int
[  559.146594] vga2usb: Unknown symbol pv_lock_ops
[  559.146631] vga2usb: Unknown symbol kernel_stack
[  585.067274] xdotool[4437]: segfault at 44 ip 0000000000403177 sp 00007fffe40ce2b0 error 6 in xdotool[400000+f000]
[  594.228463] vga2usb: Unknown symbol param_ops_uint
[  594.228688] vga2usb: Unknown symbol _raw_spin_lock_irqsave
[  594.228724] vga2usb: Unknown symbol _raw_spin_lock
[  594.228845] vga2usb: Unknown symbol _raw_spin_lock_irq
[  594.229345] vga2usb: Unknown symbol current_task
[  594.229381] vga2usb: Unknown symbol _raw_spin_unlock_irqrestore
[  594.229462] vga2usb: Unknown symbol kthread_create_on_node
[  594.229561] vga2usb: Unknown symbol __video_register_device
[  594.229719] vga2usb: Unknown symbol param_ops_int
[  594.229756] vga2usb: Unknown symbol pv_lock_ops
[  594.229793] vga2usb: Unknown symbol kernel_stack
[  644.902176] xdotool[4453]: segfault at 44 ip 0000000000403177 sp 00007fff45cb8f10 error 6 in xdotool[400000+f000]
[  704.737153] xdotool[4466]: segfault at 44 ip 0000000000403177 sp 00007fff43b9f5c0 error 6 in xdotool[400000+f000]
[  764.572142] xdotool[4478]: segfault at 44 ip 0000000000403177 sp 00007fffe4399830 error 6 in xdotool[400000+f000]
[  824.407277] xdotool[4487]: segfault at 44 ip 0000000000403177 sp 00007fffff991f50 error 6 in xdotool[400000+f000]
[  884.242253] xdotool[4497]: segfault at 44 ip 0000000000403177 sp 00007fffbcea9110 error 6 in xdotool[400000+f000]
[  944.077293] xdotool[4776]: segfault at 44 ip 0000000000403177 sp 00007fff4cfae1b0 error 6 in xdotool[400000+f000]
[  995.783886] vga2usb: Unknown symbol param_ops_uint
[  995.784110] vga2usb: Unknown symbol _raw_spin_lock_irqsave
[  995.784146] vga2usb: Unknown symbol _raw_spin_lock
[  995.784267] vga2usb: Unknown symbol _raw_spin_lock_irq
[  995.784771] vga2usb: Unknown symbol current_task
[  995.784807] vga2usb: Unknown symbol _raw_spin_unlock_irqrestore
[  995.784888] vga2usb: Unknown symbol kthread_create_on_node
[  995.784986] vga2usb: Unknown symbol __video_register_device
[  995.785147] vga2usb: Unknown symbol param_ops_int
[  995.785185] vga2usb: Unknown symbol pv_lock_ops
[  995.785222] vga2usb: Unknown symbol kernel_stack
[ 1003.912353] xdotool[4785]: segfault at 44 ip 0000000000403177 sp 00007fffb5d8d370 error 6 in xdotool[400000+f000]
[ 1063.747218] xdotool[4794]: segfault at 44 ip 0000000000403177 sp 00007fff80af4400 error 6 in xdotool[400000+f000]
[ 1123.582226] xdotool[4802]: segfault at 44 ip 0000000000403177 sp 00007ffff5cd64a0 error 6 in xdotool[400000+f000]
[ 1183.417152] xdotool[4810]: segfault at 44 ip 0000000000403177 sp 00007fff9506ca40 error 6 in xdotool[400000+f000]
[ 1243.252171] xdotool[4818]: segfault at 44 ip 0000000000403177 sp 00007fffedd0db00 error 6 in xdotool[400000+f000]
[ 1303.087203] xdotool[4826]: segfault at 44 ip 0000000000403177 sp 00007fffb3573b30 error 6 in xdotool[400000+f000]
[ 1362.922212] xdotool[4834]: segfault at 44 ip 0000000000403177 sp 00007fffd5b34790 error 6 in xdotool[400000+f000]
[ 1422.757176] xdotool[4842]: segfault at 44 ip 0000000000403177 sp 00007fff1c936e40 error 6 in xdotool[400000+f000]
[ 1482.592118] xdotool[4850]: segfault at 44 ip 0000000000403177 sp 00007fffc2dad4d0 error 6 in xdotool[400000+f000]
[ 1542.427201] xdotool[4858]: segfault at 44 ip 0000000000403177 sp 00007fffb6fb85a0 error 6 in xdotool[400000+f000]
[ 1602.262153] xdotool[4866]: segfault at 44 ip 0000000000403177 sp 00007fff25223470 error 6 in xdotool[400000+f000]
[ 1662.097132] xdotool[4874]: segfault at 44 ip 0000000000403177 sp 00007fffc06ae8d0 error 6 in xdotool[400000+f000]
[ 1721.932100] xdotool[4882]: segfault at 44 ip 0000000000403177 sp 00007fffbe0d6be0 error 6 in xdotool[400000+f000]
[ 1781.767083] xdotool[4890]: segfault at 44 ip 0000000000403177 sp 00007fffe49a21d0 error 6 in xdotool[400000+f000]
[ 1841.602127] xdotool[5352]: segfault at 44 ip 0000000000403177 sp 00007fffd66862d0 error 6 in xdotool[400000+f000]
[ 1887.974458] vga2usb: Unknown symbol param_ops_uint
[ 1887.974683] vga2usb: Unknown symbol _raw_spin_lock_irqsave
[ 1887.974718] vga2usb: Unknown symbol _raw_spin_lock
[ 1887.974839] vga2usb: Unknown symbol _raw_spin_lock_irq
[ 1887.975343] vga2usb: Unknown symbol current_task
[ 1887.975379] vga2usb: Unknown symbol _raw_spin_unlock_irqrestore
[ 1887.975460] vga2usb: Unknown symbol kthread_create_on_node
[ 1887.975559] vga2usb: Unknown symbol __video_register_device
[ 1887.975718] vga2usb: Unknown symbol param_ops_int
[ 1887.975755] vga2usb: Unknown symbol pv_lock_ops
[ 1887.975793] vga2usb: Unknown symbol kernel_stack
[ 1901.437299] xdotool[5363]: segfault at 44 ip 0000000000403177 sp 00007fffba3bf0b0 error 6 in xdotool[400000+f000]

Follow up: (Ubuntu 11.04 its working now, did not continued in ArchLinux later)

distro="ubuntu"
version=$(sudo uname -r)
pkgdirectory=/var/tmp/capture
mkdir ${pkgdirectory}; cd ${pkgdirectory};
if [ ! -d "${pkgdirectory}/vga" ]; then
  mkdir ${pkgdirectory}/vga
  cd ${pkgdirectory}/vga
  wget http://www.epiphan.com/downloads/linux/vga2usb-3.26.0.22-ubuntu-2.6.38-8-generic_X86_64.tbz
  tar xvfj vga2usb-3.26.0.22-ubuntu-2.6.38-8-generic_X86_64.tbz  
  make clean
  make
  make install
  cp -R vga2usb.ko /lib/modules/${version}/
  depmod -a
  modprobe vga2usb
else
  cd ${pkgdirectory}/vga
  make clean
  make
  make install 
  cp -R vga2usb.ko /lib/modules/${version}/
  depmod -a
  modprobe vga2usb
fi
share|improve this question
2  
I've never worked with this, but doesn't the downloaded packages version mismatch the target kernel version? vga2usb-3.26.0.27-ubuntu- 3.0.0 -12-server_X86_64.tbz vs Linux myhost 2.6.32 -lts x86_64 - there are packages with 2.6.32 in their name in the link you included. –  sr_ Oct 22 '11 at 12:49
    
@sr_ Definitely. Voting to close. –  rozcietrzewiacz Oct 22 '11 at 13:20
    
@sr_: i have tried your suggestion 2.6.32* drivers all of them that they provided. But none worked. All was giving similar error see dmesg as mentioned in the very begin here. –  YumYumYum Oct 22 '11 at 17:17
    
@rozcietrzewiacz: not really, i have tried all those 2.6.32*.* as fresh setup also, all failed in Archlinux. –  YumYumYum Oct 22 '11 at 17:18
    
OK, then there it looks like there is some issue. But please edit your question, describing only the results you get with correct versions of the driver - only those should be considered. –  rozcietrzewiacz Oct 22 '11 at 18:16
show 2 more comments

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.