Hello,
I have bought an ADSL connection by Czech Telecom in Czech Republic, I have
got SpeedTouch USB modem. I use FreeBSD 5.2, so I've installed port net/pppoa
(contains modem_run, pppoa2, pppoa3).
FreeBSD and usbd found this modem a created files in /dev -> ugen0, ugen0.1,
ugen0.5, ugen0.6, ugen0.7.
I have tried to read from this "files" or write to them and there are results:
---------------------
/dev/ugen0:
---------------------
cat: /dev/ugen0
Operation not supported by device
echo "xxx" >/dev/ugen0
[ok]
---------------------
/dev/ugen0.1
---------------------
cat gets frozen
echo "xxx" >/dev/ugen0.1
bash: /dev/ugen0.1: Device not configured
---------------------
/dev/ugen0.5
---------------------
cat gets frozen
echo gets frozen
---------------------
/dev/ugen0.6
---------------------
cat: /dev/ugen0.6
Device not configured
echo "xxx" >/dev/ugen0.6
[ok]
---------------------
/dev/ugen0.7
---------------------
cat gets frozen
echo gets frozen
My first problem is then I run "/usr/local/sbin/modem_run -f /usr/local/
libdata/mgmt.o" to upload firmware into the modem, because this command never
returns. It gets frozen in function pusb_endpoint_write in pusb-bsd.c on line
411 while waiting for write system call. It never returns anything. This
function is called from function upload_firmware in modem_run.c on line 563.
if(timeout != ep->timeout_write)
{
if(ioctl(ep->fd, USB_SET_TIMEOUT, &timeout) < 0)
return -1;
ep->timeout_write = timeout;
}
*/
do {
ret = write(ep->fd, buf+sent, size-sent);
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
if(ret < 0)
return sent > 0 ? sent : -1;
sent += ret;
} while(ret > 0 && sent < size);
I don't know if the firmware is uploaded succesufully, but one led (USB) on
the modem is constantly green and the second one (ADSL) is blinking green.
Ok, i hope the firmware is in the modem, so I continue to run ppp, but it ends
with error. I think that very important is this line:
Jun 3 11:18:08 custodian ppp[544]: tun0: Phase: Unknown protocol
0x7075 (unrecognised protocol)
I tried to search internet to find out what the protocol with code 0x7075 is,
but without any result.
I want to use FreeBSD as a router between my local network and internet, but I
have to work with internet, so I couldn't afford to have non-working FreeBSD
and had to install there Windows (where driver is on the cd I've got). But I
have copy of the disk image, so I can give any additional information from
logs or configuration files.
There are logs, configuration files and dmesg output:
ppp.log:
Jun 3 11:18:08 custodian ppp[543]: Phase: Using interface: tun0
Jun 3 11:18:08 custodian ppp[543]: Phase: deflink: Created in closed
state
Jun 3 11:18:08 custodian ppp[543]: tun0: Command: default: ident
user-ppp VERSION (built COMPILATIONDATE)
Jun 3 11:18:08 custodian ppp[543]: tun0: Command: adsl: set authname
417884707
Jun 3 11:18:08 custodian ppp[543]: tun0: Command: adsl: set authkey
********
Jun 3 11:18:08 custodian ppp[543]: tun0: Command: adsl: set device
!/usr/local/sbin/pppoa2 -vpi 8 -vci 48
Jun 3 11:18:08 custodian ppp[543]: tun0: Command: adsl: accept chap
Jun 3 11:18:08 custodian ppp[543]: tun0: Command: adsl: set speed
sync
Jun 3 11:18:08 custodian ppp[543]: tun0: Command: adsl: set timeout 0
Jun 3 11:18:08 custodian ppp[543]: tun0: Command: adsl: enable lqr
Jun 3 11:18:08 custodian ppp[543]: tun0: Command: adsl: set lqrperiod
5
Jun 3 11:18:08 custodian ppp[543]: tun0: Command: adsl: set redial 15
10000
Jun 3 11:18:08 custodian ppp[543]: tun0: Command: adsl: set dial
Jun 3 11:18:08 custodian ppp[543]: tun0: Command: adsl: set ifaddr
10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0
Jun 3 11:18:08 custodian ppp[543]: tun0: Command: adsl: add default
HISADDR
Jun 3 11:18:08 custodian ppp[543]: tun0: Command: adsl: nat enable
yes
Jun 3 11:18:08 custodian ppp[543]: tun0: Command: adsl: enable dns
Jun 3 11:18:08 custodian ppp[544]: tun0: Phase: PPP Started
(background mode).
Jun 3 11:18:08 custodian ppp[544]: tun0: Phase: bundle: Establish
Jun 3 11:18:08 custodian ppp[544]: tun0: Phase: deflink: closed ->
opening
Jun 3 11:18:08 custodian ppp[544]: tun0: Phase: deflink: Connected!
Jun 3 11:18:08 custodian ppp[544]: tun0: Phase: deflink: opening
-> dial
Jun 3 11:18:08 custodian ppp[544]: tun0: Chat: deflink: Dial attempt
1 of 10000
Jun 3 11:18:08 custodian ppp[544]: tun0: Phase: deflink: dial ->
carrier
Jun 3 11:18:08 custodian ppp[544]: tun0: Phase: deflink: carrier
-> login
Jun 3 11:18:08 custodian ppp[544]: tun0: Phase: deflink: login ->
lcp
Jun 3 11:18:08 custodian ppp[544]: tun0: LCP: FSM: Using
"deflink" as a transport
Jun 3 11:18:08 custodian ppp[544]: tun0: LCP: deflink: State change
Initial --> Closed
Jun 3 11:18:08 custodian ppp[544]: tun0: LCP: deflink: State change
Closed --> Stopped
Jun 3 11:18:08 custodian ppp[544]: tun0: Phase: Unknown protocol
0x7075 (unrecognised protocol)
Jun 3 11:18:08 custodian ppp[544]: tun0: LCP: deflink:
SendProtocolRej(1) state = Stopped
Jun 3 11:18:08 custodian ppp[544]: tun0: Phase: deflink: read (0):
Connection reset by peer
Jun 3 11:18:08 custodian ppp[544]: tun0: LCP: deflink: State change
Stopped --> Closed
Jun 3 11:18:08 custodian ppp[544]: tun0: LCP: deflink: State change
Closed --> Initial
Jun 3 11:18:08 custodian ppp[544]: tun0: Phase: deflink:
Disconnected!
Jun 3 11:18:08 custodian ppp[544]: tun0: Phase: deflink: lcp ->
logout
Jun 3 11:18:08 custodian ppp[544]: tun0: Phase: deflink: logout ->
hangup
Jun 3 11:18:08 custodian ppp[544]: tun0: Phase: deflink:
Disconnected!
Jun 3 11:18:08 custodian ppp[544]: tun0: Phase: deflink: Connect
time: 0 secs: 83 octets in, 91 octets out
Jun 3 11:18:08 custodian ppp[544]: tun0: Phase: deflink: 1 packets
in, 1 packets out
Jun 3 11:18:08 custodian ppp[544]: tun0: Phase: total 174 bytes/sec,
peak 0 bytes/sec on Thu Jun 3 11:18:08 2004
Jun 3 11:18:08 custodian ppp[544]: tun0: Phase: deflink: HUPing 546
Jun 3 11:18:08 custodian ppp[544]: tun0: Phase: deflink: hangup ->
closed
Jun 3 11:18:08 custodian ppp[544]: tun0: Phase: bundle: Dead
Jun 3 11:18:08 custodian ppp[544]: tun0: Phase: PPP Terminated
(normal).
Jun 3 11:18:08 custodian ppp[544]: tun0: Chat: Parent notified of
failure
Jun 3 11:18:08 custodian ppp[543]: tun0: Phase: Parent: Child failed
(errdead)
ppp.log
#################################################################
# PPP Sample Configuration File
# Originally written by Toshiharu OHNO
# Simplified 5/14/1999 by [EMAIL PROTECTED]
#
# See /usr/share/examples/ppp/ for some examples
#
# $FreeBSD: src/etc/ppp/ppp.conf,v 1.8 2001/06/21 15:42:26 brian Exp
$
#################################################################
default:
#set log Phase Chat LCP IPCP CCP tun command
set log Phase Chat IPCP CCP tun command
ident user-ppp VERSION (built COMPILATIONDATE)
# Ensure that "device" references the correct serial port
# for your modem. (cuaa0 = COM1, cuaa1 = COM2)
#
adsl:
set phone 0
set authname name
set authkey password
set device !"/usr/local/sbin/pppoa2 -vpi 8 -vci 48" ### vpi 8 and vci 48
should be allright, it was the only help I've got from Czech Telecom hotline
accept chap
set speed sync
set timeout 0
enable lqr
set lqrperiod 5
set redial 15 10000
set dial ""
set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0
add default HISADDR
nat enable yes
enable dns
dmesg (the kernel is like GENERIC but added QUOTA and IPFIREWALL):
Copyright (c) 1992-2004 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993,
1994
The Regents of the University of California. All rights reserved.
FreeBSD 5.2-RELEASE #0: Sun May 2 01:55:36 GMT 2004
[EMAIL PROTECTED]:/usr/src/sys/i386/compile/CUSTODIAN
Preloaded elf kernel "/boot/kernel/kernel" at 0xc0a61000.
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: Pentium/P54C (199.43-MHz 586-class CPU)
Origin = "GenuineIntel" Id = 0x52c Stepping = 12
Features=0x1bf<FPU,VME,DE,PSE,TSC,MSR,MCE,CX8>
real memory = 82837504 (79 MB)
avail memory = 68755456 (65 MB)
Intel Pentium detected, installing workaround for F00F bug
npx0: [FAST]
npx0: <math processor> on motherboard
npx0: INT 16 interface
pcibios: BIOS version 2.10
pcib0: <Host to PCI bridge> at pcibus 0 on motherboard
pci0: <PCI bus> on pcib0
isab0: <PCI-ISA bridge> at device 7.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <Intel PIIX3 WDMA2 controller> port 0xffa0-0xffaf at
device 7.1 on pci0
ata0: at 0x1f0 irq 14 on atapci0
ata0: [MPSAFE]
ata1: at 0x170 irq 15 on atapci0
ata1: [MPSAFE]
pci0: <memory> at device 12.0 (no driver attached)
uhci0: <VIA 83C572 USB controller> port 0xff40-0xff5f irq 5 at
device 13.0 on pci0
usb0: <VIA 83C572 USB controller> on uhci0
usb0: USB revision 1.0
uhub0: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhci1: <VIA 83C572 USB controller> port 0xff80-0xff9f irq 9 at
device 13.1 on pci0
usb1: <VIA 83C572 USB controller> on uhci1
usb1: USB revision 1.0
uhub1: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
ugen0: ALCATEL Speed Touch USB, rev 1.10/0.01, addr 2
pci0: <serial bus, USB> at device 13.2 (no driver attached)
pci0: <display, VGA> at device 14.0 (no driver attached)
wi0: <Intersil Prism2.5> mem 0xfffbe000-0xfffbefff irq 10 at
device 15.0 on pci0
wi0: 802.11 address: 00:60:b3:6e:11:55
wi0: using RF:PRISM2.5 MAC:ISL3874A(Mini-PCI)
wi0: Intersil Firmware: Primary (1.0.7), Station (1.3.6)
wi0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps
rl0: <RealTek 8139 10/100BaseTX> port 0xf800-0xf8ff mem
0xfffbfc00-0xfffbfcff irq 11 at device 16.0 on pci0
rl0: Ethernet address: 00:30:4f:16:c3:7d
miibus0: <MII bus> on rl0
rlphy0: <RealTek internal media interface> on miibus0
rlphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
orm0: <Option ROMs> at iomem 0xed000-0xedfff,0xc0000-0xc7fff on
isa0
pmtimer0 on isa0
atkbdc0: <Keyboard controller (i8042)> at port 0x64,0x60 on
isa0
fdc0: <Enhanced floppy controller (i82077, NE72065 or clone)> at
port 0x3f7,0x3f0-0x3f5 irq 6 drq 2 on isa0
ppc0: <Parallel port> at port 0x378-0x37f irq 7 on isa0
ppc0: Generic chipset (NIBBLE-only) in COMPATIBLE mode
ppbus0: <Parallel port bus> on ppc0
plip0: <PLIP network interface> on ppbus0
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
ppi0: <Parallel I/O> on ppbus0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
sio0: type 16550A
sio1 at port 0x2f8-0x2ff irq 3 on isa0
sio1: type 16550A
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem
0xa0000-0xbffff on isa0
unknown: <PNP0303> can't assign resources (port)
unknown: <PNP0700> can't assign resources (port)
unknown: <PNP0400> can't assign resources (port)
unknown: <PNP0501> can't assign resources (port)
unknown: <PNP0501> can't assign resources (port)
Timecounter "TSC" frequency 199432762 Hz quality 800
Timecounters tick every 10.000 msec
ipfw2 initialized, divert enabled, rule-based forwarding enabled,
default to deny, logging unlimited
IPv6 packet filtering initialized, logging limited to 100
packets/entry
GEOM: create disk ad0 dp=0xc1b81260
ad0: 4126MB <ST34311A> [8944/15/63] at ata0-master WDMA2
GEOM: create disk ad1 dp=0xc1b4be60
ad1: 152627MB <ST3160023A> [310101/16/63] at ata0-slave WDMA2
acd0: CDROM <TOSHIBA CD-ROM XM-6202B> at ata1-slave PIO4
Mounting root from ufs:/dev/ad0s1a
WARNING: / was not properly dismounted
WARNING: /var was not properly dismounted
WARNING: /home was not properly dismounted
WARNING: /backup was not properly dismounted
ugen0: at uhub1 port 2 (addr 2) disconnected
ugen0: detached
ugen0: ALCATEL Speed Touch USB, rev 1.10/0.01, addr 2
Liste de diffusion modem ALCATEL SpeedTouch USB
Pour se désinscrire : mailto:[EMAIL PROTECTED]