LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 08-16-2012, 09:41 AM   #1
cruiser
LQ Newbie
 
Registered: Apr 2011
Distribution: Ubuntu, RedHat, Fedora, Customised Linux Kernels
Posts: 23

Rep: Reputation: 0
Unable to mount NOR Flash (mount -t jffs2 /dev/mtdblock0 /mnt)


Hi,

Linux Kernel - 3.1.0
Montavista
Platform: An Embedded Development Kit

I am trying to mount the NOR flash using the command

Code:
mount -t jffs2 /dev/mtdblock0 /mnt
However it gives me the following errors

Code:
MTDSB: dev_name "/dev/mtdblock0"
MTDSB: lookup_bdev() returned 0
MTDSB: New superblock for device 0 ("physmap-flash.0")
jffs2: Too few erase blocks (1)
mount: wrong fs type, bad option,mtdblock_open
 bad superblock on /dev/mtdblock0ok
,
       missing codepage or hemtdblock_release
lper program, or other error
ok
       In some cases useful info is found in syslog - try
       dmesg | tail  or so

I have googled the above problem, but could not make headway. Hence I have come for help here. Please help me out if you know the solution.

Some further information
Code:
 cat /proc/mtd
dev:    size   erasesize  name
mtd0: 02000000 02000000 "physmap-flash.0"
mtd1: 00800000 00002000 "NAND simulator partition 0"
mtd2: 04000000 00004000 "mxc_nand"
If you need any further information from my side, I will provide that.

Regards
 
Old 08-18-2012, 12:32 PM   #2
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,395
Blog Entries: 2

Rep: Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903
Are you sure the device does have a filesystem loaded/installed on it, and that it actually is a jffs2 fileystem? If there is no data that you need to preserve on it, perhaps you can re-install the filesystem. I guess the flash memory is in an un-extractable media, like built into a processor? If not, can it be read/mounted from some other system? Maybe you can use dd to make a copy of the device, and see if that copy can be mounted on a loop device elsewhere.

--- rod.

Last edited by theNbomr; 08-18-2012 at 12:34 PM.
 
1 members found this post helpful.
Old 08-28-2012, 10:50 PM   #3
cruiser
LQ Newbie
 
Registered: Apr 2011
Distribution: Ubuntu, RedHat, Fedora, Customised Linux Kernels
Posts: 23

Original Poster
Rep: Reputation: 0
Thanks for replying.

Well first I'd like to mention that the problem I was facing with the NOR flash is solved. Apparently this had something to do with the configuration (.config/make menuconfig settings). I had actually carried out a lot of config changes and when things did not work, I just loaded the backup .config file. However I am still looking into what specific configuration caused the issue.

After loading the original configuration, I then used a GUI programming utility to flash the NOR with a jffs2 image. Now after booting I am able to mount the NOR and see its contents.

Thanks.
 
  


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
why only "mount /dev/sda /mnt/usb" works and not "mount /dev/sda1..." ? gromot Linux - General 7 05-19-2009 11:18 AM
when i mount my USB Flash Drive A Messenge has come that mount: can't find /dev/sda/h feda82 Red Hat 2 12-24-2005 08:16 AM
when i mount my USB Flash Drive A Messenge has come that mount: can't find /dev/sda/h feda82 Red Hat 1 12-24-2005 05:25 AM
when i mount my USB Flash Drive A Messenge has come that mount: can't find /dev/sda/h feda82 Red Hat 2 12-24-2005 03:15 AM


All times are GMT -5. The time now is 09:19 PM.

Main Menu
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