LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-17-2010, 07:37 AM   #1
hellohello008
LQ Newbie
 
Registered: Apr 2010
Posts: 4

Rep: Reputation: 0
Question JFFS2 question : Mounting /dev/mtdblock1 failed , NOR flash


I have one NOR flash, sector size is 128k.
I want to make jffs2 filesystem on it to store data.
I have used flash_eraseall -j to format it as jffs2.
But I meet the problem when mount the /dev/mtdblock1.
Thanks for any pointers or ideas.

-sh-2.05b# mount -t jffs2 /dev/mtdblock1 /mnt/jffs
Cowardly refusing to erase blocks on filesystem with no valid JFFS2 nodes
empty_blocks 0, bad_blocks 0, c->nr_blocks 42
mount: Mounting /dev/mtdblock1 on /mnt/jffs failed: Input/output error



I have used mtd_debug cmd to test, and result is right:

# cat /proc/mtd
dev: size erasesize name
mtd1: 00540000 00020000 "jffs"
mtd2: 00180000 00020000 "others"

# mtd_debug erase /dev/mtd1 0x0 0x20000
MTD_open
MTD_ioctl
Erased 131072 bytes from address 0x00000000 in flash
MTD_close
# dd if=/dev/zero of=file.img bs=1k count=128
128+0 records in
128+0 records out
# mtd_debug write /dev/mtdblock1 0x0 0x20000 file.img
Copied 131072 bytes from file.img to address 0x00000000 in flash
# mtd_debug read /dev/mtdblock1 0x0 0x20000 file_rd.img
Copied 131072 bytes from address 0x00000000 in flash to file_rd.img
# cmp -l file.img file_rd.img
#



Here is the detail error info:



-sh-2.05b# flash_eraseall -j /dev/mtd1
MTD_open
MTD_ioctl
MTD_ioctl
Erasing 128 Kibyte @ 0 -- 0 % MTD_ioctl
complete.MTD_write
ErasiMTD_ioctlen at 0.
ng 128 Kibyte @ 20000 -- 2 % complete.MTD_write
EMTD_ioctlritten at 20000.
rasing 128 Kibyte @ 40000 -- 4 % complete.MTD_write
EMTD_ioctlritten at 40000.
... ...
... ...
MTD_ioctlwritten at 500000.
Erasing 128 Kibyte @ 520000 -- 97 % complete.MTD_write
MTD_closewritten at 520000.
Erasing 128 Kibyte @ 540000 -- 100% complete.



-sh-2.05b# mount -t jffs2 /dev/mtdblock1 /mnt/jffs
Cowardly refusing to erase blocks on filesystem with no valid JFFS2 nodes
empty_blocks 0, bad_blocks 0, c->nr_blocks 42
mount: Mounting /dev/mtdblock1 on /mnt/jffs failed: Input/output error
 
  


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
[SOLVED] Can we have JFFS2 Filesystem on NOR Flash. Niraj Kulkarni Linux - Newbie 0 04-28-2010 07:28 AM
Trying generic kernel, mounting /dev/root on /mnt failed jamescow Slackware 6 04-16-2009 10:36 PM
Mounting /dev/hda1 on /root failed: no such device xucaen Debian 2 10-10-2006 10:14 AM
2.6.9 Compact Flash Mounting /dev/hda1 john8675309 Linux - Software 0 01-19-2005 10:16 PM
JFFS2 (Flash ROM) Eileen Programming 0 01-12-2005 02:51 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:54 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