[Angstrom-devel] initramfs vs mtdblock
Koen Kooi
koen at dominion.kabel.utwente.nl
Sat Mar 8 09:18:04 CET 2008
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Michal Panczyk schreef:
| HI,
| I was wondering what devices use boot parameter root=/dev/mtdblockXXX.
| I am trying to figure out if there is a need for special fixing of
| files in packages/initrdscripts/files/ dir to make these scripts aware
| that some devices use plain "mtdX" (linux-handhelds-2.6) and some use
| /dev/mtdblockX. This would help in work with initramfs stuff that I
| try to launch on linux-2.6 devices (especially h5000).
| So far I found following devices that have MTD_BLOCK=y in their
defconfig:
root=/dev/mtdblockX is the old way of accessing mtd devices, via a block
emulation layer. The mtd folks now say you need to access it directly,
via a virtual device: root=mtdX. The trouble with that is that the
initramfs scripts look for *real* device nodes and can't find the mtdX
ones, since they lack device nodes. There are two solutions that come to
mind:
* sed out 'block' when passing it to CMDLINE
* use /proc/mtd to get the partitions and add in 'block' when probing fstype
regards,
Koen
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)
iD8DBQFH0ku8MkyGM64RGpERAsrFAKCLu8mI/OOjYnypwrgH2O2vKPhp4wCffK4E
YsOWqk0IWRV3f7OOY5HVWyQ=
=JJCz
-----END PGP SIGNATURE-----
More information about the Angstrom-distro-devel
mailing list