You are not logged in.

#1 2010-01-14 12:59:37

Ramses de Norre
Member
From: Leuven - Belgium
Registered: 2007-03-27
Posts: 1,289

Building kernel to install alongsides the one from core

I need to build a kernel with some debug stuff enabled to troubleshoot a bug. I've never done this before and I am in the middle of exams at the university so I am wondering if someone with some experience could help me out here and provide me with a PKGBUILD. I would normally enjoy finding this out myself but I don't have the time to do so at the moment.

I got all files from abs and I modified the config to have CONFIG_LOCALVERSION="-IWL_DEBUG" and the debug stuff I need.

Now I tried compiling the kernel with this PKGBUILD:

pkgbase="kernel26"
#pkgname=('kernel26' 'kernel26-firmware' 'kernel26-headers') # Build stock -ARCH kernel
pkgname=kernel26-iwl_debug       # Build kernel with a different name
_kernelname=${pkgname#kernel26}
_basekernel=2.6.32
pkgver=${_basekernel}.3
pkgrel=1
_patchname="patch-${pkgver}-${pkgrel}-ARCH"
arch=(i686 x86_64)
license=('GPL2')
url="http://www.kernel.org"
source=(ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-$_basekernel.tar.bz2
        ftp://ftp.archlinux.org/other/kernel26/${_patchname}.bz2
        # the main kernel config files
        config config.x86_64
        # standard config files for mkinitcpio ramdisk
        kernel26.preset)
md5sums=('260551284ac224c3a43c4adac7df4879'
         '7fba47d9b1d87de87a612a265fbfb4b1'
         'ef3df575c705fe4b49a056e85dee1743'
         '5c91374d56f115ba4324978d5b002711'
         '25584700a0a679542929c4bed31433b6')

build() { all inside here unmodified

(so I basically just changed the pkgname var)

And the kernel compiled, but the package was empty... It only contained a .PKGINFO file. I've also tried with the original pkgname variable and that gave me a correct package but it overwrote the kernel from core, which I don't want. So I want to have in /boot the files vmlinuz26-iwl_debug and kernel26-iwl_debug and such like e.g. the -ck kernels.

Could anyone help me out here? Thanks a lot!

Offline

#2 2010-01-14 13:01:39

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,425
Website

Re: Building kernel to install alongsides the one from core

Offline

#3 2010-01-14 14:29:26

Ramses de Norre
Member
From: Leuven - Belgium
Registered: 2007-03-27
Posts: 1,289

Re: Building kernel to install alongsides the one from core

Allan wrote:

Yeah I followed that but it doesn't work out. Normally I would troubleshoot this myself, the only reason I am asking here is that I am in the middle of my exams and I don't have the time to do this now. But on the other hand a nasty bug is making my wireless nic unusable so I'd like to be able to get a kernel with debug enabled for the iwlwifi module so that I can give some useful info to the intel guys.

Offline

#4 2010-01-15 17:44:46

litemotiv
Forum Fellow
Registered: 2008-08-01
Posts: 5,026

Re: Building kernel to install alongsides the one from core

Ramses de Norre wrote:
Allan wrote:

Yeah I followed that but it doesn't work out. Normally I would troubleshoot this myself, the only reason I am asking here is that I am in the middle of my exams and I don't have the time to do this now. But on the other hand a nasty bug is making my wireless nic unusable so I'd like to be able to get a kernel with debug enabled for the iwlwifi module so that I can give some useful info to the intel guys.

funny, i just ran into the same problem, trying to compile the same config option, to probably debug the same wireless nic bug... wink / sad


ᶘ ᵒᴥᵒᶅ

Offline

#5 2010-01-15 17:52:00

Ramses de Norre
Member
From: Leuven - Belgium
Registered: 2007-03-27
Posts: 1,289

Re: Building kernel to install alongsides the one from core

I've tried a couple of times to compile the kernel with the help of some people at irc, but I still end up with a package containing only a .PKGCONFIG file every time. The pkg dir is empty too.

The one thing I've noticed, in the uncompressed source in the src dir, I see for every .c file an accompanying .o file, do those .o files belong there?

I really don't know what I'm doing wrong since I just changed the name in the official abs pkgbuild which should have generated the kernel from core...

@litemotiv: I'm talking about this bug.

Offline

#6 2010-01-15 22:02:20

litemotiv
Forum Fellow
Registered: 2008-08-01
Posts: 5,026

Re: Building kernel to install alongsides the one from core

ah right, i'm trying to debug this: http://bugzilla.intellinuxwireless.org/ … gi?id=2037

strange though, it's a different card and different circumstances, but similar end result of "MAC is in deep sleep!.  CSR_GP_CNTRL = 0xFFFFFFFF"


ᶘ ᵒᴥᵒᶅ

Offline

#7 2010-01-16 15:14:03

dptkby
Member
Registered: 2009-07-02
Posts: 64

Re: Building kernel to install alongsides the one from core

It seems like this is the same problem I posted about a few threads earlier: http://bbs.archlinux.org/viewtopic.php?id=87795

Offline

#8 2010-01-16 15:28:09

Ramses de Norre
Member
From: Leuven - Belgium
Registered: 2007-03-27
Posts: 1,289

Re: Building kernel to install alongsides the one from core

dptkby wrote:

It seems like this is the same problem I posted about a few threads earlier: http://bbs.archlinux.org/viewtopic.php?id=87795

Great! I'll try the solution from that thread right away smile

Offline

Board footer

Powered by FluxBB