DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

Driver testing and debugging

Testing on a non-dedicated machine

Coding the driver for debugging
    Conditional compiler statements
    Putting debug statements in a driver

Entering a kernel debugger from a driver

Setting up a remote console for debugging
    Setting up a remote serial console on SVR5
    Setting up remote debug console for SVR5
    Setting up a serial terminal console on SCO OpenServer 5

Testing the hardware

Using crash and the kernel debuggers
    Choosing the tool to use
    Configuring the debuggers
    Invoking the debugger
    Useful kdb commands (SVR5 only)
    Debugging a DLKM at load time (SVR5 only)

Testing during installation and initialization
    Using the magic floppy and debugging kernel on SVR5
    SCO OpenServer 5 installation debugging

Common driver problems
    Coding problems
    Boot problems
    Cannot call open() routine (DDI)
    Data structure problems
    Hardware timing errors
    Corrupted interrupt stack
    System configuration problems
    Accessing critical data
    Overuse of local driver storage
    Incorrect DMA address mapping
    Unregistered interrupt handlers in loadable DDI drivers
    Unregistered interrupt handlers in ODDI drivers
    Panic on mod_shr_intn() (DDI)
    Calling functions at wrong context