From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Brown Date: Tue, 16 Aug 2005 23:31:48 +0000 Subject: Re: udev-067 and 2.6.12? Message-Id: <9c21eeae0508161631746af15f@mail.gmail.com> List-Id: References: <200508162349.01610.s0348365@sms.ed.ac.uk> In-Reply-To: <200508162349.01610.s0348365@sms.ed.ac.uk> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: linux-hotplug@vger.kernel.org Okay you can disable syslog or I had to make an extra C file and patch the makefile to get it to work. to disable syslog `make USE_LOG=FAlse` - David Brown =3D=3D begin Makefile.patch =3D--- Makefile.old 2005-07-23 09:27:02.0000000= 00 -0700 +++ Makefile 2005-07-24 22:52:21.000000000 -0700 @@ -145,7 +145,8 @@ udev_db.o \ udev_rules.o \ udev_rules_parse.o \ - udev_libc_wrapper.o + udev_libc_wrapper.o \ + udev_logger.o =20 OBJS =3D \ udev.a \ @@ -377,11 +378,6 @@ $(INSTALL_PROGRAM) -D $(INFO) $(DESTDIR)$(usrbindir)/$(INFO) $(INSTALL_PROGRAM) -D $(TESTER) $(DESTDIR)$(usrbindir)/$(TESTER) $(INSTALL_PROGRAM) -D $(STARTER) $(DESTDIR)$(sbindir)/$(STARTER) -ifndef DESTDIR - - killall $(DAEMON) - - rm -rf $(udevdb) - - $(sbindir)/$(DAEMON) --daemon -endif @extras=3D"$(EXTRAS)" ; for target in $$extras ; do \ echo $$target ; \ $(MAKE) prefix=3D$(prefix) LD=3D"$(LD)" SYSFS=3D"$(SYSFS)" \ =3D=3D end Makefile.patch =3D =3D=3D begin udev_logger.c =3D#include #include extern int udev_log_priority; #ifdef USE_LOG void log_message(int priority, const char *format, ...) { va_list args; if (priority > udev_log_priority) return; va_start(args, format); vsyslog(priority, format, args); va_end(args); } #endif =3D=3D end udev_logger.c =3D On 8/16/05, Alistair John Strachan wrote: > On Tuesday 16 August 2005 23:49, Alistair John Strachan wrote: > > On Tuesday 16 August 2005 23:33, David Brown wrote: > > > Check out the release notes for udev 059 > > > I think your problem may be caused by the changes in that release > > > and you should probably add the code below to your udev rules file > > > > > > RUN+=3D"/sbin/udev_run_devd" > > > > > > > > > I've noticed this problem as well loading firmware but everything was > > > fixed when I made the two extra binaries in extras/run_directory and > > > added the code above to my rules file > > > > > > - David Brown > > > > (Sorry linux-hotplug-devel, I thought I'd add to CC after Greg's sugges= tion > > elsewhere in this thread). > > > > Obviously, this fixed it. Thanks a lot for the hint. >=20 > Okay, I've found a few problems with udev 067 so far. >=20 > Greg suggested changing comparisons in the udev rules to =3D instead of = =3D, > which makes sense (comparison versus assignment). There are several files= in > the etc/udev directory that don't observe this (frugalware/slackware). >=20 > Secondly, the stuff in run_directory doesn't link: >=20 > # make > cc -DUSE_LOG -O2 -march=3Dk8 -mfpmath=3Dsse -s -pipe -c -o run_directory.o > run_directory.c > ld -s -o udev_run_devd udev_run_devd.o > run_directory.o ../../udev.a ../../libsysfs/sysfs.a > ld: warning: cannot find entry symbol _start; defaulting to 0000000000400= 0f0 > udev_run_devd.o: In function `log_message': > udev_run_devd.c:(.text+0x9d): undefined reference to `vsyslog' > udev_run_devd.c:(.text+0xb6): undefined reference to `getenv' >=20 > GCC 4.0.1/binutils 2.16.91.0.2. I worked around it by linking with gcc in= stead > (like the rest of udev does). This worked fine. I didn't compile udev or = the > run_directory stuff against klibc. >=20 > Finally, I'm sure this is my fault, but modules like "mousedev" and "sd_m= od" > don't get loaded by hotplug/udev when I plug in my mouse or pendrive after > booting. This is because they are not actually dependencies of the modules > usbhid and usb-storage, so they don't get loaded by modprobe. >=20 > udev 053 used to do this, 067 doesn't any more. I've got both the > udev_run_devd and udev_run_hotplugd binaries compiled and in the right pl= ace; > I stole the configuration from the gentoo rules. Any idea what's changed? >=20 > These are my now vastly simplified rules (no other rules files exist): > http://devzero.co.uk/~alistair/50-desktop.rules >=20 > -- > Cheers, > Alistair. >=20 > 'No sense being pessimistic, it probably wouldn't work anyway.' > Third year Computer Science undergraduate. > 1F2 55 South Clerk Street, Edinburgh, UK. > ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net Linux-hotplug-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel