Strona 1 z 1

[+] instalacja sterowników kontrolera Raid Super Trak EX8650

: 14 lipca 2009, 12:20
autor: pracochlik
Witam. Na wstępie dodam że jestem praktykantem w szkole i dopiero zaczynam przygodę z Linuksem.
Mam problem z instalacją kontrolera Super Trak EX8650.

¦ciągnąłem najnowsze sterowniki ze strony producenta i zacząłem postępować według instrukcji:

Kod: Zaznacz cały

cd /lib/modules/2.6.26-2-686/kernel/
mkdir build
ln -s /usr/src/linux build
Ale nie za bardzo rozumiem:

Kod: Zaznacz cały

If the kernel source exists,jump the step 5.Please you download the kernel
    source and unpack it to /usr/src.From the kernel source directory, clean
    the kernel configuration and copy new kernel configuration based on your OS
     and platform. For example:
Jak mam rozumieć ,,kernel source''? Przecież jądro w systemie mam.

Wiec postanowiłem przejść według instrukcji do 5 punktu:

Kod: Zaznacz cały

5.  From the /usr/src directory, create a link "linux" to the kernel source.
        # rm linux (if it is existed)
        # ln -s kernel_source linux

6.  Unpack the driver source package to a directory. Enter this directory, and start to build driver.
        # make
Tylko że on jest taki sam jak pierwszy. Więc wypakowałem ściągnięte sterowniki do katalogu:

Kod: Zaznacz cały

/usr/src/linux/
i

Kod: Zaznacz cały

#make
i wtedy mam błąd:

Kod: Zaznacz cały

bash: make: command not found
Zawartość ściągniętych sterowników to:

Kod: Zaznacz cały

-rwxr-xr-x 1 root root   817 lis  9  2007 history.txt
-rwxr-xr-x 1 root root  1999 gru 31  2006 Makefile
-rwxr-xr-x 1 root root  2677 lis  7  2007 readme.txt
-rwxr-xr-x 1 root root 39104 paź 16  2007 stex.c
Próbowałem też:

Kod: Zaznacz cały

./Makefile
ale pojawił mi się błąd:

Kod: Zaznacz cały

./Makefile: line 6: UTSVERSION: command not found
./Makefile: line 11: syntax error near unexpected token `$(OEM),'
./Makefile: line 11: `ifeq ($(OEM),)'
Próbowałem znaleźć jakieś sterowniki dla Debiana ale nie udało mi się. Prosiłbym nie krzyczeć jak robię jakiś banalny błąd.

Edycja:
Plik readme.txt

Kod: Zaznacz cały

------ Driver Make Instructions

The following examples show how to configure and make the Promise
SuperTrak EX SAS Raid Controller driver(s) for kernel modules.

1.  Locate to the driver build directory and create a link to the kernel source.
        # cd /lib/modules/`uname -r'
        # rm build
        # ln -s /usr/src/linux build

2.  If the kernel source exists,jump the step 5.Please you download the kernel
    source and unpack it to /usr/src.From the kernel source directory, clean
    the kernel configuration and copy new kernel configuration based on your OS
     and platform. For example:
      # make mrproper
      # make clean
      # uname -a
      Linux localhost.localdomain 2.6.21-1.3194.fc7 #1 SMP Tue May 8
      17:10:00 EDT 2007 x86_64 x86_64 x86_64 GNU/Linux
      # cp configs/kernel-2.6.21-x86_64.config .config
    Modify the make file
      # vi Makefile
        correct EXTRAVERSION=-1.3194.fc7

3.  From the kernel source directory, run the normal kernel
    configuration routine, and then save its changes.
        # make oldconfig
      or:
        # make config
      or:
        # make menuconfig
      or:
        # make xconfig

4.  Rebuild the kernel.
        # make

5.  From the /usr/src directory, create a link "linux" to the kernel source.
        # rm linux (if it is existed)
        # ln -s kernel_source linux
cp
6.  Unpack the driver source package to a directory. Enter this directory, and start to build driver.
        # make


=== Loading the Drivers As Modules ===
Follow these steps to load the new driver binaries:

1.  Load the Promise SuperTrak EX SAS Raid Controller driver. If scsi_mod is not loaded,you should insert it manually.
        # lsmod | grep scsi_mod
        # insmod scsi_mod (if it is not loaded)
        # lsmod | grep stex(if the old driver exist)
        # rmmod stex
        # insmod stex.o
          scsi 7:0:0:0 Direct-Access Promise ST V-LUN
          0101 PQ: 0 ANSI: 4
          scsi 7:0:16:0 Processor Promise RAID Console
          1.00 PQ: 0 ANSI: 3
        SCSI device sdb: 1 512-byte hdwr sectors (0 MB)


    All Fibre Channel target devices should be detected and mapped to Linux
    SCSI devices, /dev/sd{a,b,c,...} when the stex module is loaded.

    All Linux commands pertaining to SCSI disk storage management
    (fdisk, mke2fs, mount, etc.) using the /dev/sdX[N] notation
    should now be functional.

2. The following is the device access example:
        # fdisk /dev/sdb
        # mke2fs /dev/sdb1
        # mount /dev/sdb1 /mnt/s1

: 14 lipca 2009, 19:46
autor: AdeBe
Ale po co takie udziwnienia? Przecież ten sterownik powinien być już w jądrze, to nie windows, że wszystko trzeba ściągać i instalować.
Spróbuj jako root

Kod: Zaznacz cały

modprobe stex

: 15 lipca 2009, 10:07
autor: pracochlik
po wpisaniu jako root

Kod: Zaznacz cały

Bacula:/home/pracochlik# modprobe stex
Bacula:/home/pracochlik#
Czyli rozumiem ze polecenie się wykonało ale po wpisaniu

Kod: Zaznacz cały

Bacula:/home/pracochlik# fdisk -l

Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x57e1ae8c

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1          43      345366   83  Linux
/dev/sda2              44       19457   155942955    5  Extended
/dev/sda5              44         651     4883728+  83  Linux
/dev/sda6             652        1016     2931831   83  Linux
/dev/sda7            1017        1346     2650693+  82  Linux swap / Solaris
/dev/sda8            1347        1395      393561   83  Linux
/dev/sda9            1396       19457   145082983+  83  Linux
Więc chyba się nie udało. Kurcze nic na temat tego kontrolera i instalacji nie mogę znaleźć :(

: 15 lipca 2009, 18:08
autor: AdeBe
A sprawdzałeś, czy te moduły które wspominają w README są załadowane?

Kod: Zaznacz cały

lsmod | grep moduł
Powinno Ci wyświetlić nazwę modułu. Jeśli jej nie ma, to znaczy, że nie jest załadowany.

: 30 lipca 2009, 23:19
autor: pracochlik
Dziękuję serdecznie AdeBe za pomoc okazało się że kontroler był uszkodzony i dla tego nie mogłem go zainsalować. Po wymianie instalacja poszła bardzo prosto i bez problemów