[hipl-users] Re: Instructions on using TLA

  • From: Miika Komu <miika.komu@xxxxxxx>
  • To: hipl-users@xxxxxxxxxxxxx
  • Date: Wed, 10 Sep 2008 10:51:33 +0300

Miika Komu wrote:

Hi,

I used the following three step procedure to start building a custom kernel for CentOS 5.2 with its own kernel patches. It is adapted from doc/HACKING instructions. If you are missing some files (spec or something else), you need install kernel src rpms. Remember to run "tla replay".

1. Modified /usr/src/redhat/SPECS/kernel-2.6.spec as follows:

    ...
    %define xen_target vmlinuz
    %define xen_image vmlinuz

    # added the following line for beet
    %define rhbsys .beet
    ...
    Patch22557: linux-2.6-fs-race-condition-in-dnotify.patch
    # added the following line for beet
    Patch22558:
    centos-5.2-hipmod-sleep-beet-and-interfamily-all-in-one.patch
    ...
    %patch22557 -p1
    # added the following line for beet
    %patch22558 -p1


2. cp patches/kernel/2.6.18.0/centos-5.2-hipmod-sleep-beet-and-interfamily-all-in-one.patch /usr/src/redhat/SOURCES/

3. rpmbuild --target i686 -ba /usr/src/redhat/SPECS/kernel-2.6.spec

I haven't tested if the beet patch actually works yet. I am compiling the kernel as we speak, It is really damn slow to build on virtual machines and I am running low on disk space. I'll publish the kernel on contrib web pages if it actually works. Please don't blame me yet if the patch crashes your kernel and sets your keyboard on fire :=)

Uh, oh better to compile without ABI checks in the spec file:

# Control whether we perform a compat. check against published ABI.
#%define with_kabichk   %{?_without_kabichk:   0} %{?!_without_kabichk:   1}

Or otherwise you get this:

+ echo '**** kABI checking is enabled in kernel SPEC file. ****'
**** kABI checking is enabled in kernel SPEC file. ****
+ chmod 0755 /usr/src/redhat/SOURCES/check-kabi
+ '[' -e /usr/src/redhat/SOURCES/Module.kabi_i686 ']'
+ cp /usr/src/redhat/SOURCES/Module.kabi_i686 /var/tmp/kernel-2.6.18-92.el5-root/Module.kabi + /usr/src/redhat/SOURCES/check-kabi -k /var/tmp/kernel-2.6.18-92.el5-root/Module.kabi -s Module.symvers
*** ERROR - ABI BREAKAGE WAS DETECTED ***




Other related posts: