You are not logged in.

#1 2006-04-05 18:42:43

eddy
Member
Registered: 2005-07-11
Posts: 85

Compiling kernel2.6.16.1 / beyond patchset [solved]

Hi there

I am trying to compile a kernel 2.6.16.1 with the beyond patchset. I have downloaded the source from kernel.org. i have then unpackaged the package in /var/abs/local/kernel/src. This created a directory called linux-2.6.16.1. I have downloaded the beyond patchset and unpacked it in src. I have then applied the patch with the command in /var/abs/local/kernel/src/linux-2.6.16.1:

 patch -Np1 -i ../patch-2.6.16-beyond1

Some files were patched others not. There are a few *.rej files
I then configured my kernel with

make menuconfig

Then

make

This goes well for about 40 seconds and then

 CC      arch/i386/mm/pgtable.o
  CC      arch/i386/mm/fault.o
  CC      arch/i386/mm/ioremap.o
  CC      arch/i386/mm/extable.o
  CC      arch/i386/mm/pageattr.o
  CC      arch/i386/mm/mmap.o
  LD      arch/i386/mm/built-in.o
  CC      arch/i386/mach-default/setup.o
  LD      arch/i386/mach-default/built-in.o
  LD      arch/i386/crypto/built-in.o
  CC      kernel/sched.o
kernel/sched.c: In function 'sched_init':
kernel/sched.c:6029: error: 'array' undeclared (first use in this function)
kernel/sched.c:6029: error: (Each undeclared identifier is reported only once
kernel/sched.c:6029: error: for each function it appears in.)
kernel/sched.c:6029: error: 'struct runqueue' has no member named 'arrays'
kernel/sched.c:6030: error: 'k' undeclared (first use in this function)
make[1]: *** [kernel/sched.o] Error 1
make: *** [kernel] Error 2

Is there anything wrong with my procedure? A patch? bug?

Cheers


Anyone who has never made a mistake has never tried anything new (Albert Einstein)
Specs PC:   P4,2.8GHz,HT;1GB DDR;ATI Radeon 9800Pro 128Mb
          Laptop:PM, 1.5GHz;512DDR;ATI Mobility Radeon 9700 64Mb

Offline

#2 2006-04-05 19:21:38

lilsirecho
Veteran
Registered: 2003-10-24
Posts: 5,000

Re: Compiling kernel2.6.16.1 / beyond patchset [solved]

eddy;

In my experience with ABS, I utilize the ABS system to enter the desired kernel into /var/abs/local by copying the desired kernel and all its required patches from the /var/abs/kernels file.

The pkgbuild included in that kernel transferred to /var/abs/local would need to reflect your new kernel ID.  In addition, any modifications to the config file can be made in that location.  All additional patches to achieve your beyond patchset kernel need to be included in the PKGBUILD in the same directory.

This procedure will generate a new kernel with the patches required after running makepkg.

If the kernel is downloaded from other than ABS, I would expect that the patches needed within Arch would have to be added into the /var/abs/local file, as entries to the PKGBUILD.

When the makepkg is completed, two directories will be generated in /var/abs/local (wherein the makepkg was run), namely, pkg and src.

If an error occurs in makepkg, the pkg  and src directories generated have to be deleted before trying makepkg again after correcting the error encountered.

When completed, the .pkg.tar.gz file generated is installed via pacman.

===============================================

I outlined this procedure in hopes that a clue will be therin to aid in your attempt to load the new kernel.
The wiki includes custom kernel generation  which may aid in your efforts.

Bestof luck!!


Prediction...This year will be a very odd year!
Hard work does not kill people but why risk it: Charlie Mccarthy
A man is not complete until he is married..then..he is finished.
When ALL is lost, what can be found? Even bytes get lonely for a little bit!     X-ray confirms Iam spineless!

Offline

#3 2006-04-05 20:27:00

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: Compiling kernel2.6.16.1 / beyond patchset [solved]

Short answer: apply beyond to 2.6.16, not 2.6.16.1.

Longer answer: The beyond patchset is base on the ck patch, and the ck patch is always applied to 2.6.x sources, not 2.6.x.y. When 2.6.x.y exists, ck includes the .y changes, so right now, ck everything that has changed from 2.6.16 to 2.6.16.1.

By applying beyond, and therefore ck, to 2.6.16.1, you were trying to apply some changes that already existed - that's why "Some files were patched others not".

General advice: even if you don't want to use the kernel26beyond package for some reason, at least have a look at the way it's put together. A look over the PKGBUILD before starting would have avoided your problem.

Offline

#4 2006-04-05 20:28:50

eddy
Member
Registered: 2005-07-11
Posts: 85

Re: Compiling kernel2.6.16.1 / beyond patchset [solved]

Thanks lilsirecho

I will get started trying your method. The way i did it did not include the patches in the kernel26 directory from the abs.
cheers


Anyone who has never made a mistake has never tried anything new (Albert Einstein)
Specs PC:   P4,2.8GHz,HT;1GB DDR;ATI Radeon 9800Pro 128Mb
          Laptop:PM, 1.5GHz;512DDR;ATI Mobility Radeon 9700 64Mb

Offline

#5 2006-04-05 20:44:38

eddy
Member
Registered: 2005-07-11
Posts: 85

Re: Compiling kernel2.6.16.1 / beyond patchset [solved]

thanks tomk
Its my first kernel compile have been reading quite a lot of stuff, a little confused with all the info i had to take in. Mistakes happen. By the way. I am compiling the kernel beyond because i have an ati graphics card and i have to have fglrx drivers or Xgl does not work(is not my choice to compile as i have not found any fglrx-beyond package). Thanks a lot. Will try now


Anyone who has never made a mistake has never tried anything new (Albert Einstein)
Specs PC:   P4,2.8GHz,HT;1GB DDR;ATI Radeon 9800Pro 128Mb
          Laptop:PM, 1.5GHz;512DDR;ATI Mobility Radeon 9700 64Mb

Offline

#6 2006-04-05 21:31:46

eddy
Member
Registered: 2005-07-11
Posts: 85

Re: Compiling kernel2.6.16.1 / beyond patchset [solved]

Nice one tomk. I can now compile after removing patch-$pkgver.bz2 from my PKGBUILD.  THX


Anyone who has never made a mistake has never tried anything new (Albert Einstein)
Specs PC:   P4,2.8GHz,HT;1GB DDR;ATI Radeon 9800Pro 128Mb
          Laptop:PM, 1.5GHz;512DDR;ATI Mobility Radeon 9700 64Mb

Offline

Board footer

Powered by FluxBB