Re: Serial and PPP howto
Ben Harris <[email protected]> Mon, 17 Jun 2002 20:32:14 +0100
| Newsgroups | gmane.os.netbsd.ports.arm32 |
|---|---|
| Organization | Linux Unlimited |
| Message-ID | <[email protected]> |
In article <[email protected]> you write: >Could anyone direct me to a HOWTO or FAQ which deals with the above, with >specific reference to the RISC-PC? Probably not, since it'll be exactly the same as any other NetBSD port, but with the serial devices having different names. Now I come to look, though, there seems to be a lack of HOWTO type documentation on PPP in netbsd at all. Still, it's not very complicated. pppd(8) tells you far more than you need to know, as does chat(8). As a simple example to work from, my /etc/ppp/peers/magpie, for connecting to my employers' dialup server says: tty10 115200 crtscts connect '/usr/sbin/chat -f /etc/ppp/chat-magpie' noauth name bjh21 "tty10" is right for my Mac with a PCI serial card. You'd want tty0 on a Risc PC. You'd also probably want "defaultroute" if PPP is your connection to the world. /etc/ppp/chat-magpie contains: ABORT "NO CARRIER" ABORT "NO DIALTONE" ABORT "ERROR" ABORT "NO ANSWER" ABORT "BUSY" REPORT "CONNECT" "" "AT" OK "ATM0" OK "ATDT *142021" CONNECT Precisely what you put in there will depend on your modem, of course. Finally, I have an /etc/ppp/pap-secrets containing * * qwerty but with my password in place of "qwerty". With that, running "pppd call magpie" brings up the connection and "kill $(cat /var/run/ppp0.pid)" brings it down again. > A HOWTO which deals with RISC-PC >specific hardware in general would be appreciated. What would you like it to tell you? >I have not found a document which states which /dev/tty?? is the >appropriate one for the serial port on the RISC-PC. This is for use with >dial-up modem work. I do get, on boot-up, a message which states that >/dev/ttyE0 etc have not been configured. Yes, that is particularly ill-documented. /dev/tty0 should correspond to com0, which is usually the on-board serial port on a Risc PC. -- Ben Harris <[email protected]> Portmaster, NetBSD/acorn26 <URL:http://www.netbsd.org/Ports/acorn26/>