CERC ATA/100 RAID card
Torsten Krah
tkrah at fachschaft.imn.htwk-leipzig.de
Thu Apr 3 11:53:42 CDT 2008
Am Donnerstag, 3. April 2008 17:28:08 schrieben Sie:
> Hi Torsten. Thanks again for helping me with this. Perhaps you, or anyone
> else for that matter, would be kind enough to comment on whether or not I'm
> going about this correctly?
These are more basics than poweredge specific ones, but lets see ;).
>
> > Get the source tree
>
> Does that mean copying the kernel directory from my openSUSE 10.3 CD
> (/suse/i586/kernel-default-2.6.22.5-31.i586.rpm) to a functioning box in
> order to apply the patch? Could I use a SLES 10 machine?
You can use any machine you want, but you need the source code of the kernel,
this rpm does not look like the source, more than the ready to use kernel.
You can use a sles 10 machine, distribution doesnt matter.
>
> > cd /usr/src/sourcetree-of-the-kernel-you-want-to-patch
>
> Should the bin file be copied to
> "sourcetree-of-the-kernel-you-want-to-patch" directory prior to being run?
You need the sources - look at kernel.org and download them there and look
into the archive, you need something like this.
You dont have to copy the file there, but than you need to specify the
complete path to the source file to patch (man patch):
patch -p0 < path-to/patchfile
> So, if I copied the kernel directory from the CD to /opt, a copy of the bin
> file needs to be there as well?
You dont need the binary kernel, only the sources to rebuild the binary kernel
+ modules.
If you copy it to /opt than doing the command above would be enough.
>
> > patch -p0 < "patchfile"
>
> Are the quotes needed, or would the command simply be
> patch -p0 < megaraid_mbox-dell-cerc-support.bin?
man patch, but without quotes is right.
"the" bin is indeed a simple plain/text file - look at the mimetype /
contents.
>
> > After that you have to build the kernel/module again
>
> How does one go about this? Would I then need to burn the patched kernel
> folder back to a CD in order to install it on the original machine?
make oldconfig && make && make install && make modules_install
Would rebuild the kernel, install it and the modules.
If you use the megaraid stuff only as module, make modules should be all you
need to do.
This would be a simple way, however i am not using sles and cant tell you how
to do it in a proper way for your distribution.
using debian i would suggest using something like this:
http://people.debian.org/~psg/ddg/node135.html
You dont need to burn, just copy the module / kernel to the machine (backup
the old one), but yes you have to copy it somewhere on the machine where you
want to use it.
>
> Last question, I promise! Is there a way to integrate the bin file during
> installation, perhaps via a floppy?
You can't integrate the patch against a running or prebuilt kernel - if your
installation does build the kernel from scratch (using the sources) it may be
possible to tell the installer something, but i dont know how to do this in
SLES, e.g. using gentoo you can do this.
>
> Many, MANY thanks!
np.
Torsten
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 1996 bytes
Desc: not available
Url : http://lists.us.dell.com/pipermail/linux-poweredge/attachments/20080403/885cac9e/attachment-0001.p7s
More information about the Linux-PowerEdge
mailing list