Wiki Table of Contents

Webcams

On this page:


Syntek

Here’s a small script that will download, patch, build, install the stk11xx driver.


#!/bin/bash

#prep prior to downloading/building/installing
sudo m-a prepare

#install packages that are needed to download and/or build source
sudo apt-get install git-core subversion exuberant-ctags

#clone  git repo
git clone https://aur.archlinux.org/stk11xx-svn.git
cd stk11xx-svn

#get actual source
svn co $(grep ^_svntrunk PKGBUILD | cut -f2 -d\") -r $(grep ^pkgver PKGBUILD | cut -f2 -d=) $(grep ^_svnmod PKGBUILD | cut -f2 -d\")

#apply archlinux patches
cd $(grep ^_svnmod PKGBUILD | cut -f2 -d\")
for i in ../*.patch; do patch -p1 -i $i; done

#build module
make -f Makefile.standalone

#install the module
sudo mkdir /lib/modules/$(uname -r)/misc
sudo cp stk11xx.ko /lib/modules/$(uname -r)/misc/
sudo depmod /lib/modules/$(uname -r)/misc/stk11xx.ko

#show module that was just built & installed
echo
echo
/sbin/modinfo stk11xx

 

Leave a Comment

Do NOT follow this link or you will be banned from the site!