[Lustre-discuss] 'Rename' kernel build result

Frank Heckes f.heckes at fz-juelich.de
Mon Nov 30 04:21:35 PST 2009


Hello Brian,

first of all thanks for your patience and answers so far.

> On Thu, 2009-11-26 at 15:37 +0100, Frank Heckes wrote:
> > Hello Brian,
>
> Hi,
>
> > Well, I downloaded two 'source' files:
>
> Hrm.  Why are you dealing with source files?  Does our already-built
> binary kernel RPMs not suit your environment for some reason?
>
No, no I like the idea a lot, but unfortunately the kernel didn't boot
on the hardware we trying to install them (IBM pizzaboxes), even after
rebuilding the initrd, Systemmap... to extend the (initial) driver list.
So I decided to built the kernel from source. Here the system boots as
it should after installing it to one of the nodes of the (test)
cluster.
And of course there's also a small piece of (childlike) curiosity, too.

> > -1- kernel-lustre-source-2.6.27.29-0.1_lustre.1.8.1.1.src.rpm
> > -2- kernel-lustre-source-2.6.27.29-0.1_lustre.1.8.1.1.x86_64.rpm
> >
> > I used the second for the compilation since the first only install stuff
> > in /usr/src/packages/SOURCE and some more complicated procedure has to
> > be used for compilation.
>
> The first is a source rpm which is built using the rpmbuild command.
>
> > Entries for /usr/src/linux-2.6.27.29-0.1_lustre.1.8.1.1
>
> Yes.
>
> > and /lib/modules-2.6.27.29-0.1_lustre.1.8.1.1
>
> Well, just the /lib/modules/2.6.27.29-0.1_lustre.1.8.1.1-default/source
> symlink so this is really quite irrelevant.  It's
> the /usr/src/linux-2.6.27.29-0.1_lustre.1.8.1.1 tree that you are
> interested in.
>
> > will be created when installing rpm '-2-'.
>
> > Running 'make rpm' leads to
> > an RPM with the specified install pathes inside the RPM.
>
> Can you tell me what the first 10 lines
> of /usr/src/linux-2.6.27.29-0.1_lustre.1.8.1.1-obj/x86_64/default/Makefile say?  You might need to adjust some of those lines to make the version say what you want it to say.
>
> But most definitely, things are a lot easier if you can use our binary
> RPM packages.  I'd be interested in knowing why they are not suitable
> for you.
>
I fully agree. I would to the ready made RPM's if it would be possible.
(see above).

Here're the Makefile's first 10 lines:

node006:~ # head
-10 /usr/src/linux-2.6.27.29-0.1_lustre.1.8.1.1-obj/x86_64/default/Makefile
# Automatically generated
by ../../../linux-2.6.27.29-0.1_lustre.1.8.1.1/scripts/mkmakefile: don't
edit

VERSION = 2
PATCHLEVEL = 6

lastword = $(word $(words $(1)),$(1))
makedir := $(dir $(call lastword,$(MAKEFILE_LIST)))

MAKEARGS := -C ../../../linux-2.6.27.29-0.1_lustre.1.8.1.1
MAKEARGS += O=$(if $(patsubst /%,,$(makedir)),$(CURDIR)/)$(patsubst %/,
%,$(makedir))

> > So kernel '-2-' shouldn't be used for compilation?
>
> That should be fine.
>
Okay. That's the one I used.

> b.
>


------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------
Forschungszentrum Juelich GmbH
52425 Juelich
Sitz der Gesellschaft: Juelich
Eingetragen im Handelsregister des Amtsgerichts Dueren Nr. HR B 3498
Vorsitzende des Aufsichtsrats: MinDir'in Baerbel Brumme-Bothe
Geschaeftsfuehrung: Prof. Dr. Achim Bachem (Vorsitzender),
Dr. Ulrich Krafft (stellv. Vorsitzender), Prof. Dr.-Ing. Harald Bolt,
Prof. Dr. Sebastian M. Schmidt
------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------



More information about the lustre-discuss mailing list