All of lore.kernel.org
 help / color / mirror / Atom feed
From: "???" <Mickey@turtle.ee.ncku.edu.tw>
To: "Pete Popov" <ppopov@embeddedalley.com>
Cc: <linux-mips@linux-mips.org>
Subject: Re: Is there any means to use Cramfs and JFFS2 images as root disks?
Date: Sun, 17 Oct 2004 01:41:33 +0800	[thread overview]
Message-ID: <004b01c4b3a7$6193e810$7101a8c0@dinosaur> (raw)
In-Reply-To: 4171501D.5040506@embeddedalley.com


----- Original Message ----- 
From: "Pete Popov" <ppopov@embeddedalley.com>
To: "???" <Mickey@turtle.ee.ncku.edu.tw>
Cc: <linux-mips@linux-mips.org>
Sent: Sunday, October 17, 2004 12:45 AM
Subject: Re: Is there any means to use Cramfs and JFFS2 images as root
disks?


> ??? wrote:
> > Hi Pete,
> > How do I compile JFFS2 image and Kernel image together and by that way
> > Kernel can know where /dev/mtdblock3 is?
>
> I'm not sure a brief answer will help you, but here it is.
>
> You don't compile "jffs2 image and kernel image" together. You select
> jffs2 support in the kernel when you run something like "make
> menuconfig". You rebuild the kernel and now your kernel will have jffs2
> support. You also need your kernel to have mtd support, since that's how
> you'll access /dev/mtdblockxxxx. You then build a jffs2 image, put it in
> flash in whatever partition you want or have space for, and then boot
> the kernel with "root=/dev/mtdblockxxx".

My question still exists: YAMON doesn't know where /dev/mtdblock3 is...
How do I put JFFS2 image by YAMON onto the right location in Flash... :-)

>
> > And if I want to just write JFFS2 image to Flash, how do I do on YAMON?
>
> Yes, you can, but I don't remember the commands off the top of my head.
> On the Au1x boards, you can use yamon to erase the flash and load srec
> files directly to flash. You may also be able to load a binary file and
> store it in flash which would make it easier. Finally, you can build a
> kernel with NFS root file system, or a ramdisk, etc, -- something other
> than jffs2. Then, you can use the linux kernel to erase the mtd
> partition where you want a jffs2 image, and then copy the image to that
> partition.
>

Great! This is a good idea.
I can already boot up Linux with NFS root.
I'll give it a try to write JFFS2 root image to /dev/mtdblock on Linux
system, not on YAMON.

> > Can also I use Cramfs as root when boot up, like JFFS2?
>
> Yes, you can. The same steps above apply.
>
> Pete

Thanks and regards,
Colin

WARNING: multiple messages have this Message-ID (diff)
From: "???" <Mickey@turtle.ee.ncku.edu.tw>
To: Pete Popov <ppopov@embeddedalley.com>
Cc: linux-mips@linux-mips.org
Subject: Re: Is there any means to use Cramfs and JFFS2 images as root disks?
Date: Sun, 17 Oct 2004 01:41:33 +0800	[thread overview]
Message-ID: <004b01c4b3a7$6193e810$7101a8c0@dinosaur> (raw)
Message-ID: <20041016174133.Bsv6INyzkWGOglQ9v76MMQNbqWhVpTbUO6p0jbSrwzA@z> (raw)
In-Reply-To: 4171501D.5040506@embeddedalley.com


----- Original Message ----- 
From: "Pete Popov" <ppopov@embeddedalley.com>
To: "???" <Mickey@turtle.ee.ncku.edu.tw>
Cc: <linux-mips@linux-mips.org>
Sent: Sunday, October 17, 2004 12:45 AM
Subject: Re: Is there any means to use Cramfs and JFFS2 images as root
disks?


> ??? wrote:
> > Hi Pete,
> > How do I compile JFFS2 image and Kernel image together and by that way
> > Kernel can know where /dev/mtdblock3 is?
>
> I'm not sure a brief answer will help you, but here it is.
>
> You don't compile "jffs2 image and kernel image" together. You select
> jffs2 support in the kernel when you run something like "make
> menuconfig". You rebuild the kernel and now your kernel will have jffs2
> support. You also need your kernel to have mtd support, since that's how
> you'll access /dev/mtdblockxxxx. You then build a jffs2 image, put it in
> flash in whatever partition you want or have space for, and then boot
> the kernel with "root=/dev/mtdblockxxx".

My question still exists: YAMON doesn't know where /dev/mtdblock3 is...
How do I put JFFS2 image by YAMON onto the right location in Flash... :-)

>
> > And if I want to just write JFFS2 image to Flash, how do I do on YAMON?
>
> Yes, you can, but I don't remember the commands off the top of my head.
> On the Au1x boards, you can use yamon to erase the flash and load srec
> files directly to flash. You may also be able to load a binary file and
> store it in flash which would make it easier. Finally, you can build a
> kernel with NFS root file system, or a ramdisk, etc, -- something other
> than jffs2. Then, you can use the linux kernel to erase the mtd
> partition where you want a jffs2 image, and then copy the image to that
> partition.
>

Great! This is a good idea.
I can already boot up Linux with NFS root.
I'll give it a try to write JFFS2 root image to /dev/mtdblock on Linux
system, not on YAMON.

> > Can also I use Cramfs as root when boot up, like JFFS2?
>
> Yes, you can. The same steps above apply.
>
> Pete

Thanks and regards,
Colin

  reply	other threads:[~2004-10-16 17:42 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-10-15 17:31 Is there any means to use Cramfs and JFFS2 images as root disks? 林建安
2004-10-15 17:31 ` 林建安
2004-10-15 17:45 ` Pete Popov
2004-10-16  3:04   ` Eugene Surovegin
     [not found]   ` <004201c4b331$f9f6b180$7101a8c0@dinosaur>
2004-10-16 16:45     ` Pete Popov
2004-10-16 17:41       ` ??? [this message]
2004-10-16 17:41         ` ???
2004-10-16 22:04         ` Wolfgang Denk

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='004b01c4b3a7$6193e810$7101a8c0@dinosaur' \
    --to=mickey@turtle.ee.ncku.edu.tw \
    --cc=linux-mips@linux-mips.org \
    --cc=ppopov@embeddedalley.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.