From: Gregory Schallert <gschallert@dawning.com>
To: "mtd@infradead.org" <mtd@infradead.org>
Subject: mtdblock: module -vs- kernel
Date: Thu, 18 Jan 2001 18:27:14 -0500 [thread overview]
Message-ID: <3A677BD2.421F2332@dawning.com> (raw)
In-Reply-To: Pine.LNX.4.10.10011011431390.3482-100000@xanadu.vipswitch.com
Ok I finally have the initial hardware to do some testing.
Short story...
I can get the mtd char and block drivers to work as modules, but when I
compile them into the kernel only the char device driver works. Any Ideas?
Long story...
I have hacked physmap.c and jedec.c (my chips do not support CFI) and can now
mount a filesystem on my flash device. Everything works wonderful as a
modules ( both block and char devices)....
Now I want to make the flash device a root filesystem. I have edited
init/main.c and added the /dev/flash I node number and init_mtd function.
When I boot with mtdblock0 as my boot device It will uncompress the kernel and
load it. It then recognizes /dev/mtdblock0 as the boot device, but when it
tries to load the filesystem it crashes.
If I do not set mtdblock0 as my boot device( and boot from floppy), the mtd
char driver seems to be working fine when compiled into the kernel but I can
not mount a block device. The proc/dev/ dir contains both mtd and mtdblock.
the /proc/mtd dir only contains mtd0, and will not recognize mtdblock0 as a
valid block device. (that means I can not mount any flash chips)
I have a good understanding about the kernel boot flags and really don't think
that is where the problem is...Is there something I am missing about booting
from the flash device?
Gregory Schallert
Dawning Technologies, Inc.
To unsubscribe, send "unsubscribe mtd" to majordomo@infradead.org
next prev parent reply other threads:[~2001-01-18 23:28 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-11-01 18:00 mtdblock module & I'm Back again Gregory Schallert
2000-11-01 19:37 ` Nicolas Pitre
2000-11-01 22:43 ` David Woodhouse
2000-11-01 22:52 ` Nicolas Pitre
2000-11-02 7:51 ` David Woodhouse
2001-01-18 23:27 ` Gregory Schallert [this message]
2001-01-19 1:19 ` mtdblock: module -vs- kernel Nicolas Pitre
2001-01-24 15:42 ` compiling DOC Brian Michalk
2001-01-24 16:07 ` David Woodhouse
2001-01-25 16:48 ` fdisk problems Brian Michalk
2001-01-25 18:33 ` David Woodhouse
2001-01-25 18:56 ` Brian Michalk
2001-01-25 20:31 ` Brian Michalk
2001-01-25 20:56 ` David Woodhouse
2001-01-25 21:19 ` Brian Michalk
2001-01-26 17:41 ` Brian Michalk
2001-01-28 13:19 ` David Woodhouse
2001-01-28 15:52 ` Brian Michalk
2000-11-02 10:09 ` mtdblock module & I'm Back again David Woodhouse
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=3A677BD2.421F2332@dawning.com \
--to=gschallert@dawning.com \
--cc=mtd@infradead.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox