Linux Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOperating SystemsLinux Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old January 15th, 2003, 08:13 AM
Oraly Oraly is offline
Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Location: Stavanger
Posts: 83 Oraly User rank is Lance Corporal (50 - 100 Reputation Level)Oraly User rank is Lance Corporal (50 - 100 Reputation Level)Oraly User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 20 h 13 m 24 sec
Reputation Power: 8
Loading driver for ata100 card at boot time

I just installed SuSE Linux 8.1, and I'm having some trouble getting the driver for my HighPoint ata100 card to load during boot-time.
The driver works ok if I run insmod or modprobe manually. I have installed the driver with these commands:
install -d /lib/modules/.../scsi
install -c hpt302.o /lib/modules/.../scsi

But this don't work. Anyone got any idea what's wrong?

...and another thing I don't uderstand is why only root gets access on FAT disks that I mount. This workes just fine with SuSe 7.x and 8.0.

Any help and ideas are appreciated.

Reply With Quote
  #2  
Old January 15th, 2003, 09:08 AM
alexgreg's Avatar
alexgreg alexgreg is offline
Full Access
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Jun 2000
Location: London, UK
Posts: 2,019 alexgreg User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 sec
Reputation Power: 11
To get commands to run on boot-up, put them in /etc/rc.local
__________________
Alex
(http://www.alex-greg.com)

Reply With Quote
  #3  
Old January 15th, 2003, 12:50 PM
Oraly Oraly is offline
Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Location: Stavanger
Posts: 83 Oraly User rank is Lance Corporal (50 - 100 Reputation Level)Oraly User rank is Lance Corporal (50 - 100 Reputation Level)Oraly User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 20 h 13 m 24 sec
Reputation Power: 8
Adding the commando [modprobe hpt302] or [insmod hpt302.o] to the startup scripts works alright, but when the system then tries to mount the disks automatically from fstab it panics and goes into safe mode.
I guess that is because the module isn't loaded into the kernel or something. Know how to hack the kernel so that it supports my Highpoint card?

Reply With Quote
  #4  
Old January 15th, 2003, 03:59 PM
alexgreg's Avatar
alexgreg alexgreg is offline
Full Access
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Jun 2000
Location: London, UK
Posts: 2,019 alexgreg User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 sec
Reputation Power: 11
Sorry, didn't see it was a disk controller card. The commands in rc.local get run after all the normal run-level stuff, so it will try and mount your disks before it's configured the card! This is probably not what we want. If you put the module name in /etc/modules then it will be loaded at boot time. Just put the module name - hpt302 - on a line by itself.


Hope this helps.

Reply With Quote
  #5  
Old January 15th, 2003, 04:06 PM
riv's Avatar
riv riv is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2001
Posts: 463 riv User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 37 m 50 sec
Reputation Power: 8
Why not compile it inside the kernel, woudn't that be easier?! No need to worry.
__________________
Words must be weighed, not counted.

Reply With Quote
  #6  
Old January 15th, 2003, 04:49 PM
Strike Strike is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2001
Location: Houston, TX
Posts: 383 Strike User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 41 m 27 sec
Reputation Power: 7
Send a message via ICQ to Strike Send a message via AIM to Strike Send a message via Yahoo to Strike
If your root filesystem is on that device, then you have to compile it in. Otherwise it'll have no way of getting to it when you boot.
__________________
Debian - because life's too short for worrying.
Best. (Python.) IRC bot. ever.

Reply With Quote
  #7  
Old January 16th, 2003, 12:29 AM
M.Hirsch M.Hirsch is offline
Contributing User
Dev Shed God 1st Plane (5500 - 5999 posts)
 
Join Date: Oct 2000
Location: Back in the real world.
Posts: 5,969 M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 1 Month 1 Day 22 h 39 m 55 sec
Reputation Power: 184
yes, you do.
you can make a boot ramdisk and load the module from there.
(not recommended for beginners though...)
__________________
--
Manuel Hirsch - Linux, FreeBSD, programming, administration articles, tutorials and more.

Reply With Quote
  #8  
Old January 16th, 2003, 12:36 AM
riv's Avatar
riv riv is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2001
Posts: 463 riv User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 37 m 50 sec
Reputation Power: 8
I believe the module should be able to load at any time, it's not like a RAID where you need to acces the drives to mount the root device before INIT which lives in the root.. Advanced parameters should be enabled at that point (UDMA5 I think).

IMO disk controllers drivers should be compiled in the kernel because they are going to be needed no matter what.

Reply With Quote
  #9  
Old January 16th, 2003, 04:05 AM
Oraly Oraly is offline
Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Location: Stavanger
Posts: 83 Oraly User rank is Lance Corporal (50 - 100 Reputation Level)Oraly User rank is Lance Corporal (50 - 100 Reputation Level)Oraly User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 20 h 13 m 24 sec
Reputation Power: 8
It's not that I've been messing with fstab that is my problem. I know what is supposed to be in there. My problem is that I had to compile the driver for my ata100 card from teh vendor's scource code. This means that I have to find out which settings I have to put where for my card to be properly integrated with my system.
In SuSE 7.x and 8.0 This was done by putting these lines in /etc/modules.conf:
- probeall block-major-8 scsi_mod sd_mod hpt302
- options -k hpt302

But now in version 8.1 I think there has been some changes, cos for every other module that is mentioned in "modules.conf" there is an alias infront of "probeall". So perhaps I have to modify more than one file now, but I have no idea which ones.

Or am I way off here?

-- And hey riv is it any difficult to compile the module into the kernel, and how do I do this? I've barely started the kernel editor, and I was frightened that I was gonna **** up my system.

Reply With Quote
  #10  
Old January 16th, 2003, 07:41 AM
Strike Strike is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2001
Location: Houston, TX
Posts: 383 Strike User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 41 m 27 sec
Reputation Power: 7
Send a message via ICQ to Strike Send a message via AIM to Strike Send a message via Yahoo to Strike
Quote:
Originally posted by M.Hirsch
yes, you do.
you can make a boot ramdisk and load the module from there.
(not recommended for beginners though...)

Very much not recommended for beginners. In fact, I wouldn't recommend it to advanced users either unless you have a simple way of setting it up (like Debian's kernel-package) that will make the ramdisk for you, and that will apply the appropriate cramfs patch.

Reply With Quote
  #11  
Old January 16th, 2003, 03:51 PM
riv's Avatar
riv riv is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2001
Posts: 463 riv User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 37 m 50 sec
Reputation Power: 8
Quote:
Originally posted by Oraly
-- And hey riv is it any difficult to compile the module into the kernel, and how do I do this? I've barely started the kernel editor, and I was frightened that I was gonna **** up my system.


If you keep a second entry for your older kernel there is nothing to worry about, if the new one fails you can always boot the original one.

If it's a driver supplied by the manufacturer that's another story though. You do need to get into the "kernel editor" (you're refering to make menuconfig, right?). You press the spacebar until it shows a * rather than M (for Module of course). The magic trick at compiling a kernel is to read the help page for each and every entry and determine if it's needed (there's usually a short answer).

The part I don't understand is that it's an IDE controler but yet the install commands specifies the SCSI path?!

Reply With Quote
Reply

Viewing: Dev Shed ForumsOperating SystemsLinux Help > Loading driver for ata100 card at boot time


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway