2009-09-29 09:32:06     cramfs as rootfs

Document created by Aaronwu Employee on Aug 19, 2013
Version 1Show Document
  • View in full screen mode

2009-09-29 09:32:06     cramfs as rootfs

Santhosh Kumar (INDIA)

Message: 80636   

 

I am trying to use cramfs as my rootfs(2009R1 in BF527) instead of default rootfs(i hope its ext2). I have enabled cramfs support in make menuconfig and am getting rootfs.cramfs in images folder.

 

I am using uImage.initramfs for boot.

 

How to instruct kernel to take cramfs filesystem while boot?

 

Any options in bootargs?

QuoteReplyEditDelete

 

 

2009-09-29 16:42:58     Re: cramfs as rootfs

Mike Frysinger (UNITED STATES)

Message: 80652   

 

the default rootfs is not ext2, it's initramfs.  that's why the file you're booting is called "uImage.initramfs".

 

QuoteReplyEditDelete

 

 

2009-09-29 23:41:54     Re: cramfs as rootfs

Santhosh Kumar (INDIA)

Message: 80673   

 

Ok .

 

How to change my default root file system to cramfs?

 

Will there be kernel image called uImage.cramfs? if so, how to generate the same?

QuoteReplyEditDelete

 

 

2009-09-30 00:12:05     Re: cramfs as rootfs

Mike Frysinger (UNITED STATES)

Message: 80674   

 

if you want to use the uClinux MTD root instead of initramfs, then enable the uClinux mapping.

 

if you want a specific root filesystem, then enable it in your kernel

QuoteReplyEditDelete

 

 

2009-09-30 02:32:34     Re: cramfs as rootfs

Santhosh Kumar (INDIA)

Message: 80677   

 

I dont want to use MTD root . I have already enabled cramfs in kernel and am also getting rootfs.cramfs in images folder.

 

I want to replace initramfs to cramfs. And I want to keep all files in cramfs. How to configure kernel to acheive this?

 

I have read link   docs.blackfin.uclinux.org/doku.php?id=enabling_cramfs&s[]=rootfs&s[]=cramfs , it says how to use cramfs in flash memory as root file system. But i want cramfs in SDRAM as root file system.

QuoteReplyEditDelete

 

 

2009-09-30 02:49:45     Re: cramfs as rootfs

Mike Frysinger (UNITED STATES)

Message: 80678   

 

what you're asking for makes absolutely no sense.  you cannot have a rootfs in external memory (i.e. SDRAM) without either initramfs or the uClinux MTD.

 

ive already told you how to achieve what the documentation describes.

Attachments

    Outcomes