LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices

Reply
 
Search this Thread
Old 12-05-2006, 10:34 PM   #1
hall919
LQ Newbie
 
Registered: Feb 2006
Posts: 3

Rep: Reputation: 0
Lightbulb ARM9 linux2.6.15 MTD jffs2 for help


I have Single Board Computer with ARM9 processor,The OS is linux2.6.15.4. Now I amend the /fs/Kconfig to provide devfs .
I using MTD drivers in my flash ROM .
0x00000000-0x00020000 : "bootloader"
0x00020000-0x00200000 : "kernel"
0x00200000-0x00600000 : "ramdisk"
0x00600000-0x01000000 : "jfss2"

The MTD partition table has been found successful.
But under the dir /dev,there have not the mtd device files.
So I add the node:
mknod /dev/mtdblock3 b 31 3
#dd if=/dev/zero of=/dev/mtdblock3 bs=1024 count=5000

#dd if=jffs2for2-6.image of=/dev/mtdblock3 bs=1024 count=5000
503+1 records in
503+1 records out
mount the jffs2:
# mount -t jffs2 /dev/mtdblock3 /jffs2/
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000000: 0x0090 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000004: 0x0090 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000008: 0x0090 instead
...................................
jffs2_scan_inode_node(): CRC failed on node at 0x00021f64: Read 0x59827962, calculated 0x188f5e3d
jffs2_scan_inode_node(): CRC failed on node at 0x00022284: Read 0xaf391f4d, calculated 0x431d6f71
jffs2_scan_inode_node(): CRC failed on node at 0x00022b38: Read 0xdf8769a0, calculated 0x33a3199c
................................................
Further such events for this erase block will not be printed
Empty flash at 0x0004fffc ends at 0x00050000
CLEANMARKER node found at 0x00050000, not first node in block (0x00040000)
Empty flash at 0x0006fffc ends at 0x00070000
CLEANMARKER node found at 0x00070000, not first node in block (0x00060000)
Empty flash at 0x0096000c ends at 0x00962000

What'wrong ?Help me
Why not there have the mtd nodes in devfs ? With linux2.4.20 there arm mtdblock in /dev.
Why I can't mount the jffs2 partition?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Arm9 phunglan Linux - Laptop and Netbook 1 12-05-2006 10:43 PM
MTD - Accessing Video Memory. qwijibow Linux - Hardware 0 09-06-2006 08:45 AM
What is MTD devices? HmmLinux Linux - Newbie 3 04-11-2006 01:39 AM
do i need mtd for my jumpdrive? slinky2004 Linux - Hardware 3 09-14-2005 10:49 PM
What are MTD Devices aditya Linux - Newbie 2 11-14-2002 06:40 AM


All times are GMT -5. The time now is 06:49 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration