From: Peter Korsgaard <peter@korsgaard.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH v3] configs/olimex_imx233_olinuxino: switch to u-boot
Date: Mon, 07 Mar 2016 09:52:01 +0100 [thread overview]
Message-ID: <87lh5u6572.fsf@dell.be.48ers.dk> (raw)
In-Reply-To: <CAPiYbRKwwmyTz4vSEVUVdQZvGmd2MVzRKpktwHhOWih42dSCaQ@mail.gmail.com> (Phil Eichinger's message of "Mon, 7 Mar 2016 08:42:24 +0100")
>>>>> "Phil" == Phil Eichinger <phil.eichinger@gmail.com> writes:
Hi,
>> See E.G. board/orangepi/orangepipc for an example, thanks!
> I had a look. Some genimage.cfg use a fixed size of 512MB for the
> rootfs, some just use the size of the rootfs.
> I do prefer the later, as I'm able to fit a as small as possible SD
> card. Especially since 512MB + some MB for the Kernel and bootloader
> would at least require a 1GB card. What's the intent behind using a
> 512MB rootfs partition in that case?
I didn't write those genimage configurations, but my understanding is
that the size you specify only sets the size of the PARTITION (E.G. the
data in the MBR), and not the size of the image file (atleast for the
last partition, data in between partitions is probably padded with zeros
/ a sparse file is generated).
The last partition is typically a read/write rootfs, so having some
extra space is often handy. To use it you do need to tell the filesystem
that there's extra space available, E.G. by running resize2fs on the
partition after writing it to a SD card.
The choice of 512MB is afaik pretty arbitrary. I would think that all
our defconfigs create rootfs images < 50MB, so less could certainly also
be used - But do you really have a microsd card smaller than 1G?
--
Venlig hilsen,
Peter Korsgaard
prev parent reply other threads:[~2016-03-07 8:52 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-21 17:24 [Buildroot] [PATCH 1/1] configs/olimex_imx233_olinuxino: switch to u-boot Phil Eichinger
2016-02-21 18:32 ` Baruch Siach
2016-02-22 6:27 ` [Buildroot] [PATCH v2] " Phil Eichinger
2016-02-22 22:49 ` Thomas Petazzoni
2016-02-22 23:24 ` Phil Eichinger
2016-02-23 9:12 ` Thomas Petazzoni
2016-02-27 18:40 ` [Buildroot] [PATCH v3] " Phil Eichinger
2016-02-27 20:58 ` Arnout Vandecappelle
2016-03-06 20:12 ` Peter Korsgaard
2016-03-07 7:42 ` Phil Eichinger
2016-03-07 8:52 ` Peter Korsgaard [this message]
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=87lh5u6572.fsf@dell.be.48ers.dk \
--to=peter@korsgaard.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