A) J'ai téléchargé le pilote.
http://www.promise.com/support/download/download2_eng.asp?productId=156&category=driver&os=4&go=GO
----------------------------------------------------------------------------------------------------------------------------------------
fichier INSTALL :
Promise SuperTrak Series Linux Driver Installation
This document describes how to compile and install the new SuperTrak Series
driver for Linux. Our driver is a module. You do not need to recompile and
reinstall the kernel.
Before you start:
Make sure that your kernel source code is present on your PC, typically in the
/usr/src directory under the name "linux" or "linux-2.x.x". You
will need this source code to compile the new driver.
1. Go to the kernel source code's directory, (for example, "/usr/src/linux-
2.6.17").
2. Run the command "make mrproper".
3. Run the command "make menuconfig" or "make xconfig" to configure kernel
source codes.
Configure "Loadable Module support" and "Processor type and features"
the same as the kernel on which the driver is to run so the driver can be
loaded into the kernel.
4. Save and Exit the configure menu.
You may need to run "make modules_prepare".
5. Go to the directory where our driver code is located and run the following
commands to compile the new driver:
make clean
make KERNEL_SOURCE_DIR=$KERN_SRC_DIR
where $KERN_SRC_DIR is the kernel source code's directory, for example,
"/usr/src/linux-2.6.17", without the quoting symbols.
-----------------------------------------------------------------------------------------------------
B) J'ai installé les sources du noyau. J'arrive à le recompiler.
C) J'ai dû modifier le fichier Makefile pour éviter les tests inutiles qui provoquaient des erreurs
avant le make
# PROMISE Napa Seriel linux driver compiler configuration
################ Global Configuration ####################
UTSVERSION = `uname -r`
################# kernel configuration ###############
export LD_LIBRARY_PATH
############# architecher configuration #############
ARCH_TYPE=i386
ARCH_FLAGS=-D_X8632B -D_32BPLATFORM
KERNEL_SOURCE_DIR=/usr/src/linux
KERNEL_SRC_DIR=/usr/src/linux
KERNEL_BLD_DIR=$(KERNEL_SRC_DIR)
VERBOSE = 1
INCLUDE_DIR= $(echo "-I$(KERNEL_BLD_DIR)/include -I$(KERNEL_BLD_DIR)/drivers/scsi -I$(KERNEL_SRC_DIR)/include -I$(KERNEL_SRC_DIR)/drivers/scsi ")
CONFIG_DISKDUMP=$(cat $(KERNEL_BLD_DIR)/.config | grep CONFIG_DISKDUMP )
EXTRA_CFLAGS +=-D_LINUXDRIVER -D_MMMAP_ -D_NEC -D_SUPPORT_DISKDUMP -DMOONFANG $(ARCH_FLAGS) $(INCLUDE_DIR)
obj-m :=stex.o
#shasta-objs := shasta26.o
#shasta-objs := osd_linux.o osd_cmpm.o gen_typs.o gen_util.o osd_mu.o osd_tag.o osd_req.o
default:
$(MAKE) V=$(VERBOSE) CC=$(CC) LD=$(LD) ARCH=$(ARCH_TYPE) -C $(KERNEL_BLD_DIR) SUBDIRS=`pwd` modules
clean:
rm -rf *.o *.ko .*.cmd .?*.o.d .*tmp*
############### end for kernel 2.6 #################
clean2:
rm -rf *.o *.obj *.ko .*.cmd .?*.o.d .*tmp*
insmod:
insmod scsi_mod
insmod shasta.o
W2L:
rename .cpp .c *
L2W:
rename .c .cpp *
#################### end all ######################
D) malheureusement je n'arrive pas au bout :
[root@fc6 stex_linux_src_2.9.0.16]# make
make V=1 CC=cc LD=ld ARCH=i386 -C /usr/src/linux SUBDIRS=`pwd` modules
make[1]: entrant dans le répertoire « /usr/src/redhat/SOURCES/linux-2.6.18 »
test -e include/linux/autoconf.h -a -e include/config/auto.conf || ( \
echo; \
echo " ERROR: Kernel configuration is invalid."; \
echo " include/linux/autoconf.h or include/config/auto.conf are missing."; \
echo " Run 'make oldconfig && make prepare' on kernel src to fix it."; \
echo; \
/bin/false)
make[1]: *** Pas de règle pour fabriquer la cible « RAID ». Arrêt.
make[1]: quittant le répertoire « /usr/src/redhat/SOURCES/linux-2.6.18 »
make: *** [default] Erreur 2
=====================================================================
Je ne sais pas comment continuer.
Qui serait sympa de refaire la manip et de me propser la solution
MERCI