devfs
[Top] [All Lists]

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

To: Todd Lyons <tlyons@xxxxxxxxxxxxxxxx>
Subject: Symlinks and autoloading (was: Re: [Future] 8.2 errata)
From: Borsenkow Andrej <Andrej.Borsenkow@xxxxxxxxxxxxxx>
Date: 24 Mar 2002 12:39:15 +0300
Cc: future@xxxxxxxxxxxxxxxx, Thierry Vignaud <tvignaud@xxxxxxxxxxxxxxxx>, devfs mailing list <devfs@xxxxxxxxxxx>
In-reply-to: <20020324001649.GA2114@xxxxxxxxxxxxxxxx>
References: <20020323005920.GD974@xxxxxxxxxxxxxxxxxx> <20020324001649.GA2114@xxxxxxxxxxxxxxxx>
Sender: owner-devfs@xxxxxxxxxxx
В Вск, 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.


-andrej

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