Skip to contentSkip to conversation

/run/udev missing ?

Buildroot Sven Neumann 6 participants 12 messages Aug 12, 2011 – Aug 16, 2011

lore
Share & tools
lore
#0 lore raw

Hi,

after updating to latest buildroot, udevd has problems starting:

udevd[1114]: error: runtime directory '/run/udev' not writable, for now falling back to '/dev/.udev'
udevd[1114]: failed to create queue file: No such file or directory udevd[1114]: error creating queue file

It looks like udevd is not running or not working properly then as it fails to load the firmware for the Wifi chip.

This is a configuration with static device management.

Any ideas? Should /run/udev exist or is the fallback OK and supposed to work?

Sven

#1 lore raw
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Sven" == Sven Neumann <[email protected]> writes:

Sven> Hi,
Sven> after updating to latest buildroot, udevd has problems starting:

Sven> udevd[1114]: error: runtime directory '/run/udev' not writable, for now Sven> falling back to '/dev/.udev'
Sven> udevd[1114]: failed to create queue file: No such file or directory Sven> udevd[1114]: error creating queue file

Sven> It looks like udevd is not running or not working properly then as it Sven> fails to load the firmware for the Wifi chip.

Sven> This is a configuration with static device management.

All other configurations than static dev (devtmpfs/mdev/udev) expects CONFIG_DEVTMPFS_MOUNT to be enabled in the kernel, not a static /dev.

Signature · 1 line
Bye, Peter Korsgaard
#2 lore raw
Quoted 10 lines · Peter Korsgaard
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Sven" == Sven Neumann <[email protected]> writes:

Sven> Hi,
Sven> after updating to latest buildroot, udevd has problems starting:

Sven> udevd[1114]: error: runtime directory '/run/udev' not writable, for now Sven> falling back to '/dev/.udev'
Sven> udevd[1114]: failed to create queue file: No such file or directory Sven> udevd[1114]: error creating queue file

Quoted 7 lines

Sven> It looks like udevd is not running or not working properly then as it Sven> fails to load the firmware for the Wifi chip.

Sven> This is a configuration with static device management.

All other configurations than static dev (devtmpfs/mdev/udev) expects CONFIG_DEVTMPFS_MOUNT to be enabled in the kernel, not a static /dev.

Yes, and it looks like linux/linux.mk is responsible for making sure that the kernel is configured as expected. As far as I can see this works just fine.

Still it may be desirable to run udev and use static device management at the same time. At least this used to work and I would like to make it work again.

Sven

#3 lore raw
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Sven" == Sven Neumann <[email protected]> writes:

Hi,

Sven> Yes, and it looks like linux/linux.mk is responsible for making sure Sven> that the kernel is configured as expected. As far as I can see this Sven> works just fine.

Indeed, if you build your kernel with buildroot.

Sven> Still it may be desirable to run udev and use static device Sven> management at the same time. At least this used to work and I Sven> would like to make it work again.

What would the advantage of this be? This is not how udev is normally used nowadays (devtmpfs was explicitly made to fix various issues with the initial static /dev and handover to udev) on PCs.

Compared to udev, devtmpfs is very lightweight. I would recommend pure devtmpfs (no mdev/udev) to people using static /dev today.

Signature · 1 line
Bye, Peter Korsgaard
#4 lore raw
Quoted 14 lines · Peter Korsgaard
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Sven" == Sven Neumann <[email protected]> writes:

Hi,

Sven> Yes, and it looks like linux/linux.mk is responsible for making sure Sven> that the kernel is configured as expected. As far as I can see this Sven> works just fine.

Indeed, if you build your kernel with buildroot.

Sven> Still it may be desirable to run udev and use static device Sven> management at the same time. At least this used to work and I Sven> would like to make it work again.

Quoted 6 lines

What would the advantage of this be? This is not how udev is normally used nowadays (devtmpfs was explicitly made to fix various issues with the initial static /dev and handover to udev) on PCs.

Compared to udev, devtmpfs is very lightweight. I would recommend pure devtmpfs (no mdev/udev) to people using static /dev today.

Well, we need udev to load the firmware of our Wifi module. Of course I can try to switch to dynamic device management, but I thought I'd rather point out that a setup broke that the buildroot configuration allows and that used to work.

If this is not supposed to work, then it should probably be disallowed in the buildroot configuration. In other words, if udev is selected, static device management should not be selectable.

Sven

#5 lore raw
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Sven" == Sven Neumann <[email protected]> writes:

Hi,

Quoted 2 lines
Quoted 2 lines

Compared to udev, devtmpfs is very lightweight. I would recommend pure devtmpfs (no mdev/udev) to people using static /dev today.

Sven> Well, we need udev to load the firmware of our Wifi module. Of Sven> course I can try to switch to dynamic device management, but I Sven> thought I'd rather point out that a setup broke that the Sven> buildroot configuration allows and that used to work.

Sven> If this is not supposed to work, then it should probably be Sven> disallowed in the buildroot configuration. In other words, if Sven> udev is selected, static device management should not be Sven> selectable.

Ahh yes, good idea - Fixed in git.

Signature · 1 line
Bye, Peter Korsgaard
#6 lore raw
Quoted 12 lines · Peter Korsgaard
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Sven" == Sven Neumann <[email protected]> writes:

Hi,

Quoted 2 lines
Quoted 2 lines

Compared to udev, devtmpfs is very lightweight. I would recommend pure devtmpfs (no mdev/udev) to people using static /dev today.

Sven> Well, we need udev to load the firmware of our Wifi module. Of Sven> course I can try to switch to dynamic device management, but I Sven> thought I'd rather point out that a setup broke that the Sven> buildroot configuration allows and that used to work.

Quoted 6 lines

Sven> If this is not supposed to work, then it should probably be Sven> disallowed in the buildroot configuration. In other words, if Sven> udev is selected, static device management should not be Sven> selectable.

Ahh yes, good idea - Fixed in git.

Hmm, not really was I was asking for in the first place. But I guess I'll have to deal with your decision then to drop support for this configuration...

Still I wonder why udevd is looking for "/run/udev". Shouldn't this be /var/run/udev ? Looks to me like udevd is configured with a wrong prefix for the run directory.

Sven

#7 lore raw
Quoted 3 lines · Sven Neumann

Still I wonder why udevd is looking for "/run/udev". Shouldn't this be /var/run/udev ? Looks to me like udevd is configured with a wrong prefix for the run directory.

/run was introduced recently by systemd and udev, considering the fact that /var might be mounted on partitions that are not yet available when systemd starts. So this sounds like the new standard, and It's likely that buildroot needs to be amended in this case.

Daniel

#8 lore raw
In reply to Sven Neumann

Hi Sven,

Quoted 3 lines · Sven Neumann

Still I wonder why udevd is looking for "/run/udev". Shouldn't this be /var/run/udev ? Looks to me like udevd is configured with a wrong prefix for the run directory.

/run is a newly introduced toplevel directory for early boot runtime data. See
http://lwn.net/Articles/436012/.

baruch

Signature · 3 lines
                                                     ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -
#9 lore raw
In reply to Peter Korsgaard
Quoted 10 lines · Peter Korsgaard
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Sven" == Sven Neumann <[email protected]> writes:

Sven> Hi,
Sven> after updating to latest buildroot, udevd has problems starting:

Sven> udevd[1114]: error: runtime directory '/run/udev' not writable, for now Sven> falling back to '/dev/.udev'
Sven> udevd[1114]: failed to create queue file: No such file or directory Sven> udevd[1114]: error creating queue file

Quoted 7 lines

Sven> It looks like udevd is not running or not working properly then as it Sven> fails to load the firmware for the Wifi chip.

Sven> This is a configuration with static device management.

All other configurations than static dev (devtmpfs/mdev/udev) expects CONFIG_DEVTMPFS_MOUNT to be enabled in the kernel, not a static /dev.

Do you have a suggestion on how to use udev with a kernel that does not yet have this option? We are stuck with 2.6.31 on one of our platforms and I haven't been able to get udev working with recent buildroot on this platform.

Sven

#10 lore raw
Quoted 7 lines · Sven Neumann

Do you have a suggestion on how to use udev with a kernel that does not yet have this option? We are stuck with 2.6.31 on one of our platforms and I haven't been able to get udev working with recent buildroot on this platform.

This init.d file woks for me on 2.6.32. I am using tmpfs for mounting udev.

Note that for udev 173 you will also need a patch to compile with older toolchains (look for in in the ML or the bugzilla).
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20110816/371d7630/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: S10udev
Type: application/octet-stream
Size: 1788 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20110816/371d7630/attachment.obj>

#11 lore raw
Quoted 11 lines · Diego Iastrubni
Quoted 7 lines · Sven Neumann

Do you have a suggestion on how to use udev with a kernel that does not yet have this option? We are stuck with 2.6.31 on one of our platforms and I haven't been able to get udev working with recent buildroot on this platform.

This init.d file woks for me on 2.6.32. I am using tmpfs for mounting udev.

Isn't: mount -t ramfs
A ram disk on the older kernels rather than a tmpfs (-t tmpfs) ?

Mike

Quoted 4 lines

Note that for udev 173 you will also need a patch to compile with older toolchains (look for in in the ML or the bugzilla).