Hello, I have created partions for the NAND flash, and have placed the yaffs2 file system in to the file sys. partion. The root file system location is send as command line argument root = xyz Can anyone tell me how this information (file sys location) is recognized by the linux kernel, as the partion table is created by the bootloader. i.e for example "root=/dev/mtd2" is the commandline parameter. then how kernel recognises the file sys location is in nand flash, at that particular address/partion? What are the things to be taken care here? Thanks in advance! Regards, Srinivas.
root file sys location to kernel
This is a question I have for a few days too. I still don't have exact answer yet. But you are right, the bootloader creates the partitions either by startup scripts or command line. And then the partition information is somehow passed over to the kernel. There seem to be a few methods available to do this. I assume one of them is by a driver like layer of software. Once the kernel have these information, it will instantiate these partitions, create kernel data structures representing them, and then the partitions got their names in /dev dir. From there the partitions are visible. Where are these driver(s) are located? How do they work? How the information is passed over? I don't know yet ... There seem to be some board specific setup code involved.