Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] buildroot Digest, Vol 32, Issue 12
       [not found] <mailman.6052.1233715800.5049.buildroot@busybox.net>
@ 2009-02-04 12:33 ` John Voltz
  2009-02-04 23:12   ` Steve Calfee
  0 siblings, 1 reply; 3+ messages in thread
From: John Voltz @ 2009-02-04 12:33 UTC (permalink / raw)
  To: buildroot

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


Date: Tue, 3 Feb 2009 11:35:40 -0800 (PST)
From: Steve Calfee <nospamcalfee@yahoo.com>
Subject: Re: [Buildroot] 2009.02-rc3 released
To: buildroot at uclibc.org, Peter Korsgaard <jacmet@uclibc.org>
Message-ID: <388709.89503.qm@web58208.mail.re3.yahoo.com>
Content-Type: text/plain; charset=us-ascii

Hi Peter,

Good job. First time in years I could download a buildroot and get it to build.

So now I thought why not try and see if it runs. I built all the
defaults, so I ended up with a 686 target. Fine, that is what I have
on as my host.

Googling around I found mention of running the image as a vmware
bootable disk. Good I have vmware installed. However now I get stuck.

The scripts directory has a build-ext3-img script with tantalizing
hints it might build what I need. It also appears it needs to be run
as root? Trying sudo in ubuntu did not work. However, the script has
no docs and it is talking in some kind of code :) It talks about the
path to the image - what is that the output file path? Then the name
of the image again - the output of the script? And then an enigmatic
message "echo "Enter the path and filename for the root filesystem"
echo "tarball that you want to install into the image"" I don't see
any applicable .tar type file.


First somewhere in the docs there should be a description of the disk
layout for buildroot. From my buildroot dir:

binaries - a couple directories in there is an intriguingly named file
"rootfs.i686.ext2" Would that be echo "Enter the path and filename for
the root filesystem"
echo "tarball that you want to install into the image"
from the build-ext3-img script?


dl - documented

package - looks like every known package that can be configured and built?

scripts - ok dir name is clear, script usage is not

toolchain - not clear but probably build tool sources?

build_i686 - Not clear what it holds?

docs - Nice html docs

project - my project make/config stuff?

target - unclear, more my project specific build stuff?

toolchain_build_i686 - looks like where the toolchain got built too.
Where do the binaries go? /bin only has sed?

project_build_i686 - appears to be where my project is built, but
under uclibc there are 3 mysterious directories autotools-stamps
buildroot-config  busybox-1.13.2. But then there is an intriguing
directory called root. Is this an NFS mountable point for my target?

Anyway, my confusion getting started cannot be totally unique. I
appreciate any help I can get.

Steve

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Buildroot] buildroot Digest, Vol 32, Issue 12
  2009-02-04 12:33 ` [Buildroot] buildroot Digest, Vol 32, Issue 12 John Voltz
@ 2009-02-04 23:12   ` Steve Calfee
  2009-02-05 11:39     ` John Voltz
  0 siblings, 1 reply; 3+ messages in thread
From: Steve Calfee @ 2009-02-04 23:12 UTC (permalink / raw)
  To: buildroot

--- 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


      

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Buildroot] buildroot Digest, Vol 32, Issue 12
  2009-02-04 23:12   ` Steve Calfee
@ 2009-02-05 11:39     ` John Voltz
  0 siblings, 0 replies; 3+ messages in thread
From: John Voltz @ 2009-02-05 11:39 UTC (permalink / raw)
  To: buildroot

>
>
> 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?
>

Yes, it uses the host's grub, but it  needs you to build grub so that the
/boot/grub directory and it's contents get installed in the rootfs. It's
hackish I know, but I don't know if there is any other way to install the
buildroot generated grub. Maybe someone else does? hd0 is hard disk zero, in
image file ${IMAGE}.

John
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20090205/3608e79c/attachment.htm>

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-02-05 11:39 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [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
2009-02-05 11:39     ` John Voltz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox