Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 06-28-2010, 09:38 AM   #1
LQ Newbie
Registered: Jun 2010
Posts: 2

Rep: Reputation: 0
Device drivers as part of kernel


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.

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

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
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
LQ Newbie
Registered: Jun 2010
Posts: 2

Original Poster
Rep: Reputation: 0

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.



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 > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:17 AM.

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