LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Password
Linux - Embedded & Single-board computer This forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.

Notices


Reply
  Search this Thread
Old 05-01-2011, 04:30 PM   #1
_spectrum_
Member
 
Registered: Jun 2009
Posts: 36

Rep: Reputation: 5
jffs2 issues


Hi all,

i am looking for some help on an issue with jffs2: i can create jffs2 fs, mount, store edit/write some files, unmount,
but in a next mount i find no more files/dirs.

MTD probe detect correctly my flash, the chip have erase sectors of 4KB, or blocks of 64KB. MTD shows correctly a 0x1000 erase size.

/ # / # cat /proc/mtd
dev: size erasesize name
mtd0: 00010000 00001000 "Colilo (64K)"
mtd1: 002f0000 00001000 "Kernel+ROMfs (3008K)"
mtd2: 00100000 00001000 "JFFS2 (1024K)" <--- want to use this partition only as jffs2 to store non volatile data
mtd3: 0009d000 00001000 "ROMfs"


So from uClinux, i try to prepare the jffs2 fs:

# eraseall /dev/mtd2
erased 1024 Kibyte @ 0 -- 100% complete.

cat /dev/mtd2 i see the flash has been cleared

then i create a folder "backup" in /var with some files and try to crete the jffs2 fs:

mkfs.jffs2 -d backup -o jffs2.img

cp /dev/mtd2 jffs2.img

Then i just mount/umount the device, but i get often the issue described, remounting, no files.

Writing files is also notice some MTD debug trace, maybe an error:
Node totlen on flash (0xffffffff) != totlen from node ref (0x00000074)

Any help is really appreciated.

many thanks
angelo

Last edited by _spectrum_; 05-01-2011 at 04:36 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
help on JFFS2 support _spectrum_ Linux - Embedded & Single-board computer 1 04-25-2011 02:10 PM
jffs2 and suggestions _spectrum_ Linux - Embedded & Single-board computer 3 02-23-2011 02:24 PM
how to mount jffs2 nesta Linux - Kernel 1 08-24-2008 08:39 AM
Problems with CF and jffs2....... webquinty Linux - Embedded & Single-board computer 1 06-13-2008 02:22 AM
writing into JFFS2 filesystem Deepak Inbasekaran Programming 0 06-26-2006 03:23 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer

All times are GMT -5. The time now is 09:21 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration