Qcam Pro 4000 ( QV-4000 ) http://www.smcc.demon.nl/webcam/ から pwcx-9.0.tar.gz をダウンロードする。 適当なディレクトリに展開する(ここでは /usr/local/src に展開したものとする) # cd /usr/local/src # wget http://www.smcc.demon.nl/webcam/pwcx-9.0.tar.gz # tar zxvf pwcx-9.0.tar.gz カーネルソースにパッチを当ててモジュールを再構築する。 ● カーネルのバージョンが 2.4 の場合 # cd /usr/src/linux # patch -p1 -s < /usr/local/src/pwcx-9.0/patch-2.4.25 コンパイル済みのライブラリをコピーする。 (下のパス中の x86 の部分はアーキテクチャ別のディレクトリを指定する) # cp /usr/local/src/pwcx-9.0/x86/libpwcx.a drivers/usb/libpwcx.a モジュールのソースをドライバのソースディレクトリにコピーする。 # cp /usr/local/src/pwcx-9.0/pwcx/*.[ch] drivers/usb カーネル再構築のパラメータを設定する # make menuconfig USBセクションの PWCX decompressor entry をモジュールとして組み込む (注意) コピーしたものが削除されてしまうため、make dep や make clean は 実行しないこと。 # モジュールをビルドしてインストールする # make modules modules_install ● カーネルのバージョンが 2.6 の場合 - Download the tarball, extract (you probably already did this). I assume it is extracted in your homedirectory. - Go to your kernel sources (usually located in /usr/src/linux) # cd /usr/src/linux - Apply the proper patch for your kernel; this will modify the USB build structure # patch -p1 -s < ~/pwcx-9.0/patch-2.6.4 - Copy the proper libpwcx.a to the directory; see the various subdirectories for builds of the library. You may also have to rename the library while copying, e.g. # cp ~/pwcx-9.0/mipsel/libpwcx-mips4.a drivers/usb/media/libpwcx.a - Copy the glue code to the directory # cp ~/pwcx-9.0/pwcx/*.[ch] drivers/usb/media - Start up your kernel configurator # make menuconfig or # make xconfig - Go the USB section; you will find a "PWCX decompressor entry"; enable it as m odule - Build your modules: # make modules modules_install - If all went well, you now have a working PWCX on your system! !! Do not execute a 'make dep' or 'make clean' in your kernel source tree! !! That will remove all .a files :-( # cd /usr/src/linux # patch -p1 -s < /usr/local/src/pwcx-9.0/patch-2.6.4 コンパイル済みのライブラリをコピーする。 (下のパス中の x86 の部分はアーキテクチャ別のディレクトリを指定する) # cp /usr/local/src/pwcx-9.0/x86/libpwcx.a drivers/usb/media/libpwcx.a モジュールのソースをドライバのソースディレクトリにコピーする。 # cp /usr/local/src/pwcx-9.0/pwcx/*.[ch] drivers/usb/media カーネル再構築のパラメータを設定する # make menuconfig USBセクションの PWCX decompressor entry をモジュールとして組み込む (注意) コピーしたものが削除されてしまうため、make dep や make clean は 実行しないこと。 # モジュールをビルドしてインストールする # make modules modules_install