public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* A pair of stupid questions, I hope
@ 2001-04-17 16:42 Ian S. Nelson
  2001-04-17 22:11 ` David Woodhouse
  0 siblings, 1 reply; 38+ messages in thread
From: Ian S. Nelson @ 2001-04-17 16:42 UTC (permalink / raw)
  To: mtd@infradead.org

My manufacturing people want a test that responds yes or no to the
question "is this sector locked?"

This seems like it should be pretty easy, but where and how do I
determine that? Is it something that is stored in the mem_region?  There
are lock and unlock ioctls but it's not obvious to me how to query if a
sector is locked? What is the proper way to do this?

then 4M flash..  It's looking more and more like we're going to move
from 2MB to a 4MB flash.  Supposedly the 4MB is banked and it's some
Toshiba part that isn't listed in the code as supported yet.  Do we
already support anything like that?  It looks easy enough to add support
for a new part and I'm eager to give it a try but I don't know about
this convoluted banking thing.  Any advice?

thanks,
Ian




To unsubscribe, send "unsubscribe mtd" to majordomo@infradead.org

^ permalink raw reply	[flat|nested] 38+ messages in thread
* RE: JFFS2 as root FS
@ 2001-04-18 20:33 Williams, Kevin M.
  0 siblings, 0 replies; 38+ messages in thread
From: Williams, Kevin M. @ 2001-04-18 20:33 UTC (permalink / raw)
  To: 'mtd@infradead.org'

Vipin wrote:
>Well, the kernel may not be able to understand the 
>"mtdblock1" device by name unless you patched the 
>init/main.c file to list a conversion table from 
>mtdblockxx to a *device number*.

Can you please tell me where I can find more information on doing this?  I
have downloaded and grepped the mailing list archives, and looked in the
patches, but only the 2.2.x patches seem to have any changes to main.c
included and those changes do not do what you are describing here.  Reading
mailinglist archives shows I may also need to modify filesystems.c.

Is there a patch file for anything after the official 2.4.0 kernel
available?

I am using a mainline 2.4.3-pre3 kernel and simply copied from the latest
ftp snapshot into my kernel's /fs, /include, and /kernel directories.  It
worked (at least the CFI_probe part did), and if I mknod I can create
entries in my /dev directory and erase them ok (maybe mknod is the wrong
thing to do, I don't know, but erase really does work now!), but mount is
still not working (it returns "bad area!!" and says something like I may
have "wrong device # or fstype not supported").  

I tried enabling CONFIG_MTD_CHAR and CONFIG_MTD_BLOCK but that did not make
anything come up in my /dev directory.

I think I have not completely updated my kernel...

Thank you.

Kevin
 



To unsubscribe, send "unsubscribe mtd" to majordomo@infradead.org

^ permalink raw reply	[flat|nested] 38+ messages in thread
* mkfs.jffs2 again
@ 2001-04-19 13:44 Joakim Tjernlund
  2001-04-19 13:52 ` David Woodhouse
  0 siblings, 1 reply; 38+ messages in thread
From: Joakim Tjernlund @ 2001-04-19 13:44 UTC (permalink / raw)
  To: mtd

If I run mkfs.jffs2 on my PC(rh 7) I get this
when I mount it on my RPX(PPC860) board:
sh-2.03# mount -t jffs2 /dev/mtdblock0 mtdblock0/
mtdblock_open
ok
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000000:
0x8519 inst
ead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000004:
0x4400 inst
ead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000008:
0x1dfb inst
ead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0000000c:
0x0100 inst
ead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000010:
0x0100 inst
ead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000014:
0xed41 inst
ead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000020:
0xf4de inst
ead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000024:
0x9bde inst
ead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000028:
0x9bde inst
ead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000040:
0xfc56 inst
ead
Further such events for this erase block will not be printed
JFFS2: Erase block at 0x00000000 is not formatted. It will be erased
JFFS2: Erase block at 0x00008000 is not formatted. It will be erased
JFFS2: Erase block at 0x00010000 is not formatted. It will be erased
JFFS2: Erase block at 0x00018000 is not formatted. It will be erased
JFFS2: Erase block at 0x00020000 is not formatted. It will be erased
JFFS2: Erase block at 0x00028000 is not formatted. It will be erased
JFFS2: Erase block at 0x00030000 is not formatted. It will be erased
JFFS2: Erase block at 0x00038000 is not formatted. It will be erased

Then if I run mkfs.jffs2 on my RPX board I only get a few:
JFFS2: Erase block at 0x00000800 is not formatted. It will be erased

which I think is normal.


Can this be an big/little endian issue?



To unsubscribe, send "unsubscribe mtd" to majordomo@infradead.org

^ permalink raw reply	[flat|nested] 38+ messages in thread
[parent not found: <3AE43929.3695C91D@daniel.com>]

end of thread, other threads:[~2001-04-24 12:23 UTC | newest]

Thread overview: 38+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-04-17 16:42 A pair of stupid questions, I hope Ian S. Nelson
2001-04-17 22:11 ` David Woodhouse
2001-04-18  0:04   ` Ian S. Nelson
2001-04-18  8:02     ` David Woodhouse
2001-04-18 16:41       ` JFFS2 as root FS Joakim Tjernlund
2001-04-18 16:50         ` David Woodhouse
2001-04-18 17:00           ` Joakim Tjernlund
2001-04-18 17:05             ` David Woodhouse
2001-04-18 18:58               ` Joakim Tjernlund
2001-04-18 17:11         ` Vipin Malik
2001-04-18 19:24           ` Joakim Tjernlund
2001-04-18 20:19             ` Vipin Malik
2001-04-18 22:00               ` Joakim Tjernlund
2001-04-19  8:28                 ` Florian Schirmer / TayTron
2001-04-19 10:26               ` Joakim Tjernlund
2001-04-19 13:02                 ` Florian Schirmer / TayTron
2001-04-19 12:45                   ` Joakim Tjernlund
2001-04-19 13:02                     ` David Woodhouse
2001-04-19 14:55                       ` Nicolas Pitre
2001-04-19 16:44                 ` Vipin Malik
2001-04-19 19:59                   ` Joakim Tjernlund
  -- strict thread matches above, loose matches on Subject: below --
2001-04-18 20:33 Williams, Kevin M.
2001-04-19 13:44 mkfs.jffs2 again Joakim Tjernlund
2001-04-19 13:52 ` David Woodhouse
2001-04-19 20:06   ` JFFS2 as root FS Joakim Tjernlund
2001-04-20 16:26     ` David Woodhouse
2001-04-21  8:07       ` Joakim Tjernlund
2001-04-21 11:22         ` David Woodhouse
2001-04-21 20:22           ` Joakim Tjernlund
2001-04-23  1:52             ` David Schleef
2001-04-23  6:15               ` Joakim Tjernlund
2001-04-23  9:28               ` Joakim Tjernlund
2001-04-23  9:31                 ` David Woodhouse
2001-04-23 11:00                   ` David Schleef
2001-04-23 11:04                     ` David Woodhouse
2001-04-24  1:56                       ` David Schleef
2001-04-21 12:08         ` David Woodhouse
2001-04-21 20:14           ` Joakim Tjernlund
2001-04-21 22:18             ` David Woodhouse
     [not found] <3AE43929.3695C91D@daniel.com>
2001-04-24 12:22 ` Joakim Tjernlund

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