public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* mkfs.jffs2 again
@ 2001-04-19 13:44 Joakim Tjernlund
  2001-04-19 13:52 ` David Woodhouse
  0 siblings, 1 reply; 34+ 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] 34+ messages in thread
* RE: JFFS2 as root FS
@ 2001-04-18 20:33 Williams, Kevin M.
  0 siblings, 0 replies; 34+ 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] 34+ messages in thread
* Re: A pair of stupid questions, I hope
@ 2001-04-18  8:02 David Woodhouse
  2001-04-18 16:41 ` JFFS2 as root FS Joakim Tjernlund
  0 siblings, 1 reply; 34+ messages in thread
From: David Woodhouse @ 2001-04-18  8:02 UTC (permalink / raw)
  To: ian.nelson; +Cc: mtd@infradead.org


ian.nelson@echostar.com said:
>  I'll ask the guys who need it.  I suspect the proposal would be an
> ISLOCKED ioctl that takes a region as an argument and returns a 0 or
> 1.   I'm a flash novice though, is this something that should go in to
> one of those region structures? 

I was thinking of the internal API - what method do we add to the struct 
mtd_info, and how generic can we make it? Aren't there other similar 
per-block data which we may want to query on some chips?

--
dwmw2




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

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

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

Thread overview: 34+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <3AE43929.3695C91D@daniel.com>
2001-04-24 12:22 ` JFFS2 as root FS Joakim Tjernlund
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
  -- strict thread matches above, loose matches on Subject: below --
2001-04-18 20:33 Williams, Kevin M.
2001-04-18  8:02 A pair of stupid questions, I hope 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

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