From: "Brendan Moran" <bremoran@broadcom.com>
To: linux-hotplug@vger.kernel.org
Subject: Re: Migrating from static /dev to udev
Date: Tue, 29 Sep 2009 17:41:25 +0000 [thread overview]
Message-ID: <4AC246C5.1060108@broadcom.com> (raw)
In-Reply-To: <4ABD467F.7010901@broadcom.com>
Alan Jenkins wrote:
> On 9/28/09, Brendan Moran <bremoran@broadcom.com> wrote:
>
>> Hi Alan,
>> I'm using virtually the same startup script as is used in Ubuntu
>> (attached). It only uses $udevadm trigger, with no arguments.
>>
>
> Well, I'm sure you can narrow it down. You can always single-step the
> init script on a running system to see what's happening.
>
It turns out it was pretty obvious:
> -n Starting kernel event manager...
> .
> -n Loading hardware drivers...
> [101] udev_monitor_enable_receiving: bind failed: No such file or
> directory
> error initializing netlink socket
> [101] main: error initializing netlink socket
> udevadm[102]: bind failed: No such file or directory
>
> error: unable to subscribe to udev events
Checking the source, it appears that having
udev_monitor_enable_receiving fail means that
udev_monitor_new_from_netlink() is already failing. I imagine that I'm
missing a kernel config option, but I'm not sure what it is.
>> I didn't
>> expect that permissions would be an issue, as this system is running in
>> single user mode.
>>
>> Mounting /dev as a tmpfs makes perfect sense to me, however I'll have to
>> do some hacking before I can modify that.
>>
>
> ?
> if [ -z $DEVMOUNT ]; then
> # initramfs didn't mount /dev, so we'll need to do that
> mount -n -t tmpfs -o mode\a55 udev /dev
> fi
>
> This will definitely cause some problems if you hadn't noticed it and
> left /lib/udev/devices empty. Udev relies on /dev/null being present
> at startup.
>
> I think this is your main problem! Perhaps it is somehow responsible
> for the later 'unknown: "uevent"' problem.
I've fixed the empty device list problem, so the failed bind is the
biggest problem now.
Thanks again,
Brendan
>> I have a list of all the
>> devices to be created and placed in /dev already. Currently, it's
>> expanded at compile time, but I should be able to change the target from
>> /dev to /lib/udev/devices.
>>
>> One additional thing that I need to do while migrating away from a
>> static /dev is to convert our current naming scheme for devices to one
>> which is consistent with the naming that udev uses by default.
>>
>> Thanks again,
>> Brendan
>>
>
> Good luck
>
>
>> Alan Jenkins wrote:
>>
>>> Hi
>>>
>>> On 9/25/09, Brendan Moran <bremoran@broadcom.com> wrote:
>>>
>>>
>>>> Hi,
>>>>
>
> --
> A: Because it messes up the order in which people normally read text.
>
>> Q: Why is top-posting such a bad thing?
>>
>>> A: Top-posting.
>>>
>>>> Q: What is the most annoying thing in e-mail?
>>>>
>
>
next prev parent reply other threads:[~2009-09-29 17:41 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-09-25 22:38 Migrating from static /dev to udev Brendan Moran
2009-09-25 23:06 ` Stephan Raue
2009-09-26 9:22 ` Alan Jenkins
2009-09-26 15:41 ` Greg KH
2009-09-28 16:09 ` Brendan Moran
2009-09-28 21:02 ` Alan Jenkins
2009-09-29 17:41 ` Brendan Moran [this message]
2009-09-30 3:19 ` Bryan Kadzban
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=4AC246C5.1060108@broadcom.com \
--to=bremoran@broadcom.com \
--cc=linux-hotplug@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).