[U-Boot] Booting with kernel and root fs in JFFS2 flash?

Right now I have my board (a custom PPC-based system) booting from a kernel and a root filesystem, both in raw flash partitions, both created with mkimage; The root is loaded as a ramdisk (kinda like an initrd); we don't actually run with the root in flash.
To make better use of the 32MB of flash on the board, we're considering putting the kernel, the root filesystem, and some state data in a JFFS2 partition on the flash. I thought sure I read somewhere in the docs that it's possible to boot from files in a JFFS2 (again, loading into a ramdisk), but now I can't find where it talks about that or even if it's possible.
Can someome please tell me if this is indeed possible and, if so, where in the docs it shows how to do this?
Thanks, Adam

Hello Adam,
Am Donnerstag, 1. Juli 2010, 04:37:31 schrieb Adam Moskowitz:
To make better use of the 32MB of flash on the board, we're considering putting the kernel, the root filesystem, and some state data in a JFFS2 partition on the flash. I thought sure I read somewhere in the docs that it's possible to boot from files in a JFFS2 (again, loading into a ramdisk), but now I can't find where it talks about that or even if it's possible.
Can someome please tell me if this is indeed possible and, if so, where in the docs it shows how to do this?
It is possible. Just include your uImage into your JFFS2 image and load it from u-boot using fsload. Make sure you include the proper commands into u- boot. But beforehand you have to setup mtdparts so u-boot knows where to search for JFFS2 filesystem. The current partition is changed using 'chpart'.
Best regards Alexander

On Thu, Jul 01, 2010 at 08:25:58AM +0200, Alexander Stein wrote:
It is possible. . . . load it from u-boot using fsload. . . . The current partition is changed using 'chpart'.
I can't either of these commands anywhere in the documentation, here:
http://www.denx.de/wiki/DULG/Manual
Am I looking in the wrong place? If so, where should I be looking instead?
Thanks, Adam
participants (2)
-
Adam Moskowitz
-
Alexander Stein