mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Daniel Phillips <phillips@phunq.net>
To: tux3@tux3.org
Cc: linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org
Subject: Developing Tux3 with UML
Date: Sat, 29 Nov 2008 20:48:32 -0800	[thread overview]
Message-ID: <200811292048.33651.phillips@phunq.net> (raw)

Hi,

Running the Tux3 kernel code under UML is easy, fast and safe.  Here is
a recipe where you can be up and running in about ten minutes from a
standing start:

   # get a kernel tree
   wget http://kernel.org/pub/linux/kernel/v2.6/linux-2.6.26.5.tar.bz2
   tar -xjf linux-2.6.26.5.tar.bz2
   cd linux-2.6.26.5

   # get the latest tux3 patch and patch the kernel
   wget http://tux3.org/patches/tux3-2.6.26.5
   patch <tux3-2.6.26.5 -p1

   # build uml linux with tux3
   make defconfig ARCH=um
   make linux ARCH=um CONFIG_TUX3=y

   # get a root filesystem
   wget http://tux3.org/downloads/tuxroot.tar.bz2

   # make a tux3 filesystem in a file
   dd if=/dev/zero of=testdev bs=1M count=1
   tux3 mkfs testdev

   # boot uml using loop back on the root fs and tux3 test fs
   tar -xjf tuxroot.tar.bz2
   ./linux ubda=tuxroot ubdb=testdev

Log in to uml as root and:

   mount /dev/ubdb /mnt
   ls -l /mnt

To debug tux3/uml under gdb:
   gdb -args ./linux ubda=tuxroot ubdb=testdev
   run
   cont <a bunch of times, don't ask>
   <log in>

You can also run uml using real partitions for root and test:

   ./linux ubda=/dev/sdaX ubdb=/dev/sdaX

The only thing that needs to be special about the root filesystem is,
/etc/inittab has to refer to the uml ttys.  See umlroot/etc/inittab.

Regards,

Daniel

                 reply	other threads:[~2008-11-30  4:48 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=200811292048.33651.phillips@phunq.net \
    --to=phillips@phunq.net \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=tux3@tux3.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

all inboxes | Powered by JetHome®