public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
From: "hinko.kocevar@cetrtapot.si" <hinko.kocevar@cetrtapot.si>
To: Midhun Agnihotram <agnimidhun@gmail.com>
Cc: linux-mtd@lists.infradead.org
Subject: Re: /proc/mtd file does not show partitions
Date: Thu, 21 Jun 2007 10:35:45 +0200	[thread overview]
Message-ID: <467A3861.2050801@cetrtapot.si> (raw)
In-Reply-To: <4dde4acb0706202201y7369cc33kc438f15f7091c18c@mail.gmail.com>

Midhun Agnihotram wrote:
> 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.

Is this the only 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?

Probably add something like this to the /etc/fstab:
proc /proc proc defaults 0 0

... or for testing on the booted system run:
mount -t proc proc /proc

> 
>   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??


Please search the archives of the list for similar reports. As it seems 
JFFS2 is not guilty of you not being able to write to flash - the 
problem lies at a lower level...
Maybe 
http://www.infradead.org/pipermail/linux-mtd/2003-October/008643.html 
will help.

Best regards,
hinko
-- 
ČETRTA POT, d.o.o., Kranj
Planina 3
4000 Kranj
Slovenia, Europe
Tel. +386 (0) 4 280 66 03
E-mail: hinko.kocevar@cetrtapot.si
Http: www.cetrtapot.si

  reply	other threads:[~2007-06-21  8:35 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-06-20  6:20 /proc/mtd file does not show partitions Midhun Agnihotram
2007-06-20 11:38 ` hinko.kocevar
2007-06-21  5:01   ` Midhun Agnihotram
2007-06-21  8:35     ` hinko.kocevar [this message]
2007-06-25  6:36       ` Midhun Agnihotram
2007-06-25  9:35         ` Midhun Agnihotram
2007-06-25 11:50           ` Midhun Agnihotram

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=467A3861.2050801@cetrtapot.si \
    --to=hinko.kocevar@cetrtapot.si \
    --cc=agnimidhun@gmail.com \
    --cc=linux-mtd@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox