Using linux drivers in reactos !
Moderator: Moderator Team
Using linux drivers in reactos !
I know that sounds funny but look at his:
http://www.elpauer.org/?p=653
would be interesting to integrate such a thing in reactos but it's an emulator and depends on winapi functions .
ps. ROSPI(reactos programming interface) means frog could be a green -radioactve frog logo i don't like the name windows api for ractos because it's not the same API it's compatible but not the same
[ external image ]
http://www.elpauer.org/?p=653
would be interesting to integrate such a thing in reactos but it's an emulator and depends on winapi functions .
ps. ROSPI(reactos programming interface) means frog could be a green -radioactve frog logo i don't like the name windows api for ractos because it's not the same API it's compatible but not the same
[ external image ]
-
- Posts: 123
- Joined: Wed Aug 04, 2010 7:34 pm
Re: Using linux drivers in reactos !
They have ported the KVM to Windows by providing Linux' KVM drivers a suitable environment. It's a nice achievement I'd say. But if I personally would do something like this - or integrating Linux drivers in general - I'd use the DDEKit project which was essentially written for exactly this purpose (though it might not yet be suitable to run the KVM drivers).cruonit wrote:I know that sounds funny but look at his:
http://www.elpauer.org/?p=653
would be interesting to integrate such a thing in reactos but it's an emulator and depends on winapi functions .
Regards,
Sven
Free Pascal compiler developer
Re: Using linux drivers in reactos !
just looking for a "hack" (wrappper of an wrapper printing is not resource intensive
The reactos print win api development stopped in 2007
http://www.reactos.org/wiki/Printing
http://www.reactos.org/wiki/ReactOS_Pri ... _(Spoolsv)
The reactos print win api development stopped in 2007
http://www.reactos.org/wiki/Printing
http://www.reactos.org/wiki/ReactOS_Pri ... _(Spoolsv)
Re: Using linux drivers in reactos !
What would be a point for running Linux drivers in NT?
Re: Using linux drivers in reactos !
a workaround for thinks that are not implemented yet I think.Haos wrote:What would be a point for running Linux drivers in NT?
-
- Posts: 123
- Joined: Wed Aug 04, 2010 7:34 pm
Re: Using linux drivers in reactos !
Haos wrote:What would be a point for running Linux drivers in NT?
- Older devices for which no NT driver exists (or at least none for Windows 2003+)
- Support for various devices on non-x86 for which no NT driver exists
- Sometimes the Linux drivers are better than their Windows equivalents(*)
(*) This happened to me with a video converter device (analog video to USB): on Windows there were sometimes hickups in the recordings which resulted in shifted audio whereas on Linux I don't have this problem since that device is supported (and I'm using it much more now than I did on Windows).
Regards,
Sven
Free Pascal compiler developer
Re: Using linux drivers in reactos !
So the idea is to port another kernel/driver architecture, almost from scratch, in order to solve certain corner-cases? Really, from what I experienced, its linux that often needs NT drivers, not the other way around. This doesn't sound economical.
-
- Posts: 123
- Joined: Wed Aug 04, 2010 7:34 pm
Re: Using linux drivers in reactos !
It would not be completely ported from scratch. The DDEKit consists of two parts: an environment for the drivers and the abstraction layer for the underlying operating system. The former already exists for Linux 2.6 in the various DDE implementations (e.g. the L4 one from TU Dresden) while the latter needs to be implemented for ReactOS/Windows.
While this project might not be economically and very "corner casey" it would also be an interesting research project. And if I'd have more time I'd work on this already. But I have currently too many projects running in parallel (both university and Free Pascal related), so I can't do this now. Maybe when I'm finished with university (should be this summer) I'll give this idea a try.
Regards,
Sven
While this project might not be economically and very "corner casey" it would also be an interesting research project. And if I'd have more time I'd work on this already. But I have currently too many projects running in parallel (both university and Free Pascal related), so I can't do this now. Maybe when I'm finished with university (should be this summer) I'll give this idea a try.
Regards,
Sven
Free Pascal compiler developer
Re: Using linux drivers in reactos !
nice So you already have a thesis title, can you try to do this for your thesis ?PascalDragon wrote:It would not be completely ported from scratch. The DDEKit consists of two parts: an environment for the drivers and the abstraction layer for the underlying operating system. The former already exists for Linux 2.6 in the various DDE implementations (e.g. the L4 one from TU Dresden) while the latter needs to be implemented for ReactOS/Windows.
While this project might not be economically and very "corner casey" it would also be an interesting research project. And if I'd have more time I'd work on this already. But I have currently too many projects running in parallel (both university and Free Pascal related), so I can't do this now. Maybe when I'm finished with university (should be this summer) I'll give this idea a try.
Regards,
Sven
Re: Using linux drivers in reactos !
But the kernels are completely different, more so then trying use technique with BSD. It's like trying to stick a car engine in a locomotive.
Stay frosty, Tony Bark.
Re: Using linux drivers in reactos !
pure research i think reactos gives many academic/reasearch possibilitiesZc456 wrote:But the kernels are completely different, more so then trying use technique with BSD. It's like trying to stick a car engine in a locomotive.
-
- Posts: 123
- Joined: Wed Aug 04, 2010 7:34 pm
Re: Using linux drivers in reactos !
The DDEKit was originally developed for L4 and it also has been ported for Minix. Both are microkernel operating systems that differ greatly from Linux/BSD/Unix, so ReactOS/Windows should be doable... (also using NDISWrapper one can use Windows' NDIS drivers on Linux; this is just the other way round and in so far easier that all source is available )Zc456 wrote:But the kernels are completely different, more so then trying use technique with BSD. It's like trying to stick a car engine in a locomotive.
Regards,
Sven
Free Pascal compiler developer
Re: Using linux drivers in reactos !
there is one situation where this could be important - ReactoOS ARM port, the funny thing is that there are more drivers for linux than for windows(RT) - targeting tablets and mobile phones
-
- Posts: 123
- Joined: Wed Aug 04, 2010 7:34 pm
Re: Using linux drivers in reactos !
That's exactly my thought as well...cruonit wrote:there is one situation where this could be important - ReactoOS ARM port, the funny thing is that there are more drivers for linux than for windows(RT) - targeting tablets and mobile phones
Regards,
Sven
Free Pascal compiler developer
Re: Using linux drivers in reactos !
As I understand, "using" Linux drivers may be implemented as running Linux kernel in parallel with ROS in a way linux would handle selected devices and interface corresponfing drivers in ROS (in a way similar to para-virtualization), something like
device <==> linux driver <==> linux application (interface) <==> linux driver (interface) <==> ROS driver (interface) <==> . . .
I see several ways of doing that (though some/all of them may be incorrect/idiotic )
Linux and ROS may run on designated CPU cores (there are some RTOS+Windows projects that do it this way).
Linux and ROS may run under relatively simple hypervisor.
Linux may run in VM running under ROS(*).
CPU schedulers in Linux and ROS may be tweaked to share same CPU.
Whole Linux may be wrapped as a single ROS driver.
BTW, ROS doesn't even need to see physical memory and phisical devices given to Linux and vise versa, just share some pages to exchange data. Of course, there is an issue with interrupts, though I don't believe it could not be resolved.
(*) A while ago I gave network adapter (USB) to VM (VMware) and disabled its Windows driver. That means I gave VM full control over this device. Obviously, IP forwarding on VM provided network communications for the host. Actually that's kind of proof of concept for the "ROS+Liinux" idea above.
device <==> linux driver <==> linux application (interface) <==> linux driver (interface) <==> ROS driver (interface) <==> . . .
I see several ways of doing that (though some/all of them may be incorrect/idiotic )
Linux and ROS may run on designated CPU cores (there are some RTOS+Windows projects that do it this way).
Linux and ROS may run under relatively simple hypervisor.
Linux may run in VM running under ROS(*).
CPU schedulers in Linux and ROS may be tweaked to share same CPU.
Whole Linux may be wrapped as a single ROS driver.
BTW, ROS doesn't even need to see physical memory and phisical devices given to Linux and vise versa, just share some pages to exchange data. Of course, there is an issue with interrupts, though I don't believe it could not be resolved.
(*) A while ago I gave network adapter (USB) to VM (VMware) and disabled its Windows driver. That means I gave VM full control over this device. Obviously, IP forwarding on VM provided network communications for the host. Actually that's kind of proof of concept for the "ROS+Liinux" idea above.
Who is online
Users browsing this forum: Ahrefs [Bot], Oleg Dubinskij and 40 guests