- UMDF driver debugging
- Posted by jacob.chang on August 2nd, 2006
Hi,
I am studying UMDF driver now.
I am trying to use WinDbg to trace "echo" driver (sample in WDK).
After application open the driver, I try to set breakpoint into driver,
but WinDbg can not find the code and symbol. (I already set file path.)
WinDbg could debug UMDF driver ?
Also, do UMDF driver cound use assembly for I/O.
I am tring to use : mov al, 60h out 80h, al , but it seems not work.
Jacob
- Posted by Pavel A. on August 2nd, 2006
"jacob.chang" wrote:
Hi,
Drivers (even user mode) are very special pieces of software
that deal with internals of operating system and hardware.
Before attempting to write or debug a driver, it's a good idea to learn
how the OS and hardware work in general, and understand what exactly
you want your driver or device to do.
If you are a student in some school, your teachers can give you a good
advice how to proceed.
Good luck,
--PA
- Posted by Maxim S. Shatskih on August 2nd, 2006
No. UMDF driver cannot directly access the hardware. UMDF is for drivers which
are based on some underlying stack, which is a WDM/KMDF stack. For instance,
UMDF is fine for USB scanners or USB audio.
--
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
maxim@storagecraft.com
http://www.storagecraft.com
- Posted by Tim Roberts on August 4th, 2006
"jacob.chang" <jacob.chang@insydesw.com.tw> wrote:
UMDF is only for "protocol devices" -- devices that have a protocol-based
bus driver in the stack, like USB, 1394, Bluetooth. It will never be
usable for PCI devices.
In fact, in this first release, UMDF can *ONLY* be used with USB devices.
--
- Tim Roberts, timr@probo.com
Providenza & Boekelheide, Inc.
- Posted by jacob.chang on August 4th, 2006
Hmm, if I use KMDF driver, I should sign my driver in the future. (I am
working driver on Vista x64)