public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot-Users] booting kernel image from jffs2 partition
@ 2007-09-06  9:43 Marco Stornelli
  2007-09-06  8:12 ` stefano babic
  0 siblings, 1 reply; 5+ messages in thread
From: Marco Stornelli @ 2007-09-06  9:43 UTC (permalink / raw)
  To: u-boot

Stefano babic wrote:
 >Fabio Ubaldi wrote:
 >> We'd like to format linux kernel and rootfs image partitions (and the
 >> others) with jffs2, because the two images may be replaced with newer
 >> ones while Linux is running.

 >It is not a problem to replace the linux image while it is running,
 >because Linux runs from RAM. You can always replace the Linux image.

 >> A first question is:
 >> Is it possible to boot (bootm command) the images stored in partitions
 >> formatted using jffs2?

 >U-boot can read JFFS2 partitions, but as I said, this should not be
 >necessary if your goal is only to replace the kernel images. And u-boot
 >does not need to understand the rootfs, too.

 >Regards,
 >stefano babic

Hi all,

I work with Fabio Ubaldi. The problem is this: the new linux kernel 
image is send to system from a remote site and the system has to update 
the image automatically. Our ideas was this: after the system had 
mounted the jffs2 linux kernel partition, it copy the new image in 
/mnt/kernel (jffs2 linux kernel partition) and after that the system is 
rebooted. To perform this U-Boot must be able to boot a linux kernel 
image from a jffs2 partition. I hope that the problem is now more clear.

Thanks.
Marco Stornelli

^ permalink raw reply	[flat|nested] 5+ messages in thread
* [U-Boot-Users] booting kernel image from jffs2 partition
@ 2007-09-05 14:04 Fabio Ubaldi
  2007-09-05 16:08 ` stefano babic
  0 siblings, 1 reply; 5+ messages in thread
From: Fabio Ubaldi @ 2007-09-05 14:04 UTC (permalink / raw)
  To: u-boot

Hi all,
I have a Spansion S29GL512N NOR flash. Specifically, I have two banks of 64 MB mapped in the following way: 

0xf4000000- 0xf7ffffff  First bank
0xfc000000-0xffffff     Second Bank (boot bank)

In the Linux kernel we have partitioned the flash in five parts:

0xf4000000 - 0xf43fffff Linux kernel image
0xf4400000 - 0xf4fffffff Rootfs Image
0xf5000000 - 0xf7ffffff Data1

0xfc000000 - 0xfff7ffff Data2
0xfff80000 - 0xffffffff U-boot image

We'd like to format linux kernel and rootfs image partitions (and the others) with jffs2, because the two images may be replaced with newer ones while Linux is running. 

A first question is: 
Is it possible to boot (bootm command) the images stored in partitions formatted using jffs2?
i.e. after the images are replaced and the machine is rebooted, can the u-boot be configured to read the new image from these jffs2 partitions?

If so, how is it possible to perform it?
Because from Internet and manual, I reckon out that u-boot works using binary or file-system images stored in raw way and I don't understand if the image can be read andloaded from a not-raw partitions.

Thanks in advance for the reply.
Fabio Ubaldi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.denx.de/pipermail/u-boot/attachments/20070905/d438799a/attachment.htm 

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

end of thread, other threads:[~2007-09-06  9:43 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-09-06  9:43 [U-Boot-Users] booting kernel image from jffs2 partition Marco Stornelli
2007-09-06  8:12 ` stefano babic
  -- strict thread matches above, loose matches on Subject: below --
2007-09-05 14:04 Fabio Ubaldi
2007-09-05 16:08 ` stefano babic
2007-09-05 23:10   ` Wolfgang Denk

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