I have a custom Linux installation that resides in a NAND flash chip that acts as the root drive. It boots up fine now when the drive is read/write. However when I set the drive to read-only, which is the final state, it fails to load.

I'm using kernel and LILO boot loader. In lilo.conf I have already included "read-only" in the main portion. Do I have to include it in each image as well? Or do I have to modify the kernel somehow to make it boot in read-only mode?

Also the file system is already in read only mode since I'm unable to create files once I'm booted up. I don't understand why then does it not boot when I set the NAND drive to read only?