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 build-kernel-deb-mailing-list Description: application/shellscript
Howto install a debugging kernel in debian?
Hello folks, I got the problem, that I need to install a kernel which creates debugger informations in dmesg. I already built a kernel with activated debug, when I discovered, that debian already offers a package with built in debug: linux-image-2.6.39-2-amd64-dbg! But when I installed this, there was only the no-debugging kernel below /boot. Is there a non destructive and easy way to start the debugging kernel (which I found below /usr/lib/debug/ ), without to change my whole system? I just need to start this kernel only once, so I can send the kernel developer the needed dmesg file. After that I want to revert back to the running kernel. You might understand, that I do not want to change (and possible kill) my system or working for hours and hours for only creating a simple dmesg message. For those, who are interested in the kernel bug, take a look here: https://bugzilla.kernel.org/show_bug.cgi?id=22052 Thanks for any help! Best regards Hans -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/201107051207.08116.hans.ullr...@loop.de
Re: Howto install a debugging kernel in debian?
On Tue, 05 Jul 2011 12:07:07 +0200, Hans-J. Ullrich wrote: I got the problem, that I need to install a kernel which creates debugger informations in dmesg. I already built a kernel with activated debug, when I discovered, that debian already offers a package with built in debug: linux-image-2.6.39-2-amd64-dbg! But when I installed this, there was only the no-debugging kernel below /boot. Mmm, that package seems to contain kernel debug symbols not a specially pre-built kernel you can boot for debugging purposes. Is there a non destructive and easy way to start the debugging kernel (which I found below /usr/lib/debug/ ), without to change my whole system? I just need to start this kernel only once, so I can send the kernel developer the needed dmesg file. After that I want to revert back to the running kernel. You might understand, that I do not want to change (and possible kill) my system or working for hours and hours for only creating a simple dmesg message. Hum... maybe that kernel package is used to send crash reports on non- live systems (i.e., for forensic diagnostic, to dump crashes to a file that you can then send to be analyzed). For those, who are interested in the kernel bug, take a look here: https://bugzilla.kernel.org/show_bug.cgi?id=22052 But wait... devel is requesting you to recomplie your current kernel with CONFIG_USB_DEBUG enabled and your kernel is not crashing, so do you think debug symbols are necessary in this case :-? Greetings, -- Camaleón -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/pan.2011.07.05.21.08...@gmail.com
Re: Howto install a debugging kernel in debian?
On 07/05/11 at 12:07pm, Hans-J. Ullrich wrote: Hello folks, 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. -- Liam signature.asc Description: Digital signature