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

Rep: Reputation: 1
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, 11:32 AM   #2
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,399
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
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 11:34 AM.
 
1 members found this post helpful.
Old 08-28-2012, 09:50 PM   #3
cruiser
LQ Newbie
 
Registered: Apr 2011
Distribution: Ubuntu, RedHat, Fedora, Customised Linux Kernels
Posts: 23

Original Poster
Rep: Reputation: 1
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



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 10: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 07: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 04: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 02:15 AM

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

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