OVH Cloud OVH Cloud

CDCEther pour un modem ADSL USB

4 réponses
Avatar
Olivier V
Bonjour,

Suite aux indications que vous m'avez donné sur l'autre fil de discussion,
je cherche maintenant à faire fonctionner mon modem ADSL usb (9telecom) via
CDCEther.

Je vais dans le module de configuration des réseaux et connexions de
Mandrake contrôle center et je fais, d'après ce que j'ai pu lire sur divers
sites, dans l'assistant (eh oui ... je suis un peu assisté sous linux ...
mais bon on essaie !):
- mode expert
- connexion par ADSL
- utiliser pppoe
- je paramètre les codes FAI
- je choisi comme pilote CDCEther
- je demande la détection automatique
- je déclare que je n'ai pas d'autres interfaces
et "on" me répond que n'ai pas de carte réseau installée.

Effectivement, j'ai cherché sur le net (doc de la freebox notamment), mais
je n'ai pas réussi à comprendre comment créer une carte réseau virtuelle,
puisque cela ne semble pas se faire automatiquement.

Je suis sous Mandrake 9.2 avec un kernel 2.4.22-10.

Si quelqu'un peut (encore ...) me donner un coup de main ...

Merci beaucoup

Olivier V

4 réponses

Avatar
no_spam
On Mon, 04 Oct 2004 20:32:26 +0200, Olivier V wrote:

Bonjour,


bonsoir,


Suite aux indications que vous m'avez donné sur l'autre fil de discussion,
je cherche maintenant à faire fonctionner mon modem ADSL usb (9telecom) via
CDCEther.

Je vais dans le module de configuration des réseaux et connexions de
Mandrake contrôle center et je fais, d'après ce que j'ai pu lire sur divers
sites, dans l'assistant (eh oui ... je suis un peu assisté sous linux ...
mais bon on essaie !):
- mode expert
- connexion par ADSL
- utiliser pppoe
- je paramètre les codes FAI
- je choisi comme pilote CDCEther
- je demande la détection automatique
- je déclare que je n'ai pas d'autres interfaces
et "on" me répond que n'ai pas de carte réseau installée.


Aie...


Effectivement, j'ai cherché sur le net (doc de la freebox notamment), mais
je n'ai pas réussi à comprendre comment créer une carte réseau virtuelle,
puisque cela ne semble pas se faire automatiquement.

Je suis sous Mandrake 9.2 avec un kernel 2.4.22-10.

Si quelqu'un peut (encore ...) me donner un coup de main ...


Bon, ouvre un xterm, ce sera plus simple ;-)
Une fois que ça marchera en console, tu pourras débugger les outils
Mandrake !
Passe root.
modprobe CDCEther
ifconfig -a

A ce niveau, tu devrais voir apparaitre une interface ethernet.
Si ce n'est pas le cas, regarde ce que disent dmesg et lsusb.
Comme j'ai vu que RedHat a introduit (au moins) un bug dans son driver
CDCEther qui empêche ce modem de fonctionner, il n'est pas exclus que
Mandrake ai fait pareil...
Si ca ne marche pas, je pourrais t'envoyer un source de CDCEther.c qui
marche.

Si tu vois ton interface ethernet, c'est (presque) gagné.
Est-tu sur que c'est du PPPOE, ensuite ?
Si c'est le cas, tu peux essayer de le lancer à la main. Ce n'est pas
terriblement compliqué.
Il faut que tu mette ton login/mot de passe dans /etc/ppp/chap-secrets
et/ou /etc/ppp/pap-secrets
et que tu lances quelque chose du genre:
/sbin/pppd pty "pppoe -I eth0" -noipdefault -noauth defaultroute
usepeerdns lock user <USER> debug nodetach
en remplaçant user par ton login neuf telecom.
Ca devrait te donner pas mal d'infos, voire réussir :-)

Avatar
Olivier V
no_spam wrote:

Bon, ouvre un xterm, ce sera plus simple ;-)
Une fois que ça marchera en console, tu pourras débugger les outils
Mandrake !
Passe root.
modprobe CDCEther
ifconfig -a


J'ai :

[ meloli]$ su
Password:
[ meloli]# modprobe CDCEther
[ meloli]# ifconfig -a
lo Lien encap:Boucle locale
inet adr:127.0.0.1 Masque:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:441 errors:0 dropped:0 overruns:0 frame:0
TX packets:441 errors:0 dropped:0 overruns:0 carrier:0
collisions:0
RX bytes:276967 (270.4 Kb) TX bytes:276967 (270.4 Kb)

ppp0 Lien encap:Protocole Point-à-Point
inet adr:62.39.216.172 P-t-P:62.106.138.51
Masque:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
RX packets:611 errors:2 dropped:0 overruns:0 frame:0
TX packets:601 errors:0 dropped:0 overruns:0 carrier:0
collisions:0
RX bytes:477772 (466.5 Kb) TX bytes:46387 (45.2 Kb)

A ce niveau, tu devrais voir apparaitre une interface ethernet.


Malheureusement non ...

Si ce n'est pas le cas, regarde ce que disent dmesg et lsusb.


C'est du chinois pour moi ... je poste le tout :
Il y a du CDCEther vers la fin ...

[ meloli]# dmesg
Linux version 2.4.22-10mdk () (gcc version 3.3.1
(Mandrake Linux 9.2 3.3.1-2mdk)) #1 Thu Sep 18 12:30:58 CEST 2003
BIOS-provided physical RAM map:
BIOS-e820: 0000000000000000 - 000000000009fc00 (usable)
BIOS-e820: 000000000009fc00 - 00000000000a0000 (reserved)
BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
BIOS-e820: 0000000000100000 - 0000000007ff0000 (usable)
BIOS-e820: 0000000007ff0000 - 0000000007ff8000 (ACPI data)
BIOS-e820: 0000000007ff8000 - 0000000008000000 (ACPI NVS)
BIOS-e820: 00000000fff80000 - 0000000100000000 (reserved)
127MB LOWMEM available.
ACPI: have wakeup address 0xc0001000
On node 0 totalpages: 32752
zone(0): 4096 pages.
zone(1): 28656 pages.
zone(2): 0 pages.
ACPI: RSDP (v000 AMI ) @ 0x000fa670
ACPI: RSDT (v001 AMIINT AMIINI09 0x00000010 MSFT 0x0100000d) @ 0x07ff0000
ACPI: FADT (v001 AMIINT AMIINI09 0x00000011 MSFT 0x0100000d) @ 0x07ff0030
ACPI: DSDT (v001 INTEL TEHAMA 0x00001000 MSFT 0x0100000d) @ 0x00000000
ACPI: MADT not present
Building zonelist for node : 0
Kernel command line: auto BOOT_IMAGE=linux ro root07 quiet devfs=mount
hdd=ide-scsi acpi=ht resume=/dev/hda8 splash=silent
ide_setup: hdd=ide-scsi
bootsplash: silent mode.
Local APIC disabled by BIOS -- reenabling.
Found and enabled local APIC!
Initializing CPU#0
Detected 1499.960 MHz processor.
Console: colour dummy device 80x25
Calibrating delay loop... 2994.99 BogoMIPS
Memory: 125664k/131008k available (1508k kernel code, 4956k reserved, -1961k
data, 156k init, 0k highmem, 0k BadRAM)
Dentry cache hash table entries: 16384 (order: 5, 131072 bytes)
Inode cache hash table entries: 8192 (order: 4, 65536 bytes)
Mount cache hash table entries: 512 (order: 0, 4096 bytes)
Buffer cache hash table entries: 4096 (order: 2, 16384 bytes)
Page-cache hash table entries: 32768 (order: 5, 131072 bytes)
CPU: Trace cache: 12K uops, L1 D cache: 8K
CPU: L2 cache: 256K
Intel machine check architecture supported.
Intel machine check reporting enabled on CPU#0.
CPU: After generic, caps: 3febfbff 00000000 00000000 00000000
CPU: Common caps: 3febfbff 00000000 00000000 00000000
CPU: Intel(R) Pentium(R) 4 CPU 1500MHz stepping 07
Enabling fast FPU save and restore... done.
Enabling unmasked SIMD FPU exception support... done.
Checking 'hlt' instruction... OK.
POSIX conformance testing by UNIFIX
enabled ExtINT on CPU#0
ESR value before enabling vector: 00000000
ESR value after enabling vector: 00000000
Using local APIC timer interrupts.
calibrating APIC timer ...
..... CPU clock speed is 1499.9849 MHz.
..... host bus clock speed is 99.9988 MHz.
cpu: 0, clocks: 999988, slice: 499994
CPU0<T0:999984,T1:499984,D:6,S:499994,C:999988>
mtrr: v1.40 (20010327) Richard Gooch ()
mtrr: detected mtrr type: Intel
ACPI: Subsystem revision 20030813
ACPI: Interpreter disabled.
PCI: PCI BIOS revision 2.10 entry at 0xfdae1, last bus=2
PCI: Using configuration type 1
PCI: Probing PCI hardware
PCI: ACPI tables contain no PCI IRQ routing entries
PCI: Probing PCI hardware (bus 00)
Transparent bridge - Intel Corp. 82801BA/CA/DB/EB PCI Bridge
PCI: Using IRQ router PIIX [8086/2440] at 00:1f.0
PCI: Found IRQ 5 for device 00:1f.3
PCI: Sharing IRQ 5 with 00:1f.5
isapnp: Scanning for PnP cards...
isapnp: No Plug & Play device found
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Initializing RT netlink socket
apm: BIOS version 1.2 Flags 0x03 (Driver version 1.16)
Starting kswapd
kinoded started
VFS: Disk quotas vdquot_6.5.1
devfs: v1.12c (20020818) Richard Gooch ()
devfs: boot_options: 0x1
vesafb: framebuffer at 0xd8000000, mapped to 0xc8800000, size 1875k
vesafb: mode is 800x600x16, linelength00, pagesg
vesafb: protected mode interface info at c000:55ea
vesafb: scrolling: redraw
vesafb: directcolor: size=0:5:6:5, shift=0:11:5:0
Looking for splash picture.... silenjpeg size 107888 bytes, found (800x600,
107840 bytes, v3).
Got silent jpeg.
Got silent jpeg.
Console: switching to colour frame buffer device 92x32
fb0: VESA VGA frame buffer device
pty: 1024 Unix98 ptys configured
Serial driver version 5.05c (2001-07-08) with HUB-6 MANY_PORTS MULTIPORT
SHARE_IRQ SERIAL_PCI ISAPNP enabled
ttyS00 at 0x03f8 (irq = 4) is a 16550A
ttyS01 at 0x02f8 (irq = 3) is a 16550A
RAMDISK driver initialized: 16 RAM disks of 32000K size 1024 blocksize
Uniform Multi-Platform E-IDE driver Revision: 7.00beta4-2.4
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
ICH2: IDE controller at PCI slot 00:1f.1
ICH2: chipset revision 4
ICH2: not 100% native mode: will probe irqs later
ide0: BM-DMA at 0xff00-0xff07, BIOS settings: hda:DMA, hdb:pio
ide1: BM-DMA at 0xff08-0xff0f, BIOS settings: hdc:DMA, hdd:DMA
hda: ST380011A, ATA DISK drive
blk: queue c0180d20, I/O limit 4095Mb (mask 0xffffffff)
hdc: SB05 SAMSUNG DVD-ROM SD-612S, ATAPI CD/DVD-ROM drive
hdd: SAMSUNG CD-R/RW DRIVE SW-212B, ATAPI CD/DVD-ROM drive
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
ide1 at 0x170-0x177,0x376 on irq 15
hda: attached ide-disk driver.
hda: host protected area => 1
hda: 156301488 sectors (80026 MB) w/2048KiB Cache, CHS—29/255/63, UDMA(33)
Partition check:
/dev/ide/host0/bus0/target0/lun0: p1 p2 < p5 p6 p7 p8 p9 >
ide: late registration of driver.
md: md driver 0.90.0 MAX_MD_DEVS%6, MD_SB_DISKS'
md: Autodetecting RAID arrays.
md: autorun ...
md: ... autorun DONE.
Initializing Cryptographic API
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP, IGMP
IP: routing cache hash table of 512 buckets, 4Kbytes
TCP: Hash tables configured (established 8192 bind 16384)
Linux IP multicast router 0.06 plus PIM-SM
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
Resume Machine: This is normal swap space
Swsusp 1.0.3: kswsuspd starting
RAMDISK: Compressed image found at block 0
Freeing initrd memory: 300k freed
EXT2-fs warning: checktime reached, running e2fsck is recommended
VFS: Mounted root (ext2 filesystem).
Mounted devfs on /dev
Journalled Block Device driver loaded
kjournald starting. Commit interval 5 seconds
EXT3-fs: mounted filesystem with ordered data mode.
Mounted devfs on /dev
Freeing unused kernel memory: 156k freed
Got silent jpeg.
Real Time Clock Driver v1.10e
usb.c: registered new driver usbdevfs
usb.c: registered new driver hub
usb-uhci.c: $Revision: 1.275 $ time 12:42:04 Sep 18 2003
usb-uhci.c: High bandwidth mode enabled
PCI: Assigned IRQ 5 for device 00:1f.2
PCI: Setting latency timer of device 00:1f.2 to 64
usb-uhci.c: USB UHCI at I/O 0xdc00, IRQ 5
usb-uhci.c: Detected 2 ports
usb.c: new USB bus registered, assigned bus number 1
hub.c: USB hub found
hub.c: 2 ports detected
PCI: Found IRQ 10 for device 00:1f.4
PCI: Setting latency timer of device 00:1f.4 to 64
usb-uhci.c: USB UHCI at I/O 0xd800, IRQ 10
usb-uhci.c: Detected 2 ports
usb.c: new USB bus registered, assigned bus number 2
hub.c: USB hub found
hub.c: 2 ports detected
usb-uhci.c: v1.275:USB Universal Host Controller Interface driver
usbdevfs: remount parameter error
EXT3 FS 2.4-0.9.19, 19 August 2002 on ide0(3,7), internal journal
Adding Swap: 265032k swap-space (priority -1)
hub.c: new USB device 00:1f.2-1, assigned address 2
usb.c: USB device 2 (vend/prod 0x4b8/0x10f) is not claimed by any active
driver.
SCSI subsystem driver Revision: 1.00
hdd: attached ide-scsi driver.
scsi0 : SCSI host adapter emulation for IDE ATAPI devices
Vendor: SAMSUNG Model: CD-R/RW SW-212B Rev: bs07
Type: CD-ROM ANSI SCSI revision: 02
hdc: attached ide-cdrom driver.
hdc: ATAPI 40X DVD-ROM drive, 512kB Cache, UDMA(33)
Uniform CD-ROM driver Revision: 3.12
kjournald starting. Commit interval 5 seconds
EXT3 FS 2.4-0.9.19, 19 August 2002 on ide0(3,9), internal journal
EXT3-fs: mounted filesystem with ordered data mode.
usb.c: registered new driver usbscanner
scanner.c: USB scanner device (0x04b8/0x010f) now attached to scanner0
scanner.c: 0.4.14:USB Scanner Driver
MSDOS FS: IO charset iso8859-15
MSDOS FS: Using codepage 850
MSDOS FS: IO charset iso8859-15
MSDOS FS: Using codepage 850
MSDOS FS: IO charset iso8859-15
MSDOS FS: Using codepage 850
inserting floppy driver for 2.4.22-10mdk
Floppy drive(s): fd0 is 1.44M
FDC 0 is a post-1991 82077
Attached scsi CD-ROM sr0 at scsi0, channel 0, id 0, lun 0
sr0: scsi3-mmc drive: 8x/32x writer cd/rw xa/form2 cdda tray
i2c-core.o: i2c core module version 2.8.0 (20030714)
i2c-proc.o version 2.8.0 (20030714)
Intel 810 + AC97 Audio, version 0.24, 12:41:23 Sep 18 2003
PCI: Found IRQ 5 for device 00:1f.5
PCI: Sharing IRQ 5 with 00:1f.3
PCI: Setting latency timer of device 00:1f.5 to 64
i810: Intel ICH2 found at IO 0xd000 and 0xd400, MEM 0x0000 and 0x0000, IRQ 5
i810_audio: Audio Controller supports 6 channels.
i810_audio: Defaulting to base 2 channel mode.
i810_audio: Resetting connection 0
ac97_codec: AC97 Audio codec, id: 0x8384:0x7600 (SigmaTel STAC????)
i810_audio: only 48Khz playback available.
i810_audio: AC'97 codec 0 Unable to map surround DAC's (or DAC's not
present), total channels = 2
Linux agpgart interface v0.99 (c) Jeff Hartmann
agpgart: Maximum main memory to use for agp memory: 94M
agpgart: Detected Intel i850 chipset
agpgart: AGP aperture is 64M @ 0xe8000000
[drm] AGP 0.99 Aperture @ 0xe8000000 64MB
[drm] Initialized radeon 1.7.0 20020828 on minor 0
parport0: PC-style at 0x378 (0x778) [PCSPP,TRISTATE,EPP]
parport0: irq 7 detected
parport0: Printer, Canon S600
lp0: using parport0 (polling).
Looking for splash picture.... found (800x600, 14470 bytes, v3).
Splash status on console 0 changed to on
Looking for splash picture.... found (800x600, 14470 bytes, v3).
Splash status on console 1 changed to on
Looking for splash picture.... found (800x600, 14470 bytes, v3).
Splash status on console 2 changed to on
Looking for splash picture.... found (800x600, 14470 bytes, v3).
Splash status on console 3 changed to on
Looking for splash picture.... found (800x600, 14470 bytes, v3).
Splash status on console 4 changed to on
Looking for splash picture.... found (800x600, 14470 bytes, v3).
Splash status on console 5 changed to on
udf: registering filesystem
UDF-fs DEBUG lowlevel.c:65:udf_get_last_session: CDROMMULTISESSION not
supported: rc=-22
UDF-fs DEBUG super.c:1420:udf_read_super: Multi-session=0
UDF-fs DEBUG super.c:413:udf_vrs: Starting at sector 16 (2048 byte sectors)
UDF-fs DEBUG super.c:1160:udf_check_valid: Failed to read byte 32768.
Assuming open disc. Skipping validity check
NET4: Linux IPX 0.47 for NET4.0
IPX Portions Copyright (c) 1995 Caldera, Inc.
IPX Portions Copyright (c) 2000, 2001 Conectiva, Inc.
NET4: AppleTalk 0.18a for Linux NET4.0
UDF-fs DEBUG misc.c:235:udf_read_tagged: location mismatch block 256, tag
3936856589 != 256
UDF-fs DEBUG super.c:1214:udf_load_partition: No Anchor block found
UDF-fs: No partition found (1)
Unable to identify CD-ROM format.
VFS: Can't find ext2 filesystem on dev fd(2,0).
MSDOS FS: IO charset iso8859-15
MSDOS FS: Using codepage 850
CSLIP: code copyright 1989 Regents of the University of California
PPP generic driver version 2.4.2
PPP BSD Compression module registered
PPP Deflate Compression module registered
CDCEther.c: CDCEther.c: 0.98.6 7 Jan 2002 Brad Hards and another
usb.c: registered new driver CDCEther
[ meloli]# lsusb
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 001: ID 0000:0000
Bus 001 Device 002: ID 04b8:010f Seiko Epson Corp. Perfection 1250
[ meloli]#

Comme j'ai vu que RedHat a introduit (au moins) un bug dans son driver
CDCEther qui empêche ce modem de fonctionner, il n'est pas exclus que
Mandrake ai fait pareil...
Si ca ne marche pas, je pourrais t'envoyer un source de CDCEther.c qui
marche.


Je suis preneur : voici un mail valable lestib(at)free(point)fr


Si tu vois ton interface ethernet, c'est (presque) gagné.
Est-tu sur que c'est du PPPOE, ensuite ?


Quasiment :
sous windows le manuel dit de choisir "se connecter en utilisant une
connexion large bande qui nécessite un nom d'utilisateur et un mot de
passe" [...] "Votre FAI peut faire référence à se type de connexion sous la
dénomination pppoe".

Si c'est le cas, tu peux essayer de le lancer à la main. Ce n'est pas
terriblement compliqué.
Il faut que tu mette ton login/mot de passe dans /etc/ppp/chap-secrets
et/ou /etc/ppp/pap-secrets
et que tu lances quelque chose du genre:
/sbin/pppd pty "pppoe -I eth0" -noipdefault -noauth defaultroute
usepeerdns lock user <USER> debug nodetach
en remplaçant user par ton login neuf telecom.
Ca devrait te donner pas mal d'infos, voire réussir :-)


J'essaierais une fois que les premières étapes seront OK.

Merci, et si vous avez un peu de temps pour m'aider à résoudre ce qui
coince ...

Olivier V

Avatar
no_spam
On Tue, 05 Oct 2004 18:37:25 +0200, Olivier V wrote:

no_spam wrote:

Bon, ouvre un xterm, ce sera plus simple ;-)
Une fois que ça marchera en console, tu pourras débugger les outils
Mandrake !
Passe root.
modprobe CDCEther
ifconfig -a


J'ai :


[...]

Ca ne marche donc pas.
OK, je t'enverrai par mail plus d'infos et un driver qui marche demain...


Avatar
Olivier V
no_spam wrote:

Ca ne marche donc pas.
OK, je t'enverrai par mail plus d'infos et un driver qui marche demain...


Merci beaucoup ... beaucoup !
J'attends cela avec impatience ...

Olivier V