Re: [PATCH 04/14] Pramfs: Mounting as root filesystem

2009-06-14 Thread Marco
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

Re: [PATCH 04/14] Pramfs: Mounting as root filesystem

2009-06-14 Thread David Woodhouse
On Sun, 2009-06-14 at 10:21 +0200, Marco wrote: 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.

Re: [PATCH 04/14] Pramfs: Mounting as root filesystem

2009-06-14 Thread Marco
David Woodhouse wrote: On Sun, 2009-06-14 at 10:21 +0200, Marco wrote: 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

Re: [PATCH 04/14] Pramfs: Mounting as root filesystem

2009-06-14 Thread Marco
David Woodhouse wrote: On Sun, 2009-06-14 at 10:21 +0200, Marco wrote: 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

[PATCH 04/14] Pramfs: Mounting as root filesystem

2009-06-13 Thread Marco
From: Marco Stornelli marco.storne...@gmail.com Pramfs can be used even as root filesystem. Signed-off-by: Marco Stornelli marco.storne...@gmail.com --- diff -uprN linux-2.6.30-orig/init/do_mounts.c linux-2.6.30/init/do_mounts.c --- linux-2.6.30-orig/init/do_mounts.c 2009-06-10