Jump to content
11 posts in this topic

Recommended Posts

Firstly, are you, or do you know anyone that is REALLY good with UNIX/LINUX?

SticMAN

 

I don't really know anything about Unix, but I was just wondering if it exist some kind of guide in how to do it. I mean I don't expect to be an easy task to do.

It is almost impossible.

MacOSX drivers contains classes joined to MacOSX IOKIT classes.

If you have sources of a Windows driver you can extract hardware dependent part and use it to write a MacOSX driver from initial.

Thats all. :P

It is almost impossible.

MacOSX drivers contains classes joined to MacOSX IOKIT classes.

If you have sources of a Windows driver you can extract hardware dependent part and use it to write a MacOSX driver from initial.

Thats all. :lol:

 

What about if the driver that I want to make, it is available as a linux driver, could this make it more easy?

 

Here is a link of what I am talking about: http://groups.google.com/group/fa.linux.ke...e70d8a44044525f

 

The driver that I would like to make is for a HAUPPAUGE HVR-1800

No this will not be easier!

 

The easiest thing would be writing an own driver under mac osx. What steps do you need ?

 

1. you need knowledge of coding:

For drivers you need to be a good programmer in c++ and (not often) assembler!

 

2. under windows, there are tools available for showing functions of driver files (dll and .sys/.inf information)

Get the functions and write them under mac osx

 

3. test it

 

 

the easiest way: ask for the source of the driver, explain that you need the device for an mac osx system. If you get it you will be able to compile it under mac osx -> i think you only need to fix up some compiler issues.

the easiest way: ask for the source of the driver, explain that you need the device for an mac osx system. If you get it you will be able to compile it under mac osx -> i think you only need to fix up some compiler issues.

 

That sound sweet but asking to the company that make the driver for windows, for the source code is like asking to Apple if they can get me for free a copy of OS X. Hauppauge will of course denied me because if they can't develop a driver for Apple how in hell I will be able to do it? ;) I appreciate your suggestion and thought but I don't know really if it possible to do it.

That sound sweet but asking to the company that make the driver for windows, for the source code is like asking to Apple if they can get me for free a copy of OS X. Hauppauge will of course denied me because if they can't develop a driver for Apple how in hell I will be able to do it? :rolleyes: I appreciate your suggestion and thought but I don't know really if it possible to do it.

 

Hauppage can write drivers for OS X, but its not worth the time it would take to do it. They probably won't give you actual source code, but if you ask nicely enough, you may be able to get whatever documentation they have available about the hardware used on the card.

 

 

It's quite possible to write drivers without existing documentation. You'll need a background in x86 assembly and C, and the existing binary drivers for some other operating system. What you do then is run them through a decompiler, spend a fair amount of time figuring out what does what and then writing your own drivers from scratch for the platform of your choice.

If you get it you will be able to compile it under mac osx -> i think you only need to fix up some compiler issues.

There is no way to fix up "some compiler issues" and magically get it to build for OSX. Not even close. There is much, much, much, much, much, much more than that involved.

How to make a driver for TVTuner?

1. Get a documentation or working C++ sources about the chip: what at inputs, what at outputs.

2. XCode ->New Project ->IOKit driver.

3. Create two classes - TVHardware and TVUserClient

4. TVHardware codes may be copied from Linux or from Windows as you have.

5. TVUserClient must be copied from any other MacOSX TVTuner driver

6. Write your own or use existing TV application.

 

Go!

 

I have a dream to write a driver for Pinnacle PCI tuner but I have no any documentation about Philips SAA713x.

@BigPimpin

 

Sure you can!

Ive done it many times, like writing drivers for my unsupported soundcard.

 

You need to build a project like the previus post, and then use the sourcecode of the linux or windows distribution and then fix up the compiler issues, like errors that he caanot find WINAPI definitions and so on. Fix this up, remove the win32 options and recompile it. For a good programmer it takes not a lot of time, absolutely 2 days for my driver. And i know what i do, i am developing many years using the win32 api and many low lewel stuff like scsi programming using aspi and nor SPTI from MS.

 

Recompiling the sources under mac osx is not very hard.

×
×
  • Create New...