public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* Cannot mount my NAND device with JFFS2
@ 2002-08-21 18:43 Ken Offer
  2002-08-21 19:20 ` Thomas Gleixner
  0 siblings, 1 reply; 3+ messages in thread
From: Ken Offer @ 2002-08-21 18:43 UTC (permalink / raw)
  To: LinuxMTD

Hi all,

I can erase and test my smart media card NAND driver just fine 
(i.e. eraseall seems to work, nandtest works, mtd0 and mtd1 show 
up in /proc/mtd).  So far so good.  However, when I try to mount 
the device with jffs2 I get:

 > mount -v -t jffs2 /dev/mtdblock1 /mnt/jffs
mount: wrong fs type, bad option, bad superblock on /dev/mtdblock1,
        or too many mounted file systems

I have:

(a) applied the 
"ftp://ftp.??.kernel.org/pub/linux/kernel/people/dwmw2/shared-
zlib/linux-2.4.19-pre10-shared-zlib.bz2" patch to a 2.4.19 
kernel,
(b) copied the latest and greatest cvs mtd/jffs2 sources into my kernel,
(c) made the appropriate changes to "file.c" for Page_uptodate,
(d) made the change for "CONFIG_JFFS2_FS_NAND" to "fs/Config.in",
(e) made a change to "include/linux/mtd/compatmac.h" to define 
"set_user_nice" (isn't defined for 2.4.19).

My driver is based on the autcpu12 driver in the nand sources.  
I have noticed that there is a "autcpu12-nvram" map driver to 
perform NVRAM mapping.  Is such a mapping device REQUIRED for 
JFFS2 support???  Or is it just for mapping the device to 
address space for other purposes?  The documentation is not 
clear (what's new...)

Got any ideas?

+-----------------------------------------------------------+
|  Ken Offer        koffer@arlut.utexas.edu         ARL:UT  |
|  Office: 512-835-3859                  Fax: 512-835-3259  |
+-----------------------------------------------------------+

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Cannot mount my NAND device with JFFS2
  2002-08-21 18:43 Cannot mount my NAND device with JFFS2 Ken Offer
@ 2002-08-21 19:20 ` Thomas Gleixner
  2002-08-21 19:36   ` Ken Offer
  0 siblings, 1 reply; 3+ messages in thread
From: Thomas Gleixner @ 2002-08-21 19:20 UTC (permalink / raw)
  To: Ken Offer; +Cc: LinuxMTD

On Wed, 2002-08-21 at 20:43, Ken Offer wrote:
> Hi all,
> 
> I can erase and test my smart media card NAND driver just fine 
> (i.e. eraseall seems to work, nandtest works, mtd0 and mtd1 show 
> up in /proc/mtd).  So far so good.  However, when I try to mount 
> the device with jffs2 I get:
>  > mount -v -t jffs2 /dev/mtdblock1 /mnt/jffs
> mount: wrong fs type, bad option, bad superblock on /dev/mtdblock1,
>         or too many mounted file systems
Have you erased the flash before mount or have you copied stuff to the
flash ?
Can you please turn on JFFS2 debugging  to 1 and send the output ? 
make sure that you do
#echo 9 >proc/sys/kernel/printk

> I have:
> 
> (a) applied the 
> "ftp://ftp.??.kernel.org/pub/linux/kernel/people/dwmw2/shared-
> zlib/linux-2.4.19-pre10-shared-zlib.bz2" patch to a 2.4.19 
> kernel,
> (b) copied the latest and greatest cvs mtd/jffs2 sources into my kernel,
> (c) made the appropriate changes to "file.c" for Page_uptodate,
???
> (d) made the change for "CONFIG_JFFS2_FS_NAND" to "fs/Config.in",
> (e) made a change to "include/linux/mtd/compatmac.h" to define 
> "set_user_nice" (isn't defined for 2.4.19).
looks good. 
> My driver is based on the autcpu12 driver in the nand sources.  
good choice :)
> I have noticed that there is a "autcpu12-nvram" map driver to 
> perform NVRAM mapping.  Is such a mapping device REQUIRED for 
> JFFS2 support???  Or is it just for mapping the device to 
> address space for other purposes?  The documentation is not 
> clear (what's new...)
nvram is Non-Volatile-Ram and used for total different stuff 
> Got any ideas?
See above
-- 
Thomas 
____________________________________________________
linutronix - competence in embedded & realtime linux
http://www.linutronix.de
mail: tglx@linutronix.de

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Cannot mount my NAND device with JFFS2
  2002-08-21 19:20 ` Thomas Gleixner
@ 2002-08-21 19:36   ` Ken Offer
  0 siblings, 0 replies; 3+ messages in thread
From: Ken Offer @ 2002-08-21 19:36 UTC (permalink / raw)
  To: Thomas Gleixner; +Cc: LinuxMTD

On Wednesday, August 21, 2002, at 02:20  PM, Thomas Gleixner wrote:

> On Wed, 2002-08-21 at 20:43, Ken Offer wrote:
>> Hi all,
>>
>> I can erase and test my smart media card NAND driver just fine
>> (i.e. eraseall seems to work, nandtest works, mtd0 and mtd1 show
>> up in /proc/mtd).  So far so good.  However, when I try to mount
>> the device with jffs2 I get:
>>> mount -v -t jffs2 /dev/mtdblock1 /mnt/jffs
>> mount: wrong fs type, bad option, bad superblock on /dev/mtdblock1,
>>         or too many mounted file systems
> Have you erased the flash before mount or have you copied stuff to the
> flash ?
> Can you please turn on JFFS2 debugging  to 1 and send the output ?
> make sure that you do
> #echo 9 >proc/sys/kernel/printk

Thanks for the reply!  Got it to work finally.  I had two kernel 
trees going and inadvertently forgot to turn on 
"CONFIG_JFFS2_FS_NAND" in the latest version.  I assumed it was 
on (duh, it was in the old tree...)

+-----------------------------------------------------------+
|  Ken Offer        koffer@arlut.utexas.edu         ARL:UT  |
|  Office: 512-835-3859                  Fax: 512-835-3259  |
+-----------------------------------------------------------+

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-08-21 19:36 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-08-21 18:43 Cannot mount my NAND device with JFFS2 Ken Offer
2002-08-21 19:20 ` Thomas Gleixner
2002-08-21 19:36   ` Ken Offer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox