kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
* Problem with rootfs mounting
@ 2011-03-21 13:26 stl
  0 siblings, 0 replies; 3+ messages in thread
From: stl @ 2011-03-21 13:26 UTC (permalink / raw)
  To: kernelnewbies

Hello all,
I am porting linux-2.6.37 to a new architecture, and I am facing the
well-known problem:

VFS: Cannot open root device "(null)" or unknown-block(0,0)

When I was working on uClinux, the vmlinux image was concatenated with the
romfs image.
The kernel was aware of the address of the magic number -rom1fs- thanks  the
configuration
CONFIG_MTD_UCLINUX_ADDRESS= . . .  in the .config file.

But, I have not found how I can do thit in Linux..
Where and how the romfs tree is created and included to the kernel image?

This question concerns also all the necessary user applications like "init"
and "sh".


 Any help will be very useful.

Thanks in advance.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20110321/91b9631b/attachment.html 

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

* Problem with rootfs mounting
@ 2011-03-21 14:41 stl
  2011-03-22 10:33 ` Mandeep Sandhu
  0 siblings, 1 reply; 3+ messages in thread
From: stl @ 2011-03-21 14:41 UTC (permalink / raw)
  To: kernelnewbies

Hello all,
I am porting linux-2.6.37 to a new architecture, and I am facing the
well-known problem:

VFS: Cannot open root device "(null)" or unknown-block(0,0)

When I was working on uClinux, I have seen that the vmlinux image was
concatenated with the romfs image.
The kernel was aware of the address of the magic number -rom1fs-  thanks to
the configuration
CONFIG_MTD_UCLINUX_ADDRESS= 0x . . . .   in the .config file.

But, I have not found how I can do this in Linux..
I have chosen the filesystem ROMFS in the .config file.
Where and how the romfs tree is created and included to the kernel image?

This question concerns also all the necessary user applications like "init"
and "sh".

Should I use a build system tool like Buildroot or OpenEmbedded?

 Any help will be very useful.

Thanks in advance.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20110321/9c76eaa4/attachment.html 

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

* Problem with rootfs mounting
  2011-03-21 14:41 Problem with rootfs mounting stl
@ 2011-03-22 10:33 ` Mandeep Sandhu
  0 siblings, 0 replies; 3+ messages in thread
From: Mandeep Sandhu @ 2011-03-22 10:33 UTC (permalink / raw)
  To: kernelnewbies

> But, I have not found how I can do this in Linux..
> I have chosen the filesystem ROMFS in the .config file.
> Where and how the romfs tree is created and included to the kernel image?

We're using an embedded MIPS platform with busybox.

We build the rootfs image (busybox build) and point to its location in
the kernel menu config. Though I beleive that menu config is coming
due to our vendor patched kernel. I'm not sure if this option is
available in vanilla kernels.

Doing this creates a cpio archive of whatever root dir we point to in
the kernel config...which is then added to the kernel as a ramfs
image.

>
> This question concerns also all the necessary user applications like "init"
> and "sh".

If you have a busybox based system, then init is essentially the busybox shell.

 HTH,
-mandeep

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

end of thread, other threads:[~2011-03-22 10:33 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-21 14:41 Problem with rootfs mounting stl
2011-03-22 10:33 ` Mandeep Sandhu
  -- strict thread matches above, loose matches on Subject: below --
2011-03-21 13:26 stl

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).