Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] user question about ubi nand
@ 2016-02-24  3:34 Steve Calfee
  2016-02-24  9:49 ` Jörg Krause
  2016-02-24 23:00 ` Arnout Vandecappelle
  0 siblings, 2 replies; 7+ messages in thread
From: Steve Calfee @ 2016-02-24  3:34 UTC (permalink / raw)
  To: buildroot

Ubi seems very well supported in buildroot and linux. The problem is
figuring out how to use it.

I have created two nand partitions, one rootfs and one data. I would
like the rootfs to be readonly and data to be r/w. After tons of
searches I have configured the rootfs and stored the buildroot built
image in it.

My question is how do I move r/w areas from rootfs into the r/w
partition. Examples are /etc/ files /run files which start as /var/run
and finally application files like mysql databases which are in
/usr/share/. I assume the post scripts can be used, but I cannot find
examples. In post scripts how do I set permissions/user/group fields.
How do I link to a mounted partition.

http://free-electrons.com/blog/creating-flashing-ubi-ubifs-images/ has
lots of info. But say I want a custom ubi.cfg file, where do I put it
or how do i menuconfig it? Say I want 2 partitions, one ro and one rw
I assume I need a special cfg file. Ubi asks for lots of magic
numbers, how do I get them - such as erasesize, subpagesize, offsets
etc? I assume defaults are good, but how can I know. Typical Linux
stuff, however these thing are knowable, how do I find it out (via web
searches etc). How do I do set the config file in BR2_EXTERNAL?

All info I find is schizophrenic. Net searches say how to do things
like this in uboot and linux. Sometimes in the same doc paragraph. It
is never clear which instruction matches which of uboot and linux. For
buildroot the best is stuff mainly done in the build, but something
must be done on the target. What is the recommended procedure for mass
building systems?

What if the nand and rootfs is bigger than ram? How do you update it in uboot?

Steve

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2016-02-27 22:12 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-24  3:34 [Buildroot] user question about ubi nand Steve Calfee
2016-02-24  9:49 ` Jörg Krause
2016-02-24 15:59   ` Steve Calfee
2016-02-24 23:00 ` Arnout Vandecappelle
2016-02-25 21:14   ` Steve Calfee
2016-02-27 12:44     ` Arnout Vandecappelle
2016-02-27 22:12       ` Peter Korsgaard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox