linux-embedded.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Marco <marco.stornelli@gmail.com>
To: Arnd Bergmann <arnd@arndb.de>
Cc: Linux FS Devel <linux-fsdevel@vger.kernel.org>,
	Linux Embedded <linux-embedded@vger.kernel.org>,
	Linux Kernel <linux-kernel@vger.kernel.org>,
	Daniel Walker <dwalker@soe.ucsc.edu>
Subject: Re: [PATCH 04/14] Pramfs: Mounting as root filesystem
Date: Sun, 14 Jun 2009 10:21:17 +0200	[thread overview]
Message-ID: <4A34B2FD.20701@gmail.com> (raw)
In-Reply-To: <200906140104.43463.arnd@arndb.de>

Arnd Bergmann wrote:
> On Saturday 13 June 2009, Marco wrote:
>>  void __init mount_root(void)
>>  {
>> +#ifdef CONFIG_ROOT_PRAMFS
>> +       if (MAJOR(ROOT_DEV) == MEM_MAJOR) {
>> +               if (mount_pramfs_root())
>> +                       return;
>> +
>> +               printk(KERN_ERR "VFS: Unable to mount root fs via PRAMFS, trying floppy.\n");
>> +               ROOT_DEV = Root_FD0;
>> +       }
>> +#endif
> 
> AFAICT, this will prevent booting from /dev/ram0 with a regular file system,
> because that also uses MAJOR(ROOT_DEV) == 1.
> 
> 	Arnd <><
> 

Mmm...MEM_MAJOR and RAMDISK_MAJOR have the same value and pramfs works
in memory. We could simply use /dev/null (there was an error in the
submitted kconfig description, my intention was to use /dev/mem). In
that case I can use UNNAMED_MAJOR. PRAMFS root option is not enabled if
it's already enabled the NFS one. What do you think?

Marco

  reply	other threads:[~2009-06-14  8:21 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-13 13:21 [PATCH 04/14] Pramfs: Mounting as root filesystem Marco
2009-06-13 23:04 ` Arnd Bergmann
2009-06-14  8:21   ` Marco [this message]
2009-06-14  9:07     ` David Woodhouse
2009-06-14 16:05       ` Marco
2009-06-14 16:29         ` Marco

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4A34B2FD.20701@gmail.com \
    --to=marco.stornelli@gmail.com \
    --cc=arnd@arndb.de \
    --cc=dwalker@soe.ucsc.edu \
    --cc=linux-embedded@vger.kernel.org \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).