public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* Whats wrong with my jffs2?
@ 2002-03-28  5:46 Jim Zeus
  2002-03-28  7:23 ` David Woodhouse
  0 siblings, 1 reply; 3+ messages in thread
From: Jim Zeus @ 2002-03-28  5:46 UTC (permalink / raw)
  To: David Woodhouse, David  Woodhouse; +Cc: all in MTD mailinglist


--- David Woodhouse <dwmw2@infradead.org> wrote:
>
>zeusj@firstlinux.net said:
>>     Can you tell me why only my mtd char device with even minor deivce
>> number works? and there is no such thing happened on my mtd block
>> device. 
>
>Did you run the MAKEDEV script or try to make your devices by hand? If you 
>did them by hand, did you do so without referring to Documentation/devices.txt?
>
>grep -A6 " 90 char" /usr/src/linux/Documentation/devices.txt 

Thanks, I have checked the devices.txt, so I got why the odd mtd "permission denied". But if the device nodes with major 31 ,mi 0-7 are ROM card (as the device.txt said),why my flash can works without nothing wrong? I think the minor number should be 8-15 , isnt it?

one more question
when I use jffs as the root filesystem, everything is ok, but when I use jffs2 (I remeber that you said its more stable than jffs:), I got a problem some message appears on my screen and the root filesystem is readonly (this never happened on jffs), the following is the message:

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000e0014: 0x552f in
stead

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000e0018: 0x175e in
stead

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000e001c: 0xcdf6 in
stead

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000e0020: 0xb7fb in
stead

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000e0024: 0x7615 in
stead

Further such events for this erase block will not be printed

VFS: Mounted root (jffs2 filesystem) readonly.

Freeing init memory: 40K

serial console detected.  Disabling virtual terminals.

init started:  BusyBox v0.60.2 (2002.02.24-07:14+0000) multi-call
mount: Mounting /dev/ram0 on / failed: No such device or address

mount: Mounting devpts on /dev/pts failed: Nh




BusyBox v0.60.2 (2002.02.24-07:25+0000) Built-in shell (msh)

Ee o-a


Processing /etc/profile... Done
#

Thank you very much!


Jim Zeus 


_____________________________________________________________
Want a new web-based email account ? ---> http://www.firstlinux.net

_____________________________________________________________
Run a small business? Then you need professional email like you@yourbiz.com from Everyone.net  http://www.everyone.net?tag

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

* Re: Whats wrong with my jffs2?
  2002-03-28  5:46 Whats wrong with my jffs2? Jim Zeus
@ 2002-03-28  7:23 ` David Woodhouse
  0 siblings, 0 replies; 3+ messages in thread
From: David Woodhouse @ 2002-03-28  7:23 UTC (permalink / raw)
  To: zeusj; +Cc: all in MTD mailinglist

zeusj@firstlinux.net said:
>  Thanks, I have checked the devices.txt, so I got why the odd mtd
> "permission denied". But if the device nodes with major 31 ,mi 0-7 are
> ROM card (as the device.txt said),why my flash can works without
> nothing wrong? I think the minor number should be 8-15 , isnt it?

Hmmm. That's out of date - I reused the major number. I thought the change
had propagated to devices.txt by now. We don't actually distinguish between
flash and ROM 'cards'.

> jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000e0014: 0x552f instead

Did you erase the flash completely before putting the JFFS2 image on there?

> VFS: Mounted root (jffs2 filesystem) readonly.

Add 'rw' to the kernel command line (and/or remove 'ro') ?

--
dwmw2

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

* Re: Whats wrong with my jffs2?
@ 2002-03-29  1:25 Jim Zeus
  0 siblings, 0 replies; 3+ messages in thread
From: Jim Zeus @ 2002-03-29  1:25 UTC (permalink / raw)
  To: David Woodhouse, David  Woodhouse; +Cc: all in MTD mailinglist


--- David Woodhouse <dwmw2@infradead.org> wrote:
>
>zeusj@firstlinux.net said:
>>  Thanks, I have checked the devices.txt, so I got why the odd mtd
>> "permission denied". But if the device nodes with major 31 ,mi 0-7 are
>> ROM card (as the device.txt said),why my flash can works without
>> nothing wrong? I think the minor number should be 8-15 , isnt it?
>
>Hmmm. That's out of date - I reused the major number. I thought the change
>had propagated to devices.txt by now. We don't actually distinguish between
>flash and ROM 'cards'.

Thanks, I'll check it out.

>> jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000e0014: 0x552f instead
>
>Did you erase the flash completely before putting the JFFS2 image on there?

I think there is no relation to Jffs2 image, now I show you my mtd partition:

0x00000000-0x00020000 : "Perseus Bootloader"

0x00020000-0x00800000 : "Perseus Kernel"

0x00800000-0x01000000 : "Perseus Rootfs"

0x01000000-0x02000000 : "Perseus JFFS2"

and if  you check the message you will find that "the Magic bitmask 0x1985 not found at 0x000e0014" are all in Perseus Kernel partition, moreover, I erased all the first 16M (from bootloader to rootfs) , so I think its none of jffs2.image's business  (the rootfs is jffs2 and the root filesystem )
And it still cant explain why jffs is ok.

>> VFS: Mounted root (jffs2 filesystem) readonly.
>
>Add 'rw' to the kernel command line (and/or remove 'ro') ?

I dont have kernel command line :<

Thanks

Jim Zeus

_____________________________________________________________
Want a new web-based email account ? ---> http://www.firstlinux.net

_____________________________________________________________
Run a small business? Then you need professional email like you@yourbiz.com from Everyone.net  http://www.everyone.net?tag

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

end of thread, other threads:[~2002-03-29  1:25 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-03-28  5:46 Whats wrong with my jffs2? Jim Zeus
2002-03-28  7:23 ` David Woodhouse
  -- strict thread matches above, loose matches on Subject: below --
2002-03-29  1:25 Jim Zeus

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