Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Steve Calfee <nospamcalfee@yahoo.com>
To: buildroot@busybox.net
Subject: [Buildroot] buildroot Digest, Vol 32, Issue 12
Date: Wed, 4 Feb 2009 15:12:17 -0800 (PST)	[thread overview]
Message-ID: <889327.65678.qm@web58205.mail.re3.yahoo.com> (raw)
In-Reply-To: <46a136670902040433h6bb7e883mc295b6a3fce75fb9@mail.gmail.com>

--- On Wed, 2/4/09, John Voltz <john.voltz@gmail.com> wrote:

> From: John Voltz <john.voltz@gmail.com>
> Subject: Re: buildroot Digest, Vol 32, Issue 12
> To: buildroot at busybox.net, nospamcalfee at yahoo.com
> Date: Wednesday, February 4, 2009, 4:33 AM
> Hi Steve,
> 
> I'm the one who wrote that build-ext3-img script, so
> I'll try to
> explain it for you. It does what you are looking for. You
> are right,
> it needs to be run with sudo.
> 
> 1. Path to the image, this is where in the filesystem you
> want the
> script to put the finished ext3 image. Try
> /home/steve/Desktop or some
> such.
> 
> 2. The name to give the image, it defaults to buildroot.img
> if you do
> not supply a name.
> 
> 3. You need to select "Target filesystem
> options->tar the root
> filesystem" before you build everything (in
> menuconfig). The script
> extracts the tarball into the image file. It will be found
> in
> binaries/your_target/rootfs_arch.tar. This is the tarball
> it needs.
> You also need to make sure that the grub bootloader gets
> built before
> you start too.
> 
> It will spit out an ext3 formatted image that you can boot
> in qemu. If
> you want to run it in vmware, you need to convert it into a
> .vmdk file
> like this:
> 
> qemu-img convert buildroot.img -O vmdk buildroot.vmdk
> 
> Hope this helps,
> 
> John

Hi John,

Thanks for the info. 

First I discovered a problem while running on Ubuntu Hardy at least. Running this script as "sudo build-ext3-img" and the script fails in mounting the loop3 device etc. If however I "sudo su" so I am root and then "build-ext3-img" it seems to run much farther.

I did hit another snag. At the end of the script is:
# Install GRUB
     /sbin/grub --no-floppy --batch <<EOT 
     device (hd0) ${IMAGE}
     geometry (hd0) ${CYLINDERS} 16 63
     root (hd0,0)
     setup (hd0)
     quit
     EOT

What does this do? what is (hd0)? What is the context I need to run this? It looks like it runs the host's grub? I don't want to install grub in my host's boot directory, but in the new "image" is that what this does?

Thanks, Steve


      

  reply	other threads:[~2009-02-04 23:12 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.6052.1233715800.5049.buildroot@busybox.net>
2009-02-04 12:33 ` [Buildroot] buildroot Digest, Vol 32, Issue 12 John Voltz
2009-02-04 23:12   ` Steve Calfee [this message]
2009-02-05 11:39     ` John Voltz

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=889327.65678.qm@web58205.mail.re3.yahoo.com \
    --to=nospamcalfee@yahoo.com \
    --cc=buildroot@busybox.net \
    /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