LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 06-28-2010, 09:38 AM   #1
sneghu
LQ Newbie
 
Registered: Jun 2010
Posts: 2

Rep: Reputation: 0
Device drivers as part of kernel


Hi,



I am using the iMX25 PDK to which linux-2.6.31 is ported.I have developed parport_arm using GPIO pins.If I build the kernel with lp,parport and parport_arm as modules.


In the pdk, i will give

insmod parport.ko

insmod parport_arm.ko

insmod lp.ko


cat somefile > /dev/lp0 - It is working fine.


If I try to configure parport,parport_arm and lp as part of kernel, I can see /dev/lp0.But when I try I to print ,Its not printing.I think some dependencies are missing for these device drivers.


please suggest me where i am going wrong.

Regards,
sneha.
 
Old 06-29-2010, 11:40 PM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,896

Rep: Reputation: 352Reputation: 352Reputation: 352Reputation: 352
Open a terminal. As root, run
modinfo parport
modinfo parport_arm
modinfo lp

If there is/are missing dependencies, those three commands will tell you so.
 
Old 06-30-2010, 03:29 AM   #3
sneghu
LQ Newbie
 
Registered: Jun 2010
Posts: 2

Original Poster
Rep: Reputation: 0
Hi,

Thanks a lot for your reply.When I try to give modinfo command in my Product Development board as root, I got an error

-sh: modinfo: not found

I can see /dev/lp0 in my board.But when i try to print, its not happening.

I have seen in makefiles.txt

"Link order is significant, because certain functions (module_init() / __initcall) will be called during boot in the
order they appear. So keep in mind that changing the link order may change the order in which your SCSI
controllers are detected, and thus your disks are renumbered."

My parport folder makefile

obj-$(CONFIG_PARPORT) += parport.o
obj-$(CONFIG_PARPORT_ARM) += parport_arm.o

But lp.o will be created inside char driver folder.Is there anything missing for linking the drivers in particular order.

As modules I will insert in the following order

insmod parport.ko
insmod parportt_arm.ko
insmod lp.ko

It is working fine.

But as part of kernel don't know where I am going wrong.

Regards,
sneha
 
  


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
LXer: Kernel Log: Coming in 2.6.34 (Part 5) - Drivers LXer Syndicated Linux News 0 05-16-2010 03:00 PM
LXer: Kernel Log: Coming in 2.6.33 (Part 5) - Drivers LXer Syndicated Linux News 0 02-18-2010 06:30 AM
Kernel Device Drivers ENVee Linux - Kernel 7 01-21-2008 07:04 PM
RAID device drivers for 2.6 kernel sagardixit84 Linux - Software 1 08-09-2005 04:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:33 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