[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

inittab, btd and ppp



Hi all.

I have some questions about the btd, etrax dev-kit and ppp.


1. On the etrax dev-kit, I would like to run btd at boot. I have tried
to put it in the inittab file:
btd:3:once:/bin/btd -u /dev/ttyS0 -s 57600 -r client -e 0 -l
But when I boot the etrax dev-kit I get the following message on the
debug port:
************************************************
Bad verify_area: ffaa0055 pid 26
Stack dump [0x407f3e14]:
sp + 0: 0x00000008
sp + 4: 0x402ec3d4
sp + 8: 0x4000bf48
sp + 12: 0x400159fc
sp + 16: 0x40312000
sp + 20: 0x400159ca
sp + 24: 0x40015f58
sp + 28: 0x00000000
sp + 32: 0x00000001
sp + 36: 0x402ec398
sp + 40: 0x402ec398
sp + 44: 0x402e4030
sp + 48: 0x402ec3b0
sp + 52: 0x00000000
sp + 56: 0x01ff0108
sp + 60: 0x000000b8
Weird, init caught unknown child die. Oh well.
************************************************
I tried to start other programs in the inittab file and they worked just
fine.
Does anyone knows how to run btd at boot on the etrax dev-kit?

2. I'm creating a connection between the etrax dev-kit and a Linux PC
with
Redhat 6.2. I'm running the Linux PC as server and the etrax as client.
To make this work I have to turn off the ethernet interface on the
PC before i creates the connection. If I don't I get the messages on the

etrax
dev kit when I'm running btd as client:

*********************************************************************
> readbd
Current bd addr : 00:00:00:00:02:22
> con 11:11:11:50:11:11 0
Connecting to bd: 11:11:11:50:11:11
using profile: 0
Stack returned handle 0
> ppp
Starting ppp client on /dev/ttyBT0
Spawned pppd[44] in the background.
pppd[44]: pppd 2.3.11 started by (unknown), uid 0
pppd[44]: Couldn't restrict write permissions to /dev/ttyBT0: Unknown
error 30
Couldn't restrict write permissions to /dev/ttyBT0: Unknown error 30
pppd[44]: Using interface ppp0
Using interface ppp0
pppd[44]: Connect: ppp0 <--> /dev/ttyBT0
Connect: ppp0 <--> /dev/ttyBT0
pppd[44]: sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x70378862>
<pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x70378862> <pcomp>
<accomp>]
pppd[44]: rcvd [LCP ConfReq id=0x1 <asyncmap 0x0> <magic0xe7ab6abf>
<pcomp> <accomp>]
rcvd [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xe7ab6abf> <pcomp>
<accomp>]pppd[44]: sent [LCP ConfAck id=0x1 <asyncmap 0x0> <magic
0xe7ab6abf> <pcomp> <accomp>]
sent [LCP ConfAck id=0x1 <asyncmap 0x0> <magic 0xe7ab6abf> <pcomp>
<accomp>]pppd[44]: rcvd [LCP ConfAck id=0x1 <asyncmap 0x0>
<magic0x70378862> <pcomp> <accomp>]
rcvd [LCP ConfAck id=0x1 <asyncmap 0x0> <magic 0x70378862> <pcomp>
<accomp>]pppd[44]: sent [IPCP ConfReq id=0x1 <addr 192.168.0.6>
<compress
VJ 0f 01>]
sent [IPCP ConfReq id=0x1 <addr 192.168.0.6> <compress VJ 0f 01>]
pppd[44]: rcvd [IPCP ConfReq id=0x1 <addr 192.168.0.5> <compress VJ 0f
01>]
rcvd [IPCP ConfReq id=0x1 <addr 192.168.0.5> <compress VJ 0f 01>]
pppd[44]: sent [IPCP ConfAck id=0x1 <addr 192.168.0.5> <compress VJ 0f
01>]
sent [IPCP ConfAck id=0x1 <addr 192.168.0.5> <compress VJ 0f 01>]
pppd[44]: rcvd [CCP ConfReq id=0x1 <deflate 15> <deflate(old#) 15> <bsd
v115>]
rcvd [CCP ConfReq id=0x1 <deflate 15> <deflate(old#) 15> <bsd v1 15>]
pppd[44]: sent [CCP ConfReq id=0x1]
sent [CCP ConfReq id=0x1]
pppd[44]: sent [CCP ConfRej id=0x1 <deflate 15>]
sent [CCP ConfRej id=0x1 <deflate 15>]
pppd[44]: rcvd [IPCP ConfAck id=0x1 <addr 192.168.0.6> <compress VJ 0f
01>]
rcvd [IPCP ConfAck id=0x1 <addr 192.168.0.6> <compress VJ 0f 01>]
pppd[44]: local  IP address 192.168.0.6
local  IP address 192.168.0.6
pppd[44]: remote IP address 192.168.0.5
remote IP address 192.168.0.5
pppd[44]: rcvd [IPCP TermReq id=0x2 "Unauthorized remote IP address"]
rcvd [IPCP TermReq id=0x2 "Unauthorized remote IP address"]
pppd[44]: IPCP terminated by peer (Unauthorized remote IP address)
IPCP terminated by peer (Unauthorized remote IP address)
pppd[44]: sent [IPCP TermAck id=0x2]
sent [IPCP TermAck id=0x2]
pppd[44]: rcvd [CCP ConfAck id=0x1]
rcvd [CCP ConfAck id=0x1]
pppd[44]: rcvd [CCP ConfReq id=0x2 <deflate(old#) 15> <bsd v1 15>]
rcvd [CCP ConfReq id=0x2 <deflate(old#) 15> <bsd v1 15>]
pppd[44]: sent [CCP ConfRej id=0x2 <deflate(old#) 15>]
sent [CCP ConfRej id=0x2 <deflate(old#) 15>]
pppd[44]: rcvd [LCP TermReq id=0x2 "No network protocols running"]
rcvd [LCP TermReq id=0x2 "No network protocols running"]
pppd[44]: LCP terminated by peer (No network protocols running)
LCP terminated by peer (No network protocols running)
pppd[44]: sent [LCP TermAck id=0x2]
sent [LCP TermAck id=0x2]
pppd[44]: Connection terminated.
Connection terminated.
pppd[44]: Connect time 0.1 minutes.
Connect time 0.1 minutes.
pppd[44]: Sent 155 bytes, received 196 bytes.
Sent 155 bytes, received 196 bytes.
pppd[44]: Exit.
*******************************************************************

I have made a change in btd.c that allways sets the ppp0 ip-adress to
192.168.0.6 on
the Linux PC which has the eth0 address 192.168.0.1.
When I have created the ppp connection, I can turn on the
ethernetinterface
again and ping between the etrax and the PC, both on the ethernet and
the
bluetooth connection. Why do I have to turn off the eth0 interface and
what changes
is necessary to fix this?

/Peter Fredriksson