Skip to contentSkip to conversation

Stanislav Brabec : akita.conf, spitz.conf: Set PREFERRED_PROVIDER for udev-compat to udev-compat141.

oe-commits Andrea Adami 3 participants 4 messages Jul 24, 2010 – Jul 25, 2010 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

Stanislav,

thx for your work.

Please note that other machines (c7x0 and poodle) are needing the same preference, thus I propose you move this in zaurus-2.6.inc. Collie and tosa are not concerned, having 2.6.3x kernel.

Regards

Andrea

Quoted 45 lines · git version control

Module: openembedded.git
Branch: org.openembedded.dev
Commit: b634978194d9b8f2a833863c540ceb5458b41e45
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=b634978194d9b8f2a833863c540ceb5458b41e45

Author: Stanislav Brabec <[email protected]>
Date:   Sat Jul 24 15:51:39 2010 +0200

akita.conf, spitz.conf: Set PREFERRED_PROVIDER for udev-compat to udev-compat141.

---

 conf/machine/akita.conf |    3 +++
 conf/machine/spitz.conf |    3 +++

 2 files changed, 6 insertions(+), 0 deletions(-)
conf/machine/akita.conf +0 -0
index 4afa515..d2ff69e 100644
@@ -21,3 +21,6 @@ MACHINE_DISPLAY_PPI = "216"

 UBOOT_MACHINE = "akita_config"
 UBOOT_ENTRYPOINT = "0xA1000000"
 UBOOT_LOADADDRESS = "${UBOOT_ENTRYPOINT}"

conf/machine/akita.conf +3 -0
+
+# udev-141 is the latest version that works with linux-2.6.26-RP
+PREFERRED_PROVIDER_udev-compat = "udev-compat141"
conf/machine/spitz.conf +0 -0
index 0b5331e..314d346 100644
@@ -27,3 +27,6 @@ MACHINE_DISPLAY_PPI = "216"

 UBOOT_MACHINE = "akita_config"
 UBOOT_ENTRYPOINT = "0xA1000000"
 UBOOT_LOADADDRESS = "${UBOOT_ENTRYPOINT}"

conf/machine/spitz.conf +3 -0
+
+# udev-141 is the latest version that works with linux-2.6.26-RP
+PREFERRED_PROVIDER_udev-compat = "udev-compat141"

_______________________________________________
Openembedded-commits mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-commits

#2 lore raw
Quoted 3 lines · Andrea Adami

Stanislav,

thx for your work.

You are welcome. I wanted to boot my Zaurus Terrier even after opkg upgrade. And the latest vanilla is still one step from going to the production quality.

Quoted 3 lines

Please note that other machines (c7x0 and poodle) are needing the same preference, thus I propose you move this in zaurus-2.6.inc. Collie and tosa are not concerned, having 2.6.3x kernel.

Feel free to do it for more machines or move this preference to the defaults. The setting of preference has no effect until you add proper lines to udev recipes.

I don't know, whether all Zaurii (and in general all old kernels) can live with udev-compat141. I only confirmed that udev-141 works with 2.6.26 and udev-151 does not work with 2.6.26 (needs signalfd, CLOEXEC and inotify_init1).

udev-compat141 recipe contains short manual for other users that may need it.

Cloning udev-compat141 to udev-compat124 should work for machines that would not boot even with udev-141.

Well, also libudev does not work completely with 2.6.26. Hopefully, udev_monitor_new_from_netlink() is the only function that does work, and this functions is needed only by udevd. But we run udevd-compat, which is statically linked with the old version of the library.

Note: I committed sanity_check fixes as a separate patch, so people who tested patches from the list can easily review these changes. (Well, those people may want to force rebuild, as they will need to rebuild the same PR.)

I guess that Koen can now remove udev-static.

Signature · 3 lines
________________________________________________________________________
Stanislav Brabec
http://www.penguin.cz/~utx/zaurus
#3 lore raw

Just curious.. but wouldn't the logical scheme be that linux-2.6.26 sets the preferred udev version?
cheers,

On 25 Jul 2010 00:17, "Stanislav Brabec" <[email protected]> wrote:

Quoted 3 lines · Andrea Adami

Stanislav,

thx for your work.

You are welcome. I wanted to boot my Zaurus Terrier even after opkg upgrade. And the latest vanilla is still one step from going to the production quality.

Quoted 2 lines

Please note that other machines (c7x0 and poodle) are needing the same preference, thus I propo...

Feel free to do it for more machines or move this preference to the defaults. The setting of preference has no effect until you add proper lines to udev recipes.

I don't know, whether all Zaurii (and in general all old kernels) can live with udev-compat141. I only confirmed that udev-141 works with 2.6.26 and udev-151 does not work with 2.6.26 (needs signalfd, CLOEXEC and inotify_init1).

udev-compat141 recipe contains short manual for other users that may need it.

Cloning udev-compat141 to udev-compat124 should work for machines that would not boot even with udev-141.

Well, also libudev does not work completely with 2.6.26. Hopefully, udev_monitor_new_from_netlink() is the only function that does work, and this functions is needed only by udevd. But we run udevd-compat, which is statically linked with the old version of the library.

Note: I committed sanity_check fixes as a separate patch, so people who tested patches from the list can easily review these changes. (Well, those people may want to force rebuild, as they will need to rebuild the same PR.)

I guess that Koen can now remove udev-static.

--

________________________________________________________________________
Stanislav Brabec
http://www.penguin.cz/~utx/zaurus

_______________________________________________
Openembedded-devel mailing list
Openembedded-devel...

#4 lore raw
Quoted 2 lines · Bernhard Reutner-Fischer

Just curious.. but wouldn't the logical scheme be that linux-2.6.26 sets the preferred udev version?

Kernel is machine specific package, udev has machine independent version.

If you do this, you cannot use armv5te feed and all machines that do it must be considered as a separate platform:

- If you subscribe to armv5te, then opkg upgrade will upgrade back to udev-151 and your system will fail to boot.

If you unsibscribe from armv5te and create new platform armv5teoldudev then:

- Old udev does not support libudev and libgudev. Application that depend on it can't be built.

=> udev-compat is still the simplest solution

Another simple solution would be forcing of udev as machine specific package for all machines and remove it from the platform feed.

Signature · 3 lines
________________________________________________________________________
Stanislav Brabec
http://www.penguin.cz/~utx/zaurus