Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#1 Le 08/03/2008, à 12:03

$ebuntu

carte RAID Adaptec 1200A (chipset Highpoint 370A)

Bonjour/Bonsoir à tous.
J'essaye d'installer une carte fille Adaptec 1200A; c'est une carte RAID construite sur base d'un chipset Highpoint hpt370A.
Comme de bien entendu, la carte ne supporte pas Linux.
Ce qui m'a intrigué, c'est que le chipset, lui, le supporte.
Mes pérégrinations sur internet m'ont permis de lire que quelqu'un a réussi à la faire marcher avec une Debian Sarge, mais il n'expliquait pas comment il avait fait, bien sûr, sinon, je ne posterais pas...
comme j'ai jamais compilé un driver à partir de sources, je dois sûrement m'y prendre de travers car le "make" ne veut rien savoir et me vomit systématiquement plus d'erreurs que le buffer de ma console ne peut en afficher.
Petite précision: NON, je ne veux pas augmenter la taille du buffer de ma console, comme le suggérait un ami à moi particulièrement taquin, je veux diminuer et éliminer les erreurs. Pour faire ça, je posterai un autre jour.
Si vous avez dans l'idée de me répondre un truc du genre "mais fais donc du RAID software", passez votre chemin aussi, on me l'a déjà faite et ça ne m'aidera pas à apprendre comment compiler un driver.
Il y a un truc bizarre aussi: le readme ne me parle pas de .configure...
Il me parle seulement du make pour la construction ("build") du driver.

Ah oui: la carte highpoint dont j'utilise le driver est la RocketRAID 100 qu'on trouve sur le site
http://www.highpoint-tech.com/
Support –> Bios + Driver –> ATA RAID -> RocketRAID 100.

J'ai écrit tout ce que j'ai fait ici: http://sergent-todd.blogspot.com/
Ce sont les épisodes 1.0 et 2.0 de RAID hardware.

Pour éviter que les gens qui souhaiteraient me donner un coup de main ne téléchargent le driver juste pour lire le readme, je le mets ci-dessous.

Si vous pouviez me dire ce que je dois faire dans l'ordre, ça me ferait plaisir.
J'ai déjà installé le build-essentials
J'ai mis le fichier décompressé dans usr/src/
On m'a dit que, traditionnellement, on doit faire un symlink de /usr/src/linux-2.6-... vers /usr/src/linux mais je vois pas à quoi ça sert.

Readme for HPT3xx RAID Controller Linux Driver
Copyright (C) 2002-2006 HighPoint Technologies, Inc. All rights reserved.


#############################################################################
Revision History:

    v2.1   17Jul2006
           Add IDE passthrough support.
           Remove dependency of drivers/scsi for kernel 2.6.
           Add autorebuild parameter.
           fix build error when NON_RAID=1
           Fix use of pci_enable_device
           Fix reboot hang on kernel 2.6.17.

    v2.0   10Nov2004
           Add support for kernel 2.6.x and x86_64.
           Add support for HPT302/302N IC.
           Use new driver core code.

    v1.35  17Mar2004
           Fix for DW state in thread hpt_wt.
           Update for S-ATA support.

    v1.31  21Dec2002
           Update driver library for GCC 3.2.
           Fix 48-bit LBA compatibility.
           Add support for HPT372N IC.
           Support non-RAID build.

    v1.3   05Apr2002
           It is the same driver code as ver 1.3 but this version opens kernel
           related driver source codes. Users can use this source code to
           generate HPT37x Linux drivers with current Linux kernel version.
           Then use it for HPT37x controller installation. Please follow the
           detail instruction in this readme.

    v1.3   02Jan2002
           HPT37x Linux driver object code released for
           a limited certain Linux kernel version.     

    v1.2   15Oct2001

    v1.1   30Jul2001

    v1.0   18Jul2001
           official release

#############################################################################

1. Overview
---------------------
  This package contains Linux driver source code for HighPoint
  HPT370/370A/372/372A/372N/302/302N ATA RAID controllers and RocketRAID 1520
  SATA RAID controllers.

  The source code is for kernel updating purposes - you can use this
  source code to build a driver, if you cannot find one in HighPoint
  Linux driver release package.

  NO WARRANTY

  THE DRIVER SOURCE CODE HIGHPOINT PROVIDED IS FREE OF CHARGE, AND THERE IS
  NO WARRANTY FOR THE PROGRAM. THERE ARE NO RESTRICTIONS ON THE USE OF THIS
  FREE SOURCE CODE. HIGHPOINT DOES NOT PROVIDE ANY TECHNICAL SUPPORT IF THE
  CODE HAS BEEN CHANGED FROM ORIGINAL SOURCE CODE.

  LIMITATION OF LIABILITY

  IN NO EVENT WILL HIGHPOINT BE LIABLE FOR DIRECT, INDIRECT, SPECIAL,
  INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OF OR
  INABILITY TO USE THIS PRODUCT OR DOCUMENTATION, EVEN IF ADVISED OF THE
  POSSIBILITY OF SUCH DAMAGES. IN PARTICULAR, HIGHPOINT SHALL NOT HAVE
  LIABILITY FOR ANY HARDWARE, SOFTWARE, OR DATA STORED USED WITH THE
  PRODUCT, INCLUDING THE COSTS OF REPAIRING, REPLACING, OR RECOVERING
  SUCH HARDWARE, OR DATA.

 
2. Build the driver
---------------------
 
  1) Install kernel build tools (gcc, binutils, make, etc.)
 
  2) Setup the kernel source/headers
 
     To build driver modules for a specific kernel, you shall use same
     configuration for the kernel and the driver. Otherwise, the driver may
     be unable to load, or behave abnormally.
     
     - For Linux kernel 2.6 -
     
     On most distributions based on kernel 2.6, an exploded source tree is not
     required to build a driver against the currently in-use kernel. As long
     as the system has kernel headers setup under /lib/modules/`uname -r`/build,
     you can simply run "make" to build the driver.

     If you want to build the driver against a custom kernel source, you must
     setup the kernel source manually and run "make" under kernel source tree
     to setup kernel headers.

     - For Linux kernel 2.4 -
     
     You need a full kernel source tree to build the driver. If you are building
     a driver for the currently in-use kernel, the kernel source should match
     the version of the running kernel. In addition, you must obtain the config
     file for the running kernel:
     
        For Red Hat or Fedora Linux, you can find the stock kernel config files
        under {kernel-source-dir}/configs, named kernel-*.config. Select the one
        matches your hardware and copy it to {kernel-source-dir}/.config.
       
        For SuSE Linux, the config files for current kernel is under /boot dir
        so you can the kernel source by
       
            # cd /usr/src/linux-{kernel-version}.SuSE
            # cp /boot/vmlinuz.config .config
            # cp /boot/vmlinuz.version.h include/linux/version.h
            # cp /boot/vmlinuz.autoconf.h include/linux/autoconf.h

        For other distributions please refer to the distribution documents to
        obtain the config file.
       
        If you are building a custom kernel and a driver, you can setup the kernel
        config by yourself, using "make config" or "make menuconfig" commands
        under kernel source directory.
       
     Once the kernel config file is ready, run following commands under kernel
     source directory to setup kernel headers:
     
            # make oldconfig
            # make dep
       
     On some Red Hat versions, {kernel-source-dir}/include/linux/modversions.h
     may be incorrect after "make dep", you need check if there is a line
     "#include <linux/rhconfig.h>" before "#include <linux/modsetver.h>" in that
     file. If not, please add the line manually.

     Users need to install the kernel source package and setup kernel
     headers with proper configuration before building the driver.
   
     You shall use same configuration for the kernel and the driver.
     Otherwise the driver may be unable to load or work abnormally.

     If you are using stock kernel, obtain the configuration in your Linux
     distribution (e.g. the kernel configuration file for Red Hat stock kernel
     can be found under "configs" directory in kernel source tree). Copy the
     configuration file to <your-kernel-source-dir>/.config and setup the
     kernel headers using "make oldconfig" and "make dep" commands before you
     build the driver.
     
     Please refer to the documents in your Linux distribution for kernel
     configuration.

     If the kernel contains built-in IDE support for your HPT3xx controller,
     you must rebuild and install a kernel without HPT37x controller support
     before using this driver. Please refer to kernel documents for how to
     configure/update the kernel.
     
  2) Extract the driver files to somewhere. e.g. /usr/src/hpt37x2

  3) Build the driver:

        # cd /usr/src/hpt37x2
        # make KERNELDIR=/usr/src/linux-2.6.4-52-default
       
     Available make options:
     
       KERNELDIR=...
           Specify kernel source directory. If not specified the driver will
           use /lib/modules/{kernel-version}/build/ as the default location.
           This option is needed if you have a manually configured kernel
           source tree.
           
       RR1520=
           RR1520=1 for RocketRAID 1520 SATA controller. (Default)
           RR1520=0 for HPT3xx based PATA RAID controllers.
     
       NON_RAID=
           NON_RAID=0 to build the driver with RAID support.(Default)
           NON_RAID=1 to build the driver without RAID support.

     
3. Using the driver
---------------------
   
  1) Load module "scsi_mod" and "sd_mod" if they are not built into kernel:

        # modprobe sd_mod

  2) Load the driver.
       
        # insmod ./hpt37x2.o

     For kernel 2.6, the driver module is "hpt37x2.ko". Also you need to use
     the 2.5/2.6 module-init-tools (you can get them from
     http://www.kernel.org/pub/linux/kernel/people/rusty/modules/).
     modutils from 2.4 won't work with 2.5/2.6.


5. Known problems
-------------------
  * Driver hang on SMP system using SuSE Linux 8.1

    The stock kernel shipped with SuSE Linux 8.1 has problems with the ACPI
    code. To using the driver, pass the following option to kernel manually
    at boot time:

        acpi=off

    You can also permanently add that line to your boot options before using
    the driver.

    It's recommend that you update your SuSE k_smp kernel to newer version.


#############################################################################
Technical support and service

  If you have questions about installing or using your HighPoint product,
  check the user's guide or readme file first, and you will find answers to
  most of your questions here. If you need further assistance, please
  contact us. We offer the following support and information services:

  1)  The HighPoint Web Site provides information on software upgrades,
      answers to common questions, and other topics. The Web Site is
      available from Internet 24 hours a day, 7 days a week, at
      http://www.highpoint-tech.com.

  2)  For technical support, send e-mail to support@highpoint-tech.com

  NOTE: Before you send an e-mail, please visit our Web Site
        (http://www.highpoint-tech.com) to check if there is a new or
        updated device driver for your system.

Bon ben voilà: j'en reste là pour l'instant.

En espérant avoir bientôt de vos nouvelles, veuillez agréer, chers zamis, blah-blah-blah...

$eb

Hors ligne

#2 Le 11/03/2008, à 21:58

$ebuntu

Re : carte RAID Adaptec 1200A (chipset Highpoint 370A)

Salut, tout le monde!

Alors, voilà: je profite de ce petit "UP" afin de parler de l'état d'avancement de mes recherches.
J'ai toujours rien trouvé.

Seulement, j'ai été voir quelqu'un que je considère comme très compétent en matière de système Linux/Unix...

Tellement compétent que seules les distros Slackware et Gentoo trouvent grâce à ses yeux.
Inutile de dire que quand je me suis ramené avec un PC Ubuntu sous le bras, j'ai senti un certain... froid.

Mais bon: quand je lui ai dit, au bord des larmes et la lèvre inférieure tremblante, que ça faisait une semaine que je m'esquintais sur l'installation de cette carte RAID, l'humanité a pris -temporairement- le dessus sur le linuxien "orthodoxe".

Ses talents en matière de typographie ne m'ont pas permis de tout suivre: 'a va trop vite...
vous saviez, vous que, quand on ne trouve pas le | sur un clavier belge alors que quelqu'un (moi) l'a configuré chez lui pour son clavier français, il suffit de taper "CTRL+124"? Ben lui, il sait ça de mémoire... Eh wais: on en apprend des trucs en 15 ans de linux...

Mais il a tout de même trouvé une série d'informations intéressantes pour l'avancée de mon problème.
Tout d'abord, il a trouvé que le driver que j'essaye d'installer (HPT37x) , il est déjà quelque part dans le noyau. Moi aussi, je l'ai vi... je veux dire: je l'ai vu... lol
Le problème, c'est qu'il n'arrive pas à utiliser le make menuconfig.
En revenant, chez moi, j'ai de suite cherché ici et j'ai trouvé la réponse: faut que j'installe libncurses5-dev.

sudo aptitude install libncurses5-dev

Je sais que certains d'entre vous me conseillerons d'utiliser le xconfig mais seulement, voilà: la carte graphique est une ATI 7000VE que même envy n'arrive pas à installer comme il faut: pas de drivers pour cette carte sur le site d'ATI/AMD et des tas de solutions partout sur internet aussi différentes les unes que les autres... Des recettes qui visiblement, ne fonctionnent qu'au cas pas cas.
Et, personnellement, 1280*1024 en 60Hz, ça fait mal aux yeux. En mode console, moins. Mais ne parlons plus de ce sujet, c'est un autre problème qui n'a rien à faire ici.

Ben voilà: j'en suis là pour l'instant...
Je m'y remet dès demain et, si je n'ai de nouvelles de personne, je continuerai d'écrire ici mes avancées jusqu'à ce que je puisse écrire [RÉSOLU]... ou [ABANDONNÉ] parce que mon frère sera venu rechercher sa vieille "Trabant informatique"...

En espérant avoir de vos nouvelles...

++, les gens!

Hors ligne

#3 Le 15/03/2008, à 09:49

$ebuntu

Re : carte RAID Adaptec 1200A (chipset Highpoint 370A)

up... siouplé... <:.-(

Dernière modification par $ebuntu (Le 15/03/2008, à 09:50)

Hors ligne