public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
From: "James Ewing" <james.ewing@sveasoft.com>
To: <linux-mtd@lists.infradead.org>
Subject: Booting directly to JFFS2 question
Date: Thu, 15 Jan 2004 11:45:45 -0800	[thread overview]
Message-ID: <00df01c3dba0$2b481360$0901a8c0@test> (raw)

Can anyone describe how to boot from flash directly to jffs2?

 I am working with a Broadcom MIPS based wireless router that originally
booted to cramfs. I added the ability to boot to Phillip Lougher's squashfs
and now use this filesystem.

With the squashfs addition, I modeled the code changes after cramfs and the
modifications were trivial. I would like to add boot ability directly to
jffs2, but am stumped as to how to do this.

When the system boots it creates four MTD partitions from flash. The second
contains a compressed root image and a cramfs (now squashfs) file system
image.
After creating the partitions the system looks for the file system image by
checking 64K boundaries of the 2nd flash partition looking for cramfs or
squashfs magic numbers. The routine then returns a pointer to the fs system
start byte and the init/do_mount.c code takes over.

This pointer was to the super_block for the filesystem. Apparently jffs2
doesn't have a super_block in the traditional sense so I am a bit stumped.


James Ewing

             reply	other threads:[~2004-01-15 10:44 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-01-15 19:45 James Ewing [this message]
2004-01-15 10:51 ` Booting directly to JFFS2 question David Woodhouse
2004-01-15 20:01   ` James Ewing
2004-01-15 11:20     ` David Woodhouse

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='00df01c3dba0$2b481360$0901a8c0@test' \
    --to=james.ewing@sveasoft.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