From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from gate.epygi.de ([212.126.211.241] helo=epygi.de) by pentafluge.infradead.org with esmtp (Exim 3.22 #1 (Red Hat Linux)) id 16nFNQ-0003SH-00 for ; Tue, 19 Mar 2002 08:53:52 +0000 Received: from pcstephan (pc-stephan.epygi.de [192.168.13.32]) by epygi.de (8.11.2/8.11.2) with SMTP id g2J95SM16099 for ; Tue, 19 Mar 2002 10:05:28 +0100 (MET) From: "Stephan Linke" To: Subject: root=/dev/mtdblock doesn't work with kernel 2.4.18 Date: Tue, 19 Mar 2002 10:04:30 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit Sender: linux-mtd-admin@lists.infradead.org Errors-To: linux-mtd-admin@lists.infradead.org List-Help: List-Post: List-Subscribe: , List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: Hi! 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). Where we'll shurely get back to the MTD driver (some how). Calling blk_dev_get() and blk_dev_put() in mount_root() is a difference between both kernel versions. But removing that change simply leades to another problem... Everything works fine when running with NFS as rootfs mounting the flash with /etc/fstab. So it looks like this is some kind of race condition. Maybe this is an issue to the FS people. But you should have experience with using the rootfs that way. Thanks, Stephan #-- STEPHAN LINKE (dipl. inform); software engineer epygi labs de gmbh; herrenstraße 23, 3. og, D-76133 karlsruhe http://www.epygi.de; mailto:stephan.linke@epygi.de phone 0721-20596-30; fax 0721-20596-59 ---------------------------------------- Motto: „Wenn es defekt ist, dann isses kaputt!“