[uClinux-dev] Re: What's "ioctl(TIOCSETD): Unknown error 22(22)" under MCF5272C3 with uClinux 2.0.38

Richard Klingler richard.klingler at violasystems.com
Thu Feb 13 07:56:32 EST 2003


Disable modem control signals (o;

Look at "man pppd" for a huge list of options...

Also check what version zou have of ppp in kernel and as daemon...

Don't rely always on modem control signals...
In GPRS world you don't have and DCD (o;

And...

have you ever tried directly connecting through serial cable
instead of a modem?

Rick

On Thu, 2003-02-13 at 14:40, Juntang wrote:
> Hi Rick,
>     
>     The ultimate purpose of mine is that I can make ppp connection between
> MCF5272C3 and PC dialin server. I think it is the error "ioctl(TIOCSETD)
> unknown error 22(22)" that leads to the failure of ppp connection.
>     The debug info obtained in server side are as such:
>                 pppd 2.4.1 started by juntang, uid500 
>                 using channel 1
>                 Using interface ppp0
>                 Connect: ppp0 <--> /dev/ttyS0
>                 sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xf92dd68e> <pcomp> <accomp>]
>                 last message repeated 9 times
>                 LCP: timeout sending Config-Requests
>                 Connection terminated.
>                 Exit.
>     The debug info obtained in MCF5272C3 side are as such(extracted from /var/log/syslog):
>                 pppd: pppd 2.3.8 started by (unknown), uid 0
>                 chat: abort on (NO CARRIER)
>                 chat: abort on (NO DIALTONE)
>                 chat: abort on (ERROR)
>                 chat: abort on (NO ANSWER)
>                 chat: abort on (BUSY)
>                 chat: abort on (Username/Password Incorrect)
>                 chat: send (atz^M)
>                 chat: expect (OK)
>                 chat: atz^M^M
>                 chat: OK
>                 chat:  -- got it
>                 chat: send (atd55555555^M)
>                 chat: expect (CONNECT)
>                 chat: ^M
>                 chat: atd55555555^M^M
>                 chat: CONNECT
>                 chat:  -- got it
>                 chat: send (^M)
>                 chat: expect (ogin:)
>                 chat:  19200^M
>                 chat: ^MRed Hat Linux release 7.2 (Enigma)
>                 chat: ^MKernel 2.4.7-10 on an i686
>                 chat: ^M
>                 chat: ^M^M
>                 chat: localhost.localdomain login:
>                 chat:  -- got it
>                 chat: send (juntang^M)
>                 chat: expect (word:)
>                 chat:  ^M
>                 chat: ^MRed Hat Linux release 7.2 (Enigma)
>                 chat: ^MKernel 2.4.7-10 on an i686
>                 chat: ^M
>                 chat: ^M^M
>                 chat: localhost.localdomain login: juntang^M
>                 chat: Password:
>                 chat:  -- got it
>                 chat: send (123456^M)
>                 chat: expect ($)
>                 chat:  ^M
>                 chat: Last login: Fri Feb  7 21:27:07 on ttyS0^M
>                 chat: sh-2.05$
>                 chat:  -- got it
>                 chat: send (/usr/sbin/pppd debug -detach^M)
>                 [40]: Serial connection established.
>                 [40]: ioctl(TIOCSETD): Unknown error 22(22)
>                 [40]: Exit.
>     
>     So far, I have understood partial reasons of the above problems as you told me about modem control lines. However, How to solve them? I'm looking forwarding to your help.
>  
>          
> >> Hello everyone,
> >>  
> >>   When I made ppp connection between MCF5272C3(under uClinux 2.0.38)
> >> with PC RedHat 7.2 dialin server, an error entry shown in
> >> /var/log/syslog took place as such:
> >>         ioctl(TIOCSETD) unknown error 22(22).
> >>   Before this error entry, the syslog file showed that:
> >>         serial connection established.
> >>   Note please: I issued the pppd commnand under the development
> >> environment for MCF5272C3 and uClinux 2.0.38, i.e., PC minicom
> >> under another RedHat 7.2 PC which represents the uClinux console.
> >>  
> >>   Does anyone know why this happened?
> >>  
> 
> >Ehmm...didn't Greg told you once that the 5272 serial port has no
> >modem control lines?
> 
> >When you look at the mcfserial.c code there is nothing inside
> >the IOCTL function which can make use of setting line discipline...
> 
> 
> >Rick
> 
> _______________________________________________
> uClinux-dev mailing list
> uClinux-dev at uclinux.org
> http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
> This message was resent by uclinux-dev at uclinux.org






More information about the uClinux-dev mailing list