* [U-Boot] Booting with kernel and root fs in JFFS2 flash?
@ 2010-07-01 2:37 Adam Moskowitz
2010-07-01 6:25 ` Alexander Stein
0 siblings, 1 reply; 3+ messages in thread
From: Adam Moskowitz @ 2010-07-01 2:37 UTC (permalink / raw)
To: u-boot
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* [U-Boot] Booting with kernel and root fs in JFFS2 flash?
2010-07-01 2:37 [U-Boot] Booting with kernel and root fs in JFFS2 flash? Adam Moskowitz
@ 2010-07-01 6:25 ` Alexander Stein
2010-07-01 16:23 ` Adam Moskowitz
0 siblings, 1 reply; 3+ messages in thread
From: Alexander Stein @ 2010-07-01 6:25 UTC (permalink / raw)
To: u-boot
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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-07-01 16:23 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-07-01 2:37 [U-Boot] Booting with kernel and root fs in JFFS2 flash? Adam Moskowitz
2010-07-01 6:25 ` Alexander Stein
2010-07-01 16:23 ` Adam Moskowitz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox