我的是kernel 2.4.27-2
我要怎麼安裝驅動程式~
我要安裝的是UPMOST AR133 硬碟擴充卡
我有 iteraid.c iteraid.h 驅動程式檔
各位大大我要怎麼裝~~
版主: mufa
chinson 寫:似乎是沒有安裝kernel-sources-xxx(如果是自行編譯的核心)或kernel-headers-xxx(如果是使用kernel-image-xx 為核心)
認真的吃debian中 寫:那我要怎麼安裝kernel-sources-xxx這個東西chinson 寫:似乎是沒有安裝kernel-sources-xxx(如果是自行編譯的核心)或kernel-headers-xxx(如果是使用kernel-image-xx 為核心)
apt-cache search kernel-source-
iteraid.c:244:26: linux/string.h: 沒有此一檔案或目錄
iteraid.c:245:25: linux/delay.h: 沒有此一檔案或目錄
iteraid.c:246:26: linux/reboot.h: 沒有此一檔案或目錄
iteraid.c:247:28: linux/spinlock.h: 沒有此一檔案或目錄
iteraid.c:248:22: linux/fs.h: 沒有此一檔案或目錄
iteraid.c:250:23: asm/errno.h: 沒有此一檔案或目錄
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
認真的吃debian中 寫:ITE 8212 我知道我的卡的晶片了~~
我是不是要先裝
apt-get install kernel-source-2.6.8
才行丫
===============================
我有找到別人po的文章我看不太會可以給我解說一下嗎?
我的卡是pci的為什麼他用scsi
cd /usr/src
mkdir ITERaid
pushd ITERaid
unzip /var/downloads/LinuxSrc_it8212_092007-05_26x.zip
perl -p -i -e 's/2\.6\.1/2.6.4/' Makefile
cp -a /usr/src/linux-2.6.4/drivers/scsi/{scsi,hosts,scsi_obsolete,scsi_typedefs}.h \
/usr/src/linux-2.6.4/drivers/scsi/scsi_module.c .
make
install -m 644 iteraid.ko /lib/modules/2.6.4/kernel/drivers/scsi/
depmod -a
make -C /usr/src/linux-2.6.11.1/ SUBDIRS=/usr/src/2.6.x modules
make[1]: Entering directory `/usr/src/linux-2.6.11.1'
Makefile:486: .config: 沒有此一檔案或目錄
CC [M] /usr/src/2.6.x/iteraid.o
In file included from include/linux/module.h:9,
from /usr/src/2.6.x/iteraid.c:233:
include/linux/config.h:4:28: linux/autoconf.h: 沒有此一檔案或目錄
In file included from include/linux/module.h:10,
from /usr/src/2.6.x/iteraid.c:233:
include/linux/sched.h:4:37: asm/param.h: 沒有此一檔案或目錄
In file included from include/linux/posix_types.h:47,
from include/linux/types.h:13,
from include/linux/capability.h:16,
from include/linux/sched.h:7,
from include/linux/module.h:10,
from /usr/src/2.6.x/iteraid.c:233:
/usr/lib/gcc-lib/i486-linux/3.3.5/include/asm/posix_types.h:13:22: features.h: 沒有此一檔案或目錄
/usr/lib/gcc-lib/i486-linux/3.3.5/include/asm/posix_types.h:14:35: no include path in which to find asm/posix_types.h
In file included from include/linux/capability.h:16,
from include/linux/sched.h:7,
from include/linux/module.h:10,
from /usr/src/2.6.x/iteraid.c:233:
include/linux/types.h:14:23: asm/types.h: 沒有此一檔案或目錄
In file included from include/linux/capability.h:16,
from include/linux/sched.h:7,
from include/linux/module.h:10,
from /usr/src/2.6.x/iteraid.c:233:
安裝ite8212-RAID控制卡
1.到官方網站下載驅動程式原始碼:http://www.ite.com.tw/.
2.# cd /usr/src
3.# apt-get install kernel-headers-2.6.8.2 kernel-source-2.6.8
4.# bunzip kernel-source-2.6.8.tar.bz2
5.# cp -a /usr/src/kernel-source-2.6.8/drivers/scsi/{scsi,scsi_obsolete,scsi_typedefs}.h /usr/src/kernel-source-2.6.8/drivers/scsi/scsi_module.c /usr/src/kernel-source-2.6.8/include/scsi/scsi_host.h .
6.修改Makefile裡的KERNEL_SRC為/usr/src/kernel-headers-2.6.8-2-386
7.修改iteraid.c裡的hosts.h為scsi_host.h
7.# make
8.# install -m 644 iteraid.ko /lib/modules/2.6.8-2-386/kernel/drivers/scsi/
9.# depmod -a
10.# 加入iteraid到/etc/modules裡
正在瀏覽這個版面的使用者:沒有註冊會員 和 1 位訪客