devfs
[Top] [All Lists]

Re: Symlinks and autoloading (was: Re: [Future] 8.2 errata)

To: Borsenkow Andrej <Andrej.Borsenkow@xxxxxxxxxxxxxx>
Subject: Re: Symlinks and autoloading (was: Re: [Future] 8.2 errata)
From: Richard Gooch <rgooch@xxxxxxxxxxxxxxx>
Date: Sun, 24 Mar 2002 17:02:13 -0700
Cc: Todd Lyons <tlyons@xxxxxxxxxxxxxxxx>, future@xxxxxxxxxxxxxxxx, Thierry Vignaud <tvignaud@xxxxxxxxxxxxxxxx>, devfs mailing list <devfs@xxxxxxxxxxx>
In-reply-to: <1016962761.2954.6.camel@xxxxxxxxxxxxxxxxxxxxx>
References: <20020323005920.GD974@xxxxxxxxxxxxxxxxxx> <20020324001649.GA2114@xxxxxxxxxxxxxxxx> <1016962761.2954.6.camel@xxxxxxxxxxxxxxxxxxxxx>
Sender: owner-devfs@xxxxxxxxxxx
Borsenkow Andrej writes:
> ÷ ÷ÓË, 24.03.2002, × 03:16, Todd Lyons ÎÁÐÉÓÁÌ: 
> > Vincent Danen wrote on Fri, Mar 22, 2002 at 05:59:20PM -0700 :
> > > If anyone has 8.2 errata that needs to go up (I see Tom has posted
> > > some problem reports, but I haven't read them all), please send me the
> > > text to go on the page in the same format as was used for the 8.1
> > > errata, specificly:
> > > 
> > Error Scenario: No version of X works on i815 chipset (Compaq desktop
> > is what I was using).
> > Why: devfs interference
> > Solution: Reboot with devfs=nomount and then both X 4.2.0 and 3.3.6
> > work.
> >
>  
> Has nothing to do with chipset. 
> 
> ... 
> > (EE) GARTInit: AGPIOC_INFO failed (Invalid argument)
> > (EE) I810(0): AGP GART support is not available.  Make sure your kernel
> > has
> >         agpgart support or that the agpgart kernel module is loaded.
> > (EE) Screen(s) found, but none have a usable configuration.
> >  
> ... 
> > 
> > Note that it complains about the agpgart module, but the module _was_
> > loaded automatically.
> >
>  
> No it was not unless you prove different (there was no lsmod output). I
> happen to have i815e motherboard (ASUS CUSL2) and it works ... in
> "normal" case.
> 
> The above happens if somebody manually creates link /dev/agpgart ->
> misc/agpgart _or_ updates from Mandrake 8.1. What happens is devfsd
> restores (dangling) symlink so no LOOKUP is ever generated by devfs and
> no module is ever loaded. Just create the above link manually, reboot
> and you get exactly the same problem.
> 
> Somewhat trivial but working fix is to always provide aliases for both
> compatibility and canonical names. I.e. in our case (verified):
> 
> --- /etc/modules.devfs.orig   Sun Mar 17 21:38:23 2002
> +++ /etc/modules.devfs        Sun Mar 24 12:30:23 2002
> @@ -122,6 +122,7 @@
>  
>  # agpgart
>  alias     /dev/agpgart               agpgart
> +alias     /dev/misc/agpgart  agpgart
>  alias     /dev/dri*          agpgart
>  
>  # Irda devices
> 
> > Hopefully the guys in hardware can repeat this and publish a workaround
> > more elegant than disabling devfs.
> >
> 
> This should ideally be done for _all_ devices (listed in
> modules.devfs) and I actually expect it to be in stock modules.devfs
> as dirributed with devfsd.

Yes. Care to send a patch? ;-) My current modules.devfs is appended,
for your convenience.

                                Regards,

                                        Richard....
Permanent: rgooch@xxxxxxxxxxxxx
Current:   rgooch@xxxxxxxxxxxxxxx

# /etc/modules.devfs
# Richard Gooch  <rgooch@xxxxxxxxxxxxx>         24-MAR-2002
#
# THIS IS AN AUTOMATICALLY GENERATED FILE. DO NOT EDIT!!!
# THIS FILE WILL BE OVERWRITTEN EACH TIME YOU INSTALL DEVFSD!!!
# Modify /etc/modules.conf instead.
# This file comes with devfsd-vDEVFSD-VERSION which is available from:
# http://www.atnf.csiro.au/~rgooch/linux/
# or directly from:
# 
ftp://ftp.atnf.csiro.au/pub/people/rgooch/linux/daemons/devfsd-vDEVFSD-VERSION.tar.gz

###############################################################################
#   Sample configurations that you may want to place in /etc/modules.conf
#
#alias          sound-slot-0            sb
#alias          /dev/v4l                bttv
#alias          /dev/misc/watchdog      pcwd
#alias          gen-md                  raid0
#alias          /dev/joysticks          joystick
#probeall       scsi_hostadapter        sym53c8xx

###############################################################################
#                   Generic section: do not change or copy
#
# All HDDs
probeall  /dev/discs            scsi_hostadapter sd_mod ide-probe-mod ide-disk 
ide-floppy DAC960
alias     /dev/discs/*          /dev/discs

# All CD-ROMs
probeall  /dev/cdroms           scsi_hostadapter sr_mod ide-probe-mod ide-cd 
cdrom
alias     /dev/cdroms/*         /dev/cdroms
alias     /dev/cdrom            /dev/cdroms

# All tapes
probeall  /dev/tapes            scsi_hostadapter st ide-probe-mod ide-tape
alias     /dev/tapes/*          /dev/tapes

# All SCSI devices
probeall  /dev/scsi             scsi_hostadapter sd_mod sr_mod st sg

# All IDE devices
probeall  /dev/ide              ide-probe-mod ide-disk ide-cd ide-tape 
ide-floppy

# IDE CD-ROMs
alias     /dev/ide/*/cd         ide-cd

# SCSI HDDs
probeall  /dev/sd               scsi_hostadapter sd_mod
alias     /dev/sd*              /dev/sd

# SCSI CD-ROMs
probeall  /dev/sr               scsi_hostadapter sr_mod
alias     /dev/sr*              /dev/sr
alias     /dev/scsi/*/cd        sr_mod

# SCSI tapes
probeall  /dev/st               scsi_hostadapter st
alias     /dev/st*              /dev/st
alias     /dev/nst*             /dev/st

# SCSI generic
probeall  /dev/sg               scsi_hostadapter sg
alias     /dev/sg*              /dev/sg
alias     /dev/scsi/*/generic   /dev/sg
alias     /dev/pg               /dev/sg
alias     /dev/pg*              /dev/sg

# Floppies
alias     /dev/floppy           floppy
alias     /dev/fd*              floppy

# RAMDISCs
alias     /dev/rd               rd
alias     /dev/ram*             rd

# Loop devices
alias     /dev/loop*            loop

# Meta devices
alias     /dev/md*              gen-md

# Parallel port printers
alias     /dev/printers*        lp
alias     /dev/lp*              /dev/printers

# Soundcard
alias     /dev/sound            sound-slot-0
alias     /dev/audio            /dev/sound
alias     /dev/mixer            /dev/sound
alias     /dev/dsp              /dev/sound
alias     /dev/dspW             /dev/sound
alias     /dev/midi             /dev/sound

# Joysticks
alias     /dev/js*              /dev/joysticks

# Serial ports
alias     /dev/tts*             serial
alias     /dev/ttyS*            /dev/tts
alias     /dev/cua*             /dev/tts

# Input devices
alias     /dev/input/mouse*     mousedev

# Miscellaneous devices
alias     /dev/misc/atibm       atixlmouse
alias     /dev/misc/inportbm    msbusmouse
alias     /dev/misc/logibm      busmouse
alias     /dev/misc/rtc         rtc
alias     /dev/misc/agpgart     agpgart
alias     /dev/rtc              /dev/misc/rtc

# PPP devices
alias     /dev/ppp*             ppp_generic

# Video capture devices
alias     /dev/video*           /dev/v4l
alias     /dev/vbi*             /dev/v4l

# agpgart
alias     /dev/agpgart          agpgart
alias     /dev/dri*             agpgart

# Irda devices
alias     /dev/ircomm           ircomm-tty
alias     /dev/ircomm*          /dev/ircomm

# Raw I/O devices
alias   /dev/rawctl             /dev/raw


# Pull in the configuration file. Do this last because modprobe(8) processes in
# per^H^H^Hreverse order and the sysadmin may want to over-ride what is in the
# generic file
include /etc/modules.conf

<Prev in Thread] Current Thread [Next in Thread>