PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : Linux mit VIA6421 Raid installlieren?



KoS
20.07.05, 10:12
Hallo,

ich habe mir vor einigen Tagen ein Notebook der Fujitsu Siemens AMILO-Reihe gekauft und wollte dort nun Linux installieren.
Von SuSE habe ich mir die Version 9.2 (DVD-Version) geladen. Wenn ich boote und die Installation starte komme ich bis zur KKomponenten-Analyse in YaST2. Dort stellt er Fest das er keine Festplatte erkennen kann. Das hat mich auch nicht sonderlich gewundert weil das Notebook zwei SATA Festplatte mit einem VIA RAID-Controller eingebaut hat.
Ich bin hab mir also auf viaarena.com den Treiber für den Controller VT6421 heruntergeladen und mir dir readmes angeschaut.
Jetzt steht dort allerdings drin das man die treiber wohl erst compilieren müsste um sie für eine installlation zu verwenden.


This is the document describes how I install linux onto our RAID controller.
If you have any suggestion/questions, contact me with dolpherdu@viatech.com.cn

Here is what you should know before we can begin.
a). Kernel for installation(boot from CDROM) is not the same as the normal
kernel, so we need to compile drivers for both kernel version. For example,
for redhat9.0, the kernel from CDROM boot is 2.4.20-8BOOT, but after
installation, boot from hard disk, the kernel version is 2.4.20-8. We will
use XXXX to refer to the kernel version number.
b). Before installation, we must load the driver for BOOT kernel, to recognize
our hard disk. The method is not standard for different linux vendors.
c). After installation, we need to boot from hard disk. Because kernel is
installed on our RAID hard disk, we must load driver module before kernel
init. This is done by a image file "initrd", the initrd is a filesystem image
which should contain the driver information.
We can see this initrd file under /boot/ directory, and boot loader(both
grub and lilo) have an option "initrd = ourinitrdfile".
After installation, we should add our driver module to this initrd file,
unfortunately, the method is not standard too.

That's all. We'll discuss the details for each specific linux.

3). SuSE 8.2
1. compile a driver for i386 CPU type, this is for BOOT kernel.
#cd /usr/src/linux
#make menuconfig ;change the CPU type here to i386
#make dep
back to our source code directory, make a driver
#make
copy viamraid.o to a floppy disk.(VFAT)
#mount /dev/fd0 /mnt/floppy
#cp viamraid.o /mnt/floppy/viamraid_BOOT.o
2. compile a driver for your current CPU
#cd /usr/src/linux
#make menuconfig ;change the CPU type according to your CPU.
#make dep
back to our source code directory, make a driver
#make
copy viamraid.o to a floppy disk.(VFAT)
#cp viamraid.o /mnt/floppy/viamraid.o
3. boot from cdrom, when prompt to select language, press
CTRL-ALT-F2, insert the floppy, run
#mkdir aa
#mount /dev/fd0 /aa
#insmod /aa/viamraid_BOOT.o
press CTRL-ALT-F7 to continue
4. after reboot, when prompt to select language, do (3) again
when prompt where to boot from, select "Boot installed system".
5. when asked to enter password for root, press CTRL-ALT-F2,
#mount /dev/fd0 /media/floppy
#cp /media/floppy/viamraid.o /lib/modules/`uname -r`/misc/
#vi /etc/sysconfig/kernel ;change varialbe INITRD_MODULES to
;include viamraid like this: INITRD_MODULES="viamraid reiserfs"
#mkinitrd
#umount /dev/fd0
press CTRL-ALT-F7 to finish the normal install.

Note: For VIA K8 Platform, please complier the two CPU type driver all named as "viamraid.o" and copy two floppy to install OS.

6). SuSE 9.0 for x86_64
1. compile a driver for "generic x86_64" CPU type
#cd /usr/src/linux
#make menuconfig ;change CPU type to "generic x86_64".
#make dep
back to our source code directory, make a driver
#make
copy viamraid.o to a floppy disk.(VFAT)
#cp viamraid.o /mnt/floppy/viamraid.o
2. boot from cdrom, when prompt to select language, press
CTRL-ALT-F2, insert the floppy, run
#mkdir aa
#mount /dev/fd0 /aa
#insmod /aa/viamraid.o
press CTRL-ALT-F7 to continue
3. after reboot, when prompt to select language, do (2) again
when prompt where to boot from, select "Boot installed system".
4. when asked to enter password for root, press CTRL-ALT-F2,
#mount /dev/fd0 /media/floppy
#cp /media/floppy/viamraid.o /lib/modules/`uname -r`/misc/
#vi /etc/sysconfig/kernel ;change varialbe INITRD_MODULES to
;include viamraid like this: INITRD_MODULES="viamraid reiserfs jbd"
#mkinitrd
press CTRL-ALT-F7 to finish the normal install.
;If system appears "Can't determine dependencies of module viamraidjgb. Is this modules.dep up to date" message. Please CTRL-ALT-F7 to finish the normal install. And run command "mkinitrd" again in terminal.
(file um andere systeme gekürzt)

Ein Problem ist allerdings, ich habe kein Linux mit dem ich die compilieren könnte. Es gibt zwar eine viaprvraidm.o die ich versucht habe und ebenso im ReadHat verzeichnis die viamraid.o aber bei beidem kam die fehlermeldung:
insmod: error inserting '/aa/viamraid.o': -1 Invalid module format
Liegt das daran das sich 9.2 nicht mit den *.o modulen verträgt oder muss tatsächlich die dateien auf einem linux system compiliert werden?

Danke!

zyrusthc
21.07.05, 03:48
Ein Problem ist allerdings, ich habe kein Linux mit dem ich die compilieren könnte.
Dann wird es Zeit , dir mal Knoppix zu downloaden . Dort ist Compiler usw. alles dabei!

gruss Oli

KoS
21.07.05, 15:14
Dann wird es Zeit , dir mal Knoppix zu downloaden
Hallo,

also ich habe mir Knoppix runtergeladen und gebootet. Wenn ich aber versuchen will wie in der Hilfedatei von den Treibern, für SuSE 8.2 oder SuSE 9.0 vorzubereiten indem ich folgendes Ausführe

1. compile a driver for i386 CPU type, this is for BOOT kernel.
#cd /usr/src/linux
#make menuconfig ;change the CPU type here to i386
#make dep
back to our source code directory, make a driver
#make
bekomm ich eigentlich schon beim ersten make ein Fehler.

/bin/sh: /UNIONFS/usr/src/linux-2.6.11/scripts/gcc-version.sh: Datei oder Verzeichnis nicht gefunden
make[1]: scripts/Makefile.build: Datei oder Verzeichnis nicht gefunden
make[1]: *** Keine Regel, um >>scripts/Makefile.build<< zu erstellen. Schluss.
make: *** [scripts_basic] Fehler 2

Wenn ich einfach nur versuche ein make im Verzeichnis von dem Treiber mache, rattert er ne ganze menge durch aber auch lauter Warnungen und error's und stoppt dann mit:
make: *** [viapubraid.o] Fehler 2

Wie schaffe ich nun die Datei zu kompilieren?
Hier mal der Download von VIA, vielleicht kann mir dabei jemand behilflich sein:
http://www.viaarena.com/default.aspx?PageID=420&OSID=19&CatID=2190&SubCatID=117

Danke!