[U-Boot-Users] How does u-boot inform the linux kernel of a JFFS2 root filesyst em?

Hello everybody,
I'm not sure whether I am asking this question to the right group, but I have found people to be very helpfull here.
I have had u-boot working well on our target for quite a while now, and I have turned my attention to providing a JFFS2 partition on our flash. I would like to know how I can boot from a single JFFS2 partition which contains both the kernel image and the filesystem.
I can use fsload to load the kernel image into ram, once in ram I can launch the kernel using bootm <address of kernel image>. Previously I had been using a ramdisk arrangement which I configured by launching the kernel with a bootm <address of kernel image> <address of ramdisk> and informing the kernel within the bootargs of root=/dev/ram, how should I pass the location of the root filesystem to the kernel?
Many thanks for your time.
Mark Doherty.

On Tue, Mar 30, 2004 at 11:59:07AM +0100, Mark Doherty wrote:
I can use fsload to load the kernel image into ram, once in ram I can launch the kernel using bootm <address of kernel image>. Previously I had been using a ramdisk arrangement which I configured by launching the kernel with a bootm <address of kernel image> <address of ramdisk> and informing the kernel within the bootargs of root=/dev/ram, how should I pass the location of the root filesystem to the kernel?
root=/dev/mtdblock0
Robert

In message 9901EE1E8F8BD3119109009027A1B5F596AF68@DIGINET2 you wrote:
I can use fsload to load the kernel image into ram, once in ram I can launch the kernel using bootm <address of kernel image>. Previously I had been
Correct.
using a ramdisk arrangement which I configured by launching the kernel with a bootm <address of kernel image> <address of ramdisk> and informing the kernel within the bootargs of root=/dev/ram, how should I pass the location of the root filesystem to the kernel?
You must pass a "root=/dev/mtdblockX rw" argument to Linux. Either your kernel then has built-in knowledge about the flash partitions (via a static mapping driver in drivers/mtd/maps/<board>.c), or you provide the partition information as part of the boot arguments, see http://www.denx.de/twiki/bin/view/DULG/BootTimeConfigurationOfMTDPartitions
In general, the DULG contains some hints :-)
Best regards,
Wolfgang Denk
participants (3)
-
Mark Doherty
-
Robert Schwebel
-
Wolfgang Denk