Porting Linux Apps to My OS!

Programming, for all ages and all languages.
Post Reply
Speewave
Member
Member
Posts: 40
Joined: Fri Jun 22, 2007 1:11 pm
Location: The USA
Contact:

Porting Linux Apps to My OS!

Post by Speewave »

This is thinking ahead. Really ahead... but once i get my Kernel ready to rumble on my Testbed PC. can i port things from linux such as:

X Window System
Drivers
NDISWrapper
ALSA Drivers!!!!
SDL
and Java?
User avatar
mathematician
Member
Member
Posts: 437
Joined: Fri Dec 15, 2006 5:26 pm
Location: Church Stretton Uk

Post by mathematician »

That all depends upon whether you can get hold of the source code, and upon whether the apps make use of any capabilities specific to Linux.

You will only be able to use Linux drivers if your OS is designed from the outset to accept them.
Speewave
Member
Member
Posts: 40
Joined: Fri Jun 22, 2007 1:11 pm
Location: The USA
Contact:

Post by Speewave »

mathematician wrote: That all depends upon whether you can get hold of the source code, and upon whether the apps make use of any capabilities specific to Linux.

You will only be able to use Linux drivers if your OS is designed from the outset to accept them.
I See what you are saying. but how can i make my OS Compatable. should i get some a linux distro source like Debian and get the driver code from that. i was going to get Network Code there too for TCP/IP and PPP link!
User avatar
deadmutex
Member
Member
Posts: 85
Joined: Wed Sep 28, 2005 11:00 pm

Post by deadmutex »

Your OS would somehow need to support(or pretend to support) the different system calls that linux uses.
I See what you are saying. but how can i make my OS Compatable. should i get some a linux distro source like Debian and get the driver code from that. i was going to get Network Code there too for TCP/IP and PPP link!
In order to use linux driver code, you would need to implement a compatible device interface. A tutorial for making your own interface can be found at:
http://www.osdever.net/tutorials/pdf/device.pdf
Post Reply