This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Problems with JFFS2 mount


Hi all,
           I am trying to mount the JFFS2 file system. I am using the jff2.img given in ecos source tree(/fs/jffs/). Flash used is Intel Strata Flash(INTEL  28F128Jx ( 8192 x 16 )  2 Devices).My memorymap is as follows

Flash base: FE000000
Flash size: 32MB
RAM BASE  : 00000000
RAM Size  : 128 MB

After Booting the board, I did  fis init and loaded the jffs2.img using load(tftp) and create commands.

The fis list is as follows
Name FLASHaddr     Memaddr    Len      Entry
RedBoot 0xFE000000 0xFE0000000 x40000  0x0
jffs2   0xFE100000 0xFE100000 0x40000 x3000000
FISdir  0xFFFC0000 0xFFFC0000 0x3F000 x0
RedBtcfg0xFFFFF000 0xFFFFF000 0x1000  x0

After this I have given the mount command

RedBoot> mount -t jffs2 -d /dev/flash1
<4>Write clean marker to block at 0x00000000 failed: -5

but this area is RAM.. can anyone tell me why this is happening? if i give the ls command it displays as:

RedBoot> ls
getcwd
directory /
   1 drwxr-xr-x  1 size      0 .
   1 drwxr-xr-x  1 size      0 ..

and one more thing is , the mount command erases my Redboot data also..!! all flash locations( including FIS dir, redboot config) are written by a new content "0x00800080" 

the fis list displays as follows

RedBoot> fis list
Name  FLASHaddr Memaddr    Len        Entry
     0x00800080 0x00800080 0x00800080 x00800080

I have selected static configuration in config tool with values 0x00100000(offset),0x00100000(len).

after mounting this image, the load command also not working..!

I have edited the .ldi and .h memory layout files of rattler according to the memory map. Is this creates a problem with JFFS2? 

Thanking you

Manoj K Abraham.
MIT.
-- 
India.com free e-mail - www.india.com. 
Check out our value-added Premium features, such as an extra 20MB for mail storage, POP3, e-mail forwarding, and ads-free mailboxes!

Powered by Outblaze

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]