* Booting from /dev/mtdblock/0
@ 2002-04-25 20:11 Murtada Shah
2002-04-29 0:57 ` John Weston
0 siblings, 1 reply; 4+ messages in thread
From: Murtada Shah @ 2002-04-25 20:11 UTC (permalink / raw)
To: linux-mtd
Hi,
I'm trying to boot from /dev/mtdblock/0 (root=/dev/mtdblock/0 in cmdline
options)
When I boot from nfs, I can mount /dev/mtdblock/0 no problem from
command line & unmount etc.
But if I pass it as the root= option, while booting it gets stuck.
With mtd debug level to 3 I see that it tries mtdblock_open twice...
which it shouldnt..
"mtdblock_open
ok
mtdblock_open
mtdblock_release"
Then it hangs here for a long time.
What could be the cause?
Murtada
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Booting from /dev/mtdblock/0
2002-04-25 20:11 Booting from /dev/mtdblock/0 Murtada Shah
@ 2002-04-29 0:57 ` John Weston
2002-04-29 1:15 ` John Weston
2002-04-29 2:28 ` Jim Thompson
0 siblings, 2 replies; 4+ messages in thread
From: John Weston @ 2002-04-29 0:57 UTC (permalink / raw)
To: linux-mtd
[-- Attachment #1: Type: text/plain, Size: 961 bytes --]
G'day,
Have not got to the bottom of this yet, but having the same problem. We had
a development board which worked fine using kernel version 2.4.3 but since
updating to 2.4.18 we are now seeing the same problem.
Does anyone know of any required patches for this?
Thanks
John Weston
Mutada Shah wrote:
> Hi,
>
> I'm trying to boot from /dev/mtdblock/0 (root=/dev/mtdblock/0 in cmdline
> options)
>
> When I boot from nfs, I can mount /dev/mtdblock/0 no problem from
> command line & unmount etc.
>
> But if I pass it as the root= option, while booting it gets stuck.
>
> With mtd debug level to 3 I see that it tries mtdblock_open twice...
> which it shouldnt..
>
> "mtdblock_open
> ok
> mtdblock_open
> mtdblock_release"
>
> Then it hangs here for a long time.
> What could be the cause?
>
> Murtada
>
> ______________________________________________________
> Linux MTD discussion mailing list
> http://lists.infradead.org/mailman/listinfo/linux-mtd/
[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/x-pkcs7-signature, Size: 1122 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Booting from /dev/mtdblock/0
2002-04-29 0:57 ` John Weston
@ 2002-04-29 1:15 ` John Weston
2002-04-29 2:28 ` Jim Thompson
1 sibling, 0 replies; 4+ messages in thread
From: John Weston @ 2002-04-29 1:15 UTC (permalink / raw)
To: linux-mtd
[-- Attachment #1: Type: text/plain, Size: 1317 bytes --]
Hi again,
Pardon my last message. Having looked up the mail archive found the solution
there. Seems to be a problem calling the invalidate_device function call in
the mtdblock.c code.
Seems like I had better look harder next time.
Thanks anyway.
John Weston
John Weston wrote:
> G'day,
>
> Have not got to the bottom of this yet, but having the same problem. We had
> a development board which worked fine using kernel version 2.4.3 but since
> updating to 2.4.18 we are now seeing the same problem.
>
> Does anyone know of any required patches for this?
>
> Thanks
>
> John Weston
>
> Mutada Shah wrote:
>
> > Hi,
> >
> > I'm trying to boot from /dev/mtdblock/0 (root=/dev/mtdblock/0 in cmdline
> > options)
> >
> > When I boot from nfs, I can mount /dev/mtdblock/0 no problem from
> > command line & unmount etc.
> >
> > But if I pass it as the root= option, while booting it gets stuck.
> >
> > With mtd debug level to 3 I see that it tries mtdblock_open twice...
> > which it shouldnt..
> >
> > "mtdblock_open
> > ok
> > mtdblock_open
> > mtdblock_release"
> >
> > Then it hangs here for a long time.
> > What could be the cause?
> >
> > Murtada
> >
> > ______________________________________________________
> > Linux MTD discussion mailing list
> > http://lists.infradead.org/mailman/listinfo/linux-mtd/
[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/x-pkcs7-signature, Size: 1122 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Booting from /dev/mtdblock/0
2002-04-29 0:57 ` John Weston
2002-04-29 1:15 ` John Weston
@ 2002-04-29 2:28 ` Jim Thompson
1 sibling, 0 replies; 4+ messages in thread
From: Jim Thompson @ 2002-04-29 2:28 UTC (permalink / raw)
To: John Weston; +Cc: linux-mtd
Its a one-line fix.
static release_t mtdblock_release(struct inode *inode, struct file *file)
{
int dev;
struct mtdblk_dev *mtdblk;
DEBUG(MTD_DEBUG_LEVEL1, "mtdblock_release\n", inode);
if (inode == NULL)
release_return(-ENODEV);
#if 0
invalidate_device(inode->i_rdev, 1);
#endif
John Weston writes:
> G'day,
>
> Have not got to the bottom of this yet, but having the same problem. We had
> a development board which worked fine using kernel version 2.4.3 but since
> updating to 2.4.18 we are now seeing the same problem.
>
> Does anyone know of any required patches for this?
>
> Thanks
>
> John Weston
>
>
>
> Mutada Shah wrote:
>
> > Hi,
> >
> > I'm trying to boot from /dev/mtdblock/0 (root=/dev/mtdblock/0 in cmdline
> > options)
> >
> > When I boot from nfs, I can mount /dev/mtdblock/0 no problem from
> > command line & unmount etc.
> >
> > But if I pass it as the root= option, while booting it gets stuck.
> >
> > With mtd debug level to 3 I see that it tries mtdblock_open twice...
> > which it shouldnt..
> >
> > "mtdblock_open
> > ok
> > mtdblock_open
> > mtdblock_release"
> >
> > Then it hangs here for a long time.
> > What could be the cause?
> >
> > Murtada
> >
> > ______________________________________________________
> > Linux MTD discussion mailing list
> > http://lists.infradead.org/mailman/listinfo/linux-mtd/
--
"Life begins when you can spend your spare time programming
instead of watching television." -- Cal Keegan
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2002-04-29 2:28 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-04-25 20:11 Booting from /dev/mtdblock/0 Murtada Shah
2002-04-29 0:57 ` John Weston
2002-04-29 1:15 ` John Weston
2002-04-29 2:28 ` Jim Thompson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox