OVH Cloud OVH Cloud

adapter un driver redhat pour fc3?

4 réponses
Avatar
trewan
Salut,

J'ai trouvé un driver raid pour redhat 9.3 sur le site promise, il ne
tourne pas "sorti du four" sur fc3.

D'une manière générale, peut on adapter des drivers d'une distribution
vers une autre? auriez vous quelques liens qui expliquent la manip dans
l'affirmative?

Merci

Eric

4 réponses

Avatar
Rakotomandimby (R12y) Mihamina
( Fri, 15 Apr 2005 20:15:13 +0200 ) trewan :

Salut,


Salut.

J'ai trouvé un driver raid pour redhat 9.3 sur le site promise, il ne
tourne pas "sorti du four" sur fc3.


RedHat 9 je suppose.

D'une manière générale, peut on adapter des drivers d'une distribution
vers une autre?


D'une manière générale, non. Au cas par cas, c'est possible.

auriez vous quelques liens qui expliquent la manip dans
l'affirmative?


Je suppose que ce sont des RPMs.

Esaie d'installer le rpm sur ta fc3, et regarde si ça gueule aux
dépendances. En fonction de comment ça gueule on peut voir comment
"forcer" la chose (un simple --force ou bien une manipulation de l'archive...)

Essaie de voir comment est foutu un fichier rpm, et comment il est
construit:
commence à fabriquer des rpm à partir des src.rpm. ensuite tu verra
comment est organisé un rpm. C'est n'est en fait qu'une archive plus
quelques fichiers qui servent pour la gestion de dépendance.
quelques liens :

http://faq.fcolc.eu.org/administration/fabriquerrpm

--
Les serveurs avec 10Mb/s se louent maintenant pour 50 ou 60 Euros par mois!
La preuve http://www.google.fr/search?q=serveur+dedie
Infogerance de serveur dedie http://aspo.rktmb.org/activites/infogerance
(En louant les services de l'ASPO vous luttez contre la fracture numerique)

Avatar
trewan
Rakotomandimby (R12y) Mihamina wrote:


Je suppose que ce sont des RPMs.



Dans mon cas, non, ce sont des modules "modules.cgz" , "modules.dep". à
charger à l'installation avec linux dd, ainsi qu'un fichier "install" et
"setup-ft"

merci pour le lien

Eric

Avatar
Rakotomandimby (R12y) Mihamina
( Fri, 15 Apr 2005 20:49:59 +0200 ) trewan :

Rakotomandimby (R12y) Mihamina wrote:
ainsi qu'un fichier "install" et


Ce fichier install décrit l'installation?
Si tu la suit, ça donne quoi?

--
Les serveurs avec 10Mb/s se louent maintenant pour 50 ou 60 Euros par mois!
La preuve http://www.google.fr/search?q=serveur+dedie
Infogerance de serveur dedie http://aspo.rktmb.org/activites/infogerance
(En louant les services de l'ASPO vous luttez contre la fracture numerique)

Avatar
trewan
Rakotomandimby (R12y) Mihamina wrote:

Ce fichier install décrit l'installation?
Si tu la suit, ça donne quoi?



Ca ne marche pas, arrivé à diskdruid il ne voit pas mon set raid.

le fichier install contient ce code (long) :

#!/bin/sh
ok='0'
echo -n "FastTrak Driver(ft3xx) Installation."
if [ ! -f modules.cgz ]; then
echo "failed"
echo "This is not FastTrak Driver(ft3xx) Disk for RedHat Linux"
exit 1
fi

if [ -d /tmp/.ft_mod ]; then
rm -rf /tmp/.ft_mod
fi
mkdir -p /tmp/.ft_mod

cp modules.cgz /tmp/.ft_mod/
cd /tmp/.ft_mod
if [ ! -f modules.cgz ]; then
echo "failed"
echo "Runtime error..setup abort!!(disk full or no permission?)"
exit 1
fi
echo -n "."

zcat modules.cgz |cpio -id >/dev/null 2>&1
if [ $? -ne 0 ]; then
echo "failed"
echo "Runtime error..setup abort!!(corrupt file)"
exit 1
fi
echo -n "."

for i in `ls -d *`
do
if [ ! -d /lib/modules/${i} ]; then
continue
fi
ok='1'

minor=`echo ${i} | awk -F. '{print $2}'`
if [ ${minor} -eq 2 ]; then
cp -f ${i}/ft3xx.o /lib/modules/${i}/scsi/ >/dev/null 2>&1
elif [ ${minor} -eq 4 ]; then
cp -f ${i}/ft3xx.o /lib/modules/${i}/kernel/drivers/scsi/
/dev/null 2>&1
fi

echo -n "."

done

if [ ${ok} -ne '1' ] ; then
echo "failed"
echo "No suitable driver found"
echo "make sure driver disk is right"
exit 1
fi

depmod -aq >/dev/null 2>&1
echo -n "."

if [ -f /etc/lilo.conf ]; then
if [ ! -f /etc/lilo.conf.orig ]; then
cp -f /etc/lilo.conf /etc/lilo.conf.orig >/dev/null 2>&1
fi
fi
echo -n "."

if [ -f /boot/grub/grub.conf ]; then
if [ ! -f /boot/grub/grub.conf.orig ]; then
cp -f /boot/grub/grub.conf /boot/grub/grub.conf.orig >/dev/null 2>&1
fi
fi

if grep 'BOOT_IMAGE' /proc/cmdline >/dev/null 2>&1; then
lilo >/dev/null 2>&1
fi
echo -n "."

if ! grep 'depmod -Aq' /etc/rc.d/rc.sysinit >/dev/null 2>&1 ; then
sed -e '/depmod -A/s/depmod -A/depmod -Aq/' /etc/rc.d/rc.sysinit
/tmp/.rc.sysinit.tmp
mv -f /tmp/.rc.sysinit.tmp /etc/rc.d/rc.sysinit

chmod 755 /etc/rc.d/rc.sysinit
fi
echo -n "."

echo "Done"

RC=`grep 'rc.modules$' /etc/rc.d/rc.sysinit`
if ! grep '^insmod ft3xx' ${RC} >/dev/null 2>&1; then
echo -n "Do you want to load ft3xx module when linux booting
everytime?(Y/N) "
read key

case ${key} in
Y|y)
echo "" >> `echo ${RC}`
echo "#Promise FastTrak Driver(ft3xx)" >> `echo ${RC}`
echo -n 'if [ `uname -r |awk -F. ' >> `echo ${RC}`
echo -n "'" >> `echo ${RC}`
echo -n '{print $2}' >> `echo ${RC}`
echo -n "'" >> `echo ${RC}`
echo '` -eq 4 ]; then' >> `echo ${RC}`
echo " insmod scsi_mod >/dev/null 2>&1" >> `echo ${RC}`
echo " insmod sd_mod >/dev/null 2>&1" >> `echo ${RC}`
echo "fi" >> `echo ${RC}`
echo "insmod ft3xx >/dev/null 2>&1" >> `echo ${RC}`
chmod 755 ${RC}
;;
N|n)
echo ""
echo "The FastTrak driver module can be loaded automatically"
echo "by appending the following command to ${RC}"
echo ""
echo " insmod scsi_mod"
echo " insmod sd_mod"
echo " insmod ft3xx"
;;
*)
echo ""
;;
esac
fi

echo "Setup is complete, please reboot system"