[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference turris::digital_unix

Title:DIGITAL UNIX(FORMERLY KNOWN AS DEC OSF/1)
Notice:Welcome to the Digital UNIX Conference
Moderator:SMURF::DENHAM
Created:Thu Mar 16 1995
Last Modified:Fri Jun 06 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:10068
Total number of notes:35879

9988.0. "Device driver problems: ed100 example" by HYDRA::VANORDEN () Thu May 29 1997 20:28

    
    Hello,
    
    The following is from a customer having difficulty writing a
    device driver.  As a form of troubleshooting, he used the ed100 example
    provided in  /usr/examples/devdriver and is STILL encountering problems
    loading the driver.
    
    Looks to me like he is following the steps outlined in the Device
    Driver Tutorial...Can someone help?
    
    Thanks,
    
    Donna
    
    ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    
    Donna,
    
      The following are the commands used to create a new kernel
    for ED100.
    
    mkdir /usr/sys/io/ED100
    cd /usr/sys/io/ED100
    cp /usr/examples/devdriver/ed100/edpseudo.c .
    cp /usr/examples/devdriver/ed100/edpseudoreg.h .
    cp /usr/examples/devdriver/ed100/files .
    cd /usr/sys/conf
    vi BINARY.list
    i
    /usr/sys/io/ED100:
    :wq
    cd /usr/sys/io/ED100
    cp /usr/examples/devdriver/ed100/sysconfigtab .
    cd /usr/sys/conf
    ./sourceconfig BINARY
    cd /usr/sys/BINARY
    make ed.mod
    cd /usr/sys/conf
    doconfig
       - kernel configuration name : ED100DRV
       - select no new kernel options
    cd /usr/sys/io/ED100
    sysconfigdb -a -f sysconfigtab ed
    cd /usr/sys/conf
    vi ED100DRV.list
    i
    /usr/sys/io/ED100:
    :wq
    cd /usr/sys/conf
    doconfig -c ED100DRV
       - kernel configuration name : ED100DRV
       - select no new kernel options
       - Edit configuration No
    
    cp /usr/sys/ED100DRV/vmunix /vmunix
    cd /
    shutdown -h now
    >>> boot -fi "vmunix"
    
    
                                                           
T.RTitleUserPersonal
Name
DateLines
9988.1Not much to go on hereRHETT::PARKERFri May 30 1997 11:1424
    
    Hi, Donna.
    
    You did not mention which version of Digital UNIX this is. There
    were a couple of small bugs in edpseudo.c that caused a couple of
    minor problems. I'll email you a fixed version. 
    
    From what you have shown in .0, there is very little indication
    of exactly what problem the customer is having. The following command
    will give us a lot more to go on:
    
    # sysconfig -v -c edpseudo 
    
    And, then post what gets printed in the console/dxconsole. Or, it might
    be a better idea to have the customer send you a detailed description
    of the problems they are having and post that here. 
    
    Best Regards,
    
    Lee Parker                       [email protected]
    Digital UNIX Device Driver & Realtime Support
    Realtime Expertise Center        1-800-354-9000