I have been tasked with running Linux as an operating system on an embedded device.
The target has an x86 processor and has 8 GB CompactFlash device for storage.
I have managed to use buildroot to create the kernel image and cross compilation tools. I have partitioned the CF device into a small FAT partition where the kernel image resides as well as
syslinux boot configuration and an
ext3 file system where I have decompressed the root file system generated by buildroot to.
The system boots successfully using
syslinux by setting the root directory to the CF ext3 partition where my buildroot file system is located.
My question is centred around the need for robustness in the face of immediate (and frequent) power loss as it is crucial for the device to boot successfully after power outages. I have read that mounting the root file system as read only is a way of ensuring data integrity. Is this a sensible way for me to proceed?
I have also read about the possibility of loading the root file system into RAM to achieve the same thing but as yet do not know how to do so.
Is there a preferred way of achieving this goal and if so what is the best way for me to proceed?