Skip to contentSkip to conversation

efficient usb plug in notification

Buildroot Christopher Taylor 3 participants 4 messages Aug 6, 2008 – Aug 7, 2008

lore
Share & tools
lore
#0 lore raw

I'm trying to see what my best options are of getting USB plugin notifications in user-space in a buildroot/uClibc env.

Since this is an embedded platform, I'm really concerned about efficiency of the mechanisms and I'm not sure how efficient udev + dbus + hal is. Does anyone have any thoughts on this and what some reasonable alternatives are within the buildroot chain?

-Chris

#1 lore raw
Quoted 3 lines

I'm trying to see what my best options are of getting USB plugin notifications in user-space in a buildroot/uClibc env.

Is this for USB storage devices only, or all types of USB devices?

Quoted 5 lines

Since this is an embedded platform, I'm really concerned about efficiency of the mechanisms and I'm not sure how efficient udev + dbus + hal is. Does anyone have any thoughts on this and what some reasonable alternatives are within the buildroot chain?

I used 'udev' in all my embedded platforms. I did the original work of getting dbus and hal into buildroot, but it was a royal pain. If you are just doing USB storage devices, look at the usbmount package. It works great and I can certainly help you with that if you hit any snags.

-Steve

#2 lore raw

Thank y ou so much for your reply

Quoted 4 lines · On Wed, Aug 6, 2008 at 11:18 AM, <[email protected]> wrote:
Quoted 3 lines

I'm trying to see what my best options are of getting USB plugin notifications in user-space in a buildroot/uClibc env.

Is this for USB storage devices only, or all types of USB devices?

Well I have two different projects. One is USB devices in general and it's VERY power conscious and the other is just USB storage and it's not that big of a deal.

Quoted 5 lines

I used 'udev' in all my embedded platforms. I did the original work of getting dbus and hal into buildroot, but it was a royal pain. If you are just doing USB storage devices, look at the usbmount package. It works great and I can certainly help you with that if you hit any snags.

Is power consumption/battery life an issue on any of the projects you used the udev/dbus/hal combination and were you able to quantify their effect on power usage?

Thank you very much for your suggestion, I may post again if I run into any snags.

IN getting dbus and hal into buildroot, did you get it into the toolchain or is it that you were able to get it into the fs role inside buildroot. Either one deserves kudos.

-Chris

#3 lore raw
In reply to Christopher Taylor
Quoted 8 lines · Christopher Taylor

I'm trying to see what my best options are of getting USB plugin notifications in user-space in a buildroot/uClibc env.

Since this is an embedded platform, I'm really concerned about efficiency of the mechanisms and I'm not sure how efficient udev + dbus + hal is. Does anyone have any thoughts on this and what some reasonable alternatives are within the buildroot chain?

There is a mdev applet in busybox - a smaller version of udev. It works similar to hotplug. I haven't used it extensively but it is not hard to use, plus everything is in the buildroot already;)

See http://wildanm.wordpress.com/2007/08/21/mdev-mini-udev-in-busybox.

HTH,
Hinko

Signature · 7 lines
?ETRTA POT, d.o.o., Kranj
Planina 3
4000 Kranj
Slovenia, Europe
Tel. +386 (0) 4 280 66 03
E-mail: hinko.kocevar at cetrtapot.si
Http: www.cetrtapot.si