public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
From: Dan Cardamore <dan.cardamore@officeserver.ca>
To: linux-mtd@lists.infradead.org
Subject: Problem mounting JFFS2 as root, works for ext2
Date: Sat, 9 Aug 2003 01:33:45 -0400	[thread overview]
Message-ID: <20030809053345.GA27061@officeserver.ca> (raw)

Hi,

I'm trying to use a JFFS2 partition as my root file system.

Setup I have:
   - Compact flash connected to an IDE adapter:
      - /dev/hda1 = ext2 with kernel and initrd
      - /dev/hda2 aka /dev/mtdblock/1 is the JFFS2 image
      - /dev/hda3 = ext2, same contents as the JFFS2 image, just a
        differnet fstab
   - GRUB installed on /dev/hda boots using /dev/hda1's kernel and
     initrd.
   - kernel then mounts the real root device

The boot parameters I use for a JFFS2 root are:
blkmtd_device=/dev/hda2 blkmtd_erase=64 devfs=mount root=/dev/mtdblock/1 rw

The boot parameters I use for a JFFS2 root are:
blkmtd_device=/dev/hda2 blkmtd_erase=64 devfs=mount root=/dev/hda3 rw

If I boot using JFFS2 as my root, I get:
<snip>
VFS: Mounted root (jffs2 filesystem)
mount_devfs_fs(): unable to mount devfs, err: -2
Freeing unused kerneel memory: 132k freed
Warning: unable to open an initial console.
Kernel panic: No init found.  Try passing init= option to the kernel

If I boot from /dev/hda3 as my root (ext2), I get everything working
perfect.  Once I have my system up and running, I can then type:
mount -t jffs2 -o rw /dev/mtdblock/1  /mnt
And it works just fine with no warnings.  I can see that the filesystem
has all the contents that the ext2 filesystem has including /dev.  When
I mount it at this point, I can run lsmod and see that zero kernel
modules are loaded since I compiled everything built-in.

So I'm using the same kernel and the same filesystem, just different
root filesystem type.  Does anyone have an idea what could be going on
here?  Any help much appreciated.

Thanks,

Dan

--
Dan Cardamore                              dan.cardamore@officeserver.ca
Cell: (613)355-8048                        http://www.officeserver.ca

             reply	other threads:[~2003-08-09  5:33 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-08-09  5:33 Dan Cardamore [this message]
2003-08-10  8:27 ` Problem mounting JFFS2 as root, works for ext2 David Woodhouse
2003-08-10  8:27 ` David Woodhouse
2003-08-10 15:50   ` Dan Cardamore

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=20030809053345.GA27061@officeserver.ca \
    --to=dan.cardamore@officeserver.ca \
    --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