トップ «前の日記(2010/05/11(Tue)) 最新 次の日記(2010/05/13(Thu))» 編集
【ソース+水=麦茶色の何か】

半期 四半期 全カテゴリ

今日の一言


2010/05/12(Wed) いあいあはすたあ [長年日記]

_ [Linux][Ubuntu][FC][雑記][研究関係]pci-320416をUbuntu9.04で使う(個人用メモ)

 $ tar xvzf gpg3100_i386_040034.tgz
 $ sudo dpkg-reconfigure dash
   →No
 $ sh install
 $ tar xvzf gpg6204_i386_030015.tgz
 $ sh install

<dpg0100>

 $ cd /usr/src/interface/common/dpg0100/src
 $ gedit Makefile
21c21
< KERNELSRC := /lib/modules/$(shell uname -r)/build
---
> KERNELSRC := /usr/src/linux-source-2.6.28
68c68
< INCLUDEDIR=$(KERNELSRC)/include
---
> INCLUDEDIR=$(KERNELSRC)/arch/x86/include
84c84
< CFLAGS += -I$(INCLUDEDIR)
---
> CFLAGS += -I$(INCLUDEDIR) -I$(KERNELSRC)/include
 $ make
 $ sudo make install

<dpg0101>

 $ cd /usr/src/interface/common/dpg0101/src
 $ gedit Makefile
21c21
< KERNELSRC := /lib/modules/$(shell uname -r)/build
---
> KERNELSRC := /usr/src/linux-source-2.6.28
68c68
< INCLUDEDIR=$(KERNELSRC)/include
---
> INCLUDEDIR=$(KERNELSRC)/arch/x86/include
84c84
< CFLAGS += -I$(INCLUDEDIR)
---
> CFLAGS += -I$(INCLUDEDIR) -I$(KERNELSRC)/include
 $ make
 $ sudo make install

モジュールのコンパイル

 $ cd /usr/src/interface/gpg3100/i386/linux/drivers/src/
 $ gedit Makefile
13c13
< KERNELSRC := /lib/modules/$(shell uname -r)/build
---
> KERNELSRC := /usr/src/linux-source-2.6.28
59c59
< INCLUDEDIR=$(KERNELSRC)/include
---
> INCLUDEDIR=$(KERNELSRC)/arch/x86/include
74c74
< CFLAGS += -I$(INCLUDEDIR)
---
> CFLAGS += -I$(INCLUDEDIR) -I$(KERNELSRC)/include
 $ make
 $ sudo make install

ドライバ組み込み(GPG-3100)

 $ cd /usr/src/interface/gpg3100/i386/linux/drivers/
 $ sh insad.sh

そもそもカーネルが対象外だった。しょぼーん。

[]