Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: "Jérôme Pouiller" <jezz@sysmic.org>
To: buildroot@busybox.net
Subject: [Buildroot] Making a Bootable USB Image for x86_64
Date: Wed, 24 Aug 2016 17:35:06 +0200	[thread overview]
Message-ID: <1569774.H6tdLElCHb@sagittea> (raw)
In-Reply-To: <f3ab074b-d314-7542-636a-fb3eb7d11878@86pixels.com>

Hello Jimmy,

On Monday 22 August 2016 22:11:51 Jimmy wrote:
> Greetings all,
> 
> I know this has been asked a lot, but I have been sifting through the
> archives and Google in order to find the best way to make a bootable
> USB image of my buildroot installation for an x86 based machine. I
> have done the following:
> 
> 1. Generated a tar image of the root filesystem via the configuration
> menu 2. Selected grub2 from bootloaders with the i386-pc platform 3.
> Created a 1Gb EXT2FS partition with 1mb of space preceding on the USB
> device itself
> 4. Extracted the rootfs tar to the USB device on the ext2 partition
> 5. Ran the following from the main buildroot directory (as root):
> ./output/host/usr/sbin/grub-bios-setup -b
> ./output/host/usr/lib/grub/i386-pc/boot.img -c
> ./output/images/grub.img -d . /dev/sdb
> 
> The command immediately exits with a "segmentation fault (Core
> dumped)".
hmm... it looks like a snaky x86/x86_64 cross-compilation problem.

Help of grub2 (boot/grub2/Config.in) package provide an alternative way 
to create bootable disk images with grub2. It use genimage instead of 
grub-bios-setup. Let me know if it help.

BR,

-- 
J?r?me Pouiller, Sysmic
Embedded Linux specialist
http://www.sysmic.fr

  parent reply	other threads:[~2016-08-24 15:35 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-08-23  3:11 [Buildroot] Making a Bootable USB Image for x86_64 Jimmy
2016-08-24 14:41 ` Baruch Siach
2016-08-24 15:35 ` Jérôme Pouiller [this message]
2016-08-25 12:25   ` Jimmy at 86Pixels

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=1569774.H6tdLElCHb@sagittea \
    --to=jezz@sysmic.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