Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] Using buildroot images (iso/ext2) in real target device (flash drive)
Date: Thu, 1 Mar 2012 17:59:21 +0100	[thread overview]
Message-ID: <20120301175921.5811b398@skate> (raw)
In-Reply-To: <jio6ql$25v$1@dough.gmane.org>

Le Thu, 01 Mar 2012 17:06:44 +0100,
Willy <willy@willygroup.org> a ?crit :

> I have created my system images (iso and ext2) and I would put one of 
> them in the flash drive of the target system.
> 
> So far I've used unetbootin to create a bootable system which loaded
> in RAM, now the image is too big for my RAM.
> 
> Now I've used dd to put my image in the flash drive:
> sudo dd if=rootfs.ext2 of=/dev/sdc1
> 
> Then when the machine starts I got the error:
> 
> Missing operating system
> DISK BOOT FAILURE, PLEASE INSERT...

Yes, you need a bootloader.

> I "think" I've installed grub on my buildroot image
> ( package BR2_TARGET_GRUB [=y] ).
> How can I test if grub is properly installed and how can I setup it?

You need to run grub so that it installs itself on your /dev/sdc
device. Something like:

printf "device (hd0) /dev/sdc\nroot (hd0,0)\nsetup (hd0)\nquit\n" | output/staging/sbin/grub --device-map=/dev/null --no-floppy

Let us know if that works. We should certainly extend the documentation
with more details about this.

Best regards,

Thomas
-- 
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com

  reply	other threads:[~2012-03-01 16:59 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-01 16:06 [Buildroot] Using buildroot images (iso/ext2) in real target device (flash drive) Willy
2012-03-01 16:59 ` Thomas Petazzoni [this message]
2012-03-02 23:00   ` Arnout Vandecappelle
2012-03-03 19:52     ` PHilip RUshik
2012-03-05  9:45     ` Thomas Petazzoni
2012-04-24 13:04 ` Willy
2012-04-27 14:23   ` Willy
2012-04-27 20:37     ` Arnout Vandecappelle

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=20120301175921.5811b398@skate \
    --to=thomas.petazzoni@free-electrons.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