From mboxrd@z Thu Jan 1 00:00:00 1970 From: j.neuschaefer@gmx.net (Jonathan =?utf-8?Q?Neusch=C3=A4fer?=) Date: Wed, 29 Jun 2011 22:42:31 +0200 Subject: Debugging a custom kernel In-Reply-To: <20110629201441.GF5604@hermes> References: <20110629201441.GF5604@hermes> Message-ID: <20110629204231.GC1510@debian.debian> To: kernelnewbies@lists.kernelnewbies.org List-Id: kernelnewbies.lists.kernelnewbies.org On Wed, Jun 29, 2011 at 10:14:41PM +0200, Apelete Seketeli wrote: > Hello, > > I am working on a custom kernel, and I would like to add the necessary > support to enable it to boot with qemu. In order to achieve that I am > trying to debug it inside qemu by attaching a gdb to it. I still can't > figure where the boot process is getting stuck with step-by-step > execution, but it seems that the last function called is "delay_loop" > from arch/x86/lib/delay.c. > That function contains some assembly code, does someone know what it > is supposed to do ? > Beside, do you have any advice on the way I should proceed to get the > necessary information to port the kernel ? Does a stock kernel work in your setup? If so, try using its config, most distributions put it into /boot as config-`uname -r` or something. HTH, Jonathan Neusch?fer