Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] read-only NFS devtmpfs mount fails
Date: Tue, 2 Oct 2012 17:29:31 +0200	[thread overview]
Message-ID: <20121002172931.297a7cd7@skate> (raw)
In-Reply-To: <1349189984.20063.YahooMailNeo@web171606.mail.ir2.yahoo.com>

Dear Massimo Callegari,

On Tue, 2 Oct 2012 15:59:44 +0100 (BST), Massimo Callegari wrote:

> I'm running buildroot 2012.05 on a MIPSel device, custom kernel 3.3.0.?I'm testing over NFS, building a .TAR target.
> When devices are created statically and fs is mounted in RW, all is OK.
> When I try to use devtmpfs (with or without udev) and read-only filesystem over NFS, I am not able to obtain a dynamic /dev creation.
> I thought the kernel was supposed to do the mounting automagically, but since I'm mounting a NFS tree my init script is busybox, so I added?this instruction at the beginning of /etc/inittab:
> 
> ::sysinit:/bin/mount -t devtmpfs devtmpfs /dev
> 
> 
> Although I get this error:
> mount: mounting devtmpfs on /dev failed: No such device
> 
> 
> I've read a lot of forums and docs and checked everything I could.?
> On my kernel folder: "grep TMPFS .config"?says:
> CONFIG_DEVTMPFS=y
> CONFIG_DEVTMPFS_MOUNT=y

This option normally mounts automatically devtmpfs at boot time, even
before your init application starts. So normally, you have nothing to
do in userspace to get devtmpfs ready.

Are you sure you are running a kernel that has this configuration?

> I also had to create some devices manually to avoid several errors, especially for /dev/null (isn't buildroot supposed to create a minimum set of devices to avoid this ?) so I created these:
> 
> crw-rw-rw- ?1 root root ?5, ?1 2012-10-01 17:14 console
> crw-rw-rw- ?1 root root ?1, ?3 2012-10-01 17:14 null
> 
> crw-rw-rw- ?1 root root ?4, ?0 2012-10-01 17:14 tty0
> 
> crw-rw-rw- ?1 root root ?4, 64 2012-10-01 17:16 ttyS0
> crw-rw-rw- ?1 root root ?1, ?5 2012-10-01 17:38 zero

If you tell Buildroot that you're using devtmpfs, then Buildroot no
longer creates device files, as those are no longer necessary.

Thomas
-- 
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com

  reply	other threads:[~2012-10-02 15:29 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-02 14:59 [Buildroot] read-only NFS devtmpfs mount fails Massimo Callegari
2012-10-02 15:29 ` Thomas Petazzoni [this message]
2012-10-03  8:27   ` Massimo Callegari

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=20121002172931.297a7cd7@skate \
    --to=thomas.petazzoni@free-electrons.com \
    --cc=buildroot@busybox.net \
    /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