[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Howto install a debugging kernel in debian?



> > -------- Forwarded Message --------
> > From: William Hopkins
> > Subject: Re: Howto install a debugging kernel in debian?
> > Date: Tue, 5 Jul 2011 17:28:16 -0400
> > On 07/05/11 at 12:07pm, Hans-J. Ullrich wrote:
> > > [snip]
> > > 
> > > I got the problem, that I need to install a kernel which creates debugger 
> > > informations in dmesg.
> > [...]
> > > 
> > > For those, who are interested in the kernel bug, take a look here:
> > > https://bugzilla.kernel.org/show_bug.cgi?id=22052
> > > 
> > 
> > Alan Stern has requested you run a kernel compiled with CONFIG_USB_DEBUG
> > enabled. To accomplish this, you must compile a kernel and boot into it. The
> > Debian way of doing this is to install kernel-package and use the make-kpkg
> > tool. You can copy your existing config from /boot to /usr/src/linux/.config
> > and then run make menuconfig in that directory and add CONFIG_USB_DEBUG. Then
> > build the package with make-kpkg, install the .deb with dpkg, and set grub,
> > lilo or kexec to boot into it.

Hi Hans :)

"I dare not to build an own kernel from kernel.org, as this is my
productive notebook, which I need every day and can not allow me, to
brick it with a kernel I built by myself."

Don't worry. The attached script should build a kernel 2.6.39 and name
it 2.6.39.1. I reedited a script I've written to enable Rt patch
emulation for this kernel. It now doesn't enable Rt patch emulation, but
should enable CONFIG_USB_DEBUG, if you always enter at any question
'make oldconfig' will ask.

This is from my machine:

$ ls /boot -l
total 27720
-rw-r--r-- 1 root root  115187 Jun  7 01:32 config-2.6.39.1
-rw-r--r-- 1 root root  124738 Jun  8 13:07 config-2.6.39-2-amd64
drwxr-xr-x 3 root root   12288 Jul  5 22:51 grub
-rw-r--r-- 1 root root 9803304 Jun 18 11:11 initrd.img-2.6.39.1
-rw-r--r-- 1 root root 9480544 Jun 21 20:27 initrd.img-2.6.39-2-amd64
-rw-r--r-- 1 root root 1801397 Jun  7 02:16 System.map-2.6.39.1
-rw-r--r-- 1 root root 1886975 Jun  8 13:07 System.map-2.6.39-2-amd64
-rw-r--r-- 1 root root 2457488 Jun  7 02:16 vmlinuz-2.6.39.1
-rw-r--r-- 1 root root 2690256 Jun  8 13:06 vmlinuz-2.6.39-2-amd64

I chose the kernel by using GRUB.

Run the script as root. Note, the reedited script isn't tested. Check
that there's no typo that will deleted data on your HDD ;). There won't
be such a typo, but anyway, there's no guarantee that the script will
work, but I guess it will build the needed kernel.

Hth,

Ralf 

Attachment: build-kernel-deb-mailing-list
Description: application/shellscript


Reply to: