how to load a driver

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
User avatar
VolTeK
Member
Member
Posts: 815
Joined: Sat Nov 15, 2008 2:37 pm
Location: The Fire Nation

how to load a driver

Post by VolTeK »

how do i load a driver into my kernel at startup

@combuster: hows that :)
User avatar
Troy Martin
Member
Member
Posts: 1686
Joined: Fri Apr 18, 2008 4:40 pm
Location: Langley, Vancouver, BC, Canada
Contact:

Re: how to load a driver

Post by Troy Martin »

Ghost: map some areas of your kernel for drivers as well as a table telling the kernel what the driver does, what it adds, etc. Then load the driver file at startup and add it to the tables.

<plug type="shameless">http://www.catb.org/~esr/faqs/smart-questions.html</plug>
Image
Image
Solar wrote:It keeps stunning me how friendly we - as a community - are towards people who start programming "their first OS" who don't even have a solid understanding of pointers, their compiler, or how a OS is structured.
I wish I could add more tex
User avatar
Love4Boobies
Member
Member
Posts: 2111
Joined: Fri Mar 07, 2008 5:36 pm
Location: Bucharest, Romania

Re: how to load a driver

Post by Love4Boobies »

Perhaps the OP isn't going for a monolithic approach and wants to load drivers in userland...

@OP: Are you using a bootloader like GRUB? If so, you can tell it to load modules for you.
"Computers in the future may weigh no more than 1.5 tons.", Popular Mechanics (1949)
[ Project UDI ]
User avatar
VolTeK
Member
Member
Posts: 815
Joined: Sat Nov 15, 2008 2:37 pm
Location: The Fire Nation

Re: how to load a driver

Post by VolTeK »

well, want to make the windows like approach, no i dont use grub. i use what built but i want to load it when my kernel starts

@troy, i will look at that cite
User avatar
Troy Martin
Member
Member
Posts: 1686
Joined: Fri Apr 18, 2008 4:40 pm
Location: Langley, Vancouver, BC, Canada
Contact:

Re: how to load a driver

Post by Troy Martin »

I don't even have driver loading, and I've been working on my OS for almost two months. Just finished FAT support a few weeks ago.

Then again, I don't really need it since I'm one of the sole people who contribute and no one's written any programs yet.
Image
Image
Solar wrote:It keeps stunning me how friendly we - as a community - are towards people who start programming "their first OS" who don't even have a solid understanding of pointers, their compiler, or how a OS is structured.
I wish I could add more tex
User avatar
VolTeK
Member
Member
Posts: 815
Joined: Sat Nov 15, 2008 2:37 pm
Location: The Fire Nation

Re: how to load a driver

Post by VolTeK »

well, i hear you are haveing problems with a keyboard driver, i can teach you how to use one
User avatar
Troy Martin
Member
Member
Posts: 1686
Joined: Fri Apr 18, 2008 4:40 pm
Location: Langley, Vancouver, BC, Canada
Contact:

Re: how to load a driver

Post by Troy Martin »

Nah thanks, I deleted the stuff I had. It's probably archived in my backup drive somewhere though.
Image
Image
Solar wrote:It keeps stunning me how friendly we - as a community - are towards people who start programming "their first OS" who don't even have a solid understanding of pointers, their compiler, or how a OS is structured.
I wish I could add more tex
User avatar
VolTeK
Member
Member
Posts: 815
Joined: Sat Nov 15, 2008 2:37 pm
Location: The Fire Nation

Re: how to load a driver

Post by VolTeK »

alright but if you evr think other wise ill will be hear
User avatar
Troy Martin
Member
Member
Posts: 1686
Joined: Fri Apr 18, 2008 4:40 pm
Location: Langley, Vancouver, BC, Canada
Contact:

Re: how to load a driver

Post by Troy Martin »

/nod

You still need help loading drivers?

BTW, what language are you using, are you in protected mode, and can you load files from the FAT?
Image
Image
Solar wrote:It keeps stunning me how friendly we - as a community - are towards people who start programming "their first OS" who don't even have a solid understanding of pointers, their compiler, or how a OS is structured.
I wish I could add more tex
User avatar
VolTeK
Member
Member
Posts: 815
Joined: Sat Nov 15, 2008 2:37 pm
Location: The Fire Nation

Re: how to load a driver

Post by VolTeK »

protected mode, fasm, the keyboard driver i just put in the kernel code, i wanted to use the driver loading technique when i needed it
Post Reply