LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-27-2009, 08:26 PM   #1
coolfisa
LQ Newbie
 
Registered: Jan 2009
Posts: 2

Rep: Reputation: 0
Unhappy problem with loading module.Help needed


Hi.

I am trying to create a basic helloworld device driver.
I am able to generate the hello.ko using the .c and Makefile source files I wrote in my local folder 'examples'.
I am able to proceed til the step of installation of the module using

make modules_install.

I see that the .ko for my module is generated in my hello folder.
But I am not able to load the module using insmod or modprobe.

# modprobe hello
FATAL: Module hello not found.

# insmod /usr/src//linux-2.6.27.9/drivers/char/examples/hello.ko
insmod: error inserting '/usr/src//linux-2.6.27.9/drivers/char/examples/hello.ko': -1 Invalid module format

I am running the 2.6.27.9 kernel on ubuntu 8.10.

I am following the following document but ofcourse without the crosscomplier option coz i am building the DeviceDriver for my own kernel and not the arm one.
http://information.kateep.com/it/d-P...8lev1sec1.html

Last edited by coolfisa; 01-28-2009 at 12:18 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
module loading problem tiluu Linux - Networking 0 06-28-2004 10:20 AM
Config file and IEEE1394 module loading help needed BarkingBonefish Linux - Newbie 0 03-11-2004 04:32 PM
module loading problem usr Linux - General 2 01-11-2004 11:18 AM
Problem loading a module louai Linux - Software 1 01-07-2004 10:57 PM
Finding Module Dependencies...(Still loading...still loading..still loading..HANG!!!) Aeudian Linux - General 3 08-11-2003 04:31 PM


All times are GMT -5. The time now is 10:27 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration