Re: man page sane-scsi

From: Bob van der Poel (bvdpoel@uniserve.com)
Date: Thu Jul 27 2000 - 19:27:20 PDT

  • Next message: Bernhard Mogens Ege: "sanei_scsi issue"

    Douglas Gilbert wrote:
    >
    > Bob van der Poel wrote:
    > >
    > > 1. Just a comment on this page. In the linux section it talks about
    > > scanners not being turned on at boot/powerup and using the line:
    > >
    > > echo "scsi add-single-device 2 0 5 0" > /proc/scsi/scsi
    >
    > Works for me. Assuming the aha152x is the only SCSI adapter
    > in your system then that "2" above should be a "0".
    >

    The point I was making is just that modprobe... will work as well.

    > > I've not been able to get this to work. However, simply doing something
    > > like:
    > >
    > > modprobe /lib/modules/...path to scsi mods/aha152x.o
    > >
    > > works perfectly. Might want to add this to the docs.
    > >
    > > 2. Now, can someone help with this....I never needed to do the above
    > > until just recently when I added cd-burner using the pseudo=scsi driver.
    > > I have the following in my /etc/conf.modules:
    > >
    > > alias scsi_hostadapter aha152x
    > > post-install sg modprobe aha152x
    > > options aha152x aha152x=0x140,9
    > >
    > > and I'm thinking that I need to change it.
    >
    > Assuming its an IDE cdwriter and you're using the ide-scsi pseudo
    > driver then you shouldn't need to anything with those lines
    > in /etc/conf.modules .
    >
    > You may need to convince the IDE subsystem not to take control
    > of the cd writer. This can be done by:
    > - not building in the ide-cd driver
    > - building in that driver and putting a line like this into lilo:
    > append="hdb=ide-scsi"
    > - build the ide-cd driver as a module and if it must be loaded
    > (e.g. to control another cd reader) then invoke it like this:
    > modprobe ide-cd ignore=hdb
    >
    > [N.B. In the forthcoming lk 2.4 that append in the second bullet
    > changes to: append="hdb=scsi" ]
    >
    > > But, I don't see what?? Oh,
    > > should the 'sg' be changed to the 'sgb' since this is now my scanner
    > > device? I really don't understand this entire sg* stuff...I was under
    > > the impression that the whole works was supposed to be dynamic, but here
    > > I am still manually setting things up. Had to set the cdrom to use
    > > 'sga'...
    >
    > No, don't change 'sg' to 'sgb'
    >
    > Look at the output of 'cat /proc/scsi/scsi'. The order that devices
    > appear there is the same order sg allocates device numbers (i.e.
    > sg0, sg1 ...) or the now deprecated driver letters (i.e. sga, sgb ...).
    > If the ide-scsi and aha152x drivers are modules (which seems to
    > be the case) then by controlling the order of the module loads
    > then you will control which device is sg0 and sg1 .

    Yes, they are both modules and the /proc/scsi/scsi order is the
    expected one with the scanner on sgb and the cd on sga.

    I suppose that if changed the order in my /etc/conf.modlues the order
    of the driver letters would reverse. Since I've not set my /etc/sane.d/microtek.conf
    file to have the line /dev/sgb I better not change the conf.modules.

    But, I still don't understand why I don't get auto-magic loading/sensing
    of the scanner like I used to. FWIW, the lines I added to get the writer
    working are:

     options ide-cd ignore=hdd # tell the ide-cd module to ignore hdd
     alias scd0 sr_mod # load sr_mod upon access of scd0
     pre-install sg modprobe ide-scsi # load ide-scsi before sg
     pre-install sr_mod modprobe ide-scsi # load ide-scsi before sr_mod
     pre-install ide-scsi modprobe ide-cd # load ide-cd before ide-scsi

    I think this came right out of the cdburner-howto.

    >
    > Clear?

    Ya, sure... But thanks for taking time to reply.

    Well, I'm off on a brief holiday. Maybe when I get back I can get
    this to work perfectly.

    -- 
       __
      /  )      /         Bob van der Poel
     /--<  ____/__        bvdpoel@uniserve.com
    /___/_(_) /_)         http://users.uniserve.com/~bvdpoel
    

    -- Source code, list archive, and docs: http://www.mostang.com/sane/ To unsubscribe: echo unsubscribe sane-devel | mail majordomo@mostang.com



    This archive was generated by hypermail 2b29 : Thu Jul 27 2000 - 19:38:21 PDT