Welcome to Soft32 Linux Forums!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

jffs2 mount failing

 
   Soft32 Home -> Linux -> Embeded RSS
Next:  [PATCH 0/2] memcg: cgroup fix rmdir hang  
Author Message
vamshi

External


Since: Jun 23, 2009
Posts: 2



(Msg. 1) Posted: Tue Jun 23, 2009 2:53 am
Post subject: jffs2 mount failing
Archived from groups: comp>os>linux>embedded (more info?)

Hi All,

I am facing a problem while mounting a devices to use jffs2
filesystem.
Once i erase the device, mount is successful. But if i write a file,
it is throwing some crc errors
if i unmount it and mount it again, it fails with same errors.

Can anyone tell me what is going here.

# mount -t jffs2 /dev/mtdblock3 /test/
Magic bitmask is backwards at offset 0x00000000. Wrong endian
filesystem?
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000008:
0x60f0 instead
JFFS2: Erase block at 0x00000000 is not formatted. It will be erased
Magic bitmask is backwards at offset 0x00020000. Wrong endian
filesystem?
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00020008:
0x60f0 instead
JFFS2: Erase block at 0x00020000 is not formatted. It will be erased
....
....
Magic bitmask is backwards at offset 0x007c0000. Wrong endian
filesystem?
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x007c0008:
0x60f0 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x007c000c:
0x8519 instead

Further such events for this erase block will not be printed
JFFS2: Erase block at 0x007c0000 is not formatted. It will be erased
Magic bitmask is backwards at offset 0x007e0000. Wrong endian
filesystem?
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x007e0008:
0x60f0 instead
JFFS2: Erase block at 0x007e0000 is not formatted. It will be erased
Cowardly refusing to erase blocks on filesystem with no valid JFFS2
nodes
empty_blocks 0, bad_blocks 0, c->nr_blocks 64

# eraseall /dev/mtd3
Erased 8192 Kibyte @ 0 -- 100% complete.
# mount -t jffs2 /dev/mtdblock3 /test
#cd /test
# tftp -g 10.131.17.53 -r .config
Node CRC 974d5d84 != calculated CRC 9bab4047 for node at 007c07d0
Node CRC eab4e132 != calculated CRC b1b3e1b7 for node at 007c0c70
Node CRC eab4e132 != calculated CRC b1b3e1b7 for node at 007c0c70
Node CRC eab4e132 != calculated CRC b1b3e1b7 for node at 007c0c70
.....
Back to top
Login to vote
vamshi

External


Since: Jun 23, 2009
Posts: 2



(Msg. 2) Posted: Thu Jun 25, 2009 6:57 am
Post subject: Re: jffs2 mount failing [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Jun 25, 4:00 pm, Tarmo Kuuse <tarmo.ku....TakeThisOut@mail.ee> wrote:
> vamshi wrote:
> > I am facing a problem while mounting a devices to use jffs2
> > filesystem.
> > Once i erase the device, mount is successful. But if i write a file,
> > it is throwing some crc errors
> > if i unmount it and mount it again, it fails with same errors.
>
> > Can anyone tell me what is going here.
>
> > # mount -t jffs2 /dev/mtdblock3  /test/
> > Magic bitmask is backwards at offset 0x00000000. Wrong endian
> > filesystem?
>
> I suggest initializing the file system with mkfs.jffs2 before mounting it..
>
> I don't think you can use mkfs.jffs2 to write directly into your MTD
> device so create an image file and burn it with nandwrite.
>
> Take care to choose the same endianness as your target CPU.
>
> I also suggest padding the file system with 0xFF in full length. I have
> seen systems which end up with 0 byte values in image and mount fails.
>
> --
> Kind regards,
> Tarmo Kuuse

Thank you for your inputs, my flash is a nor chip. can i still use
nandwrite?

Regards,
Vamshi
Back to top
Login to vote
Tarmo Kuuse

External


Since: Jun 25, 2009
Posts: 2



(Msg. 3) Posted: Thu Jun 25, 2009 7:20 am
Post subject: Re: jffs2 mount failing [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

vamshi wrote:
> I am facing a problem while mounting a devices to use jffs2
> filesystem.
> Once i erase the device, mount is successful. But if i write a file,
> it is throwing some crc errors
> if i unmount it and mount it again, it fails with same errors.
>
> Can anyone tell me what is going here.
>
> # mount -t jffs2 /dev/mtdblock3 /test/
> Magic bitmask is backwards at offset 0x00000000. Wrong endian
> filesystem?

I suggest initializing the file system with mkfs.jffs2 before mounting it.

I don't think you can use mkfs.jffs2 to write directly into your MTD
device so create an image file and burn it with nandwrite.

Take care to choose the same endianness as your target CPU.

I also suggest padding the file system with 0xFF in full length. I have
seen systems which end up with 0 byte values in image and mount fails.

--
Kind regards,
Tarmo Kuuse
Back to top
Login to vote
Tarmo Kuuse

External


Since: Jun 25, 2009
Posts: 2



(Msg. 4) Posted: Thu Jun 25, 2009 11:20 am
Post subject: Re: jffs2 mount failing [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

vamshi wrote:
> Thank you for your inputs, my flash is a nor chip. can i still use
> nandwrite?

I have no idea (I use an external BDM interface for programming flash).
Check with "man nandwrite" and google.

--
Kind regards,
Tarmo Kuuse
Back to top
Login to vote
Display posts from previous:   
Related Topics:
network hard disk or drive on uclinux - hi all i m using uclinux. i with network camera(ip) now iwant to store packet from camera to network drive or ethernet....

plzzzzzzzzz - is this forum completely dead? no replies....

Issue in reboot - Hi every one, I'm able to reboot my target board with the processor [mpc5200] using the command [reboot -f] from the....

RS 232 serial port connector to linux binding - can nybody suggest me how to do connect RS232 serial port to linux machine will portID(XXXX,XX) (Tx) will work as it..

GoAhead Web Server SSL Integration issue - Hi, I am having the problem while configuring SSL in Linux environment for GoAhead Web Server. I am enabling SSL by..

SBC84500 Startup problem!!! - Can someone please help me, with this probably trivial, but for me unsolvable problem. So I have Axiomtek SBC84500, an...
       Soft32 Home -> Linux -> Embeded All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Categories:
 Windows
  Linux
 Mac
 PDA


[ Contact us | Terms of Service/Privacy Policy ]