Hi On Mon, Mar 8, 2010 at 2:44 AM, become who you are born to be.... Chaitannya mahatme <chaitannya@xxxxxxxxx> wrote: > I thought all is set well, since I didn't get any errors until this point. > When I ran qemu -s -kernel bzImage qemu.img, it started a qemu terminal. > Showed the version of the linux and a message, booting linux. After that > there is nothing. I haven't used any bootloader, but I feel with this > command the kernel should boot without bootloader. It has been a long time since I used kgdb (just for my personal testing). So I'll try to recall at my best, but no guarantee: Usually in kgdb, you need to tell in which serial port you want to accept serial gdb connection. But since this is Qemu, no need to do that AFAIK. Just use -S to stop CPU at initial Qemu system init. It will give you time to hook gdb to the running kernel (the one you run as -kernel argument). Then simply run gdb, give your vmlinux as the symbol file, then attach to localhost port 1234 (this port is mentioned in qemu man page) e.g: (gdb) attach localhost 1234 then you're set. After you're done debugging, just do: (gdb) detach Good luck and have fun... :) -- regards, Mulyadi Santosa Freelance Linux trainer and consultant blog: the-hydra.blogspot.com training: mulyaditraining.blogspot.com -- To unsubscribe from this list: send an email with "unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx Please read the FAQ at http://kernelnewbies.org/FAQ