[Linux] usb modem sorun

---------

New Message Reply About this list Date view Thread view Subject view Author view Attachment view

From: ilyas none (ilyas1453@msn.com)
Date: Tue 08 Mar 2005 - 18:12:54 EET


                                                                    
11/27/2002
GlobespanVirata ADSL USB Driver for Linux
-----------------------------------------

Introduction
------------
  This file describes the Linux LAN/WAN driver for the GlobespanVirata ADSL
  USB adapters.

  This driver supports Linux-2.4 kernels. The Linux kernel sources can be
  download from:
  http://www.kernel.org/pub/linux/kernel/v2.4/

  The driver supports Linux-2.4 kernels ONLY

  The installed system should already have the kernel sources
  installed in the /usr/src/linux directory. If they are not there,
  try to get them off the installation disks for your distribution,
  or download the corresponding Linux-2.4 kernel sources, and configure and
  build that. There are lots of books and documents available
  describing how to extract, configure and build the kernel from
  it's sources...

  It is important to have both the currently installed kernel and the
  kernel sources for the same version.

  The driver is tested for kernal 2.4.2-2 and 2.4.7-10 for RedHat 7.1.
  The driver is tested for kernal 2.4.9 for RedHat 7.2 Release
  The driver is tested for kernal 2.4.18-4 for RedHat 7.3 Release

Release Notes
-------------
    v1.00.0000E (11/27/2002)
    - Initial release of driver with support for Linux-2.4 kernels.

Directory Structure
-------------------
   The directory Structure is as follows.
      usbmodem
         |
         |---ModemDrv
         |
         |---gpatm
         |
         |---Gti
         |
         |---cpl

Compiling the Driver
--------------------

  The ATM library (libgpatmis.a) is for kernel version 2.4.x.
  The Gti library (libgpatmis.a) is for kernel version 2.4.x.

  The Makefiles contains 4 important options at the top of the file. They
  are:
     LINUX_SRC - Path to the Linux kernel sources [/usr/src/linux]
     DEBUG - Output driver debug messages [n]
     LAN - Create LAN interface [y]
     WAN - Create WAN interfaces [y]
     UNITTEST - Used for testing the system [n]
     MODULE_PARAMS - Module load parameters

  The Makefile understands following target(s).
   % cd usbmodem/ModemDrv
   % make -f phy.mk
    % make all - This is to create the driver module. (Command to be
                     executed from directory usbmodem/ModemDrv.)

   This should create a Linux module file GSPNModem in the same directory

Compiling the Control Program
-----------------------------

   % cd usbmodem/cpl
    % make all - This is to create the driver module. (Command to be
                     executed from directory usbmodem/cpl.)

Loading the module
------------------

  The Modem driver loads to enable the device as a DSL modem.

  Loading Modem Driver
  =====================

  The module accepts several parameters that can be set when the module is
loaded. The default values for the VID/PID are 0x0915/0x8102.

  Syntax:
   # cd usbmodem/ModemDrv
    # insmod ./GSPNModem {Module Options} (Command to be executed from
                        directory usbmodem/ModemDrv)

    Module Options
    --------------
      Rfc1483Mode default: 0 (Bridged LLC)
      Rfc1483Vci default: 100
      Rfc1483Vpi default: 0
      Rfc2364Mode default: 0 (VC)
      Rfc2364Vci default: 100
      Rfc2364Vpi default: 100

   VPI and VCI settings to be used according to what's configured.

  For example to load the module and set the LAN VCI/VPI to 35/0:
    # insmod ./GSPNModem Rfc1483Vci=35 Rfc1483Vpi=0 (Command to be executed
from directory usbmodem/ModemDrv)

  To determine if the driver has loaded:
    # dmesg (or file /var/log/messages)

      gp: USB Modem Driver Build

  To determine if driver is in data mode.
    # dmesg (or file /var/log/messages)

      gp: Link established (8000/892)
                              ^^^^ ^^^
                              ^ ^
                              ^ Upstream rate
                              Downstream rate

  Alternatively the control panel application can also be used to get Modem
Status as given below.
  % cd usbmodem/cpl
  % gsi_cfg eth2 -s ( The ethernet device depends on what has been
configured on the system )
  (Command to be executed from usbmodem/cpl)

Unloading the module & the firmware loader
------------------------------------------
  To unload an unused module:
    % rmmod ./GSPNModem (Command to be executed from directory
usbmodem/ModemDrv)

  You may need to exit or disconnect any program current using the module
  before it will unload. If the module was configured for LAN, shutdown
  the ethernet interface:
    % ifconfig eth2 down

  If the module was configured as a WAN device, you may need to disconnect
  the PPP daemon (pppd) from the TTY interfaces. Do this by terminating
  the PPP daemon:
    % killall pppd

LAN Configuration
-----------------
  To enable LAN traffic over the ethernet interface:
    % ifconfig eth2 192.168.1.200 up

  You may also need to modify the netmask and route for the interface.
  Refer to the manual pages for ifconfig and route for more information.

  To test the LAN connection is alive by pinging the remote side:
    % ping 192.168.1.1

  To disconnect the LAN inteface:
    % ifconfig eth2 down

WAN Configuration
-----------------
  The PPP daemon (pppd) talks to the driver over TTY devices. Before the
  driver can be used, the devices /dev/ttyG0 and /dev/cug0 need to be
  created. This can be performed by executing:
    % make devnodes

  or by entering the following from the command line:
    % mknod /dev/ttyG0 c 43 0
    % chown root.uucp /dev/ttyG0
    % chmod 0660 /dev/ttyG0

    % mknod /dev/cug0 c 44 0
    % chown root.uucp /dev/cug0
    % chmod 0660 /dev/cug0

  Next, PPP needs to be configured as a client to connect to a PPP
  server. The PPP server should already be created, and a dialup
  user configured. For this example, the user name is "test_user",
  and the user password is "test_password".

  Add the following (delete the leading spaces, and replace the spaces
  with tabs) to: "/etc/ppp/pap-secrets" and "/etc/ppp/chap-secrets"
    "test_user" * "test_password"

  Create a PPP description file: "/etc/ppp/peers/adsl" that contains:
    user "test_user"
    ttyG0
    sync
    mtu 1490
    mru 1490
    debug

  To initiate a WAN connection execute the following:
    % pppd call adsl

  To test the PPP connection by pinging the remote side:
  Do ifconfig -a to get the remote IPADDRESS and then ping the remote.
    % ping Remote IPADDRESS

PPPoE Configuration
-------------------
   The PPPoE should be installed on the system.

   The file /etc/pppoe/pppoe.conf should have ETH=eth1 (where eth1 is the
Ethernet card connected to ADSL modem)
   and USER=test_user.

   To enable the interface:
    % ifconfig eth1 up ( eth1 is the ethernet device as configured in file
/etc/pppoe/pppoe.conf

   Then execute:
   adsl-start

Changing Driver and DSP Parameters Configuration
------------------------------------------------

   GlobeSpan provides "gsi_cfg" control panel application ( available in cpl
directory in src tree) to enable
   customers to change the drivers and DSP parameters on run time.

   To see the parameter of the application run following command

      gsi_cfg eth1 -h

   To change the Driver and DSP parameters. Modify the gp.cfg file and run
the control panel with Change configuration option(run -C eth2)

Various modes tested
--------------------

   WAN modes tested
   1. RFC 2364 PPPoATM NULL encapsulation
   2. RFC 2364 PPPoATM LLC encapsulation
   3. RFC 2516 PPPoE encapsulation

   LAN modes tested
   1. RFC 1483 IPoATM bridged LLC encapsulation
   2. RFC 1483 IPoATM routed LLC encapsulation

   LAN modes which are not tested are
   1. RFC 1483 IPoATM bridged VC encapsulation
   2. RFC 1483 IPoATM routed VC encapsulation

Known Issues
------------
1) BULK Mode Downstream Transfer is not working.
2) USB BUS Physical Disconnect may not work in all cases once the Modem
driver is loaded. ,

bu readme sky onixon ADSL 100 modem im bumu RED HAt kullaniyorum yeni
basladim linux ve tek sorunum bu bunu da halledersem bisi kalmicak nasil
yukleye bilirm

_________________________________________________________________
Hem e-postalarinizi, hem de Bilgisayarinizi MSN Güvenlik ile koruma altina
alin! http://www.msn.com.tr/security/

_______________________________________________
Linux mailing list
Linux@liste.linux.org.tr
http://liste.linux.org.tr/mailman/listinfo/linux


New Message Reply About this list Date view Thread view Subject view Author view Attachment view

---------

Bu arsiv hypermail 2.1.2 tarafindan uretilmistir.