[U-Boot-Users] how to boot a root.cramfs in ram

i use uboot loadb command to place kenerl on 0x32000000, root.cramfs on 0x30800000,and when i type bootm 32000000 30800000, it just boot as there is a ramdisk image.Does uboot support boot cramfs rootfs in ram? what's the command?
thanks all
zzh

Hallo
u-boot can only load root filesystem in ram as ramdisk, i'm not sure but I think is korekt. u-boot have nothing to do with cramfs, it is linux which boot the root filesystem. You must store the cramfs in flash, give the root path parameter in u-boot and go. There is a new nice description in DULG 9.6. Root File System: Design and Building which describes how you make your root file systems.
I hope I could help you
zhuzhenhua zzh.hust@gmail.com Gesendet von: An u-boot-users-admin@list u-boot-users@lists.sourceforge.net s.sourceforge.net Kopie
Thema 17.06.2005 03:24 [U-Boot-Users] how to boot a root.cramfs in ram
Bitte antworten an zhuzhenhua zzh.hust@gmail.com
i use uboot loadb command to place kenerl on 0x32000000, root.cramfs on 0x30800000,and when i type bootm 32000000 30800000, it just boot as there is a ramdisk image.Does uboot support boot cramfs rootfs in ram? what's the command?
thanks all
zzh
------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id%16492&op=click _______________________________________________ U-Boot-Users mailing list U-Boot-Users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/u-boot-users

In message 50c9a22505061618244cefe187@mail.gmail.com you wrote:
i use uboot loadb command to place kenerl on 0x32000000, root.cramfs on 0x30800000,and when i type bootm 32000000 30800000, it just boot as there is a ramdisk image.Does uboot support boot cramfs rootfs in ram? what's the command?
U-Boot can be used to load a cramfs image (or any other file) into RAM. All the rest is not an U-Boot issue, but a question if your Linux kernel knows how to deal with such a setup.
Best regards,
Wolfgang Denk

in vivi if can use bon to set partitionsand in DULG Manual i see something like "root=/dev/mtdblock2" in BOOTARGS.but i can't find the defination of mtd partition in /board/smdk2410/smdk2410.c or smdk2410.h.and i wonder whether i must set "root=/dev/mtdblockX" in my BOOTARGS or i can just set the physical address of root-cramfs in NAND flash?
On 6/17/05, Wolfgang Denk wd@denx.de wrote:
In message 50c9a22505061618244cefe187@mail.gmail.com you wrote:
i use uboot loadb command to place kenerl on 0x32000000, root.cramfs on 0x30800000,and when i type bootm 32000000 30800000, it just boot as there is a ramdisk image.Does uboot support boot cramfs rootfs in ram? what's the command?
U-Boot can be used to load a cramfs image (or any other file) into RAM. All the rest is not an U-Boot issue, but a question if your Linux kernel knows how to deal with such a setup.
Best regards,
Wolfgang Denk
-- Software Engineering: Embedded and Realtime Systems, Embedded Linux Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd@denx.de "How is this place run - is it an anarchy?" "No, I wouldn't say so; it is not that well organised..."

In message 50c9a225050619183868b48c13@mail.gmail.com you wrote:
in vivi if can use bon to set partitionsand in DULG Manual i see something like "root=/dev/mtdblock2" in BOOTARGS.but i can't find the defination of mtd partition in /board/smdk2410/smdk2410.c or smdk2410.h.and i wonder whether i must set "root=/dev/mtdblockX" in my BOOTARGS or i can just set the physical address of root-cramfs in NAND flash?
What exactly is your question? The subjet says that your ramfs image is in RAM, but now you say it's in NAND flash?
To access NAND flash you must always provide a /dev/mtdblock? device, which means you must define a partition map. How you do this - i. e. by using a static map or a command line option - is up to you. How to make Linux find your NAND flash is a question which is off topic here.
Best regards,
Wolfgang Denk
participants (3)
-
andreas_schmidt@ifm-electronic.com
-
Wolfgang Denk
-
zhuzhenhua