Page 1 of 1

how to load a driver

Posted: Wed Dec 31, 2008 4:34 pm
by VolTeK
how do i load a driver into my kernel at startup

@combuster: hows that :)

Re: how to load a driver

Posted: Wed Dec 31, 2008 5:20 pm
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>

Re: how to load a driver

Posted: Wed Dec 31, 2008 5:28 pm
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.

Re: how to load a driver

Posted: Wed Dec 31, 2008 5:47 pm
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

Re: how to load a driver

Posted: Wed Dec 31, 2008 5:52 pm
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.

Re: how to load a driver

Posted: Wed Dec 31, 2008 7:46 pm
by VolTeK
well, i hear you are haveing problems with a keyboard driver, i can teach you how to use one

Re: how to load a driver

Posted: Wed Dec 31, 2008 8:41 pm
by Troy Martin
Nah thanks, I deleted the stuff I had. It's probably archived in my backup drive somewhere though.

Re: how to load a driver

Posted: Wed Dec 31, 2008 8:45 pm
by VolTeK
alright but if you evr think other wise ill will be hear

Re: how to load a driver

Posted: Wed Dec 31, 2008 8:46 pm
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?

Re: how to load a driver

Posted: Thu Jan 01, 2009 1:33 pm
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