Build preload-kmp

Hi,

I run opensuse with custom kernel ( because of bfs ) and I’m trying to compile the preloadtrace.ko module, wich is required by preload. I downloaded the preload source rpm, but I stacked, I have no idea how to compile a module from there.
Can somebody help me with this?

Interesting, this was on my list of TOTRYs, I’ll be on to it right now, and get back here with results.
In the meantime you should install the Linux Kernel Development Pattern from the software installer, that will install (at least most of) what you need to build the kernel module.

Did you search for ‘preload-kmp’ at http://software.opensuse.org/search ? Try that :wink: If there’s one for your kernel, install and test it. It may save a lot of trouble. Will test the one for the kernel from HEAD now and report

A question: Please post output of


uname -a

Did you compile the kernel yourself? Or is it the one from the HEAD repo?

Are we talking about this “bfs” here?

 modinfo bfs
filename:       /lib/modules/2.6.31.12-0.2-desktop/kernel/fs/bfs/bfs.ko
license:        GPL
description:    **SCO UnixWare BFS filesystem for Linux**
author:         Tigran Aivazian <tigran@
(at)aivazian.fsnet.co.uk>
srcversion:     D85C2F318C0DE97A280CF62
depends:        
vermagic:       2.6.31.12-0.2-desktop SMP preempt mod_unload modversions 

If yes, this driver is inside the standard kernel for all versions of openSUSE still supported.

Or do you mean another “bfs”?

Akoellh,
No, I was talking about Con Kovilas’s bfs cpu scheduler.

Knurpht,
I built the kernel from vanilla source, adding bfs, xorg-autoiso and opensuse’s bootsplash patches. So there is no prebuilt preload module for me.

On 05/03/2010 04:46 PM, inp3dance wrote:
>
> Akoellh,
> No, I was talking about Con Kovilas’s bfs cpu scheduler.
>
> Knurpht,
> I built the kernel from vanilla source, adding bfs, xorg-autoiso and
> opensuse’s bootsplash patches. So there is no prebuilt preload module
> for me.

You do realize that you don’t need that module. You will get a non-fatal
error on boot, but it does not cause any problems.

Then you will have to unpack the src.rpm , have a look at its contents like patches etc. (hint: take a look at the spec file) and build/install the module manually.

I don’t even know if that will work with a vanilla kernel, but if you really think you need that module and as you obviously don’t have the build environment in a way rpmbuild could deal with your kernel sources/headers/whatever, building a kmp-RPM is most certainly not possible.

lwfinger,
I do realize that I don’t need that module, I run openSUSE on custom kernel for about 2 years, I was just curious to see, if I can do.
Akoellh,
I don’t want to build an rpm, just to build the kernel module somehow. And I think I figured out, but remains for tomorrow, it’s late.

JFYI, installed the preload-kmp for my 2.6.34 kernel, works without error. KDE4 loads and runs a bit quicker.

Hi,

I had the same problem some time ago. But finally I got it…

  1. You have to install the preload.src.rpm, then copy the preload.tar.gz to somewhere and extract it.
  2. Then change into the preload directory and as root “make mall”. This will build the kernelmodule.
    Note: You have to compile your kernel with debuginfo. Otherwise building will fail!
  3. Then “mkdir /lib/modules/kernelversion/systemtap”,
  4. Finally you have to copy preload/stab/preloadtrace.ko to this directory.
    This way works for me and my custom kernel.