root=/dev/mtdblock doesn't work with kernel 2.4.18

Stephan Linke Stephan.Linke at epygi.de
Wed Mar 20 05:18:40 EST 2002


Thank's David! Now it works.

>
> > After changing from 2.4.8-pre4 to a 2.4.18 kernel I can't mount the
flash as
> > root device any more. I'm using the "root=" boot argument to do so.
> > The filesystem (cramfs) is alredy detected in mount_root() (super.c)
when
> > mount_root calls blkdev_put(bdev, BDEV_FS); Which for some reasons has
to
> > call the release function of the device which results in
mtdblock_release()
> > being called. The hole thing stops when invalidate_device() calls
> > fsync_dev(dev).
>
> Remove just the call to invalidate_device() in mtdblock_release()
>
> --
> dwmw2
>





More information about the linux-mtd mailing list