[klibc] why mtd root device number is __makedev(0,254)
Eric W. Biederman
ebiederm at xmission.com
Tue Mar 23 03:14:15 PDT 2010
zheng shi <neversetsun at gmail.com> writes:
> __makedev(0, 254) is used to invoke mount_mtd_root function.
> But mount_mtd_root needs root_dev_name (/dev/mtdblockX) which is still
> absent from /dev since udev is absent.
> In fact mtdblockX has been created under /sys/block/ at the stage when
> flash driver probes flash partitions.
> So I'm curious why mtd block devices have to treated specially as NFS
> root device.
> And it can be handled in "usr/kinit/name_to_dev.c"
I don't know about /dev/mtdblockX. I do know that a typical mtd root
won't be on a block device, which is why mtd root tends to be a
More information about the klibc