kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
From: aruna.hewapathirane@gmail.com (Aruna Hewapathirane)
To: kernelnewbies@lists.kernelnewbies.org
Subject: Kernel Debugging using Qemu
Date: Fri, 14 Aug 2015 22:17:41 -0400	[thread overview]
Message-ID: <CAFSeFg9howWYJPq77tAy++m7VUksp-OPDQcFzab1hVGNQXnQpg@mail.gmail.com> (raw)

Hi,

If anyone uses Qemu can someone please show me how to get started ?

I tried :

sudo qemu-system-x86_64 -s -S -kernel arch/x86/boot/bzImage -initrd
/boot/initrd.img-4.1.2-vtaqemu+ /dev/zero

And it does allow me to access through gdb using target remote
localhost:1234 but when I set a breakpoint in kernel_start and
continue it hangs and tells me /bin/sh: can't access tty; job control
turned off ?

I am runing a Debian 4.1.2 custom kernel. I have enabled Intel
virtulization in the bios. And menuconfig have setup virtualization.

After many tries have finally managed to get this far but now I can
use all the help I can get.

And and all suggestions, guidance, *pointers are most welcome.

Thanks - Aruna

             reply	other threads:[~2015-08-15  2:17 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-15  2:17 Aruna Hewapathirane [this message]
2015-08-15  4:40 ` Kernel Debugging using Qemu Saket Sinha
2015-08-16  4:19   ` Aruna Hewapathirane

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAFSeFg9howWYJPq77tAy++m7VUksp-OPDQcFzab1hVGNQXnQpg@mail.gmail.com \
    --to=aruna.hewapathirane@gmail.com \
    --cc=kernelnewbies@lists.kernelnewbies.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).