* mkfs.jffs2 ?!
@ 2008-05-21 10:15 Manuel Sahm
2008-05-21 13:13 ` Jason Liu
0 siblings, 1 reply; 3+ messages in thread
From: Manuel Sahm @ 2008-05-21 10:15 UTC (permalink / raw)
To: linux-mtd
Hello,
I have lot of problems concerning my NANDflash:
I?ve downloaded mtd-utils 1.1.0 and compiled it on my host pc [Suse
Linux 10.2 - Kernel 2.6.18]
I enter:
mkfs.jffs2 -d /exports/ -p -s 0x800 -e 0x20000 -n -l -o /RFS.jffs2
NAND Flash has Pagesize = 2048 Byte = 2kByte
EraseBlockSize= 128 kByte
oob = 64
I could mount the Image on my target [linux 2.6.25.3]through:
mount -rw -t jffs2 /dev/mtdblock5 /media/DATAfs
BUT:
If I want to write to the device like: touch /media/DATAfs/test.txt
and then unmount /media/DATAfs/test.txt
and mount -rw -t jffs2 /dev/mtdblock5 /media/DATAfs
There?s an message:
empty flash at [address] end at [address] !!!!!!!!!!!!!!!!!!!!!!!
Please help me........
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: mkfs.jffs2 ?!
2008-05-21 10:15 mkfs.jffs2 ?! Manuel Sahm
@ 2008-05-21 13:13 ` Jason Liu
2008-05-21 13:26 ` Manuel Sahm
0 siblings, 1 reply; 3+ messages in thread
From: Jason Liu @ 2008-05-21 13:13 UTC (permalink / raw)
To: Manuel Sahm; +Cc: linux-mtd
before mount please erase the partition and then mount & copy files to
the mount point,
remount and see what happen. empty flash at [address] end at [address]
!!!!!!!!!!!!!!!!!!!!!!!
is no harmfull message. the wrong configration when use mkfs.jffs2
will also lead to it.
such as the erase size is not the same with your nand flash used.
2008/5/21 Manuel Sahm <Manuel.Sahm@feig.de>:
> Hello,
>
> I have lot of problems concerning my NANDflash:
>
> I?ve downloaded mtd-utils 1.1.0 and compiled it on my host pc [Suse
> Linux 10.2 - Kernel 2.6.18]
>
> I enter:
> mkfs.jffs2 -d /exports/ -p -s 0x800 -e 0x20000 -n -l -o /RFS.jffs2
>
> NAND Flash has Pagesize = 2048 Byte = 2kByte
> EraseBlockSize= 128 kByte
> oob = 64
>
> I could mount the Image on my target [linux 2.6.25.3]through:
>
> mount -rw -t jffs2 /dev/mtdblock5 /media/DATAfs
>
> BUT:
> If I want to write to the device like: touch /media/DATAfs/test.txt
> and then unmount /media/DATAfs/test.txt
> and mount -rw -t jffs2 /dev/mtdblock5 /media/DATAfs
>
>
> There?s an message:
>
> empty flash at [address] end at [address] !!!!!!!!!!!!!!!!!!!!!!!
>
>
> Please help me........
>
> ______________________________________________________
> Linux MTD discussion mailing list
> http://lists.infradead.org/mailman/listinfo/linux-mtd/
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: mkfs.jffs2 ?!
2008-05-21 13:13 ` Jason Liu
@ 2008-05-21 13:26 ` Manuel Sahm
0 siblings, 0 replies; 3+ messages in thread
From: Manuel Sahm @ 2008-05-21 13:26 UTC (permalink / raw)
To: Jason Liu; +Cc: linux-mtd
Hello,
I have make a pertition of 5 MB through the Kernel Partitioning.
my jffs2 Image has a size of 128kB
If I mount the jffs df -h says:
Filesystem size used available Use%
Mounted on
/dev/mtdblock5 5.0M 388.0k 4.6M 8%
/media/DATAfs
If I write to /media/Datafs, does the system automatically increase my
mounted jffs image ?
I defenitly have the right erase size ----- maybe it is an endian problem ?
How could I see which endian I need (little or big) ?
Thank you
Jason Liu schrieb:
> before mount please erase the partition and then mount & copy files to
> the mount point,
> remount and see what happen. empty flash at [address] end at [address]
> !!!!!!!!!!!!!!!!!!!!!!!
> is no harmfull message. the wrong configration when use mkfs.jffs2
> will also lead to it.
> such as the erase size is not the same with your nand flash used.
>
> 2008/5/21 Manuel Sahm <Manuel.Sahm@feig.de>:
>
>> Hello,
>>
>> I have lot of problems concerning my NANDflash:
>>
>> I?ve downloaded mtd-utils 1.1.0 and compiled it on my host pc [Suse
>> Linux 10.2 - Kernel 2.6.18]
>>
>> I enter:
>> mkfs.jffs2 -d /exports/ -p -s 0x800 -e 0x20000 -n -l -o /RFS.jffs2
>>
>> NAND Flash has Pagesize = 2048 Byte = 2kByte
>> EraseBlockSize= 128 kByte
>> oob = 64
>>
>> I could mount the Image on my target [linux 2.6.25.3]through:
>>
>> mount -rw -t jffs2 /dev/mtdblock5 /media/DATAfs
>>
>> BUT:
>> If I want to write to the device like: touch /media/DATAfs/test.txt
>> and then unmount /media/DATAfs/test.txt
>> and mount -rw -t jffs2 /dev/mtdblock5 /media/DATAfs
>>
>>
>> There?s an message:
>>
>> empty flash at [address] end at [address] !!!!!!!!!!!!!!!!!!!!!!!
>>
>>
>> Please help me........
>>
>> ______________________________________________________
>> Linux MTD discussion mailing list
>> http://lists.infradead.org/mailman/listinfo/linux-mtd/
>>
>>
--
Freundliche Grüße / Best regards
Manuel Sahm
Research & Development
FEIG ELECTRONIC GmbH
Lange Straße 4
35781 Weilburg
Germany
Tel.: +49 (0)6471-3109.492
Fax.: +49 (0)6471-3109.99
email: manuel.sahm@feig.de
internet: http://www.feig.de
------------------------------------------------------------------------
Amtsgericht Limburg HRB 3178
Geschäftsführer: Dipl.-Ing. Wolfgang Feig
------------------------------------------------------------------------
------------------------------------------------------------------------
Diese Email (eingeschlossen die Anhaenge) unterliegt Urheberrecht, die
Informationen sind vertraulich und rechtswirksam privilegiert. Der
Gebrauch dieser Email oder der Anhaenge von einem anderen als den
Adressaten ist nicht gestattet und unrechtmaessig.
This email (including any attachments) is subject to copyright, the
information in it is confidential, and it is legally privileged. Use of
this email or of any information in it other than by the addressee is
unauthorised and unlawful.
------------------------------------------------------------------------
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-05-21 13:26 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-21 10:15 mkfs.jffs2 ?! Manuel Sahm
2008-05-21 13:13 ` Jason Liu
2008-05-21 13:26 ` Manuel Sahm
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox