Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Kernel Programmer Needed :)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
saint
n00b
n00b


Joined: 30 May 2003
Posts: 24

PostPosted: Tue Jun 03, 2003 4:26 am    Post subject: Kernel Programmer Needed :) Reply with quote

Hello all,

I face a particular problem. I need access to my RAID0 array, on my promise TX2000 controller. I've found that the only thing that works for me is the partial source driver that was released by promise. The problem being, it's a module.

I need it to be in the kernel itself because all I have are my 2 drives on the raid controller (no other options, besides boot disc, floppy, and I'd like to try to get it in the kernel first).

SO, if anyone knows how to take the source of a module and insert it into the kernel (i've managed to add it to the menuconfig, and it DOES compile and get put in scsidrv.o, but I don't know how to do so properly), PLEASE give me a clue, or a hand. It's only meant to be a module, so I don't know what has to be added to allow it to be put into the kernel itself. It would be much appreciated, thank you :).

Later!

Saint
Back to top
View user's profile Send private message
Matje
l33t
l33t


Joined: 29 Oct 2002
Posts: 612
Location: Hasselt, Belgium

PostPosted: Tue Jun 03, 2003 6:34 am    Post subject: Reply with quote

Did you take a look at the development sources if it isn't in there?
A quick google turned up this: http://archive.lug.boulder.co.us/bymonth/2002.10/msg00201.html
Looks like you got screwed over :-) You might as well use software raid :-)

If it isn't in the 2.5.x kernel, you might want to look into creating an initrd script which can load the module for you and then passes the control on to gentoo linux
_________________
Life is like a box of chocolates... Before you know it, it's empty...

http://www.lanzone.be
Back to top
View user's profile Send private message
LP
n00b
n00b


Joined: 03 Jun 2003
Posts: 5

PostPosted: Tue Jun 03, 2003 12:15 pm    Post subject: Reply with quote

No you don't need to do that just use an initrd which is standard on other distros like Mandrae RedHat, just read this:

http://www.redhat.com/docs/manuals/linux/RHL-7.3-Manual/custom-guide/s1-custom-kernel-initrd.html

This way you can load your raid module right when you need it :-)
Back to top
View user's profile Send private message
saint
n00b
n00b


Joined: 30 May 2003
Posts: 24

PostPosted: Tue Jun 03, 2003 12:42 pm    Post subject: Reply with quote

Well that article deals with a stock redhat kernel and Promise's redhat drivers. What I'm talking about is the Partial Open Source kernel. What I'm asking is the proper way how to take something that is only ever intended for a module compiled OUTSIDE the kernel, and compile it internally into the kernel. Apparently this very thing was done in kernel 2.2, so I'm hoping it can be done with kernel 2.4.

http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&q=author:lunx%40my-deja.com+

I'll be honest though, I'm not quite sure how initrd works 100%. I just wasn't sure if the initrd image could be read if the image itself is on a RAID0 array??

Anyway, the battle continues :)

Later
Saint
Back to top
View user's profile Send private message
Matje
l33t
l33t


Joined: 29 Oct 2002
Posts: 612
Location: Hasselt, Belgium

PostPosted: Tue Jun 03, 2003 12:44 pm    Post subject: Reply with quote

If the kernel can be read from the array, then so can the initrd, they reside in the same place and both get readed in the memory (by your bootloader) before the kernel actually boots.
_________________
Life is like a box of chocolates... Before you know it, it's empty...

http://www.lanzone.be
Back to top
View user's profile Send private message
saint
n00b
n00b


Joined: 30 May 2003
Posts: 24

PostPosted: Tue Jun 03, 2003 1:30 pm    Post subject: Reply with quote

Intruiiiiiiging!! (Fawlty Towers ;))

Thanks! I thought it might be so, but I couldn't wrap my brain around how. Well, I suppose I'll just make an initrd image and work from there. I suppose learning the format and requirements of the image come next now :) Thanks for the help my friend!

Saint
Back to top
View user's profile Send private message
Matje
l33t
l33t


Joined: 29 Oct 2002
Posts: 612
Location: Hasselt, Belgium

PostPosted: Tue Jun 03, 2003 1:34 pm    Post subject: Reply with quote

That's what we're here for ;-) Take a look at LP's link, you can start from there I think.
_________________
Life is like a box of chocolates... Before you know it, it's empty...

http://www.lanzone.be
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum