Project Home
Project Home
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Serail driver requirements to run PPPD: (6 Items)
   
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 
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
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
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 
RE: Serail driver requirements to run PPPD  
The pppd is used only for IP in the networking layer. 

Thanks
Weijie
 

-----Original Message-----
From: ravi varma [mailto:community-noreply@qnx.com] 
Sent: March 31, 2009 11:31 AM
To: general-networking
Subject: 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 

_______________________________________________
General
http://community.qnx.com/sf/go/post25686
RE: Serail driver requirements to run PPPD  
Before running pppd, you need to make sure your serial driver is running
fine using other utils. Like qtalk/cp.

When run pppd and had a problem, *ADD* these options on your pppd
command line to get more detail log.

	# pppd /dev/new 115200 ip1:ip2 debug updetach logfd 2

-xtang 

> -----Original Message-----
> From: ravi varma [mailto:community-noreply@qnx.com] 
> Sent: Tuesday, March 31, 2009 11:31 AM
> To: general-networking
> Subject: Re: Serail driver requirements to run PPPD
> 
> 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 
> 
> _______________________________________________
> General
> http://community.qnx.com/sf/go/post25686
> 
>