Linux-mtd Archive on lore.kernel.org
 help / color / mirror / Atom feed
* selecting UBI boot partition on startup
@ 2010-04-15  4:32 Deon Carr
  2010-04-15  5:29 ` Wolfgang Denk
  0 siblings, 1 reply; 4+ messages in thread
From: Deon Carr @ 2010-04-15  4:32 UTC (permalink / raw)
  To: linux-mtd

Hi, 

I am designing a high availability system that requires two copies of
the system software with uboot booting the kernel / rootfs of the most
recent software. 

My intended nand flash arrangement is along the lines of:

MTD0       MTD1
--------------------
UBOOT | UBI Layer
--------------------

The UBI layer will have two UBI volumes which will be formatted for
UBIFS. The intention is to package the kernel / rootfs and application
all in the single volume. 


What is the best method of selecting UBI volume to boot from in uboot?

I could store a boot flag in each UBIFS along with the kernel, however
this will require reading both volumes in uboot to determine which one
to boot from. An alternative is to create a third smaller UBI volume
which instructs which UBI volume to boot from.

Is there a better way of handling this? Is it possible to reorder the
UBI volumes dynamically? If this were possible I could have uboot always
boot UBI0 and just rearrange UBI0, UBI1 whenever I need change the
volume to boot from. 



Thanks in advance.

Deon

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

end of thread, other threads:[~2010-04-15 20:23 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-15  4:32 selecting UBI boot partition on startup Deon Carr
2010-04-15  5:29 ` Wolfgang Denk
     [not found]   ` <0687C69BF96AF349833719247B11C1CE76ED80@exchtxus2.HSTX.global.vpn>
2010-04-15  6:18     ` Wolfgang Denk
2010-04-15 20:22       ` Deon Carr

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