After upgrade (emerge -pD world) the device /dev/lp0 (lpt1) is gone. The modules parport and parport_pc are loaded, but there is no device entry. me # dmesg | egrep -i "parport|lp0" parport_pc 00:09: reported by Plug and Play ACPI parport0: PC-style at 0x378 (0x778), irq 7 [PCSPP(,...)] parport_pc 00:09: reported by Plug and Play ACPI parport0: PC-style at 0x378 (0x778), irq 7 [PCSPP(,...)] me # lsmod | grep par parport_pc 26404 0 parport 24576 1 parport_pc Log, after removing parport modules, and loading again .. me # modprobe parport_pc Sep 16 13:10:48 [kernel] pnp: Device 00:09 activated. Sep 16 13:10:48 [kernel] parport_pc 00:09: reported by Plug and Play ACPI Sep 16 13:10:48 [kernel] parport0: PC-style at 0x378 (0x778), irq 7 [PCSPP(,...)] Printing is possible after adding a device every reboot. me # mknod -m 660 /dev/lp0 c 6 0 me # emerge --info Portage 2.1.3.9 (default-linux/x86/2007.0/desktop, gcc-3.4.6, glibc-2.5-r4, 2.6.22-gentoo-r5 i686) ================================================================= System uname: 2.6.22-gentoo-r5 i686 AMD Athlon(tm) 64 Processor 3800+ Timestamp of tree: Tue, 18 Sep 2007 14:20:01 +0000 distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled] app-shells/bash: 3.2_p17 dev-java/java-config: 1.3.7, 2.0.33-r1 dev-lang/python: 2.4.4-r4 dev-python/pycrypto: 2.0.1-r6 sys-apps/baselayout: 1.12.9-r2 sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.61-r1 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10 sys-devel/binutils: 2.17-r1 sys-devel/gcc-config: 1.3.16 sys-devel/libtool: 1.5.24 virtual/os-headers: 2.6.21 ACCEPT_KEYWORDS="x86" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer -fprefetch-loop-arrays -funroll-loops" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c" CXXFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer -fprefetch-loop-arrays -funroll-loops" DISTDIR="/gentoo/distfiles" FEATURES="distcc distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/" LANG="de_DE@Euro" LC_ALL="de_DE@euro" LINGUAS="de en" MAKEOPTS="-j4" PKGDIR="/gentoo/packages/athlon-xp" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*" PORTAGE_TMPDIR="/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/portage/local/layman/vdr-1.5 /usr/portage/local/layman/wrobel /usr/portage/local/layman/dertobi123 /usr/portage/local/layman/vmware /usr/portage/local/layman/voip /usr/local/portage" SYNC="rsync://rsync.de.gentoo.org/gentoo-portage" USE="3dnow X accessibility acl acpi alsa apache2 apm arts asf avi berkdb bigpatch bitmap-fonts bluetooth bzlib cairo cdr cli cracklib crypt cups dbus dga directfb divx4linux doc dri dts dvb dvd dvdr dvdread eds emboss encode esd evo exif fam firefox flash foomaticdb fortran gdbm gif gimp gphoto2 gpm gstreamer hal iconv imagemagick imap imlib ip4200 isdnlog java jikes jpeg kde kdexdeltas kerberos lame latin1 libg++ lirc live lm_sensors mad midi mikmod mmx mng mozilla mp3 mpeg mudflap mysql ncurses nls nptl nptlonly nsplugin nxclient odbc ogg oggvorbis opengl openmp opie pam pcre pda pdf pdflib perl php pic png ppds pppd python qt qt3 qt3support qt4 quicktime rdesktop readline real reflection samba scanner sdl servicetools session setup setup-plugin spell spl sse sse2 ssl svg swat tcpd tiff truetype truetype-fonts type1-fonts unicode usb vcd vdr vfat vhosts vidix vorbis wavpack win32codecs wmf x86 xext xine xml xml2 xorg xv xvid zlib" ALSA_CARDS="via82xx" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse joystick vmmouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de en" LIRC_DEVICES="serial" USERLAND="GNU" VIDEO_CARDS="fbdev glint nv v4l vesa vga vmware glrx mach64 nvidia r128 radeon" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS Reproducible: Always
Does /sys contains anything with name lp0 - like /sys/class/printer/lp0. If yes, then udevinfo -a -p <PATH> could help.
(In reply to comment #1) > Does /sys contains anything with name lp0 - like /sys/class/printer/lp0. > > If yes, then > udevinfo -a -p <PATH> > could help. > Sorry, there is no directory /sys/class/printer/ .. Adding usb devices i.e. my usbstick works fine. I'm getting a new device /dev/usbstick as defined in my local-udev-rules. But i find parport here: me # find /sys -iname 'parport*' /sys/module/parport_pc /sys/module/parport /sys/module/parport/holders/parport_pc /sys/bus/pnp/drivers/parport_pc /sys/bus/pci/drivers/parport_pc /sys/bus/platform/drivers/parport_pc me # udevinfo -a -p /sys/bus/pci/drivers/parport_pc Udevinfo starts with ... parent device. looking at device '/bus/pci/drivers/parport_pc': KERNEL=="parport_pc" SUBSYSTEM=="drivers" DRIVER=="" looking at parent device '/bus/pci/drivers': KERNELS=="drivers" SUBSYSTEMS=="" DRIVERS=="" looking at parent device '/bus/pci': KERNELS=="pci" SUBSYSTEMS=="subsystem" DRIVERS=="" ATTRS{drivers_autoprobe}=="1"
Please attach kernel-config and dmesg output also.
Created attachment 131384 [details] output og dmesg
Created attachment 131385 [details] kernel config
Created attachment 131387 [details] dmesg after rmmod and modprobe parport
Your first dmesg attachement is useless, as the ringbuffer is filled with just usb-storage messages. Either attach dmesg from right after booting (if messages are not yet overwritten), or /var/log/dmesg if it exists and contains useful data. As I still do not see any problems maybe it helps to run udevmonitor --env while loading the module. Issue I see: you have enabled parport ide drivers.
Created attachment 131429 [details] /var/log/dmesg after reboot me # udevmonitor --env udevmonitor will print the received events for: UDEV the event which udev sends out after rule processing UEVENT the kernel uevent UEVENT[1190306827.796019] add /module/parport (module) ACTION=add DEVPATH=/module/parport SUBSYSTEM=module SEQNUM=913 UEVENT[1190306827.797691] add /module/parport_pc (module) ACTION=add DEVPATH=/module/parport_pc SUBSYSTEM=module SEQNUM=914 UEVENT[1190306827.798404] add /bus/platform/drivers/parport_pc (drivers) ACTION=add DEVPATH=/bus/platform/drivers/parport_pc SUBSYSTEM=drivers SEQNUM=915 UEVENT[1190306827.798954] add /bus/pnp/drivers/parport_pc (drivers) ACTION=add DEVPATH=/bus/pnp/drivers/parport_pc SUBSYSTEM=drivers SEQNUM=916 UEVENT[1190306827.800411] add /bus/pci/drivers/parport_pc (drivers) ACTION=add DEVPATH=/bus/pci/drivers/parport_pc SUBSYSTEM=drivers SEQNUM=917
(In reply to comment #8) > Created an attachment (id=131429) [edit] > /var/log/dmesg after reboot > > me # udevmonitor --env > udevmonitor will print the received events for: > UDEV the event which udev sends out after rule processing > UEVENT the kernel uevent > > UEVENT[1190306827.796019] add /module/parport (module) > ACTION=add > DEVPATH=/module/parport > SUBSYSTEM=module > SEQNUM=913 > > UEVENT[1190306827.797691] add /module/parport_pc (module) > ACTION=add > DEVPATH=/module/parport_pc > SUBSYSTEM=module > SEQNUM=914 > > UEVENT[1190306827.798404] add /bus/platform/drivers/parport_pc (drivers) > ACTION=add > DEVPATH=/bus/platform/drivers/parport_pc > SUBSYSTEM=drivers > SEQNUM=915 > > UEVENT[1190306827.798954] add /bus/pnp/drivers/parport_pc (drivers) > ACTION=add > DEVPATH=/bus/pnp/drivers/parport_pc > SUBSYSTEM=drivers > SEQNUM=916 > > UEVENT[1190306827.800411] add /bus/pci/drivers/parport_pc (drivers) > ACTION=add > DEVPATH=/bus/pci/drivers/parport_pc > SUBSYSTEM=drivers > SEQNUM=917 > The udevmonitor log first shows: Only the driver gets loaded (and listed in sysfs). No other device dirs get created - so udev cannot create device nodes in /dev. Second: I see no udev events - do you have udevd running? My guess is: It can have something todo with parport IDE catching the parpart.
Did you compile "Parallel printer support". I guess the module-name will be printer or lp.
After starting udevmonitor, I found, that there are no messages when I do 'modprobe lp' So I decided to a 'make clean' and rebuild my kernel and all modules using my last kernel config file. I don't know why but after rebooting my machine everything works fine ?! The bug should be closed now ... Matthias, vielen Dank für deine Mühen. Gruß Henning