From: "Steven J. Hill" <sjhill@realitydiluted.com>
To: Kunihiko IMAI <kimai@laser5.co.jp>
Cc: linux-mips <linux-mips@oss.sgi.com>
Subject: Re: fail to boot with MTD root fs
Date: Sat, 25 May 2002 12:53:10 -0500 [thread overview]
Message-ID: <3CEFCF86.5060401@realitydiluted.com> (raw)
In-Reply-To: m3off5drab.wl@kimai.laser5.co.jp
Kunihiko IMAI wrote:
> Hi,
>
> I'm using Pb1500 evaluation board and met somewhat serious problem.
> The problem is that failing to mount FlashROM filesystem as root fs
> and go into infinite loop without any message. Does anyone have a
> good (or better) solution?
>
> I'm using SGI kernel source tree, linux-2.4.18 of linux_2_4 branch.
>
> When booting with nfs root, and using MTD FlashROM fs, it works well.
>
There was a bug in 2.4.18 with respect to the MTD code and using flash
as a root filesystem. It had to do with the MTD block devices. Make
the changes below and things will work again.
-Steve
Index: mtdblock.c
===================================================================
RCS file: /data/cvs/settop/drivers/mtd/mtdblock.c,v
retrieving revision 1.6
diff -u -r1.6 mtdblock.c
--- mtdblock.c 9 May 2002 13:35:40 -0000 1.6
+++ mtdblock.c 25 May 2002 16:52:14 -0000
@@ -371,8 +371,6 @@
if (inode == NULL)
release_return(-ENODEV);
- invalidate_device(inode->i_rdev, 1);
-
dev = MINOR(inode->i_rdev);
mtdblk = mtdblks[dev];
Index: mtdblock_ro.c
===================================================================
RCS file: /data/cvs/settop/drivers/mtd/mtdblock_ro.c,v
retrieving revision 1.2
diff -u -r1.2 mtdblock_ro.c
--- mtdblock_ro.c 3 Jan 2002 17:19:58 -0000 1.2
+++ mtdblock_ro.c 25 May 2002 16:53:01 -0000
@@ -79,8 +79,6 @@
if (inode == NULL)
release_return(-ENODEV);
- invalidate_device(inode->i_rdev, 1);
-
dev = MINOR(inode->i_rdev);
mtd = __get_mtd_device(NULL, dev);
next prev parent reply other threads:[~2002-05-25 17:52 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-05-25 0:06 fail to boot with MTD root fs Kunihiko IMAI
2002-05-25 17:53 ` Steven J. Hill [this message]
2002-05-27 4:59 ` Kunihiko IMAI
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3CEFCF86.5060401@realitydiluted.com \
--to=sjhill@realitydiluted.com \
--cc=kimai@laser5.co.jp \
--cc=linux-mips@oss.sgi.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.