Skip to contentSkip to conversation

Modify udev

DISCUSSION Jack 2 participants 7 messages Jun 16, 2013 – Jun 18, 2013

lore
Share & tools
lore

Jack

author
#0 lore raw

Hi,

In my imageو starting udev take a long time about 6 seconds whereas the time is so important for me. Therefore, I decide to remove udev from task-core-boot but I get a problem in mounting SATA drive. So, I add udev to task-core-boot. In addition to mount SATA drive by udev some other packages like libusb, pciutils,... will install. I want only to mount SATA drive by udev. How can I modify udev that it only install hdd drive ?

Thanks.

#1 lore raw
Quoted 3 lines · Jack

Hi,

In my imageو starting udev take a long time about 6 seconds whereas the time

If the performance is important, what about using udev-cache to speed up the boot process?

Cheers,
Chen Qi

Quoted 12 lines

is so important for me. Therefore, I decide to remove udev from task-core-boot but I get a problem in mounting SATA drive. So, I add udev to task-core-boot. In addition to mount SATA drive by udev some other packages like libusb, pciutils,... will install. I want only to mount SATA drive by udev. How can I modify udev that it only install hdd drive ?

Thanks.

_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto

author
#2 lore raw
Quoted 8 lines · ChenQi
Quoted 3 lines · Jack

Hi,

In my imageو starting udev take a long time about 6 seconds whereas the time

If the performance is important, what about using udev-cache to speed up the boot process?

How should I use udev-cache ?

#3 lore raw
Quoted 11 lines · jack
Quoted 7 lines · ChenQi
Quoted 3 lines · Jack

Hi,

In my imageو starting udev take a long time about 6 seconds whereas the time

If the performance is important, what about using udev-cache to speed up the boot process?

How should I use udev-cache ?

To add udev-cache to your image, add the following line to your local.conf. IMAGE_INSTALL_append += "udev-cache"

Quoted 7 lines

_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto

author
#4 lore raw
Quoted 8 lines · ChenQi
Quoted 6 lines · jack
Quoted 4 lines · ChenQi <Qi.Chen <at> ...> writes:
Quoted 3 lines · Jack

Hi,

In my imageو starting udev take a long time about 6 seconds whereas

the time

Quoted 7 lines
Quoted 5 lines
Quoted 3 lines

If the performance is important, what about using udev-cache to speed up the boot process?

How should I use udev-cache ?

To add udev-cache to your image, add the following line to your local.conf. IMAGE_INSTALL_append += "udev-cache"

I add this line to my local.conf but starting udev take about 6 seconds in boot process yet. What solution do you propose ?

#5 lore raw
Quoted 13 lines · Jack
Quoted 7 lines · ChenQi
Quoted 6 lines · jack
Quoted 4 lines · ChenQi <Qi.Chen <at> ...> writes:
Quoted 3 lines · Jack

Hi,

In my imageو starting udev take a long time about 6 seconds whereas

the time

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

If the performance is important, what about using udev-cache to speed up the boot process?

Quoted 7 lines
Quoted 4 lines
Quoted 2 lines

How should I use udev-cache ?

To add udev-cache to your image, add the following line to your local.conf. IMAGE_INSTALL_append += "udev-cache"

I add this line to my local.conf but starting udev take about 6 seconds in boot process yet. What solution do you propose ?

I've just filed a bug for the udev-cache.
https://bugzilla.yoctoproject.org/show_bug.cgi?id=4738

The patch is still under review. If you want to use it now, please visit the following link and take the patch.
http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=ChenQi/udev-cache-fix

I've made some simple tests myself. With udev-cache enabled, the udev takes less than 1s to start (not the first boot).

//Chen Qi

Quoted 7 lines

_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto

author
#6 lore raw

Thanks a lot ChenQi for your comments.