This checkout utility currently checks for expected components of a Lucent DSP winmodem installation provides a minor tutorial if modem driver insertion is successfull runs a wvdialconf test unloads excess drivers if module loading fails Does not as yet have signficant problem solving action except for referrals to Documentation. Can readily be adapted to work with other winmodem installations. The current Working folder is: /home/matsuura/ltmodem-6.00c2. The folder for temporary files is: TMPM=/home/matsuura/ltmodem-6.00c2/LDSP.tmp To continue: Enter==================================================================== Now acquiring distribution data: The Linux distribution is: redhat End of distribution check. Diagnostic information is progressively being written to /home/matsuura/ltmodem-6.00c2/checkout.txt . Often, contents of this record can aid in solving problems. To continue: Enter==================================================================== You will be requested to participate by prompts to Enter a pre-written command such as: ls NoFile Enterwith the resulting output appearing between the dotted lines. -------------------- ls: NoFile: そのようなファイルやディレクトリはありません -------------------- And with -------------------- -------------------- meaning no output was generated. ================================================================= Proceeding to access PCI modem hardware information Enter grep is a filtering tool, which passes only lines containing the selection term. Display information on a PCI Communication device with: lspci -v | grep Communication Enter--------------------- --------------------- The System does not have a PCI device with a designation: Communication This scan will fail for all non-PCI hardware cards and also for some combination PCI ethernet-modem cards. This information has been copied to /home/matsuura/ltmodem-6.00c2/checkout.txt Proceeding to verify the presence of the modem drivers, please Enter The active System kernel is 2.4.7-10 For kernels 2.4.nn the modem drivers should have been installed within: /lib/modules/2.4.7-10/kernel/drivers/char Changing directory: cd /lib/modules/2.4.7-10/kernel/drivers/char The output to the next ./checkout should at least include: ------------------- -rw-r--r-- 1 root root SIZE DATE_install lt_modem.o -rw-r--r-- 1 root root SIZE DATE_install lt_serial.o ------------------- wherein the driver with proprietary DSP=Digital Signal Processor code is: lt_modem.o and the driver with Open Source code is: lt_serial.o To display the resident drivers: Enter ------------------- -rw-r--r-- 1 root root 416149 4月 29 13:18 lt_modem.o -rw-r--r-- 1 root root 28912 4月 29 13:18 lt_serial.o ------------------- Found driver: lt_modem.o Found driver: lt_serial.o ls: lt_*.o~: そのようなファイルやディレクトリはありません Modem drivers check completed. Changing back to the original Working folder: cd /home/matsuura/ltmodem-6.00c2 ========================================================= There is a functional dependence between many kernel modules. During boot up and module installations, these dependencies are written during a: depmod -a to FileNames: /lib/modules/2.4.7-10/modules.* Enter--------------------- /lib/modules/2.4.7-10/modules.dep /lib/modules/2.4.7-10/modules.generic_string /lib/modules/2.4.7-10/modules.isapnpmap /lib/modules/2.4.7-10/modules.parportmap /lib/modules/2.4.7-10/modules.pcimap /lib/modules/2.4.7-10/modules.usbmap ---------------------- The lt_ modules lines within then can be selectively displayed with: grep lt_ /lib/modules/2.4.7-10/modules.* Enter---------------------- /lib/modules/2.4.7-10/modules.dep:/lib/modules/2.4.7-10/kernel/drivers/char/lt_modem.o: /lib/modules/2.4.7-10/modules.dep:/lib/modules/2.4.7-10/kernel/drivers/char/lt_serial.o: /lib/modules/2.4.7-10/kernel/drivers/char/lt_modem.o ---------------------- For simplicity, some trimming of the PATHs can be done: ---------------------- lt_modem.o: lt_serial.o: /lib/modules/2.4.7-10/kernel/drivers/char/lt_modem.o ---------------------- The first line including only lt_modem.o shows that its loading has no prior dependencies. The line with lt_serial.o followed by lt_modem.o means lt_serial.o loading requires prior loading of lt_modem.o Driver loading is dependent upon the existence of a device node: /dev/ttyLT0 through which the drivers communicate with the modem hardware. Checking for the modem device node: ls -l /dev/ttyLT0 Enter--------------- crw-rw---- 1 root uucp 62, 64 4月 29 13:19 /dev/ttyLT0 --------------- The required /dev/ttyLT0 exists, with access by members of Group: uucp . Current Group settings are easily displayed by using a GREP filtration: grep uucp /etc/group Enter------------------- uucp:x:14:uucp ------------------- for further information: man group The expected symbolic link is: /dev/modem to /dev/ttyLT0 ls -l /dev/modem Enter---------------------- lrwxrwxrwx 1 root root 11 4月 29 13:19 /dev/modem -> /dev/ttyLT0 ---------------------- Passed symbolic link ./checkout Proceed to the driver loading test. First check which drivers are loaded already with: lsmod Enter---------------------- Module Size Used by nls_iso8859-1 2832 1 (autoclean) nls_cp437 4352 1 (autoclean) vfat 9584 1 (autoclean) fat 32384 0 (autoclean) [vfat] sr_mod 15360 0 (autoclean) maestro3 25200 1 (autoclean) ac97_codec 8832 0 (autoclean) [maestro3] soundcore 4464 2 (autoclean) [maestro3] binfmt_misc 6416 1 iscsi 21984 0 (unused) ds 7056 1 yenta_socket 9488 1 pcmcia_core 41600 0 [ds yenta_socket] autofs 11520 0 (autoclean) (unused) eepro100 17664 1 appletalk 20912 0 (autoclean) ipx 16448 0 (autoclean) ide-scsi 8224 0 scsi_mod 95696 3 [sr_mod iscsi ide-scsi] ide-cd 27072 0 cdrom 28512 0 [sr_mod ide-cd] mousedev 4448 1 hid 19024 0 (unused) input 3840 0 [mousedev hid] usb-uhci 21536 0 (unused) usbcore 51712 1 [hid usb-uhci] ext3 64624 1 jbd 40992 1 [ext3] ---------------------- Looking through such long lists is a nuisance. So hereafter in this ./checkout, the information display will be commonly simplified through use of the filtering expression: grep lt_ which will Only Pass lines containing: lt_ lsmod | grep lt_ Enter---------------------- ---------------------- Thus the modem drivers are not now loaded. The drivers can be loaded sequentially by: insmod lt_modem insmod lt_serial or through use of the a Smart command which reads the dependency files, and then loads all the pre-dependents in the proper order. Using -v to additionally specify Verbose Reporting, the command is: modprobe -v lt_serial Enter----------------- /sbin/insmod /lib/modules/2.4.7-10/kernel/drivers/char/lt_modem.o Using /lib/modules/2.4.7-10/kernel/drivers/char/lt_modem.o Symbol version prefix '' /sbin/insmod /lib/modules/2.4.7-10/kernel/drivers/char/lt_serial.o Using /lib/modules/2.4.7-10/kernel/drivers/char/lt_serial.o ------------------- Checking for inserted modem drivers with: lsmod | grep lt_ Enter--------------------- lt_serial 20240 0 (unused) lt_modem 314720 0 [lt_serial] --------------------- Confirming that the drivers were successfully loaded. Module loading section finished. To continue: Enter============================================= ================================================================= The next check is for lines supporting autoloading of modem drivers on demand. These lines should have been written to: /etc/modules.conf --------------------------------- # lt_drivers: autoloading and insertion parameter usage alias char-major-62 lt_serial alias /dev/modem lt_serial alias /dev/tts/LT0 lt_serial # options lt_modem vendor_id=0x115d device_id=0x0420 Forced=3,0x130,0x2f8 # section for lt_drivers ends --------------------------------- of which the last two are only relevant to Systems using the device file system. These lines provide for loading of the modem drivers, whenever there is a query to /dev/ttyLT0 , either directly or through its symbolic links. To selectively ./checkout related lines on your System: grep lt_ /etc/modules.conf Enter ---------------------------------- # lt_drivers: autoloading and insertion parameter usage alias char-major-62 lt_serial alias /dev/tts/LT0 lt_serial alias /dev/modem lt_serial # The next line is a syntax example, rarely needed, to automate parameter usage during lt_drivers insertion. See documentation for details # options lt_modem vendor_id=0x115d device_id=0x0420 Forced=3,0x130,0x2f8 # section for lt_drivers ends ---------------------------------- The ./checkout of installed components and their configuration lines is completed: The lt_drivers lt_modem.o and lt_serial.o . The device nodes /dev/ttyLT0 and its symbolic link /dev/modem The driver autoloading support lines in /etc/modules.conf . Lastly, the loading of the the drivers is successful. ======================================================================= To prepare for a modem test: Enter The dialout utility WVDIAL is present and executable, so let us proceed promptly towards this test. While the modem drivers will autoload when configuration steps are completed, loading by manual command may be necessary for for the trial: WVDIALCONF The WVDIALCONFIG utility only screens for ports with name style: /dev/ttySxxx Hence it is necessary to supply a suitable port name or symbolic link. Such a supportive nomenclature is not provided by: /dev/modem But a temporary symbolic link can be made with: ln -sfv /dev/ttyLT0 /dev/ttyS1_replace_with_ttyLTO Enter------------------ create symbolic link `/dev/ttyS1_replace_with_ttyLTO' to `/dev/ttyLT0' ------------------ and checking with: ./checkout: ls -l /dev/ttyS1_replace_with_ttyLTO: そのようなファイルやディレクトリはありません Enter--------------- lrwxrwxrwx 1 root root 11 4月 29 13:20 /dev/ttyS1_replace_with_ttyLTO -> /dev/ttyLT0 --------------- the test can proceed. =============================================================== To proceed with the WVDIALCONF trial: Enter The output will first be captured and parsed and a trial configuration file written here: /home/matsuura/ltmodem-6.00c2/wvdial.conf wvdialconf /home/matsuura/ltmodem-6.00c2/wvdial.conf Enter------------------------------------- Scanning your serial ports for a modem. ttyS0<*1>: ATQ0 V1 E1 -- ATQ0 V1 E1 -- ATQ0 V1 E1 -- nothing. Port Scan<*1>: S1 ttyS1_replace_with_ttyLTO<*1>: ATQ0 V1 E1 -- OK ttyS1_replace_with_ttyLTO<*1>: ATQ0 V1 E1 Z -- OK ttyS1_replace_with_ttyLTO<*1>: ATQ0 V1 E1 S0=0 -- OK ttyS1_replace_with_ttyLTO<*1>: ATQ0 V1 E1 S0=0 &C1 -- OK ttyS1_replace_with_ttyLTO<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 -- OK ttyS1_replace_with_ttyLTO<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 S11=55 -- OK ttyS1_replace_with_ttyLTO<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 S11=55 +FCLASS=0 -- OK ttyS1_replace_with_ttyLTO<*1>: Modem Identifier: ATI -- LT V.90 Data+Fax Modem Version 6.00 ttyS1_replace_with_ttyLTO<*1>: Speed 2400: AT -- OK ttyS1_replace_with_ttyLTO<*1>: Speed 4800: AT -- OK ttyS1_replace_with_ttyLTO<*1>: Speed 9600: AT -- OK ttyS1_replace_with_ttyLTO<*1>: Speed 19200: AT -- OK ttyS1_replace_with_ttyLTO<*1>: Speed 38400: AT -- OK ttyS1_replace_with_ttyLTO<*1>: Speed 57600: AT -- OK ttyS1_replace_with_ttyLTO<*1>: Speed 115200: AT -- OK ttyS1_replace_with_ttyLTO<*1>: Max speed is 115200; that should be safe. ttyS1_replace_with_ttyLTO<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 S11=55 +FCLASS=0 -- OK ttyS2<*1>: ATQ0 V1 E1 -- ATQ0 V1 E1 -- ATQ0 V1 E1 -- nothing. Port Scan<*1>: S3 S4 S5 S6 S7 S8 S9 Port Scan<*1>: S10 S11 S12 S13 S14 S15 S16 S17 Port Scan<*1>: S18 S19 S20 S21 S22 S23 S24 S25 Port Scan<*1>: S26 S27 S28 S29 S30 S31 SA0 SA1 Port Scan<*1>: SA2 SC0 SC1 SC2 SC3 SI0 SI1 SI2 Port Scan<*1>: SI3 SI4 SI5 SI6 SI7 SI8 SI9 SI10 Port Scan<*1>: SI11 SI12 SI13 SI14 SI15 SR0 SR1 SR2 Port Scan<*1>: SR3 SR4 SR5 SR6 SR7 SR8 SR9 SR10 Port Scan<*1>: SR11 SR12 SR13 SR14 SR15 SR16 SR17 SR18 Port Scan<*1>: SR19 SR20 SR21 SR22 SR23 SR24 SR25 SR26 Port Scan<*1>: SR27 SR28 SR29 SR30 SR31 SR256 SR257 SR258 Port Scan<*1>: SR259 SR260 SR261 SR262 SR263 SR264 SR265 SR266 Port Scan<*1>: SR267 SR268 SR269 SR270 SR271 SR272 SR273 SR274 Port Scan<*1>: SR275 SR276 SR277 SR278 SR279 SR280 SR281 SR282 Port Scan<*1>: SR283 SR284 SR285 SR286 SR287 Found a modem on /dev/ttyS1_replace_with_ttyLTO. /home/matsuura/ltmodem-6.00c2/wvdial.conf: Can't read config file /home/matsuura/ltmodem-6.00c2/wvdial.conf: No such file or directory ttyS1_replace_with_ttyLTO: Speed 115200; init "ATQ0 V1 E1 S0=0 &C1 &D2 S11=55 +FCLASS=0" ------------------------------------- SUCCESSFUL, Great! So your System should soon be on line under Linux! Here is the trial wvdial.conf [Dialer Defaults] Modem = /dev/ttyS1_replace_with_ttyLTO Baud = 115200 Init1 = ATZ Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 S11=55 +FCLASS=0 ; Phone = ; Username = ; Password = It has been copied to /home/matsuura/ltmodem-6.00c2/checkout.txt After your edits, it should be copied to: /etc/wvdail.conf where it is expected by the companion dialout utility: wvdial The symbolic link /dev/ttyS1_replace_with_ttyLTO has now been deleted. For some RARE system configurations and hardware, it may cause System hangs upon bootup serial port scannning. Knowing you are anxious to get on line, the rest of ./checkout will be skipped. The skipped section has an module unloading routine useful for lessening resource conflicts, which is also contained in utils/ For guidance on completing dialout scripts, read within DOCs/ wvdial.txt and dialout.txt