public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* Booting from JFFS2
@ 2001-05-15  2:54 Bao C. Ha
  2001-05-15  7:10 ` David Woodhouse
  0 siblings, 1 reply; 10+ messages in thread
From: Bao C. Ha @ 2001-05-15  2:54 UTC (permalink / raw)
  To: linux-mtd

I would like to partition the Flash into two: (1) boot loader and 
(2) JFFS2.  Can I put the kernel, zImage, and fs.gz on JFFS2, 
and boot the kernel from there?  I would like to boot the kernel,
mount the fs.gz as cramfs, and mount the JFFS2 under /flash
as a writable storage.  Linux will be running exclusively in 
RAM.

Thanks.
Bao

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Booting from JFFS2
  2001-05-15  2:54 Booting from JFFS2 Bao C. Ha
@ 2001-05-15  7:10 ` David Woodhouse
  2001-05-15 14:00   ` Karl Pitrich
                     ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: David Woodhouse @ 2001-05-15  7:10 UTC (permalink / raw)
  To: Bao C. Ha; +Cc: linux-mtd

baoha@sensoria.com said:
> I would like to partition the Flash into two: (1) boot loader and  (2)
> JFFS2.  Can I put the kernel, zImage, and fs.gz on JFFS2,  and boot
> the kernel from there? 

The answer to that question is entirely dependent on the bootloader you 
use. But at the moment, I think there are no bootloaders which support this.

There are patches available for Compaq bootldr used on the iPAQ, which make
it capable of loading a kernel from a JFFSv1 filesystem. But nobody's yet 
done JFFS2, AFAIK. 

We're intending to add this support to RedBoot some time in the near 
future, hopefully.

--
dwmw2

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Booting from JFFS2
  2001-05-15  7:10 ` David Woodhouse
@ 2001-05-15 14:00   ` Karl Pitrich
  2001-05-15 16:08   ` Nicolas Pitre
  2001-05-15 16:15   ` Bao C. Ha
  2 siblings, 0 replies; 10+ messages in thread
From: Karl Pitrich @ 2001-05-15 14:00 UTC (permalink / raw)
  To: David Woodhouse; +Cc: Bao C. Ha, linux-mtd

On Tue, 15 May 2001, David Woodhouse wrote:

> baoha@sensoria.com said:
> > I would like to partition the Flash into two: (1) boot loader and  (2)
> > JFFS2.  Can I put the kernel, zImage, and fs.gz on JFFS2,  and boot
> > the kernel from there? 
> 
> The answer to that question is entirely dependent on the bootloader you 
> use. But at the moment, I think there are no bootloaders which support this.
> 

you could check zboot which is used in the yopy pda.
zboot resides on a separate part in the flash.
it is available at yopydeveloper.org under gpl.
i think the gmate guys are currently mangling their system to
jffs so this could work.

karl.

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Booting from JFFS2
  2001-05-15  7:10 ` David Woodhouse
  2001-05-15 14:00   ` Karl Pitrich
@ 2001-05-15 16:08   ` Nicolas Pitre
  2001-05-15 16:15   ` Bao C. Ha
  2 siblings, 0 replies; 10+ messages in thread
From: Nicolas Pitre @ 2001-05-15 16:08 UTC (permalink / raw)
  To: David Woodhouse; +Cc: Bao C. Ha, linux-mtd


On Tue, 15 May 2001, David Woodhouse wrote:

> The answer to that question is entirely dependent on the bootloader you
> use. But at the moment, I think there are no bootloaders which support this.
>
> There are patches available for Compaq bootldr used on the iPAQ, which make
> it capable of loading a kernel from a JFFSv1 filesystem. But nobody's yet
> done JFFS2, AFAIK.

Yes, JFFS2 is apparently done as well.


Nicolas

^ permalink raw reply	[flat|nested] 10+ messages in thread

* RE: Booting from JFFS2
  2001-05-15  7:10 ` David Woodhouse
  2001-05-15 14:00   ` Karl Pitrich
  2001-05-15 16:08   ` Nicolas Pitre
@ 2001-05-15 16:15   ` Bao C. Ha
  2001-05-15 16:16     ` David Woodhouse
  2 siblings, 1 reply; 10+ messages in thread
From: Bao C. Ha @ 2001-05-15 16:15 UTC (permalink / raw)
  To: 'David Woodhouse'; +Cc: linux-mtd


This is for a sh4-based board.  There are two boot loaders
available: lilo and ipl+sh.  From your answer, I assume
that none of the boot loader out there understands JFFS2
yet.

My next option is to partition the flash into three: (1)
bootloader, (2) ext2 for kernel/initrd, (3) JFFS2 for the
rest of the filesystem's mount points.

Thanks.
Bao

-----Original Message-----
From: David Woodhouse [mailto:dwmw2@redhat.com]On Behalf Of David
Woodhouse
Sent: Tuesday, May 15, 2001 12:11 AM
To: Bao C. Ha
Cc: linux-mtd@lists.infradead.org
Subject: Re: Booting from JFFS2



baoha@sensoria.com said:
> I would like to partition the Flash into two: (1) boot loader and  (2)
> JFFS2.  Can I put the kernel, zImage, and fs.gz on JFFS2,  and boot
> the kernel from there?

The answer to that question is entirely dependent on the bootloader you
use. But at the moment, I think there are no bootloaders which support this.

There are patches available for Compaq bootldr used on the iPAQ, which make
it capable of loading a kernel from a JFFSv1 filesystem. But nobody's yet
done JFFS2, AFAIK.

We're intending to add this support to RedBoot some time in the near
future, hopefully.

--
dwmw2

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Booting from JFFS2
  2001-05-15 16:15   ` Bao C. Ha
@ 2001-05-15 16:16     ` David Woodhouse
  2001-05-15 16:28       ` Bao C. Ha
  0 siblings, 1 reply; 10+ messages in thread
From: David Woodhouse @ 2001-05-15 16:16 UTC (permalink / raw)
  To: Bao C. Ha; +Cc: linux-mtd


baoha@sensoria.com said:
>  (1) bootloader, (2) ext2 for kernel/initrd, (3) JFFS2 for the rest of
> the filesystem's mount points.

Why ext2 for the second partition? Why not just 
 1. Bootloader
 2. Kernel
 3. JFFS2

--
dwmw2

^ permalink raw reply	[flat|nested] 10+ messages in thread

* RE: Booting from JFFS2
  2001-05-15 16:16     ` David Woodhouse
@ 2001-05-15 16:28       ` Bao C. Ha
  2001-05-15 16:31         ` David Woodhouse
  0 siblings, 1 reply; 10+ messages in thread
From: Bao C. Ha @ 2001-05-15 16:28 UTC (permalink / raw)
  To: 'David Woodhouse'; +Cc: linux-mtd

I am looking for an easy way to update the kernel and
the fs image.  Ext2 will allow me to mount it, cp/rm
the compressed files: linux.gz and initrd.gz, umount
it and reboot.

It is probably not much different from flashing the
files on the JFFS2 partition then.  And initrd.gz
can be stored on the JFFS2 since the kernel knows
how to access it during bootup.

Thanks.
Bao

-----Original Message-----
From: David Woodhouse [mailto:dwmw2@redhat.com]On Behalf Of David
Woodhouse
Sent: Tuesday, May 15, 2001 9:16 AM
To: Bao C. Ha
Cc: linux-mtd@lists.infradead.org
Subject: Re: Booting from JFFS2 




baoha@sensoria.com said:
>  (1) bootloader, (2) ext2 for kernel/initrd, (3) JFFS2 for the rest of
> the filesystem's mount points.

Why ext2 for the second partition? Why not just 
 1. Bootloader
 2. Kernel
 3. JFFS2

--
dwmw2

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Booting from JFFS2
  2001-05-15 16:28       ` Bao C. Ha
@ 2001-05-15 16:31         ` David Woodhouse
  2001-05-15 16:49           ` Bao C. Ha
  0 siblings, 1 reply; 10+ messages in thread
From: David Woodhouse @ 2001-05-15 16:31 UTC (permalink / raw)
  To: Bao C. Ha; +Cc: linux-mtd

baoha@sensoria.com said:
>  I am looking for an easy way to update the kernel and the fs image.
> Ext2 will allow me to mount it, cp/rm the compressed files: linux.gz
> and initrd.gz, umount it and reboot. 

You shouldn't need an initrd - why can't the kernel use the JFFS2 as root 
filesystem? And you can put a kernel onto the flash partition directly, 
without having to use a filesystem.

--
dwmw2

^ permalink raw reply	[flat|nested] 10+ messages in thread

* RE: Booting from JFFS2
  2001-05-15 16:31         ` David Woodhouse
@ 2001-05-15 16:49           ` Bao C. Ha
  2001-05-15 17:43             ` Russ Dill
  0 siblings, 1 reply; 10+ messages in thread
From: Bao C. Ha @ 2001-05-15 16:49 UTC (permalink / raw)
  To: 'David Woodhouse'; +Cc: linux-mtd

Actually, using the JFFS2 as root will make our life simpler.
We will save on the Ram.

This is great suggestion!

Thanks.
Bao

-----Original Message-----
From: David Woodhouse [mailto:dwmw2@redhat.com]On Behalf Of David
Woodhouse
Sent: Tuesday, May 15, 2001 9:31 AM
To: Bao C. Ha
Cc: linux-mtd@lists.infradead.org
Subject: Re: Booting from JFFS2 



baoha@sensoria.com said:
>  I am looking for an easy way to update the kernel and the fs image.
> Ext2 will allow me to mount it, cp/rm the compressed files: linux.gz
> and initrd.gz, umount it and reboot. 

You shouldn't need an initrd - why can't the kernel use the JFFS2 as root 
filesystem? And you can put a kernel onto the flash partition directly, 
without having to use a filesystem.

--
dwmw2

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Booting from JFFS2
  2001-05-15 16:49           ` Bao C. Ha
@ 2001-05-15 17:43             ` Russ Dill
  0 siblings, 0 replies; 10+ messages in thread
From: Russ Dill @ 2001-05-15 17:43 UTC (permalink / raw)
  To: Bao C. Ha; +Cc: 'David Woodhouse', linux-mtd

>> makes in more interesting to flash it though

The Flashing takes place only once for JFFS2.
Then it will be just like a normal mounted
filesystem.

Right?

Bao

right, as long as you don't need to flash it all at once while booted

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2001-05-15 17:38 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-05-15  2:54 Booting from JFFS2 Bao C. Ha
2001-05-15  7:10 ` David Woodhouse
2001-05-15 14:00   ` Karl Pitrich
2001-05-15 16:08   ` Nicolas Pitre
2001-05-15 16:15   ` Bao C. Ha
2001-05-15 16:16     ` David Woodhouse
2001-05-15 16:28       ` Bao C. Ha
2001-05-15 16:31         ` David Woodhouse
2001-05-15 16:49           ` Bao C. Ha
2001-05-15 17:43             ` Russ Dill

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox