@related : Modem BeWAN MTU PPP USB ATM unicorn-modules unicorn-source ToDo ADSL st

driver works on Ubuntu dapper , see dapper.fr page

Please Help

ToDo

News

Hardware Supported

BewanASDL USB ST

Modem BeWAN ADSL USB ST (grey , not blue or green) for Linux

http://www.bewan.fr/bewan/produits/modems/adslusbst_tele2.php===

# [[lsusb]] # Bus 002 Device 002: ID 07fa:1012 Draytek # [[USB]]1.1 [[ID]]
cat /proc/bus/usb/devices
# ...
# P:  Vendor=07fa ProdID=1012 Rev= 1.00
# S:  Product=BEWAN ADSL USB
# ...

ST

head unicorn/unicorn_usb/unicorn_usb_atm.mod.c
# This driver supports the Unicorn ADSL chipset from STMicroelectronics.
# The chipset consists of the ADSL DMT transceiver ST70137 and  the ST70136
# Analog Front End (AFE).
# This file contains the USB specific routines.

ClosedSource :

unp usr/src/unicorn.tar.bz2  | grep -e ".o$"
modules/unicorn/arch/i386/modem_ant_USB_LINUX.o
modules/unicorn/arch/i386/modem_ant_PCI_LINUX.o

Obsolete

ToDo

Integration

[[Community]]

[[French]] [[ToDo]]

Success :

cat /proc/version
Linux version 2.6.15-21-386 (buildd@rothera) (gcc version 4.0.3 (Ubuntu  4.0.3-1ubuntu5)) #1 PREEMPT Fri Apr 21 16:43:33 UTC 2006
pppd --version
pppd version 2.4.4b1 # http://packages.ubuntu.com/dapper/base/ppp
root@marcel:/usr/local/src/unicorn-0.9.3rzr # m-a a-i --text unicorn
  • Ubuntu : unicorn-0.9.3; linux-3 2.6.12-9-386 ; pppd-2.4.3 ; FAI=tele2

http://forum.ubuntu-fr.org/viewtopic.php?id=8539&p=2

  • ???? linux-2.4 ; knoppix 3.2 et knoppix 3.3

http://forums.knoppix-fr.org/viewtopic.php?id=2747&p=2

[[Software]] [[Driver]] for [[GNU]]/[[Linux]] :

[[Debian]] : [[unicorn-modules]]

apt-cache search unicorn
sudo apt-get -t unstable install unicorn-source ppp module-assistant trickle
sudo apt-get install linux-headers-k7 linux-image-k7 modconf # [[Ubuntu]]

[[PPP]]

/etc/ppp/pap-secrets
/etc/ppp/chap-secrets
/etc/ppp/options

# HowTo / Sync

modprobe -v pppoatm
modprobe -v unicorn_usb_atm DebugLevel=2 ActivationMode=4 # Or 1 ??? [[ToDo]]
dmesg
# unicorn_usb: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller
# unicorn_msw: FmPollingRate=1000ms,InitTimeout=20000ms,ActTimeout=300000
# unicorn_usb: AdslStatus=1
# usbcore: registered new driver unicorn_usb
# unicorn_usb: AdslStatus=1
# unicorn_msw: Modem Init Failure: Spurious ATU Detected (25)
# unicorn_usb: MSW failure: SPURIOUS ATU DETECTED

wait until leds go : pwr=green sync=off link=green

ToDo How to speed it up ?

dmesg
# unicorn_msw: useRFCFixedRate (1) ENABLED: deactivate the RA mode in DMT mode
is_valid: freeing NULL
# xtm_stopmsgtimer: timer 00000000 not valid
# unicorn_usb: upRate=226cells/s,downRate=377cells/s
# unicorn_usb: AdslStatus=1
# unicorn_msw: Event Reported (4): Showtime
# unicorn_usb: MSW event: AMSW SHOWTIME
# unicorn_msw: Current Modem State (9): SHOWTIME_L0
# unicorn_usb: MSW state: SHOWTIME L0 # [[ADSL]]
cat /proc/net/atm/UNICORN:0
# ADSL: status no link, modem state SHOWTIME L0, US rate 89Kbits/s, DS rate 159Kbits/s
# Current speed: US 0Kbits/s,DS 0Kbits/s
# Current speed: US 0Kbits/s,DS 0Kbits/s
# Bridged: 00:00:00:00:00:00
# AAL5: tx 0 ( 0 err ), rx 0 ( 0 err, 0 drop )
# AAL0: tx 0 ( 0 err ), rx 0 ( 0 err, 0 drop )

Then use the script :

sh unicorn/scripts/unicorn-pppoatm start
start unicorn_usb_atm  8.35 Plugin pppoatm.so loaded.
PPPoATM plugin_init
Plugin /usr/lib/pppd/2.4.2/pppoatm.so loaded.
PPPoATM plugin_init
PPPoATM setdevname - remove unwanted options
PPPoATM setdevname_pppoatm - SUCCESS:8.35
scripts/unicorn-pppoatm: line 66: echo_success: command not found

wait right led to blink and then

ifconfig
ppp0     Lien encap:Protocole Point-Ã -Point
        inet adr:83.177.198.88  P-t-P:83.177.192.1  Masque:255.255.255.255
        UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1460  Metric:1
        RX packets:3 errors:0 dropped:0 overruns:0 frame:0
        TX packets:3 errors:0 dropped:0 overruns:0 carrier:0
        collisions:0 lg file transmission:3
        RX bytes:54 (54.0 b)  TX bytes:54 (54.0 b)
ping 83.177.192.1
PING 83.177.192.1 (83.177.192.1) 56(84) bytes of data.
64 bytes from 83.177.192.1: icmp_seq=1 ttl=255 time=103 ms
ping -s 200 83.177.192.1 # ok
ping -s 400 83.177.192.1 # breaks the connection ... see [[MTU]]
dmesg # http://lea-linux.org/pho/read/4/244885
# SUBMIT_URB: usb_submit_urb failed,status=-28
# rapi_exit_handler: task UNICORN-SM00 killed
# SUBMIT_URB: no urb or GlobalRemove
# rapi_exit_handler: task UNICORN-AMU0 killed

ERRORS

ATM

sudo modprobe -v unicorn_usb_atm ; dmesg | tail
[[17203475.124000]] unicorn_usb: UHCI Host Controller
[[17203475.132000]] alloc_obj: kmalloc failed,size=-746324500,type=abc0
[[17203475.132000]] BUG: unable to handle kernel NULL pointer dereference at virtual address 00000000
[[17203475.132000]]  printing eip:

Fixed w/ ATM modules

Modem state : ACTIVATING

modprobe -v unicorn_usb_atm
while [[ 1 ]] ; do  grep status /proc/net/atm/UNICORN\:0  ; sleep 1 ;  done
# "ADSL: status no link, modem state ACTIVATING, US rate 0Kbits/s, DS rate 0Kbits/s"

ToDo : never quit activating state ?

unload other modules : modprobe -r pppoe etc

ooops

EIP is at xsm_ident+0xd/0xb0 [[unicorn_usb_atm]]
ToDo

ER : Sync but dont keep the connection alive

17183107.220000 unicorn_usb: MSW state: SHOWTIME L0


[[4294693.378000]] unicorn_usb: v 0.0.0, 18:03:21 May  5 2006
[[4294693.378000]] unicorn_usb: driver parameters: DebugLevel=
[[4294693.378000]] kobject_register failed for unicorn_usb (-17)
[[4294693.378000]]  [[<c01d9c83>]] kobject_register+0x43/0x60
[[4294693.378000]]  [[<c024365c>]] bus_add_driver+0x5c/0xc0
[[4294693.378000]]  [[<e08ca1b7>]] usb_register+0x57/0xb0 [[usbcore]]
[[4294693.378000]]  [[<e0918034>]] unicorn_usb_init+0x34/0x38 [[unicorn_usb_atm]]
[[4294693.378000]]  [[<c01381cf>]] sys_init_module+0x9f/0x1d0
[[4294693.378000]]  [[<c010302b>]] sysenter_past_esp+0x54/0x79
[[4294693.378000]] usbcore: error -17 registering driver unicorn_usb
[[4294693.647000]] unicorn_msw: Current Modem State (3): ACTIVATING
[[4294693.647000]] unicorn_usb: MSW state: ACTIVATING

root@tulip:~# date
Sun May 14 23:53:54 CEST 2006
root@tulip:~# cat /proc/version
Linux version 2.6.12-10-686 (buildd@terranova) (gcc version 3.4.5 20050809 (prerelease) (Ubuntu 3.4.4-6ubuntu8.1)) #1 Fri Apr 28 13:21:56 UTC 2006
root@tulip:~# gcc --version | head
gcc (GCC) 4.0.2 20050808 (prerelease) (Ubuntu 4.0.1-4ubuntu9)
/usr/src/modules/unicorn/unicorn_usb/unicorn_usbdrv.c: In function `StartAtmUsXfer':
/usr/src/modules/unicorn/unicorn_usb/unicorn_usbdrv.c:417: error: structure has no member named `epmaxpacketout'
/usr/src/modules/unicorn/unicorn_usb/unicorn_usbdrv.c: In function `atm_start_rcv':
/usr/src/modules/unicorn/unicorn_usb/unicorn_usbdrv.c:540: error: structure has no member named `epmaxpacketin'
/usr/src/modules/unicorn/unicorn_usb/unicorn_usbdrv.c: In function `USB_init':

SUBMIT_URB: usb_submit_urb failed,status=-28
rapi_exit_handler: task UNICORN-SM00 killed
SUBMIT_URB: no urb or GlobalRemove
rapi_exit_handler: task UNICORN-AMU0 killed

URB errors happened on linux=2.6.11 pppd=2.4.2 unicorn=0.9.3

ATM : http://forum.hardware.fr/hardwarefr/OSAlternatifs/editer-35880-460180-1.htm

http://www.linuxforums.org/forum/mandriva-linux-help/22658-usb-problem-when-using-usb-modem.html

MTU size may be reduced ?


# cd /usr/local/src/unicorn-0.8.7rzr/ && make
make CC=gcc -C /usr/src/linux   SUBDIRS=/usr/local/src/unicorn-0.8.7rzr/unicorn_usb modules

make1: Entering directory `/usr/local/src/linux-2.6.7'

CC [[M]]  /usr/local/src/unicorn-0.8.7rzr/unicorn_usb/unicorn_usbdrv.o
/usr/local/src/unicorn-0.8.7rzr/unicorn_usb/unicorn_usbdrv.c:8:27: linux/version.h: No such file or directory

you need to build kernel sources also

cd /usr/src/linux && make && make clean

# insmod  /lib/modules/`uname -r`/extra/unicorn_usb_atm.o
insmod: error inserting '/lib/modules/2.6.7-amiloa/extra/unicorn_usb_atm.o': -1 Invalid module format

wrong Compiler uses gcc-3.4

cat /proc/version
modinfo /lib/modules/2.6.16-k7-amiloa/extra/unicorn_usb_atm.ko | grep vermagic:

# dmesg
11:30:52 kernel unicorn_usb: MSW failure: SPURIOUS ATU DETECTED 11:31:03 kernel unicorn_usb: AMU_EVENT_RETRY

http://linuxfr.org/~pmandin/7750.html


# [[Kernel]] 2.4.27
hub.c : new [[USB]] device 00:00.0-2 assigned address 2 07fa, 1012, 20147
Kernel BUG at usb-ohci.h:464

———

# modprobe -v unicorn_pci_atm
...
unicorn_msw: FmPollingRate=1000ms,InitTimeout=20000ms,ActTimeout=300000
...
Unable to handle kernel NULL pointer dereference at virtual address 00000000

http://www.dslvalley.com/forum/forum_read.php3?fqID=25817&ID=0402


[[Windows]] Tele2 / [[BeWAN]] driver

http://www.tele2.fr/chap03/c030601.html

C:\ADSL\ST\1.9.0.5\Ins\France12.ins
[[BroadbandInsFormat]]
ScriptVersion=1.1
TabName=BeWAN
ServiceName="France - Tele2 - PPPoA (VPI=8, VCI=35)"
[[PhysicalLayer]]
xDSLmodulation=3
[[ATMPVCs]]
MaxPVC=1
ConcurrentPVC=1
PVC1name="Tele2 ADSL"
PVC1VPI=8
PVC1VCI=35
[[PVCEncapsulations]]
PVC1Encapsulation=
[[NetworkLayer]]
PVC1AddressAssignment=1
PVC1Shortcut="Tele2 ADSL"

bewan / etat

chemin rapide local = 0
distant = 0
interlace local = 160
distant = 96

bewan / installation

france tele2 pppoa vpi=8 cvi=35

modulation de la ligne :

# G.lite (G.992.2) # ansi (t1.413 issue 2) # g.dmt (G.992.1) # multimode (G.dmt / ANSI / G.lite) *

ppp over atm vcmux (RFC2364)


ipconfig /all
Configuration IP de Windows 98
Nom d'h“te . . . . . . . . : MARCEL
Serveur DNS. . . . . . . . : 212.151.136.246
                            130.244.127.169
Type de noeud. . . . . . . : Diffuser
ID ‚tendue NetBIOS . . . . :
Routage IP activ‚. . . . . : Non
Proxy WINS activ‚. . . . . : Non
R‚solution NetBIOS par DNS : Non
0 - Carte Ethernet  ÿ:
Description . . . . . . . . : PPP Adapter.
Adresse physique. . . . . . : 44-45-53-54-00-00
DHCP activ‚ . . . . . . . . : Oui
Adresse IP. . . . . . . . . : 213.103.69.125
Masque de sous-r‚seau . . . : 255.255.255.0
Passerelle par d‚faut . . . : 213.103.69.125
Serveur DHCP. . . . . . . . : 255.255.255.255
Serveur WINS principal. . . :
Serveur WINS secondaire . . :
Bail obtenu . . . . . . . . : 01 01 80 00:00:00
Bail expirant . . . . . . . : 01 01 80 00:00:00

RESOURCES

MISC

modprobe usb-uhci
modprobe n_hdlc
pppd: connect(8.35): No such device
http://lists.debian.org/debian-user-french/2003/11/msg01069.html

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=184248

[[USB]]

lspci
0000:00:00.0 Host bridge: VIA Technologies, Inc. VT8366/A/7 [[Apollo KT266/A/333]]
0000:00:01.0 PCI bridge: VIA Technologies, Inc. VT8366/A/7 [[Apollo KT266/A/333 AGP]]
0000:00:08.0 Ethernet controller: 3Com Corporation 3c900 10Mbps Combo [[Boomerang]] # [[module]]=3c59x
0000:00:11.0 ISA bridge: VIA Technologies, Inc. VT8233 PCI to ISA Bridge
0000:00:11.1 IDE interface: VIA Technologies, Inc. VT82C586A/B/VT82C686/A/B/VT823x/A/C PIPC Bus Master IDE (rev 06)
0000:00:11.2 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 1b)
0000:00:11.3 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 1b)
0000:00:11.4 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 1b)
0000:00:11.5 Multimedia audio controller: VIA Technologies, Inc. VT8233/A/8235/8237 AC97 Audio Controller (rev 30)
0000:01:00.0 VGA compatible controller: ATI Technologies Inc Radeon RV100 QY [[Radeon 7000/VE]]

[[Linux]] [[Kernel]] 2.4

MISC

 
unicorn.txt · Last modified: 2009/08/01 17:49 by rzr
 
Recent changes RSS feed Creative Commons License Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki