Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Willy <willy@willygroup.org>
To: buildroot@busybox.net
Subject: [Buildroot] Using buildroot images (iso/ext2) in real target device (flash drive)
Date: Tue, 24 Apr 2012 15:04:30 +0200	[thread overview]
Message-ID: <jn68cv$dcc$1@dough.gmane.org> (raw)
In-Reply-To: <jio6ql$25v$1@dough.gmane.org>

Il 01/03/2012 17:06, Willy ha scritto:
> 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?
> Thanks,

I've still that problem :-(

Here what I do:
1. make buildroot with grub selected and iso/etx2/tar image
2. create an ext2 partition (with boot flag) in my usb key with gparted
3. use dd to put the ext2 fs in my key: dd if=rootfs.ext2 of=/dev/sdc1
	this put the fs in my key, but It say that only 11MB are
	avaiable, so I use gparted again to resize the partition and
	magically the dimension is correct!
4. put bzImage in the buildroot fs folder /boot
5. using qemu with -hda option to load buildroot and install grub in 
/dev/sdc1

When in grub (image booted with qemu) give the command setup (hd0) I got 
a segmentation fault.
Somewhere I found that there is a problem with a patch for grub (sorry, 
I don't remember exactly the name ...inode...ext2...) but I can't find 
this patch.

So I've downloaded grub sources and put them into my filesystem.
Then I've compiled grub into qemu virtualization (modifying arguments 
for the ar command in Makefiles from cru to cr) and then I've installed 
grub on the device hd0.
I've created a menu.lst file manually:
#########################################
default		0
timeout		10
color light-green/brown blink-red/blue

title		BuildRoot ISO9660 image
kernel		/boot/bzImage root=/dev/hda1
#########################################

Now when I try to boot with this key usb, briefly read "Grub loading..." 
then there is a reboot.

-- 
Willy

  parent reply	other threads:[~2012-04-24 13:04 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
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 [this message]
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='jn68cv$dcc$1@dough.gmane.org' \
    --to=willy@willygroup.org \
    --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