Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] making a second small failsafe file system
@ 2013-01-30  1:33 John Stile
  2013-01-30  2:21 ` Willy Lambert
  2013-01-30  4:58 ` Baruch Siach
  0 siblings, 2 replies; 3+ messages in thread
From: John Stile @ 2013-01-30  1:33 UTC (permalink / raw)
  To: buildroot

I have a board with 8Mb of NOR and 256Mb of NAND.

I plan to normally use NAND, divided into redundant halves, but if
neither half can boot, I would like a failsafe minimal file system on
NOR in order to re-image NAND over the network.

What are my options?  

Do I maintain a separate buildroot just for that failsafe?

Should I create a post-build script that assembles a tiny file system
image?

Has anyone tired this?

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

* [Buildroot] making a second small failsafe file system
  2013-01-30  1:33 [Buildroot] making a second small failsafe file system John Stile
@ 2013-01-30  2:21 ` Willy Lambert
  2013-01-30  4:58 ` Baruch Siach
  1 sibling, 0 replies; 3+ messages in thread
From: Willy Lambert @ 2013-01-30  2:21 UTC (permalink / raw)
  To: buildroot

2013/1/30 John Stile <john@stilen.com>:
> I have a board with 8Mb of NOR and 256Mb of NAND.
>
> I plan to normally use NAND, divided into redundant halves, but if
> neither half can boot, I would like a failsafe minimal file system on
> NOR in order to re-image NAND over the network.
>
> What are my options?
>
> Do I maintain a separate buildroot just for that failsafe?
>
> Should I create a post-build script that assembles a tiny file system
> image?
>
> Has anyone tired this?

I'm doing something quite similar.

You have to maintain 2 sets of configurations, You should save all
your config files in :
_ config folder for buildroot .config file
_ board/${your_entity}/operationnal board/${your_entity}/recovery for
other files (such as linux kernel configs, files to add, post_install
script to execute,...)

Then the best is to do 2 outofsource (in the sense of buildroot)
builds so you can have both in parallel during developpemnt.

As your device has 2 separate memories, you will have to keep those 2
operating systems separatly. The way you will install rootfs (img
file, dumping rootfs.ext2,nfs boot) is really depending on your
application. If you plan to create an img file (that you may
partition, prepare MBR,...) you will need to do it after everything is
done in BR (so it is not part of the post install script);


>
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot

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

* [Buildroot] making a second small failsafe file system
  2013-01-30  1:33 [Buildroot] making a second small failsafe file system John Stile
  2013-01-30  2:21 ` Willy Lambert
@ 2013-01-30  4:58 ` Baruch Siach
  1 sibling, 0 replies; 3+ messages in thread
From: Baruch Siach @ 2013-01-30  4:58 UTC (permalink / raw)
  To: buildroot

Hi John,

On Tue, Jan 29, 2013 at 05:33:06PM -0800, John Stile wrote:
> I have a board with 8Mb of NOR and 256Mb of NAND.
> 
> I plan to normally use NAND, divided into redundant halves, but if
> neither half can boot, I would like a failsafe minimal file system on
> NOR in order to re-image NAND over the network.
> 
> What are my options?  

My solutions was a tiny initramfs embedded in the kernel image. This initramfs 
contains (almost) only a statically built busybox binary. The /init script of 
initramfs execs a shell as a fallback when the main filesystem is not 
mountable.

You'll probably wan a uClibc toolchain for this busybox image (if you don't 
use one already) to keep its size minimal.

baruch

-- 
     http://baruch.siach.name/blog/                  ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -

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

end of thread, other threads:[~2013-01-30  4:58 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-30  1:33 [Buildroot] making a second small failsafe file system John Stile
2013-01-30  2:21 ` Willy Lambert
2013-01-30  4:58 ` Baruch Siach

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