how to load a driver
how to load a driver
how do i load a driver into my kernel at startup
@combuster: hows that
@combuster: hows that
- Troy Martin
- Member
- Posts: 1686
- Joined: Fri Apr 18, 2008 4:40 pm
- Location: Langley, Vancouver, BC, Canada
- Contact:
Re: how to load a driver
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>
<plug type="shameless">http://www.catb.org/~esr/faqs/smart-questions.html</plug>
- Love4Boobies
- Member
- Posts: 2111
- Joined: Fri Mar 07, 2008 5:36 pm
- Location: Bucharest, Romania
Re: how to load a driver
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.
@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 ]
[ Project UDI ]
Re: how to load a driver
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
@troy, i will look at that cite
- Troy Martin
- Member
- Posts: 1686
- Joined: Fri Apr 18, 2008 4:40 pm
- Location: Langley, Vancouver, BC, Canada
- Contact:
Re: how to load a driver
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.
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
well, i hear you are haveing problems with a keyboard driver, i can teach you how to use one
- Troy Martin
- Member
- Posts: 1686
- Joined: Fri Apr 18, 2008 4:40 pm
- Location: Langley, Vancouver, BC, Canada
- Contact:
Re: how to load a driver
Nah thanks, I deleted the stuff I had. It's probably archived in my backup drive somewhere though.
Re: how to load a driver
alright but if you evr think other wise ill will be hear
- Troy Martin
- Member
- Posts: 1686
- Joined: Fri Apr 18, 2008 4:40 pm
- Location: Langley, Vancouver, BC, Canada
- Contact:
Re: how to load a driver
/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?
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
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