Lucent Winmodem driver ver 5.78/5.95/5.99/6.00 for FreeBSD 4.x/5.x rev 0.7

Installing the Lucent Winmodem driver.


1.Install kernel source tree.

  from file:/usr/share/doc/handbook/book.html#KERNELCONFIG-BUILDING :

    Note: If there is not a /usr/src/sys directory on your system, then the
    kernel source has not been been installed. The easiest way to do this is by
    running /stand/sysinstall as root, choosing Configure, then Distributions,
    then src, then sys.

2.Extract and copy files.

  Make a directory and extract files.
    ( Replace ${WORK_DIR} with the directory which you will create. )

    # mkdir ${WORK_DIR}
    # cd ${WORK_DIR}
    # tar xzf somewhere/ltmdm-0.7-freebsd.tar.gz
    # rm -rf /usr/src/sys/dev/ltmdm
    # rm -rf /usr/src/sys/modules/ltmdm
    # cp -pR dev/ltmdm /usr/src/sys/dev/
    # cp -pR modules/ltmdm /usr/src/sys/modules/

3.Apply a patch for modules/Makefile.

    # cd /usr/src/sys
    # patch -p < ${WORK_DIR}/ltmdm_makefile.patch

    If there are ltmdm-0.7-patch-*.txt , apply them.

    # cat ltmdm-0.7-patch-*.txt | patch -p

4.Make and install.

    a) 4.x

      # cd /usr/src/sys/compile
      # mkdir ltmdm
      # cd ltmdm
      # make -f /usr/src/sys/dev/ltmdm/Makefile depend all install node

    a) 5.0-CURRENT

      # cd /usr/src/sys/i386/compile
      # mkdir ltmdm
      # cd ltmdm
      # make -f /usr/src/sys/dev/ltmdm/Makefile depend all install

    If you want to change the version of ltmdmobj  or  device major number,
    set environment variable before executing "make -f ...".

      ( csh/tcsh )
        :
      # setenv LTMDM_OBJ_VERSION 595
      # setenv LTMDM_DEV_MAJOR 200
      # make -f .....

5.To load ltmdm.ko at boot.

    a) Add the following line to the /boot/loader.conf:

      ltmdm_load="YES"

  or

    b) Add the following line to the /etc/rc.local:

      /sbin/kldload ltmdm.ko

6.Edit the configuration file for your application.

  If you have a sample configuration for sio0
  change the device file name as:

    sio0        ltmdm0

    cuaa0   ->  cual0
    cuaia0  ->  cuail0
    cuala0  ->  cuall0
    ttyd0   ->  ttyl0
    ttyid0  ->  ttyil0
    ttyld0  ->  ttyll0

  Add country code setting to AT command script.

    AT+GCI=00  (00 = Japan, see below)


        COUNTRY     CODE

        USA(  1):    b5  (default)
        JPN( 81):    00
        GBR( 44):    b4
        DEU( 49):    42
        SWE( 46):    a5
        DNK( 45):    31
        FIN(358):    3c
        NOR( 47):    82
        AUT( 43):    0a
        CHE( 41):    a6
        RUS(  7):    b8
        AUS( 61):    09
        MYS( 60):    6c
        CHN( 86):    26
        BEL( 32):    0f
        CYP(357):    2d
        FRA( 33):    3d
        GRC( 30):    46
        ISL(354):    52
        IRL(353):    57
        ISR(972):    58
        ITA( 39):    59
        LIE(423):    68
        LUX(352):    69
        NLD( 31):    7b
        PRT(351):    8b
        ESP( 34):    a0


  ppp.conf.sample

--- /etc/ppp/ppp.conf.sample	Sat Apr 21 18:10:52 2001
+++ /etc/ppp/ppp.conf.sample-ltmdm	Tue May 15 20:27:47 2001
@@ -14,12 +14,12 @@
  # Ensure that "device" references the correct serial port
  # for your modem. (cuaa0 = COM1, cuaa1 = COM2)
  #
- set device /dev/cuaa1
+ set device /dev/cual0
 
  set log Phase Chat LCP IPCP CCP tun command
  set speed 115200
  set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \
-           \"\" AT OK-AT-OK ATE1Q0 OK \\dATDT\\T TIMEOUT 40 CONNECT"
+           \"\" AT OK-AT-OK ATE1Q0 OK AT+GCI=00 OK \\dATDT\\T TIMEOUT 40 CONNECT"
  set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0
  set timeout 180			# 3 minute idle timer (the default)
  add default HISADDR			# Add a (sticky) default route

7.End

--------------------------------------------------------------------------------
