Robert Craig
|
RE: Serail driver requirements to run PPPD
|
Robert Craig
03/31/2009 11:28 AM
post25684
|
RE: Serail driver requirements to run PPPD
Hi Ravi:
The correct way to do this is to write a standard serial driver
using the io-char libraries. Io-char provides all of the OS hooks and
resource manager interface that is expected by PPP.
Robert.
-----Original Message-----
From: ravi varma [mailto:community-noreply@qnx.com]
Sent: Tuesday, March 31, 2009 11:16 AM
To: general-networking
Subject: Serail driver requirements to run PPPD
HI
We are working on power pc platform that has PCI interface, over PCI
interface we have FPGA based UART. Aim is to run pppd over FPGA based
serail ports.
when i am working with on-board serail port i use pppd /dev/ser1 115200
ip1:ip2 so that ppp link will be formed.
We would like to maintian the same user interface for both onboard and
FPGA based UART. i.e I should be able to run pppd /dev/new 115200
ip1:ip2, where new is a dummy device that read/write to FPGA registers.
I am not finding any information on what libraries pppd needs and how it
interacts with serail driver.
1. Does it need io-char ?, in case if i write my own serail driver that
directly read and write FPGA registers (with out io-char), what all i
need to ensure to run pppd /dev/new 115200 ip1:ip2 to work.
2. In case serial driver that we are writing includes some buffering,
will that impact PPPd functionality.
Thanks
Ravi
_______________________________________________
General
http://community.qnx.com/sf/go/post25678
|
|
|
Weijie Zhang(deleted)
|
RE: Serail driver requirements to run PPPD
|
Weijie Zhang(deleted)
03/31/2009 11:29 AM
post25685
|
RE: Serail driver requirements to run PPPD
The pppd does not handle ttp layer directly. All it (and the ppp manager
in the stack as well) does is through standard file operation to serial
drivers.
The io-char is the general library the serial drivers use. You may post
your question to other groups for detailed information.
Thanks
Weijie
-----Original Message-----
From: ravi varma [mailto:community-noreply@qnx.com]
Sent: March 31, 2009 11:16 AM
To: general-networking
Subject: Serail driver requirements to run PPPD
HI
We are working on power pc platform that has PCI interface, over PCI
interface we have FPGA based UART. Aim is to run pppd over FPGA based
serail ports.
when i am working with on-board serail port i use
pppd /dev/ser1 115200 ip1:ip2 so that ppp link will be formed.
We would like to maintian the same user interface for both onboard and
FPGA based UART. i.e I should be able to run
pppd /dev/new 115200 ip1:ip2, where new is a dummy device
that read/write to FPGA registers.
I am not finding any information on what libraries pppd needs and how it
interacts with serail driver.
1. Does it need io-char ?, in case if i write my own serail driver that
directly read and write FPGA registers (with out io-char), what all i
need to ensure to run pppd /dev/new 115200 ip1:ip2 to work.
2. In case serial driver that we are writing includes some buffering,
will that impact PPPd functionality.
Thanks
Ravi
_______________________________________________
General
http://community.qnx.com/sf/go/post25678
|
|
|
ravi varma
|
Re: Serail driver requirements to run PPPD
|
ravi varma
03/31/2009 11:30 AM
post25686
|
Re: Serail driver requirements to run PPPD
> HI
>
> We are working on power pc platform that has PCI interface, over PCI interface
> we have FPGA based UART. Aim is to run pppd over FPGA based serail ports.
>
> when i am working with on-board serail port i use
> pppd /dev/ser1 115200 ip1:ip2 so that ppp link will be formed.
>
> We would like to maintian the same user interface for both onboard and FPGA
> based UART. i.e I should be able to run
> pppd /dev/new 115200 ip1:ip2, where new is a dummy device
> that read/write to FPGA registers.
>
> I am not finding any information on what libraries pppd needs and how it
> interacts with serail driver.
>
> 1. Does it need io-char ?, in case if i write my own serail driver that
> directly read and write FPGA registers (with out io-char), what all i need to
> ensure to run pppd /dev/new 115200 ip1:ip2 to work.
>
> 2. In case serial driver that we are writing includes some buffering, will
> that impact PPPd functionality.
>
> Thanks
> Ravi
Hi
when i tried to use pppd over serail driver that we have (modifed devc-8250 so that end routines will read/write from
FPGA registers instead of on-board serial port registers).
we are getting error "Process 86034 (pppd) exited status=10" which is
10 The PPP negotiation failed, that is, it didn't reach the point
where at least one network protocol (e.g. IP) was running.
So in our case we are running ppp over serail link, so what netwrok protocol is required and where to run it.
Ravi
|
|
|