lkml.org 
[lkml]   [2000]   [Feb]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patches in this message
/
Date
From
SubjectDevfs/modules/SCSI problems
Hi!

Slowing down the development for 2.4, eh? ;-) Anyway, I like this
"last minute addition". :-) In fact I used devfs several times and
even contributed a little to it. To correct my e-mail address,
here is a patch:

**************************************
--- linux/Documentation/filesystems/devfs/ChangeLog.old Fri Feb 18 08:49:04 2000
+++ linux/Documentation/filesystems/devfs/ChangeLog Fri Feb 18 08:49:57 2000
@@ -913,7 +913,7 @@
Changes for patch v105

- Unregister SCSI host from <scsi_host_no_list> in <scsi_unregister>
- Thanks to Zoltan BOSZORMENYI <zboszor@mol.hu>
+ Thanks to Zoltán Böszörményi <zboszor@mail.externet.hu>

- Don't save /dev/log in rc.devfs

**************************************
I have some problems with it now. I couldn't log in as root. Again. :-)
However, adding [1-8] to /etc/securetty helped. /dev/tty[1-8] are symlinks
to /dev/vc/[1-8]... Just in case someone else has fallen into this trap.

Now the real problems. The provided modules.conf sample does not work,
I mean it does not load all SCSI drivers correctly for me. Try this patch
against the provided modules.conf for e.g. SCSI disks.

**************************************
--- modules.conf.devfs Fri Feb 18 09:15:24 2000
+++ modules.conf Fri Feb 18 11:02:04 2000
@@ -8,7 +8,10 @@
alias gen-watchdog pcwd
alias gen-md raid0
alias /dev/joysticks joystick
-probeall scsi-hosts sym53c8xx
+alias scsi-hosts sym53c8xx
+add above scsi-hosts ppa
+alias parport_lowlevel parport_pc
+options parport_pc io=0x378 irq=7

###############################################################################
# Generic section: do not change
@@ -29,7 +32,8 @@
probeall /dev/ide ide-probe-mod ide-disk ide-cd ide-tape ide-floppy

# SCSI HDDs
-probeall /dev/sd scsi-hosts sd_mod
+below sd_mod scsi-hosts
+alias /dev/sd sd_mod
alias /dev/sd* /dev/sd

# SCSI CD-ROMs
**************************************
This way it works for me with and without devfs. E.g. "mdir z:"
(Z: refers to /dev/sda4) nicely loads sym53c8xx and ppa drivers
in this order. Maybe it is the fault of modutils-2.3.9 but using
simply "probeall scsi-hosts sym53c8xx ppa" didn't work.
Which is a shame because this "probeall" thing would be a shorter
and nicer way to describe what I want to load and in what order.

Another problem is that when I try to rmmod all SCSI drivers
_second time_ scsi_mod gets stuck (uninitialized). At the first time
all modules can be removed. But this is not devfs' fault, it happens
with other late 2.3.x as well.

And a note at the end. I start devfsd on boot and I had to put a
"sleep 2" after starting it because the boot sequence stops at
"Mounting local filesystems" twice from five. It is with devfsd-1.3.1.
I looked at devfsd.c and before it forks, it generates the register
events for the already existing device nodes but the events are
handled by the child process. This first round of events should be
handled by the parent process so the startup scripts will not
need this (unreliable amount of) delay. Maybe do_scan_and_service()
should send a "finished startup" event after the last device node
and before the fork() main() should service the events until this
"finished startup"...

Regards,
Zoltan Boszormenyi



-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:56    [W:0.036 / U:0.104 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site