Koozali.org: home of the SME Server

Compiling Module from .c & .h src files

Steve

Compiling Module from .c & .h src files
« on: July 01, 2003, 10:48:31 PM »
I'm trying to compile the megaraid-1.18i to get the Dell PERC4/SC RAID working.  Can someone tell me how to compile the module from the .c and .h source file?  

I did it on Gentoo awhile back, but it's been too long and e-smith is a lot different.

I need to get it working on install so that I can install directly to the SCSI raid.  Any suggestions for that would also help!  Does anyone happen to have a driver disk for the Perc4/SC that would work with e-smith 5.1.2, 5.5, or 5.6?   Just need it to work!!

guestHH

Re: Compiling Module from .c & .h src files
« Reply #1 on: July 02, 2003, 02:45:11 AM »
star by searching for dev-tools on these forums and find the latest dev-tools over at contribs.org

Steve

Re: Compiling Module from .c & .h src files
« Reply #2 on: July 02, 2003, 03:33:41 AM »
Thanks......but I already installed them.  Do you know what to do next?  

2nd idea:
I have an adaptec card that I can use to get it installed (it's for the tape drive), but it doesn't have raid.  I thought that I could use the adaptec to install e-smith, then possibly install the megaraid.o and configure lilo for it?   Then turn it off and restart with the Perc4 raid reconnected?

The megaraid.o driver I need to use is compatible with RH8.0.  How could I get it to work with SME/e-smith?

Charlie Brady

Re: Compiling Module from .c & .h src files
« Reply #3 on: July 02, 2003, 08:56:06 AM »
Steve wrote:

> I'm trying to compile the megaraid-1.18i to get the Dell
> PERC4/SC RAID working.  Can someone tell me how to compile
> the module from the .c and .h source file?

Are you certain that the included driver (megaraid 1.18a) won't work?

There's a good chance that the only problem is that the SCSI adaptor is not auto-recognised, and the megaraid module is not loaded. I'd suggest you install on another SCSI system, make a "reinstall" floppy, then add "driver scsi megaraid" into the ks.cfg file on the floppy disk. Then try that boot floppy on your Dell system.

If you succeed this way, be sure to report your experiences to smebugs@mitel.com.

Charlie

Steve

Re: Compiling Module from .c & .h src files
« Reply #4 on: July 02, 2003, 09:35:28 AM »
Are there any images already on the CD that I can use as the reinstall disk?

(such as: boot.img, bootnet.img, drvnet.img, etc..)

I'm compiling a new kernel right now that I may try.  I was thinking of replacing the kernel the CD uses to boot with, with the one I'm making.  Any suggestions of what to do with the new kernel to use it in the install? (IF it works)


Also, I think I may have read somewhere that the newer Perc4 needed 'megaraid 1.18f'  or newer.  I will try making the reinstall disk though.

Steve

Re: Update1 - Compiling Module from .c & .h src files
« Reply #5 on: July 02, 2003, 10:13:34 AM »
Okay, I just tried the reinstall disk like you mentioned.

I get

/tmp/megaraid.o: init_module:
Hint: insmod errors can be caused by incorrect module parameters, including invalid IO or IRQ parameters.

This is after I pulled out the second SCSI card and the e1000 NIC to avoid conflicts.  So I no longer think conflicts is an issue.
------------
After running:
menuconfig
make dep clean bzImage modules modules_install

It ended with:
/usr/include/bits/errno.h:25:26: linux/errno.h: No such file or directory
make: *** [scripts/split-include] Error 1

And I couldn't find 'bzImage' under /usr/src/linux*/arch/i386/boot/bzImage
-----------
Where does the install get the modules?  Is there anyway I can add an updated module to the install?  or would I also have to include a new kernel?  I'm not giving up yet and will create a howto  if I can ever get this working!

Steve

Re: Update1 - Compiling Module from .c & .h src files
« Reply #6 on: July 02, 2003, 12:02:42 PM »
Fixed the error for now.  Changed the #include statement in the /usr/include/bits/errno.h file

Compiling will probably take the rest of the night.  (compiling on my slower server unfortunately, 300mhz)

I'll post back tomorrow what I find out..

Karl Ponsonby

Re: Update1 - Compiling Module from .c & .h src files
« Reply #7 on: July 24, 2003, 03:09:02 AM »
Hi Steve,

What was the end result. I'm playing with a Megaraid controller at the moment.
Thanks,
Karl

phil93

Re: Update1 - Compiling Module from .c & .h src files
« Reply #8 on: October 24, 2004, 07:24:07 PM »
Quote from: "Karl Ponsonby"
Hi Steve,

What was the end result. I'm playing with a Megaraid controller at the moment.
Thanks,
Karl


please (i'm french)
do you really install SME on DELL 1600 SC RAID 4/SC i got the same config, and i don't find the driver for installing sME

thanks

phil93

Re: Update1 - Compiling Module from .c & .h src files
« Reply #9 on: October 24, 2004, 07:32:59 PM »
Quote from: "Steve"
Fixed the error for now.  Changed the #include statement in the /usr/include/bits/errno.h file

Compiling will probably take the rest of the night.  (compiling on my slower server unfortunately, 300mhz)

I'll post back tomorrow what I find out..


Please (i'm french)
do you really install SME on DELL 1600 SC RAID 4/SC
I got the same config, and i don't find the driver for installing sME
Thank'S