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. |
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. |
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 |
All times are GMT -5. The time now is 05:27 AM. |