PDA

View Full Version : reverse enginering a webcam driver.



wildman4god
November 11th, 2008, 11:32 PM
I bought a cheap webcam from staples (because it was cheap) and it cam with windows drivers, but I can get it to work on ubuntu. I did some research and found it is made by a company called Sakar (they make a lot of cheapo products for other companies who don't have the means to produce products stamped with their logo) My question is, is there a way to take the windows driver and reverse enginer it so i can turn it into a linux driver.

please note: I have almost no programing experiance and what little i do have is with webpages and basic stamp robots.

dwhitney67
November 11th, 2008, 11:39 PM
...
is there a way to take the windows driver and reverse enginer it so i can turn it into a linux driver.

Yes there is; in fact many drivers that are used with Linux were developed in this fashion. There is also the 'ndiswrapper' utility, but I have only heard of it being used for wireless drivers.



please note: I have almost no programing experiance and what little i do have is with webpages and basic stamp robots.
The lack of experience could impact your ability to develop a driver. Nevertheless, this shouldn't stop you from trying.

loell
November 11th, 2008, 11:44 PM
one-man-writes-linux-drivers-for-235-usb-webcams (http://www.theinquirer.net/en/inquirer/news/2007/04/30/one-man-writes-linux-drivers-for-235-usb-webcams)
that is old news..

i'd imagine, this is close to 300 webcams now, but he started with gphoto then moving forward from there.

LaRoza
November 11th, 2008, 11:44 PM
I bought a cheap webcam from staples (because it was cheap) and it cam with windows drivers, but I can get it to work on ubuntu. I did some research and found it is made by a company called Sakar (they make a lot of cheapo products for other companies who don't have the means to produce products stamped with their logo) My question is, is there a way to take the windows driver and reverse enginer it so i can turn it into a linux driver.

please note: I have almost no programing experiance and what little i do have is with webpages and basic stamp robots.

No. You can't. You can try existing solutions, like ndiswrapper though.

Reverse engineering or disassembling the code of drivers is almost always explicitly against the EULA of the driver.

You can try to find a driver that will work with it though. Look at https://help.ubuntu.com/community/Webcam

Zugzwang
November 12th, 2008, 01:15 PM
Reverse engineering or disassembling the code of drivers is almost always explicitly against the EULA of the driver.


With regards to this, one should mention that some countries (unfortunately not the one that the OP seems to live in) have laws stating that you can always disassemble programs if your aim is to fix compatibility problems (which cannot be overwritten by any EULA). See here (http://http://en.wikipedia.org/wiki/Decompiler#Legality) for details.

loell
November 12th, 2008, 01:24 PM
I would just like to add that you can not in any way, use ndiswrapper for webcam windows drivers.

Sinkingships7
November 12th, 2008, 02:36 PM
And I would like to point out that reverse engineering is never illegal.