Page 1 of 1
Drivers?
Posted: Thu Feb 16, 2012 9:25 am
by arseniuss
Hi, everyone!
I just read your discussion about UDI at 2010 and didn't understand - are there some UDI drivers and implemented interface or not?
But in spite of UDI, where can I get drivers for my hobby OS if I am too lazy to write drivers like video driver etc.?
Re: Drivers?
Posted: Thu Feb 16, 2012 9:37 am
by Solar
arseniuss wrote:...are there some UDI drivers and implemented interface or not?
There is a reference implementation, at the very least. Some drivers, too.
But in spite of UDI, where can I get drivers for my hobby OS if I am too lazy to write drivers like video driver etc.?
Well, just make your kernel fully Linux compatible, and use the Linux drivers. Or make it Windows compatible, and use the Windows drivers.
No, wait...
...if I am too lazy...
Don't start OS development. We're talking man-years of work before you can do anything sensible with your OS, drivers or not. If you talk about "lazy" before you even get started, save the effort.
Re: Drivers?
Posted: Thu Feb 16, 2012 11:07 am
by nuke
My TIP:Dont be lazy ,be hardworking.All of them who suceed came through hardwork.
I had read a lot to make myself through OSdevelopment.
Dont be lazy, hope you know many many moral stories.
Re: Drivers?
Posted: Fri Feb 17, 2012 3:17 am
by arseniuss
I was kidding about laziness 'cause I have only one life and I can't write all drivers for every machine.
But I'm searching for interface which allows me don't worry about drivers.
And also I wanted know what are happening with UDI, CDI. Does anyone implementing UDI and really testing?
Re: Drivers?
Posted: Fri Feb 17, 2012 3:27 am
by Kevin
CDI is actively used by some OSes, and even though there haven't been many changes or new drivers lately, developers are still around and would pick it up again if they need anything new for their OSes.
But, of course, it's not big and professional like UDI...
Re: Drivers?
Posted: Fri Feb 17, 2012 3:34 am
by Solar
Start with
UDI.
The short of it is, the "official" UDI project is dormant, as the major players have withdrawn their funding when the dotcom bubble went "pop". But the architecture, the specifications etc. are there.
Linux has issues regarding the license and the kernel / driver interface, Windows drivers are out of the question for obvious reasons, I don't know how well BSD drivers could be made to work outside the BSD kernel / POSIX environment, and I also don't know how well the
Extensible Driver Interface or CDI efforts fared, or how well-designed they are.
Re: Drivers?
Posted: Fri Feb 17, 2012 4:18 am
by Kevin
I think it doesn't hurt that Linux, Windows etc. are not using UDI (at least not in the context of this question). It would be more important whether other hobby OSes here around are using it, so that you can discuss and actually share stuff with them. Last time I checked, Combuster had some first parts, but most other people were discussing on a mostly theoretical basis.
Re: Drivers?
Posted: Fri Feb 17, 2012 5:12 am
by arseniuss
Last time I checked, Combuster had some first parts, but most other people were discussing on a mostly theoretical basis.
So there is some example code of UDI implemented?
Re: Drivers?
Posted: Fri Feb 17, 2012 5:50 am
by Solar
*sigh*
You haven't read
UDI, have you?
There's a complete reference implementation available on SourceForge.
Re: Drivers?
Posted: Fri Feb 17, 2012 6:33 am
by arseniuss
I meant operating system which uses UDI...
And I'm going to print UDI documentation anyway.
Re: Drivers?
Posted: Fri Feb 17, 2012 6:47 am
by Solar
arseniuss wrote:I meant operating system which uses UDI...
I am not sure what you mean with "operating system which uses UDI". The reference implementation supports Linux (2.4 kernel), FreeBSD, Solaris, and UnixWare.
Re: Drivers?
Posted: Fri Feb 17, 2012 7:34 am
by arseniuss
I meant hobbyists.
Re: Drivers?
Posted: Fri Feb 17, 2012 8:08 am
by Solar
...aaaaand what difference would that make, whether the UDI implementation is by a hobbyist or the UDI people themselves?
Re: Drivers?
Posted: Fri Feb 17, 2012 9:27 am
by arseniuss
Based on basics and not so complicated which makes it easier understand and implement...
Re: Drivers?
Posted: Fri Feb 17, 2012 9:42 am
by Solar
I feared something like that.
UDI is based on an API. A contract.
If you dumb down your UDI implementation, chances are the driver you take from somewhere else won't work on top of that. And if you write drivers specific to a dumbed-down version of UDI, it wouldn't benefit those who employ a full-fledged implementation. You would effectively create a fork, harming the whole concept of UDI.
UDI is not simple. Nor is it well-maintained. If that scares you, don't use it.