Project Home
Project Home
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Reg - Network Driver: (8 Items)
   
Reg - Network Driver  
Hi,

I want to write a netwrok driver.

Please tell any sample network driver or source code in QNX 6.4.1 and tell how to compile and load it.

Thanks and Regards
K.Senthil
Re: Reg - Network Driver  
On Thu, Jul 23, 2009 at 06:34:17AM -0400, Senthil K wrote:
> Hi,
> 
> I want to write a netwrok driver.
> 
> Please tell any sample network driver or source code in QNX 6.4.1 and tell how to compile and load it.
> 
> Thanks and Regards
> K.Senthil
> 

Check out the networking repo and follow the build
instructions here:

http://community.qnx.com/sf/wiki/do/viewPage/projects.networking/wiki/Source_Guide

Once done you'll have a bunch of devnp-* under your
stage under lib/dll.

Regards,

-seanb
Re: Reg - Network Driver  
Hi Sean,

Thanks for ur reply.

I have dowload one sample network driver,in which i have compile the sample.c  with the entire stack code or the file 
alone.

if alone please tell me the way.

and tell how load the .so.


Please find attached the sample driver.

Thanks and Regards
K.Senthil
Attachment: Text sample.txt 12.12 KB
Re: Reg - Network Driver  
On Thu, Jul 23, 2009 at 09:56:32AM -0400, Senthil K wrote:
> Hi Sean,
> 
> Thanks for ur reply.
> 
> I have dowload one sample network driver,in which i have compile the sample.c  with the entire stack code or the file 
alone.
> 
> if alone please tell me the way.
> 
> and tell how load the .so.
> 
> 
> Please find attached the sample driver.
> 
> Thanks and Regards
> K.Senthil
> 

If it's already built the easiest way is:

# io-pkt -d /fullpath/to/your/devnp-foo.so

Regards,

-seanb
Re: Reg - Network Driver  
Hi Sean,

Thanks,

Its there but i want to change the code and compile.

Please tell me how to compile that.

if i load it will affect any existing thing?

Thanks and Regards
K.Senthil
Re: Reg - Network Driver  
On Thu, Jul 23, 2009 at 11:13:35AM -0400, Senthil K wrote:
> Hi Sean,
> 
> Thanks,
> 
> Its there but i want to change the code and compile.
> 
> Please tell me how to compile that.

If you check out the repo you'll have several examples.
You can either make a new dir under sys/dev_qnx or
modify the sample driver.  Once that's done a straight
'make' will build it.

> 
> if i load it will affect any existing thing?

It there's already an io-pkt running the
previous command will in effect overlay
the socket handling of the previous.  If
you want to run two io-pkt instances look
at the 'prefix' option to the tcpip proticol
in the io-pkt docs:

# io-pkt -d /fullpath/to/your/devn-foo.so -ptcpip prefix=/alt
# SOCK=/alt ifconfig

-seanb
Re: Reg - Network Driver  
Hi Sean,

Thanks now i got how to load another io-pkt instance.

But still i dont know how to compile my sample.c.


Thanks and Regards
K.Senthil
Re: Reg - Network Driver  
On Fri, Jul 24, 2009 at 12:19:41AM -0400, Senthil K wrote:
> Hi Sean,
> 
> Thanks now i got how to load another io-pkt instance.
> 
> But still i dont know how to compile my sample.c.

There's not enough info in that problem description.
The file you attached is the sample driver from the
networking project.  I suggest you download the entire
project and follow the source guide:

http://community.qnx.com/sf/wiki/do/viewPage/projects.networking/wiki/Source_Guide

Regards,

-seanb