More help needed with loadable drivers.

Michael Thompson miket at bnrmtv.UUCP
Wed Apr 12 03:23:56 AEST 1989


Hello everyone,

I have written my RAM driver/ disk emulator, but I am having problems loading
the device driver into the kernel.  After I use the masterupd(1) command
to create a character driver and block driver definition, I use the
following command:

# cp ram.o /etc/lddrv
# cd /etc/lddrv
# ./lddrv -av ram

allocated: 0x1000 bytes starting at 0x5c000 for device ram, B:1 C:-1 id:3
BIND failed: invalid argument 

There must be something I don't know about loadable drivers.  I can load,
un-load, bind and un-bind the dc73 (MS-DOS coprocessor loadable driver) using
the lddrv(1) and it seems to work fine.  Are there certain structures which
must be present in the object file of the driver which I am omitting?  The
notes on loadable drivers from AT&T don't really go into this kind of detail
except for the function entry points.  If someone can help me, I'll mail
off the source for driver, but I will not post it until I am very confident
that it works. 

I really hope to resolve the mount point issue soon so I can proceed with
work on the SCSI driver and adapter.

Mike Thompson
-----------------------------------------------------------------------------
			  |  Michael P. Thompson, Member Scientific Staff   |
		 ###      |  BNR/Northern Telcom, Dept. 4Z15                |
####  #####    #########  |  685A E. Middlefield Road                       |
############ ###########  |  Mountain View, CA  94039-7277                  |
####    ####    ####      |  PH. (415) 940-2575  FAX. (415) 966-1067        |
####    ####### ########  |        amdahl! --\                              |
####     #####   ######   |  UUCP. ames! ----->-- bnrmtv!miket              |
			  |        hplabs! --/                              |
-----------------------------------------------------------------------------



More information about the Comp.sys.att mailing list