From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] Boot Buildroot OS from CF(compact flash)
Date: Tue, 10 Oct 2017 15:10:56 +0200 [thread overview]
Message-ID: <20171010151056.2fb6a82f@windsurf.lan> (raw)
In-Reply-To: <CAMGEwNnz=741u4PTeMQBOWT28bA8wNJbfzogZsdQpySfxF8F3Q@mail.gmail.com>
Hello,
On Tue, 10 Oct 2017 18:22:48 +0530, sunil m wrote:
> i created partition of 1GB (/dev/sdb1) on my thumbdrive by using "fdisk"
> which is of FAT32 System ID(b). then i used "grub-install" utility to
> install grub on /dev/sdb1.
>
> mkdir /mnt/USB && mount /dev/sdb1 /mnt/USB
> grub-install --force --removable --boot-directory=/mnt/USB/boot /dev/sdb
>
> i've builded and copied bzimage(initial RAM filesystem linked into linux
> kernel) to /boot of /dev/sdb1(/mnt/USB/boot).
> i've copied grub.cfg(attached in mail) file which is having location of
> bzimage to /boot/grub/ of /dev/sdb1(/mnt/USB/boot/grub/).
> connect the USB to target mechine and then boot the buildroot OS on target
> mechine (RAM) by setting boot option as thumbdrive.
> once the OS is boot in RAM, i'm able to see CF(compact flash) disk. (fdisk
> -l)
> from here, how can i install grub on CF & copy the buildroot
> images(bzImage, rootfs.cpio) to CF and boot from CF? as i can see there is
> no "grub-install" utility in buildroot OS.
>
> i tried one way is," dd if=/dev/sdb1 of=/dev/sda1 ", with this command i'm
> able to boot from compact flash. will that be good approach to flash os on
> CF(compact flash)?
Assuming you're using grub2 (and not the deprecated grub that has been
removed from Buildroot recently), then you should read
boot/grub2/readme.txt that has lots of details on how to setup grub2.
Best regards,
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
parent reply other threads:[~2017-10-10 13:10 UTC|newest]
Thread overview: expand[flat|nested] mbox.gz Atom feed
[parent not found: <CAMGEwNnz=741u4PTeMQBOWT28bA8wNJbfzogZsdQpySfxF8F3Q@mail.gmail.com>]
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=20171010151056.2fb6a82f@windsurf.lan \
--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