Drivers?

Discussions on more advanced topics such as monolithic vs micro-kernels, transactional memory models, and paging vs segmentation should go here. Use this forum to expand and improve the wiki!
Post Reply
User avatar
arseniuss
Member
Member
Posts: 32
Joined: Tue Aug 10, 2010 12:13 am
Location: Latvia
Contact:

Drivers?

Post 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.?
Hobby stuff (suckless libs, compilators, game engines, kernels): github. Work @ zabbix: arseniuss@zabbix
User avatar
Solar
Member
Member
Posts: 7615
Joined: Thu Nov 16, 2006 12:01 pm
Location: Germany
Contact:

Re: Drivers?

Post 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.
Every good solution is obvious once you've found it.
nuke
Posts: 10
Joined: Thu Feb 16, 2012 3:58 am

Re: Drivers?

Post 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.
User avatar
arseniuss
Member
Member
Posts: 32
Joined: Tue Aug 10, 2010 12:13 am
Location: Latvia
Contact:

Re: Drivers?

Post 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?
Hobby stuff (suckless libs, compilators, game engines, kernels): github. Work @ zabbix: arseniuss@zabbix
Kevin
Member
Member
Posts: 1071
Joined: Sun Feb 01, 2009 6:11 am
Location: Germany
Contact:

Re: Drivers?

Post 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... ;)
Developer of tyndur - community OS of Lowlevel (German)
User avatar
Solar
Member
Member
Posts: 7615
Joined: Thu Nov 16, 2006 12:01 pm
Location: Germany
Contact:

Re: Drivers?

Post 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.
Every good solution is obvious once you've found it.
Kevin
Member
Member
Posts: 1071
Joined: Sun Feb 01, 2009 6:11 am
Location: Germany
Contact:

Re: Drivers?

Post 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.
Developer of tyndur - community OS of Lowlevel (German)
User avatar
arseniuss
Member
Member
Posts: 32
Joined: Tue Aug 10, 2010 12:13 am
Location: Latvia
Contact:

Re: Drivers?

Post 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?
Hobby stuff (suckless libs, compilators, game engines, kernels): github. Work @ zabbix: arseniuss@zabbix
User avatar
Solar
Member
Member
Posts: 7615
Joined: Thu Nov 16, 2006 12:01 pm
Location: Germany
Contact:

Re: Drivers?

Post by Solar »

*sigh*

You haven't read UDI, have you?

There's a complete reference implementation available on SourceForge.
Every good solution is obvious once you've found it.
User avatar
arseniuss
Member
Member
Posts: 32
Joined: Tue Aug 10, 2010 12:13 am
Location: Latvia
Contact:

Re: Drivers?

Post by arseniuss »

I meant operating system which uses UDI...
And I'm going to print UDI documentation anyway.
Hobby stuff (suckless libs, compilators, game engines, kernels): github. Work @ zabbix: arseniuss@zabbix
User avatar
Solar
Member
Member
Posts: 7615
Joined: Thu Nov 16, 2006 12:01 pm
Location: Germany
Contact:

Re: Drivers?

Post 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.
Every good solution is obvious once you've found it.
User avatar
arseniuss
Member
Member
Posts: 32
Joined: Tue Aug 10, 2010 12:13 am
Location: Latvia
Contact:

Re: Drivers?

Post by arseniuss »

I meant hobbyists.
Hobby stuff (suckless libs, compilators, game engines, kernels): github. Work @ zabbix: arseniuss@zabbix
User avatar
Solar
Member
Member
Posts: 7615
Joined: Thu Nov 16, 2006 12:01 pm
Location: Germany
Contact:

Re: Drivers?

Post by Solar »

...aaaaand what difference would that make, whether the UDI implementation is by a hobbyist or the UDI people themselves?
Every good solution is obvious once you've found it.
User avatar
arseniuss
Member
Member
Posts: 32
Joined: Tue Aug 10, 2010 12:13 am
Location: Latvia
Contact:

Re: Drivers?

Post by arseniuss »

Based on basics and not so complicated which makes it easier understand and implement...
Hobby stuff (suckless libs, compilators, game engines, kernels): github. Work @ zabbix: arseniuss@zabbix
User avatar
Solar
Member
Member
Posts: 7615
Joined: Thu Nov 16, 2006 12:01 pm
Location: Germany
Contact:

Re: Drivers?

Post 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.
Every good solution is obvious once you've found it.
Post Reply