All of lore.kernel.org
 help / color / mirror / Atom feed
From: christophe.hauser@supelec.fr (Christophe Hauser)
To: kernelnewbies@lists.kernelnewbies.org
Subject: Dev Environment?
Date: Mon, 15 Aug 2011 14:44:29 +1000	[thread overview]
Message-ID: <20110815044346.GA9909@localhost> (raw)
In-Reply-To: <CAGdaada8djufvbUh1xObRemkW82BMcyM5yWF33vAUe6-6rKAjg@mail.gmail.com>

On Sun, Aug 14, 2011 at 03:59:04PM +0700, Mulyadi Santosa wrote:
> Hi :)
> 
> On Sun, Aug 14, 2011 at 11:51, Daniel Hilst Selli <danielhilst@gmail.com> wrote:
> > Thanks Mulyadi, I was installing gentoo with qemu.. but takes soo long to
> > install that I give up,
> > I was thinking in a minimal distro as dsl or lfs. What you suggest ?
> 
> Next time, pls keep kernelnewbies list address intact :)
> 
> About disk image, how about using prebuilt one provided in
> http://wiki.qemu.org/Download? or ones in http://fs.devloop.org.uk/ ?
> I think busybox might be a good fit for a tiny setup :)

I personally like to debootstrap a Debian and make a qcow2 image from it. You don't need the kernel to be on the image as you can directly pass a kernel to qemu with the -kernel option.

aptitude install debootstrap

#For a wheezy image :
debootstrap wheezy ./wheezy http://ftp.fr.debian.org/debian

# For a 1GB image :
dd if=/dev/zero of=fs.img bs=1M count=1000
mkfs.ext4 fs.img
mount -o loop fs.img /mnt
cp -a wheezy/* /mnt
umount /mnt

# Convert it in qcow2:
qemu-img convert fs.img -O qcow2 fs.qcow2

# Use it in qemu or kvm
qemu -hda fs.qcow2 -kernel arch/${ARCH}/boot/bzimage  -append
"${KERNEL_OPTIONS}"

If you are using vim, you can use pyclewn to control gdb from vim and
set breakpoints and stuff.
http://pyclewn.sourceforge.net/

--
Christophe

      parent reply	other threads:[~2011-08-15  4:44 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-13 17:57 Dev Environment? Daniel Hilst Selli
2011-08-14  4:18 ` Mulyadi Santosa
     [not found]   ` <4E475441.6030608@gmail.com>
2011-08-14  8:59     ` Mulyadi Santosa
2011-08-15  3:14       ` Daniel Hilst Selli
     [not found]       ` <20110815043805.GB3166@localhost>
2011-08-15  4:40         ` Mulyadi Santosa
2011-08-15  4:44       ` Christophe Hauser [this message]

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=20110815044346.GA9909@localhost \
    --to=christophe.hauser@supelec.fr \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.