pcmcia gprs karta

Ondra Holecek bln at deprese.net
Thu Mar 30 17:58:49 CEST 2006


ahoj,

mam tady pcmcia gprs kartu od Novatel Wireless - Merlin U630 a snazim se 
ji rozchodit na fbsd (na soekrisu i na notebooku).

pod 4.8kou nejede vubec - jadro napise ze byla vlozena nova pc card a to 
je vsechno, nejspis proto ze tak karta je 32bitova a to 4.8ka neumi.

pod 6kou taky nejde a to tak, ze zasekne komplet celej system a dokad ji 
nevyndam, tak nemuzu dal pracovat

a konecne pod petkou (5.4-REL):
po vlozeni do slotu se vypise nasledujici:

pccard0: Allocation failed for cfe 7
pccard0: Allocation failed for cfe 15
sio4: <Novatel Wireless Merlin UMTS Modem> at port 0x3e8-0x3ef irq 10 
function 0 config 23 on pccard0
sio4: type 16550A
sio4: unable to activate interrupt in fast mode - using normal mode
pccard0: Allocation failed for cfe 7
pccard0: Allocation failed for cfe 15
sio5: <Novatel Wireless Merlin UMTS Modem> at port 0x2e8-0x2ef irq 10 
function 1 config 23 on pccard0
sio5: type 16550A
sio5: unable to activate interrupt in fast mode - using normal mode


coz se mi taky nezda moc korektni, ale kdyz se pripojim na /dev/cuaa4, 
tak si s ni muzu popovidat (at prikazy).

pokud se chci pomoci ppp pripojit, tak mi pripojeni skonci s chybou, ze 
nemuze prirad na tunel adresu vzdalenyho konce (ktera je 0.0.0.0, takze 
asi proto)

PPp ON super-router> Warning: iface add: ioctl(SIOCAIFADDR, 
10.172.129.244/24 -> 0.0.0.0): Destination address required
Error: ipcp_InterfaceUp: unable to set ip address
Mar 30 17:43:08 <daemon.err> super-router ppp[845]: tun0: 
Error:iipcp_InterfaceUp: unable to set ip address


v ppp.conf je toto

inet:
  set openmode active
  set mru 576
  set ctsrts on
  set device /dev/cuaa4
  set speed 19200
  set dial "ABORT BUSY \"\" \
     ATE1 OK AT+CGDCONT=1,\\\"IP\\\",\\\"internet\\\" OK \
     AT+CGQREQ=1,0,0,0,0,0 OK AT+CGQMIN=1,0,0,0,0,0 OK ATDT*99# CONNECT"
  set timeout 0
  enable dns
  set authname eurotel
  set authkey gprs
  set ifaddr 0  0.0.0.0 255.255.255.0
  add default HISADDR

takze jsem upravil konfigurak ppp.conf tak, ze jsem tam tu vzdalenou 
adresu dal napevno
   set ifaddr 0 10.1.1.1 255.255.255.0

a potom uz se pripojim
PPP ON super-router>



ale, pokud pingam primo na ip adresy, tak se tak pet sekund nedeje nic, 
a potom uz prichazeji reply.. ok

pokud ale packety zvetsuju, tak zhruba pri -s 96 mi to zacne delat 
nasledujici vypisy

root at super-router:~# ping -s 96 212.80.76.18
PING 212.80.76.18 (212.80.76.18): 96 data bytes
Mar 30 17:46:30 <kern.err> super-router kernel: sio4: 2 more 
interrupt-level buffer overflows (total 2)
Mar 30 17:46:31 <kern.err> super-router kernel: sio4: 2 more 
interrupt-level buffer overflows (tttal 4)
Mar 30 17:46:32 <kern.err> super-router kernel: sio4: 1 more 
interrupt-level buffer overflow (total 5)
104 bytes from 212.80.76.18: icmp_seq=2 ttl=58 time=1195.196 ms
Mar 30 17:46:33 <kern.err> super-router kernel: sio4: 1 more 
interrupt-level buffer overflow (total 6)
104 bytes from 212.80.76.18: icmp_seq=3 ttl=58 tmme=1214.939 ms
Mar 30 17:46:34 <kern.err> super-router kernel: sio4: 1 more 
interrupt-level buffer overflow (total 7)
104 bytes from 212.80.76.18: icmp_seq=4 ttl=58 time=1652.840 ms
104 bytes from 212.80.76.18: icmp_seq=5 ttl=58 time=1211.112 ms
Mar 30 17:46:36 <kern.err> super-router kernel: sio4: 2 more 
interrupt-level buffer overflows (total 9)

a pri -s 97 a dal se mi uz ani nevraci zadne ping reply.

pokud se pokousim nekam pripojit, tak nic nejde (jen dalsi 
interrupt-level buffer overflows), coz pricitam tomu ze se pouzivaji 
velke packety, ktere z nejakeho duvodu neprojdou (firewall je 
samozrejmne allow all from any to any).

na netu jsem nasel doporuceni upravit sio.c
-       cp4ticks = speed / 10 / hz * 4;
+       cp4ticks = speed / 10 / hz * 40;
coz ale nepomohlo.

stalo se to nekomu nebo tusite nekdo co s tim?




More information about the Users-l mailing list