Re: [U-Boot-Users] booting kernel image from jffs2 partition

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

Marco Stornelli wrote:
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.
I imagined this scenario, it is a very common user case. However, it seems you add an additional layer you probably do not need. The remote system sends the image and the target can store directly (yes, you can do it !) into /dev/mtd0 or whatever is your mtd device for the kernel, without caching it into a jffs2 partition. You really do not need to save it into the filesystem.
Regards, stefano babic
participants (2)
-
Marco Stornelli
-
stefano babic