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] Newbie boot and fs mount question
Date: Tue, 22 Dec 2015 21:09:30 +0100	[thread overview]
Message-ID: <20151222210930.7929c662@free-electrons.com> (raw)
In-Reply-To: <CA+C+_XSCm9Q1uE7Zg2VcK6xCa3ASEUNFTX=0GF3=KwaUYQWTzQ@mail.gmail.com>

Dear Mathew Benson,

On Tue, 22 Dec 2015 10:07:35 -0600, Mathew Benson wrote:
> How do I mount / from sda1 rather than RAM disk?

Pass root=/dev/sda1 on your kernel command line.

> Sorry for the simple question and let me know if there is a better forum
> for this.  I'm new to buildroot and busybox and haven't compiled a custom
> kernel in at least 15 years.  I'm using the latest version of buildroot as
> of this weekend, used the predefined i386 config, and built with kernel
> version 3.8.17.  It seems to boot just fine but it appears the file system
> is mounted from the initial RAM disk.  Any change I make to the file system
> is volatile.  What do I need to do to make it mount / from sda1 instead of
> the RAM disk?

We don't have anything like a "predefined i386 config".

However, you can see how to use a root filesystem from storage by
looking/building our Qemu x86-64 configuration:

	make qemu_x86_64_defconfig
	make

And then read board/qemu/x86_64/readme.txt for the details on how to
start this configuration under Qemu. You can see in this readme file
that we're booting the kernel with root=/dev/sda, since the first hard
drive is emulated using the contents of output/images/rootfs.ext2.

Best regards,

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

  reply	other threads:[~2015-12-22 20:09 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-12-22 16:07 [Buildroot] Newbie boot and fs mount question Mathew Benson
2015-12-22 20:09 ` Thomas Petazzoni [this message]
2015-12-24  1:04   ` Mathew Benson
2015-12-24  7:30     ` Thomas Petazzoni
  -- strict thread matches above, loose matches on Subject: below --
2015-12-25  0:41 mathew.benson

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=20151222210930.7929c662@free-electrons.com \
    --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