mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Device Driver
@ 2002-10-09 12:49 Bloch, Jack
  2002-10-10 15:21 ` szonyi calin
  0 siblings, 1 reply; 4+ messages in thread
From: Bloch, Jack @ 2002-10-09 12:49 UTC (permalink / raw)
  To: linux-kernel

I have written a device driver for a cPCI device. Thsi device driver loads
and runs successfully when my application starts (I call /sbin/insmod).
However,  when I add the following line to /etc/modules.conf

alias ifp0 Icdrva0s             /* my device is called ifp0 and the driver
Icdrva0s.o is stored in /lib/modules/2.4.18-3/kernel/drivers/net */

I get depmod errors. When I run depmod -e, I see that it is complaining
about all kinds of regular symbols (ioremap, pci_register_driver to name but
a few). What am I doing wrong? Please CC me directly on any responses.


Thanks in advance,

Jack Bloch 
Siemens ICN
phone                (561) 923-6550
e-mail                jack.bloch@icn.siemens.com


^ permalink raw reply	[flat|nested] 4+ messages in thread
* RE: Device Driver
@ 2002-10-10 16:36 Bloch, Jack
  0 siblings, 0 replies; 4+ messages in thread
From: Bloch, Jack @ 2002-10-10 16:36 UTC (permalink / raw)
  To: 'szonyi calin', linux-kernel

Thanks for the response. I figured out the problem. I included
linux/modversions.h in my makefile and now it works (silly mistake on my
part).

Jack Bloch 
Siemens ICN
phone                (561) 923-6550
e-mail                jack.bloch@icn.siemens.com


-----Original Message-----
From: szonyi calin [mailto:caszonyi@yahoo.com]
Sent: Thursday, October 10, 2002 11:21 AM
To: Bloch, Jack; linux-kernel@vger.kernel.org
Subject: Re: Device Driver


 --- "Bloch, Jack" <Jack.Bloch@icn.siemens.com> a écrit : > I
have written a device driver for a cPCI device. Thsi device
> driver loads
> and runs successfully when my application starts (I call
> /sbin/insmod).
> However,  when I add the following line to /etc/modules.conf
> 
> alias ifp0 Icdrva0s             /* my device is called ifp0
> and the driver
> Icdrva0s.o is stored in
> /lib/modules/2.4.18-3/kernel/drivers/net */
> 
> I get depmod errors. When I run depmod -e, I see that it is
> complaining
> about all kinds of regular symbols (ioremap,
> pci_register_driver to name but
> a few). What am I doing wrong? Please CC me directly on any
> responses.
> 

Hi

What System.map do you use for depmod ?
If you do a man depmod you can see that it has an algorithm
for finding the System.map. But maybe the case that 
depmod thins that your System.map is in another directory.

I think it's better to specify manually the system map
from your kernel tree (i.e. /usr/src/linux/System.map)

Bye
Calin
> 
> Thanks in advance,
> 
> Jack Bloch 
> Siemens ICN
> phone                (561) 923-6550
> e-mail                jack.bloch@icn.siemens.com
> 


=====
--
A mouse is a device used to point at 
the xterm you want to type in.
Kim Alm on a.s.r.

___________________________________________________________
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com

^ permalink raw reply	[flat|nested] 4+ messages in thread
* Re: Device Driver
@ 2006-10-05 12:15 Naveed Basha
  0 siblings, 0 replies; 4+ messages in thread
From: Naveed Basha @ 2006-10-05 12:15 UTC (permalink / raw)
  To: linux-kernel

Am developing a device driver in Linux using C, wherein the processes
communicate via a shared memory.

Can you please tell me how should I design the memory. whether it
should be at the kernel level or at the user level. And if at the
kernel level, give me the functions and APIs to use.

Thanks and regards,
Naveed

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2006-10-05 12:15 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-10-09 12:49 Device Driver Bloch, Jack
2002-10-10 15:21 ` szonyi calin
2002-10-10 16:36 Bloch, Jack
2006-10-05 12:15 Naveed Basha

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®