LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 11-24-2002, 08:18 PM   #46
v8625
LQ Newbie
 
Registered: Sep 2002
Posts: 11

Rep: Reputation: 0
Re: Re: Re: Re: RedHat 8.0 + HighPoint HPT 370 RAID 0 : kernel issue


Quote:
Originally posted by sharkyr0lz
As i said in this thread you don't need to recompile the kernel, ... you can use the precompiled one included in my gziped tar file, ... just read the readme file included inside,... i think that this can be realy easy,...

I posted a reply recently about the new kernel 2.4.20, ...
I mailed alan cox to ask him about the update of the hpt driver inside the kernel, ... he said that the kernel will not be updated until 2.4.21

The native support of our raid using the oficial kernel will be far
Sorry, I was away busy with other things for about a month, so I lost track of what's where. I can't find the link to the gzipped tar file. And I remember you mentioned that all this would only work for an AMD machine and I have an Intel on this box. So I would still need to compile, don't I?
Anyway, so basically my action plan should be (please confirm):
1. Unzip/untar the kenel file.
2. Move teh resulting file to /???/???
3. Run make?
4. At what point the HP driver comes into the picture?
5. At what point the compilation process is over?
Regards.
 
Old 11-25-2002, 07:14 PM   #47
sharkyr0lz
Member
 
Registered: Oct 2002
Location: spain :)
Distribution: Gentoo (Old redhat and debian user)
Posts: 112

Rep: Reputation: 15
Re: Re: Re: Re: Re: RedHat 8.0 + HighPoint HPT 370 RAID 0 : kernel issue + Rex2 :P

Quote:
Originally posted by v8625
Sorry, I was away busy with other things for about a month, so I lost track of what's where. I can't find the link to the gzipped tar file. And I remember you mentioned that all this would only work for an AMD machine and I have an Intel on this box. So I would still need to compile, don't I?
Anyway, so basically my action plan should be (please confirm):
1. Unzip/untar the kenel file.
2. Move teh resulting file to /???/???
3. Run make?
4. At what point the HP driver comes into the picture?
5. At what point the compilation process is over?
Regards.
http://www.terra.es/personal2/capullator/
http://www.clockwatching.net/~fin/ra...at8_hpt372.tgz
(mirror provided by finegan :P)

1) Extract the files inside: install_redhat8_hpt372.tgz you will get a boot disk to install redhat. Check the readme file for further info,...
2) In your case you will need to change ALL the "post install" procedure :P, ... you must compile your own kernel instead of overwriting the original one,...
3) edit your /usr/src/linux/drivers/ide-pci.c and drop the lines:
Quote:
{DEVID_HPT34X, "HPT34X", FIXUP_HPT34X, PCI_HPT34X, NULL, INIT_HPT34X, NULL, {{0x00,0x00,0x00}, {0x00,0x00,0x00}}, NEVER_BOARD, 16 },
{DEVID_HPT366, "HPT366", FIXUP_HPT366, PCI_HPT366, ATA66_HPT366, INIT_HPT366, DMA_HPT366, {{0x00,0x00,0x00}, {0x00,0x00,0x00}}, OFF_BOARD, 240 },
{DEVID_HPT372, "HPT372A", NULL, PCI_HPT366, ATA66_HPT366, INIT_HPT366, DMA_HPT366, {{0x00,0x00,0x00}, {0x00,0x00,0x00}}, OFF_BOARD, 0 },
{DEVID_HPT302, "HPT302", NULL, PCI_HPT366, ATA66_HPT366, INIT_HPT366, DMA_HPT366, {{0x00,0x00,0x00}, {0x00,0x00,0x00}}, OFF_BOARD, 0 },
{DEVID_HPT371, "HPT371", NULL, PCI_HPT366, ATA66_HPT366, INIT_HPT366, DMA_HPT366, {{0x00,0x00,0x00}, {0x00,0x00,0x00}}, OFF_BOARD, 0 },
{DEVID_HPT374, "HPT374", FIXUP_HPT374, PCI_HPT366, ATA66_HPT366, INIT_HPT366, DMA_HPT366, {{0x00,0x00,0x00}, {0x00,0x00,0x00}}, OFF_BOARD, 0 },
copy the /boot/config-... to .config inside the kernel source dir.

make menuconfig -> disable de hpt support (inside ata)

compile and install the kernel,...
compile the highpoint driver with the gcc3 cheat,...
mount your initial ramdisk partition and copy your hpt37x2.o inside at /lib
add an "insmod" inside the linuxrc from the initial ramdisk,...
unmount your initial ramdisk,...
 
Old 11-30-2002, 09:26 PM   #48
v8625
LQ Newbie
 
Registered: Sep 2002
Posts: 11

Rep: Reputation: 0
Re: Re: Re: Re: Re: Re: RedHat 8.0 + HighPoint HPT 370 RAID 0 : kernel issue + Rex2 :

1. Boot from the boot disk you created. Do I really need to boot from it - I already have a RedHat 7.3 running on HighPoint 370 RAID 0 - can't I just boot from it and compile a new kernel with the new driver support, what do you think?
2. Say No to the prompt "Do you have a driver disk"
3. Open another terminal (Alt+F2)
4. Run /bin/insmod /modules/hpt37x2.o. I understand I should build my own driver - make KERNELDIR=/usr/src/linux-2.4.18-14 or can I use yours? Mine is an Intel machine.
5. Get back to the original terminal window?
6. Is this where I should supposedly start compiling the RH 8.0 kernel? It sounds like I should already have a compiled kernel at this point. The HighPoint readme says I should "install" (compile?) my new kernel first, then remove the necessary lines from /usr/src/drivers/ide/ide-pci.c, and then "rebuild" (recompile?) the kernel. Now this part is a bit confusing.
7. Also ,compiling the kernel involves the following:
- cd /mnt/cdrom/RedHat/RPMS
- rpm -i kernel-source-2.4.18-14.i386.rpm. Do I need any other files?
- cd /usr/src/linux
- make xconfig
- insmod - this is where I should take care of this driver?
- make dep
- make clean
What and at which point do I copy to the /boot?




Quote:
Originally posted by sharkyr0lz
http://www.terra.es/personal2/capullator/
http://www.clockwatching.net/~fin/ra...at8_hpt372.tgz
(mirror provided by finegan :P)

1) Extract the files inside: install_redhat8_hpt372.tgz you will get a boot disk to install redhat. Check the readme file for further info,...
2) In your case you will need to change ALL the "post install" procedure :P, ... you must compile your own kernel instead of overwriting the original one,...
3) edit your /usr/src/linux/drivers/ide-pci.c and drop the lines:


copy the /boot/config-... to .config inside the kernel source dir.

make menuconfig -> disable de hpt support (inside ata)

compile and install the kernel,...
compile the highpoint driver with the gcc3 cheat,...
mount your initial ramdisk partition and copy your hpt37x2.o inside at /lib
add an "insmod" inside the linuxrc from the initial ramdisk,...
unmount your initial ramdisk,...
 
Old 12-01-2002, 12:38 PM   #49
sharkyr0lz
Member
 
Registered: Oct 2002
Location: spain :)
Distribution: Gentoo (Old redhat and debian user)
Posts: 112

Rep: Reputation: 15
Re: Re: Re: Re: Re: Re: Re: RedHat 8.0 + HighPoint HPT 370 RAID 0 : kernel issue + Re

Quote:
Originally posted by v8625
1. Boot from the boot disk you created. Do I really need to boot from it - I already have a RedHat 7.3 running on HighPoint 370 RAID 0 - can't I just boot from it and compile a new kernel with the new driver support, what do you think?
Yep you can,...
Quote:
Originally posted by v8625

2. Say No to the prompt "Do you have a driver disk"
3. Open another terminal (Alt+F2)
4. Run /bin/insmod /modules/hpt37x2.o. I understand I should build my own driver - make KERNELDIR=/usr/src/linux-2.4.18-14 or can I use yours? Mine is an Intel machine.
The instaler kernel works in an i586, ... no problem here
Quote:
Originally posted by v8625
5. Get back to the original terminal window?
Not needed, ... While you are doing the "/bin/insmod /modules/hpt37x2.o" the installer is detecting your monitor, hd drives, ... (so go as fast as you can), .... and then, ... the graphical mode will popup automatically.
Quote:
Originally posted by v8625
6. Is this where I should supposedly start compiling the RH 8.0 kernel? It sounds like I should already have a compiled kernel at this point. The HighPoint readme says I should "install" (compile?) my new kernel first, then remove the necessary lines from /usr/src/drivers/ide/ide-pci.c, and then "rebuild" (recompile?) the kernel. Now this part is a bit confusing.
You must compile / change the kernel at the last part of the installation, ... (when it ask for reboot)
Quote:
Originally posted by v8625
7. Also ,compiling the kernel involves the following:
- cd /mnt/cdrom/RedHat/RPMS
- rpm -i kernel-source-2.4.18-14.i386.rpm. Do I need any other files?
(Yep, ... but you can do this inside the installer)
Quote:
Originally posted by v8625
- cd /usr/src/linux
- make xconfig
(Remember to modify ide-pci.c here)
No, ... copy your /boot/config-2.4.18-14?????' to /usr/src/linux/.config
- make menuconfig
(disable the hpt* support inside IDE and save the changes)
modify the Makefile (drop "custom" in the kernel version)
Quote:
Originally posted by v8625
- insmod - this is where I should take care of this driver?
No, ... forget the insmod
Quote:
Originally posted by v8625
- make dep
- make clean
- make

Here you have an "/usr/src/linux/arch/i386/boot/bzImage"
Quote:
Originally posted by v8625
What and at which point do I copy to the /boot?
NOW Copy /usr/src/linux/arch/i386/boot/bzImage to /boot/vmlinuz-2.4?????????

NOW compile the driver and copy htp37x2.o to /lib/modules/2.4????/kernel/drivers/scsi and run (depmod -a)

run
/sbin/mkinitrd -f --preload scsi_mod --preload sd_mod --preload ext3 --preload hpt37x2 --with=hptraid /boot/initrd-2.4????????.img 2.4????????

(note that ???? is not ???? exactly :P)

run lilo if you use lilo and reboot,...

Last edited by sharkyr0lz; 12-01-2002 at 12:45 PM.
 
Old 12-04-2002, 10:18 AM   #50
Mercenary
LQ Newbie
 
Registered: Dec 2002
Distribution: RedHat 7.1
Posts: 2

Rep: Reputation: 0
some more hpt37x2 stuff

hello,

I read the whole thread and I used some tricks you wrote.
now my RedHat 7.1 runs and allows me to mount my HDD's which are attached to the hpt-controller.

the only problem is that I have to connect my linux-HDD to the mainboards primary (or secondary) ide-interface to boot linux.

I used the manual given by RedHat to compile a new kernel (it's now about 900k)...I hope I did it right (it showed no erros during the compilation) but it didn't work.

my linux partition is the second one on the HDD, the first one is a windows-partition with about 18gig...so Linux gets the last 2.1gig of the HDD.
that's why I have to use Loadlin to boot up Linux or I use a boot-disc.
but I prefer to boot with Loadlin.

so my question is: can I load the needed hpt-module with Loadlin so that Linux boots from the proper recognized HDD attached to the hpt-controller ?

hope anyone can help me out...cause I hate it to plug and unplug the HDD everytime I want to use Linux.

Thanks,
Mercenary
 
Old 12-04-2002, 10:56 AM   #51
sharkyr0lz
Member
 
Registered: Oct 2002
Location: spain :)
Distribution: Gentoo (Old redhat and debian user)
Posts: 112

Rep: Reputation: 15
Re: some more hpt37x2 stuff

Quote:
Originally posted by Mercenary
my linux partition is the second one on the HDD, the first one is a windows-partition with about 18gig...so Linux gets the last 2.1gig of the HDD.
that's why I have to use Loadlin to boot up Linux or I use a boot-disc.
but I prefer to boot with Loadlin.
You can use lilo installed in the mbr to load windows or linux without any problem.

Quote:
Originally posted by Mercenary
so my question is: can I load the needed hpt-module with Loadlin so that Linux boots from the proper recognized HDD attached to the hpt-controller ?

hope anyone can help me out...cause I hate it to plug and unplug the HDD everytime I want to use Linux.

Thanks,
Mercenary
Well, ... i think that is really easy (but had never work with loadlin), ...

boot with your loadlin ( LOL ) and go to /boot
copy your vmlinuz and initrd files (compiled to support the hpt driver and with hpt37x2.o inside the initrd as the highpoint manual says ) to your loadlin directory overwriting the old initrd and vmlinuz files.
 
Old 12-04-2002, 11:16 AM   #52
Mercenary
LQ Newbie
 
Registered: Dec 2002
Distribution: RedHat 7.1
Posts: 2

Rep: Reputation: 0
ok...thanks for writing something back...

the problem is I can't use LILO 'cause the Linux-partition is behind some size that LILO can't access...I don't know if a newer version of LILO can...
in the other way I don't want to use LILO.

well...the second problem I have is that I don't have any initrd.img file in my /boot directory...I think it's due to I don't installed LILO...but I don't know exactly...

when I use the kernel I made with help of the RedHat manual, the system halts with "booting linux...uncompressin kernel..." (something in that way).

the commands I used with loadlin is:
"Loadlin vmlinu~1.hpt root=/dev/sda2 ro init=initrd.img"

vmlinu~1.hpt is the new 924k big kernel file I created, /dev/sda2 is the ext2 partition of my linux...

I guess the main problem is that the kernel isn't the correct one, I think it doesn't load the needed hpt37x2.o module.

the manual says I have to insmod something into the initrd oder linuxrc or something like that...but i haven't any file or directory called linuxrc or initrd (maybe due to I don't have installed LILO).

maybe you can describe it a bit more exact for a dummy like me...


Thanks,
Mercenary
 
Old 12-04-2002, 05:35 PM   #53
sharkyr0lz
Member
 
Registered: Oct 2002
Location: spain :)
Distribution: Gentoo (Old redhat and debian user)
Posts: 112

Rep: Reputation: 15
Quote:
Originally posted by Mercenary
well...the second problem I have is that I don't have any initrd.img file in my /boot directory...I think it's due to I don't installed LILO...but I don't know exactly...
Copy your new hpt37x2.o to /lib/modules/<your kernel version here>/kernel/drivers/scsi

You can create a new initrd with this command:

/sbin/mkinitrd -f --preload scsi_mod --preload sd_mod --preload ext3 --with=hpt37x2 --fstab=/etc/fstab.new /boot/initrd-<your kernel version here>.img <your kernel version here>
"<your kernel version here>"="2.4.19" (sample :P)

(The changes of the linuxrc inside the initrd are ok if you do this)


Quote:
Originally posted by Mercenary
when I use the kernel I made with help of the RedHat manual, the system halts with "booting linux...uncompressin kernel..." (something in that way).
Probably because you don't have an initrd.

Quote:
Originally posted by Mercenary
the commands I used with loadlin is:
"Loadlin vmlinu~1.hpt root=/dev/sda2 ro init=initrd.img"
initrd.img exist in your DOS drive?

Quote:
Originally posted by Mercenary
I guess the main problem is that the kernel isn't the correct one, I think it doesn't load the needed hpt37x2.o module.

the manual says I have to insmod something into the initrd oder linuxrc or something like that...but i haven't any file or directory called linuxrc or initrd (maybe due to I don't have installed LILO).

maybe you can describe it a bit more exact for a dummy like me...
The initrd is a ext2 partition inside a file. (and then compressed with gzip)
This partition contains the 1st script and modules loaded in the startup.
As you say:"Loadlin vmlinu~1.hpt root=/dev/sda2 ro init=initrd.img" probably "initrd.img" probably the file initrd.img is not in /dev/sda2, ... i think that this file is exactly in the same directory that loadlin.

Once you load linux you can see what is iniside initrd.img if you do this:

mkdir temp
cd temp
zcat ../initrd.img > init
mkdir mountdir
mount init mountdir -o loop
cd mount
/*** here you can do what you need with initrd. ***/
/*** linuxrc is HERE!. ***/
/*** the modules loaded inside linuxrc goes in ./lib ***/
cd ..
umount mountdir
gzip init
mv init ../initrd.img
/*** now you can drop temp if you want. ***/

Last edited by sharkyr0lz; 12-04-2002 at 05:37 PM.
 
Old 12-15-2002, 12:12 AM   #54
grenoml
LQ Newbie
 
Registered: Dec 2002
Location: USA
Posts: 9

Rep: Reputation: 0
Hello sharky,
I am considering installing RH8 on my KG7-RAID mb w/HPT370. I have read all the discussions here - quite a lot of reading! You mentioned that there may be support for HPT370/372 start with kernel version 2.4.21. I have been looking at kernel.org but it doesn't seem that there is support even then or even 2.5.8. I still only see HPT344 and HPT366 but nothing like HPT37x. Do you know if they are still planning to incorporate support in the kernel for HPT37x? I would like to have support in kernel so I could update my machine with RPM later.
 
Old 12-15-2002, 12:19 AM   #55
finegan
LQ Guru
 
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Slackware
Posts: 5,700

Rep: Reputation: 72
The HPT370 is supported with stock kernels back to 2.4.10, the hpt372 is still only in modules from Highpoint.

Code:
CONFIG_BLK_DEV_HPT366:

  ? HPT366 is an Ultra DMA chipset for ATA-66.
  ? HPT368 is an Ultra DMA chipset for ATA-66 RAID Based.
  ? HPT370 is an Ultra DMA chipset for ATA-100.

  ? This driver adds up to 4 more EIDE devices sharing a single
  ? interrupt.

  ? The HPT366 chipset in its current form is bootable. One solution
  ? for this problem are special LILO commands for redirecting the
  ? reference to device 0x80. The other solution is to say Y to "Boot
  ? off-board chipsets first support" (CONFIG_BLK_DEV_OFFBOARD) unless
  ? your mother board has the chipset natively mounted. Regardless one
  ? should use the fore mentioned option and call at LILO or include
  ? "ide=reverse" in LILO's append-line.

  ? This driver requires dynamic tuning of the chipset during the
  ? ide-probe at boot. It is reported to support DVD II drives, by the
The 370 is just really an extension off of the 366 chipset.

Cheers,

Finegan
 
Old 12-15-2002, 09:46 AM   #56
grenoml
LQ Newbie
 
Registered: Dec 2002
Location: USA
Posts: 9

Rep: Reputation: 0
Thanks for your reply. If I am reading all these posts correctly it is true that HPT370 support is there but only as ATA100-IDE and not ATA100-RAID. So you can use your drives attached to the HPT370 as regular IDE drives but cannot set them up as RAID drives under the HPT370 controller. I also must have the RAID functionality as I also have W2K on this machine and I would like the HPT370 to handle all RAID functionality for both W2K and RH8 Linux. That is what I was hoping was buiilt into the newer kernels so that it would be upgradeable in the future via a regular RPM. Otherwise you will always have to compile your own kernel.

Regards,
Gerry Reno
 
Old 12-15-2002, 10:11 AM   #57
grenoml
LQ Newbie
 
Registered: Dec 2002
Location: USA
Posts: 9

Rep: Reputation: 0
Additional thoughts:
From what I can see regarding the HighPoint 'opensource' driver (that has BINARIES in it), unless HighPoint truly releases the source code so that things like the magic key and the RAID structure and signature are made available, we will probably never see support for the RAID functionality of HPT3xx drivers built into the kernels. This would mean that every HPT3xx owner would be forced to compile their own kernel all the time with every Linux release to have full support for their RAID controller. This would be too bad and would ultimately work against HighPoint and their HPT3xx controllers in the Linux market.

Regards,
Gerry Reno
 
Old 12-15-2002, 02:09 PM   #58
sharkyr0lz
Member
 
Registered: Oct 2002
Location: spain :)
Distribution: Gentoo (Old redhat and debian user)
Posts: 112

Rep: Reputation: 15
yep, ... lots of companies do this.

But i think that this situation (hpt 370 and 372 raid) is near to end,... if the 2.4.19-ac4 have a raid working driver the oficial kernel will support us soon.
 
Old 12-16-2002, 01:29 AM   #59
grenoml
LQ Newbie
 
Registered: Dec 2002
Location: USA
Posts: 9

Rep: Reputation: 0
Now another question: ( if this is too far off-topic then please move this to its own topic - thanks)

In Linux the IDE drives are assigned device names as hda,hdb,hdc,hdd. With the HPT controllers being added to the mb's IDE controllers will this mean that there are more device names assigned like hde,hdf,hdg,hdh?

What happens if your RAID-1 array breaks mirror? Does this reallocate the device naming assignments? In other words if I have four drives setup in two arrays that appear to the system as hda and hdb when the mirrors breaks I would then have hda,hdb and hdc and hdd. Would this make the system not run properly from just a HPT mirror break?

In Windows I would always leave certain drive letters unassigned by specifically assigning the drive letters to each drive. That way if I put drives C: and D: into an array and drives E: and F: into an array it would not end up showing as drive C: and drive D: when mirrored but rather drive C: and drive E: (drive letter D: was skipped) so if the mirrors would break and the system was rebooted the drive letters for the running system would still be correct. Is this type of thing possible with RH8? Can I force device name assignments? This would be essential to prevent broken HPT mirrors from crippling the system. Otherwise the mount point assignments may be of incorrect capacity and fail.

Thoughts?

Last edited by grenoml; 12-16-2002 at 01:37 AM.
 
Old 12-16-2002, 04:39 AM   #60
sharkyr0lz
Member
 
Registered: Oct 2002
Location: spain :)
Distribution: Gentoo (Old redhat and debian user)
Posts: 112

Rep: Reputation: 15
Quote:
Originally posted by grenoml
In Linux the IDE drives are assigned device names as hda,hdb,hdc,hdd. With the HPT controllers being added to the mb's IDE controllers will this mean that there are more device names assigned like hde,hdf,hdg,hdh?
hda,hdb,hdc,hdd -> normal ide

hde,hdf,hdg,hdh -> raid ide

Quote:
Originally posted by grenoml
What happens if your RAID-1 array breaks mirror? Does this reallocate the device naming assignments?
You must boot from /dev/hdXX instead of /dev/ataraid/dXpX

And change /etc/fstab once you boot if you mount more fs from your raid.


Probably it isn't automatic but, ... thats not a problem.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Slack + Highpoint 372 RAID0/1 killerbob Slackware 5 11-18-2004 07:10 PM
redhat 9 + highpoint 372 bhwarg Linux - Hardware 0 10-08-2003 05:00 AM
Highpoint 372 Redhat 8 RAID Help adrenaline Linux - Hardware 2 03-22-2003 11:48 AM
Mandrake 9 / Highpoint 372 Raid dayloon Linux - Newbie 4 01-12-2003 03:56 AM
Mandrake 9 / Highpoint 372 Raid dayloon Linux - Distributions 2 10-13-2002 05:26 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 05:03 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration