/proc/mtd file does not show partitions

Midhun Agnihotram agnimidhun at gmail.com
Thu Jun 21 01:01:00 EDT 2007


Hi,

Update: We have now moved from Ramfs to JFFS2.

> > cat /proc/mtd, it says that the file does not exist. Who is supposed
> > to create this file?
>
> /usr/src/linux/drivers/mtd/mtdcore.c iff CONFIG_PROC_FS is enabled.
> Silly question - do you have any files in /proc? Is procfs mounted?
>

    CONFIG_PROC_FS is enabled in the kernel configuration. I do have
/proc/mounts file.
# cat /proc/mounts
rootfs / rootfs rw 0 0

   I am sorry - I exactly do not know what you mean by whether procfs
is mounted. I have /proc folder in the file system that I use. I do
not exclusively mount it anywhere. So when the filesystem is mounted
and the linux prompt comes up, the proc directory exists. Do I need to
do  anything more?

  Also when I mount the JFFS2 file system (which is in my flash), I
get the following errors.

Empty flash at 0x0000fffc ends at 0x00010000
Empty flash at 0x0002fffc ends at 0x00030000
Empty flash at 0x0004fffc ends at 0x00050000
Empty flash at 0x0006fffc ends at 0x00070000
Empty flash at 0x0008fffc ends at 0x00090000
Empty flash at 0x000afffc ends at 0x000b0000
Empty flash at 0x000cfffc ends at 0x000d0000
Empty flash at 0x000efffc ends at 0x000f0000
Empty flash at 0x0010fffc ends at 0x00110000
Empty flash at 0x0012fffc ends at 0x00130000
Empty flash at 0x0014fffc ends at 0x00150000
Empty flash at 0x0016ffe8 ends at 0x00170000
Empty flash at 0x0018fffc ends at 0x00190000
Empty flash at 0x001afffc ends at 0x001b0000
Empty flash at 0x001cfffc ends at 0x001d0000
Empty flash at 0x001efffc ends at 0x001f0000
VFS: Mounted root (jffs2 filesystem).
Freeing init memory: 84K
init: can't log to /dev/tty5
starting pid 670, tty '/dev/ttyS0': '/bin/ash'


BusyBox v1.6.0 (2007-06-15 12:34:28 IST) Built-in shell (ash)
Enter 'help' for a list of built-in commands.

# Erase at 0x003e0000 failed immediately: -EROFS. Is the sector locked?
Erase at 0x003c0000 failed immediately: -EROFS. Is the sector locked?
Erase at 0x003a0000 failed immediately: -EROFS. Is the sector locked?
Erase at 0x00380000 failed immediately: -EROFS. Is the sector locked?
Erase at 0x00360000 failed immediately: -EROFS. Is the sector locked?
Erase at 0x00340000 failed immediately: -EROFS. Is the sector locked?
Erase at 0x00320000 failed immediately: -EROFS. Is the sector locked?
Erase at 0x00300000 failed immediately: -EROFS. Is the sector locked?
Erase at 0x002e0000 failed immediately: -EROFS. Is the sector locked?
Erase at 0x002c0000 failed immediately: -EROFS. Is the sector locked?

  The JFFS2 file system is not writable (although we have mounted it
in read write mode). It does not allow us to write or delete. The boot
args are as follows:

mem=48M console=ttyS0,115200 console=tty0 root=/dev/mtdblock4 rw
rootfstype=jffs2 init=/sbin/init ip=on

   What could be the problem??

Thanks a lot for your help,
Midhun.



More information about the linux-mtd mailing list