making a second small failsafe file system
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?
2013/1/30 John Stile <[email protected]>:
Quoted 6 lines
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.
Quoted 8 lines
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);
Quoted 5 lines
_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot
Hi John,
Quoted 7 lines · John Stile
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
Signature · 3 lines
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 -