Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Rob Landley <rob@landley.net>
To: buildroot@busybox.net
Subject: [Buildroot] Using udev, non-static /dev, and ramfs (or tmpfs)
Date: Sat, 21 Oct 2006 16:22:28 -0400	[thread overview]
Message-ID: <200610211622.28407.rob@landley.net> (raw)
In-Reply-To: <20061021183403.GA21456@reid1.localdomain>

On Saturday 21 October 2006 2:34 pm, don wrote:
> I have a buildroot system that has been working fine (thanks) using
> a static /dev in a ramfs rootfs.  Now I want to add a USB device and it 
> seems like I should let udev etc. handle it.

I'd recommend mdev from busybox, but then I wrote it. :)

> However udev cannot make entries in a read-only /dev.
>
> Is there a simple recipe for mounting /dev as writable?

mount -t tmpfs /dev /dev
 
> There are several compilcations:
> 
> 	Normally to mount with ramfs I'd use /dev/ram*. 

No, that's a ram disk not ramfs.  A ramfs (or tmpfs) doesn't have backing 
store.

Install a recent busybox (1.2.2 would be best, once I get that up. :)

To populate dev:

  mdev -s

To handle hotplug events:

  echo "/sbin/mdev" > /proc/sys/kernel/hotplug

Rob
-- 
"Perfection is reached, not when there is no longer anything to add, but
when there is no longer anything to take away." - Antoine de Saint-Exupery

  reply	other threads:[~2006-10-21 20:22 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-10-21 18:34 [Buildroot] Using udev, non-static /dev, and ramfs (or tmpfs) don
2006-10-21 20:22 ` Rob Landley [this message]
2006-10-22  1:19 ` Nathanael D. Noblet

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=200610211622.28407.rob@landley.net \
    --to=rob@landley.net \
    --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