> 3. Type the following:
> mkdir /bak
> cd /kernel/drv
> mv * /bak
> mv /bak/[a-m]* .
> devfsadm
> 4. Repeat #3 but keep eliminating letters of the alphabet.

Nice trick :-)


> What i found was that devfsadm would give me an error
> if I removed the devinfo kernel module

Yep, the devfsadm command needs the devinfo kernel module;
so hiding the devinfo module from the kernel breaks the
devfsadm command.


> but as soon as
> I had ONLY the devinfo module and ran devfsadm and
> the screen corrupted.  I did the following on the
> last iteration:
> 
> mv * /bak
> mv /bak/dev* .
> devfsadm
> 
> at which point the screen would corrupt.


Note that there are also a few drivers in /platform/i86pc/kernel/drv
and in /usr/kernel/drv;  you should hide these from the kernel, too.

I've just tried this with the read/write mounted ramdisk:

  mv /kernel/drv /kernel/drv-
  mkdir /kernel/drv
  ln /kernel/drv-/devinfo* /kernel/drv

(/kernel/drv empty with the exception of devinfo*)

  mv /platform/i86pc/kernel/drv /platform/i86pc/kernel/drv-
  mkdir /platform/i86pc/kernel/drv
  mv /usr/kernel/drv /usr/kernel/drv-
  mkdir /usr/kernel/drv

(/platform/i86pc/kernel/drv and /usr/kernel/drv empty)

  modinfo > /tmp/m1
  devfsadm
  modinfo > /tmp/m2


The difference between the two modinfo commands was
that "devinfo" and "inst_sync" had been loaded.

Now you could try to link back drivers from the "drv-"
subdirectoy back to "drv" and try "devfsadm" until
the text screen corruption starts.

> If I did an ls of /kernel/drv before running
> devfsadm, the only files that would be listed are
> devinfo and devinfo.conf.
> 
> My conclusion is that my screen corruption has
> something to do with either the devinfo module or
> something with devfsadm since I cannot load other
> modules without devinfo being loaded, I can't say for
> sure. 

Hmm, it could also have been any of the driver modules
from /platform/i86pc/kernel/drv or from /usr/kernel/drv
that corrupts the screen.

I think your test with only devinfo* in /kernel/drv has narrowed
it down to /kernel/drv/devinfo, /platform/i86pc/kernel/drv/*
and /usr/kernel/drv/*
This message posted from opensolaris.org
_______________________________________________
opensolaris-help mailing list
[email protected]

Reply via email to