public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot-Users] ROMFS & Uboot.
@ 2003-06-10 15:00 Christophe.LINDHEIMER at fr.thalesgroup.com
  2003-06-10 15:16 ` Wolfgang Denk
  2003-06-20  7:19 ` Murray Jensen
  0 siblings, 2 replies; 8+ messages in thread
From: Christophe.LINDHEIMER at fr.thalesgroup.com @ 2003-06-10 15:00 UTC (permalink / raw)
  To: u-boot

> > It seems that Romfs can be used as Initrd for booting 
> Linux. ( right ?? )
> 
> Aramdisk is just a block device. You can put any filesystem in it -
> minix, ext2, you name it.
> 
> > Is this supported by UBoot ?
> 
> No. U-Boot has nothing to do with this.
> 
> > Has anyone already done this ?
> 
> romfs in an initial ramdisk? This makes little sense to me.
> 

Well, my problem is that I am really short of ram.
So I would like to have my filesystem in flash and keep it in flash.

So I would like to have my root filesytem in flash ( possible ?? ).
romfs seems to be a way to do it.

It think the way to do it it to declare my romfs as initrd ( maybe I am
wrong because initrd is init ram disk and it means that it MUST be a RW
filesystem in RAM ??? )

After reading sources of U Boot it seems that if I put a second parameter at
bootm, it is going to copy the initrd into RAM ( right ? ).
whereas I would like to keep my romfs in flash.

maybe I misunderstand and misuse completly the initrd... Help and hints
welcome...

Chris

^ permalink raw reply	[flat|nested] 8+ messages in thread
* [U-Boot-Users] ROMFS & Uboot.
@ 2003-06-11  8:07 Christophe.LINDHEIMER at fr.thalesgroup.com
  0 siblings, 0 replies; 8+ messages in thread
From: Christophe.LINDHEIMER at fr.thalesgroup.com @ 2003-06-11  8:07 UTC (permalink / raw)
  To: u-boot

Hi.

> > 
> > Well, my problem is that I am really short of ram.
> 
> Easy to fix: add more RAM. RAM is very cheap these days.

Harder to fix : explain hardware people that they shouldnt care about
current consumption and area of the card :-)

> 
> > So I would like to have my filesystem in flash and keep it in flash.
> > 
> > So I would like to have my root filesytem in flash ( possible ?? ).
> > romfs seems to be a way to do it.
> 
> Of course this is possible. And there  are  many  ways  to  implement
> this: romfs, cramfs, jffs2, ...
> 
> > It think the way to do it it to declare my romfs as initrd 
> ( maybe I am
> > wrong because initrd is init ram disk and it means that it 
> MUST be a RW
> > filesystem in RAM ??? )
> 
> Right. An initrd is a RAM disk. And a RAM disk is in RAM by 
> definition.
> 
> > After reading sources of U Boot it seems that if I put a 
> second parameter at
> > bootm, it is going to copy the initrd into RAM ( right ? ).
> 
> Not really. Current versions of U-Boot allow to avoid the extra  copy
> of  the  ramdisk  image. But the LInux kernel will load the initrd to
> RAM in any case.
> 
> > whereas I would like to keep my romfs in flash.
> 
> Then use a flash filesystem.
> 
> > maybe I misunderstand and misuse completly the initrd... 
> Help and hints
> > welcome...
> 
> Have a look at the MTD layer. You have to enable MTD support  in  the
> Linux kernel. Then you can define partitions on your flash memory and
> create  block  devices  on  these. And on these block devices you can
> uses filesystems - whichever you like.
> 
> 
> But all of this is actually completely unrelated to U-Boot  and  thus
> off topic here.
> 

Ok . thanks for help. I gonna look this.

Regards

Chris

^ permalink raw reply	[flat|nested] 8+ messages in thread
* [U-Boot-Users] ROMFS & Uboot.
@ 2003-06-11  8:04 Christophe.LINDHEIMER at fr.thalesgroup.com
  0 siblings, 0 replies; 8+ messages in thread
From: Christophe.LINDHEIMER at fr.thalesgroup.com @ 2003-06-11  8:04 UTC (permalink / raw)
  To: u-boot

Hi.

> 
> 
> Hi,
> If you have enough FLASH why do you want to use initrd. 

In fact, it seems it is a stupid idea to use initrd :-) ( Linux newbie idea
... )

> Make you ROMFS, build 
> a kernel that supports it with the good flash parameters 
> (start,length,CFI or 
> not,...) set as root filesystem the flash device 
> (/dev/mtdblock0 ) and go on. 
> It works (It tested with CRAMFS which is a Compressed ROM file system 
> uncompressing in RAM).
> 

Ok. Thanks.

> Do it the easy way.
> 
> Benoit Callebaut
> 

^ permalink raw reply	[flat|nested] 8+ messages in thread
* [U-Boot-Users] ROMFS & Uboot.
@ 2003-06-10 15:25 Callebaut Benoit
  0 siblings, 0 replies; 8+ messages in thread
From: Callebaut Benoit @ 2003-06-10 15:25 UTC (permalink / raw)
  To: u-boot

Hi,
If you have enough FLASH why do you want to use initrd. Make you ROMFS, build 
a kernel that supports it with the good flash parameters (start,length,CFI or 
not,...) set as root filesystem the flash device (/dev/mtdblock0 ) and go on. 
It works (It tested with CRAMFS which is a Compressed ROM file system 
uncompressing in RAM).

Do it the easy way.

Benoit Callebaut

------------------------------------------------------------
 Get your FREE web-based e-mail and newsgroup access at:
                http://MailAndNews.com

 Create a new mailbox, or access your existing IMAP4 or
 POP3 mailbox from anywhere with just a web browser.
------------------------------------------------------------

^ permalink raw reply	[flat|nested] 8+ messages in thread
* [U-Boot-Users] ROMFS & Uboot.
@ 2003-06-10 14:15 Christophe.LINDHEIMER at fr.thalesgroup.com
  2003-06-10 14:41 ` Wolfgang Denk
  0 siblings, 1 reply; 8+ messages in thread
From: Christophe.LINDHEIMER at fr.thalesgroup.com @ 2003-06-10 14:15 UTC (permalink / raw)
  To: u-boot

Hi.

It seems that Romfs can be used as Initrd for booting Linux. ( right ?? )
Is this supported by UBoot ?
Has anyone already done this ?

Thanks

Regards

Chris

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2003-06-20  7:19 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-06-10 15:00 [U-Boot-Users] ROMFS & Uboot Christophe.LINDHEIMER at fr.thalesgroup.com
2003-06-10 15:16 ` Wolfgang Denk
2003-06-20  7:19 ` Murray Jensen
  -- strict thread matches above, loose matches on Subject: below --
2003-06-11  8:07 Christophe.LINDHEIMER at fr.thalesgroup.com
2003-06-11  8:04 Christophe.LINDHEIMER at fr.thalesgroup.com
2003-06-10 15:25 Callebaut Benoit
2003-06-10 14:15 Christophe.LINDHEIMER at fr.thalesgroup.com
2003-06-10 14:41 ` Wolfgang Denk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox