You are not logged in.
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
Really helpful wiki article:
http://wiki.archlinux.org/index.php/Cus … n_with_ABS
Offline
Really helpful wiki article:
http://wiki.archlinux.org/index.php/Cus … n_with_ABS
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
Allan wrote:Really helpful wiki article:
http://wiki.archlinux.org/index.php/Cus … n_with_ABSYeah 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... /
ᶘ ᵒᴥᵒᶅ
Offline
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
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
It seems like this is the same problem I posted about a few threads earlier: http://bbs.archlinux.org/viewtopic.php?id=87795
Offline
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
Offline