Skip to content

Instantly share code, notes, and snippets.

$ ls
Config.mak drvwrapper.o vga2usb-3.26.0.26-debian-2.6.32-5-amd64.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; make install
$ depmod -a
[root@myhost ~]# cd /var/tmp/vga
[root@myhost vga]# ls
Config.mak README
drvwrapper.c v2u_id.h
drvwrapper.h vga2usb-3.26.0.27-ubuntu-3.0.0-12-generic_X86_64.tbz
drvwrapper_lib.c vga2usb_bins.o
drvwrapper_lib.h vga2usb.ko
Makefile
[root@myhost vga]# make
make -C /lib/modules/3.0-ARCH/build SUBDIRS=/var/tmp/vga modules
[Kernel Fedora transplantation]@normal surgery
; target: 3 files ;
$ cd /boot; ls
initramfs-2.6.40.6-0.fc15.i686.img << bring it from Fedora
vmlinuz-2.6.40.6-0.fc15.i686 << bring it from fedora
; last file ;
$ cp /etc/mkinitcpio.d/linux.preset fedora.preset
$ cd /etc/mkinitcpio.d; ls
Step 1: download http://www.epiphan.com/downloads/linux/vga2usb-3.26.0.25-2.6.40-4.fc15.i686.tbz
Step 2: ls
Config.mak drvwrapper.o vga2usb-3.26.0.25-2.6.40-4.fc15.i686.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
@shamun
shamun / 1
Created October 22, 2011 08:29
Kernel26-lts:
==============
1. pacman -Syu kernel26-lts kernel26-lts-headers
2. vim /boot/grub/menu.lst
# (0) Arch Linux
title Arch Linux
root (hd0,0)
cd /var/tmp/vga
wget http://www.epiphan.com/downloads/linux/vga2usb-3.26.0.27-ubuntu-3.0.0-12-server_X86_64.tbz
tar xvfj vga2usb-3.26.0.27-ubuntu-3.0.0-12-server_X86_64.tbz
mv vga2usb.ko /lib/modules/3.0-ARCH
$ make load
insmod: error inserting 'vga2usb.ko': -1 unknown symbol in module make: *** [load] Error 1
$ modprobe vga2usb
FATAL: error inserting vga2usb (/lib/modules/3.0-ARCH/vga2usb.ko): unknonwn symbol in module, or unknown parameter (see dmesg)
@shamun
shamun / 1
Created October 19, 2011 22:34
Not working:
$ gst-launch -v autoaudiosrc ! audioconvert ! audioresample ! speexenc ! rtpspeexpay ! udpsink host=192.168.1.2 port=40446 name=udpsink0
Setting pipeline to PAUSED ...
/GstPipeline:pipeline0/GstAutoAudioSrc:autoaudiosrc0/GstAlsaSrc:autoaudiosrc0-actual-src-als: actual-buffer-time = 185759
/GstPipeline:pipeline0/GstAutoAudioSrc:autoaudiosrc0/GstAlsaSrc:autoaudiosrc0-actual-src-als: actual-latency-time = 11609
/GstPipeline:pipeline0/GstAutoAudioSrc:autoaudiosrc0.GstGhostPad:src: caps = audio/x-raw-int, width=(int)32, depth=(int)32, rate=(int)44100, channels=(int)2, endianness=(int)1234, signed=(boolean)true
/GstPipeline:pipeline0/GstAutoAudioSrc:autoaudiosrc0/GstAlsaSrc:autoaudiosrc0-actual-src-als.GstPad:src: caps = audio/x-raw-int, width=(int)32, depth=(int)32, rate=(int)44100, channels=(int)2, endianness=(int)1234, signed=(boolean)true
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstAudioSrcClock
@shamun
shamun / 1
Created October 19, 2011 12:20
now+++
[root@myhost ~]# modprobe -r blackmagic
FATAL: Module blackmagic is in use.
[root@myhost ~]# modprobe r8169
[root@myhost ~]# lspci
00:00.0 Host bridge: Intel Corporation 2nd Generation Core Processor Family DRAM Controller (rev 09)
00:02.0 VGA compatible controller: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller (rev 09)
00:16.0 Communication controller: Intel Corporation 6 Series Chipset Family MEI Controller #1 (rev 04)
00:19.0 Ethernet controller: Intel Corporation 82579V Gigabit Network Connection (rev 05)
configure:38202: result: no
configure:38244: *** These plugins will not be built: openal
configure:38262: *** checking feature: opencv plugins ***
configure:38266: *** for plug-ins: opencv ***
configure:38304: checking for OPENCV
configure:38312: $PKG_CONFIG --exists --print-errors "opencv >= 2.0.0 opencv <= 2.2.0 "
Requested 'opencv <= 2.2.0' but version of OpenCV is 2.3.1
configure:38315: $? = 1
configure:38330: $PKG_CONFIG --exists --print-errors "opencv >= 2.0.0 opencv <= 2.2.0 "
Requested 'opencv <= 2.2.0' but version of OpenCV is 2.3.1
[root@myhost gst-plugins-bad]# cat config.log
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by GStreamer Bad Plug-ins configure 0.10.22.1, which was
generated by GNU Autoconf 2.68. Invocation command line was
$ ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --libexecdir=/usr/lib --with-package-name=GStreamer Bad Plugins (Archlinux) --with-package-origin=http://www.archlinux.org/ --enable-gtk-doc --disable-static
## --------- ##