Porting a Linux Driver to Solaris


 
Thread Tools Search this Thread
Operating Systems Solaris Porting a Linux Driver to Solaris
# 1  
Old 06-29-2009
Porting a Linux Driver to Solaris

Hi all,

Has anyone experience with proting a Linux driver (C-code) to Solaris 10?

I have a Sunix SATA card with a inicio1622 chipset, but no driver available. From the website of inicio I downloaded the drivercode for Linux 2.4.

Having done some investigation I found a Solaris driver skeleton in C, but the hard part is in porting the driver to the Solaris structure.

Any advice is welcome.

Thank you.
longwave
# 2  
Old 06-29-2009
The first thing I would do is check if you can find a BSD driver, it will be much closer to Solaris that Linux. It's usually a lot of work to port drivers from Linux to Solaris and you need to know the driver systems and how to program them for both to make it work.
# 3  
Old 06-29-2009
Be also aware that the so called viral GPL license Linux drivers use forbids you to redistribute any Solaris porting work you do .
If a BSD drivers exists, there are no legal issues porting it.
# 4  
Old 06-30-2009
There is no BSD driver available as such, and I wanted to convert it for personal use and not getting benefits of the converted driver.
longwave
# 5  
Old 06-30-2009
I would suggest the best resources would be in the discussions on opensolaris.org, I think, without checking that the correct group would be drivers-discuss or driver-discuss ( I can't remember if there is an 's' ) The guys there have loads of experience and resources to get you started and you never know, someone else may have done some of what you need or something very similar.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Porting script from Solaris to Linux

I have a script which has commands that are located in different paths on my Linux o/s than on Solaris. For example, to make uname work, I need to do it this way in Solaris: my $host= `/usr/bin/uname -n` But in Linux it is: my $host = `/bin/uname -n`I have this issue with at least 5... (8 Replies)
Discussion started by: newbie2010
8 Replies

2. Solaris

Porting graphical Solaris application to Linux

I don't expect any quick answers, but if people have links to resources I can investigate I'd be extremely appreciative. Here is what we have today: The "application" is a multi-process train control system that uses the Unix desktop, currently CDE, several motif-based applications and sound,... (8 Replies)
Discussion started by: paz9
8 Replies

3. Shell Programming and Scripting

Porting from Solaris to Linux

Can any one please help the use of "cu command in Solaris" and as well as in Linux :confused: (1 Reply)
Discussion started by: sabee.prakash
1 Replies

4. Filesystems, Disks and Memory

Porting OSE to Linux

Hi, I was trying to port efs_mount(OSE system call) to a LInux.The efs_mount function is used to mount a volume on the indicated device dev.Upon successful completion of this OSE sytem call a volume manager (VM) will be available through which files on this volume are accessed. The Syntax for... (4 Replies)
Discussion started by: roshantraj30
4 Replies

5. UNIX for Advanced & Expert Users

Help with porting a linux SNC driver to OSX

Hi guys! I'm a regular joe, so this thread might be in the wrong section and if I appear dumb it mostly because I am..and have lack of knowledge about the unix world. :) Please move the tread if needed. To the problem. We are allot of people in the OSx86 community that need a linux driver... (0 Replies)
Discussion started by: Blackshore
0 Replies

6. Linux

when porting from HP-UX to Linux

helo, i m porting HP-UX socket application to Linux SSL-socket application. I have use htonl() in HP-UX. so when i use it in Linux, data transf is not done and application become soem time crashed. now when i remove htonl() in linux, then i got data but it will not proper order or some data may... (1 Reply)
Discussion started by: amitpansuria
1 Replies

7. Programming

porting solaris to BSD

Hi i have a C program that i need to port from solaris to BSD The flags i pass on CC in solaris are -lsocket -lnsl I use sockets and threads anyone know flags for BSD (1 Reply)
Discussion started by: yngwie
1 Replies

8. UNIX for Dummies Questions & Answers

HP-UX to linux porting

Hi all, i wanted to port some HP-UX code to linux. can anybody point to some documents or resources that would help me in doing the porting.. thanks in advance Arun Prakash (0 Replies)
Discussion started by: arunprakash
0 Replies

9. Programming

Porting to solaris

I have ported a c program to solaris. When I run , it gives me segmentation fault error at line :- memcpy ((char *)a_string ,(char *)0, MAX_READ ) ; originally this was in reliant unix as :- memcpy ( a_string , 0 , MAX_READ ) ; Can somebody help me about this ? (1 Reply)
Discussion started by: suds19
1 Replies
Login or Register to Ask a Question