Kad smo vec kod modema ..... pre neki dan sam skinuo driver za lucentov LT Winmodem za freebsd 4.2 pa ako nekom treba a da se nebi patio trazeci, okacio sam ga na lokaciji
http://www.pcdesign.co.yu/down...WinModem-0.4-freebsd42r.tar.gz
Upustvo za instalaciju je sledece:
=====================================================
Lucent Win Modem driver ver 5.78 for FreeBSD 4.2R rev 0.4
=====================================================
Installing Lucent Win Modem driver.
1.Install kernel source tree.
[ from /usr/share/doc/handbook/book.txt ]
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 working directory and extract files.
Substitute ${WORK_DIR} for the directory you made.
Extract files.
# mkdir ${WORK_DIR}
# cd ${WORK_DIR}
# tar xzvf ltmdm-0.1-freebsd42r.tar.gz
INSTALL.TXT
README.TXT
Makefile
ltmdm_makefile.patch
ltmdm_makedev.patch
ltmdm_makedev.sh
ltmdmsio.c
Make directories.
# mkdir /usr/src/sys/dev/ltmdm
# mkdir /usr/src/sys/modules/ltmdm
Copy files.
# cp -p ltmdmsio.c /usr/src/sys/dev/ltmdm
# cp -p Makefile /usr/src/sys/modules/ltmdm
3.Apply patch file.
# cd /usr/src/sys
# patch -p < ${WORK_DIR}/ltmdm_makefile.patch
4.Extract "ltmdmobj.o" from the driver kit for Linux.
In case you get "ltmdmobj.o" from
http://walbran.org/sean/linux/stodolsk/ltmodem-5.78e.tar.gz
Download the driver kit for Linux.
# cd ${WORK_DIR}
# fetch
http://walbran.org/sean/linux/stodolsk/ltmodem-5.78e.tar.gz
Extract files.
# tar xzvf ltmodem-5.78e.tar.gz
ltmodem-5.78e/
ltmodem-5.78e/1ST-READ
ltmodem-5.78e/COUNTRY_CODES
ltmodem-5.78e/CREDITS
ltmodem-5.78e/build_module
ltmodem-5.78e/build_rpm
ltmodem-5.78e/ltmodem568.o
ltmodem-5.78e/ltmodem-5.78e.tar.gz
Extract files from the nested archive again.
# tar xzvf ltmodem-5.78e/ltmodem-5.78e.tar.gz
ltmodem-5.78e/
ltmodem-5.78e/1ST-READ
ltmodem-5.78e/CHANGELOG
ltmodem-5.78e/COUNTRY_CODES
ltmodem-5.78e/CREDITS
ltmodem-5.78e/Makefile
ltmodem-5.78e/UPDATES-BUGS
ltmodem-5.78e/linuxif.h
ltmodem-5.78e/ltinst
ltmodem-5.78e/ltmdmobj.o
ltmodem-5.78e/ltmodem-2.4.patch
ltmodem-5.78e/ltmodem.c
ltmodem-5.78e/ltmodem.spec
ltmodem-5.78e/ltuninst
ltmodem-5.78e/serial-2.4.patch
ltmodem-5.78e/serial.c
ltmodem-5.78e/serial.c.240
Check size of file.
# ls -l ltmodem-5.78e/ltmdmobj.o
-rw-r--r-- 1 root wheel 387675 1/19 12:40 ltmodem-5.78e/ltmdmobj.o
Check checksum.
# cksum ltmodem-5.78e/ltmdmobj.o
2434871734 387675 ltmodem-5.78e/ltmdmobj.o
Copy file.
# cp -p ltmodem-5.78e/ltmdmobj.o /usr/src/sys/dev/ltmdm
5.Make and install.
Substitute <KERNEL_NAME> for your kernel configuration.
You can use GENERIC if you make first.
Make driver as a module. DO NOT ADD "device ltmdm".
Execute "config" to create Makefile and some header files.
# cd /usr/src/sys/i386/conf
# config <KERNEL_NAME>
# cd ../../compile/<KERNEL_NAME>
# make modules-depend
# make modules
# make modules-install
6.Create device special file.
Create device special file by (a) or (b)
whichever you like.
(a) Apply patch to /dev/MAKEDEV and execute it.
# cd /dev
# patch -p < ${WORK_DIR}/ltmdm_makedev.patch
# ./MAKEDEV cual0 ttyl0
(b) Create device special file by shell script.
# cd ${WORK_DIR}
# ./ltmdm_makedev.sh
7. Test the driver.
Connecting to ISP by ppp.
# kldload ltmdm <- load the driver.
/kernel: ltmdm0: <Lucent .... ->
# ppp
Working in interactive mode
Using interface: tun0
ppp ON > set device /dev/cual0 <- set device ...
ppp ON > term <- term
deflink: Entering terminal mode on /dev/cual0
Type `~?' for help
AT <- AT
OK ->
AT+GCI=00 <- set country code (00=japan)
(see ltmodem-5.78e/COUNTRY_CODES)
OK
ATI9 <- ATI9
Japan -> check country.
OK
ATI3 <- ATI3
LT V.90 Data+Fax Modem Version 5.78 -> check version.
OK
ATDTxxxxxxxxxx <- dial to ISP
CONNECT 56000 V42bis -> (wait for a while)
Login: xxxxxxxx <- login to ISP
Password: xxxxxxxx <- type password (no echo)
Entering PPP Mode.
IP address is xxx.xxx.xxx.xxx
MTU is 1500.
~p <- goto packet mode.
Packet mode.
ppp ON >
PPp ON >
PPP ON > -> IP connection is established.
( try Web browser or ftp application )
PPP ON > close <- disconnect
PPp ON >
ppp ON >
ppp ON > quit
<- quit
#
see man ppp(

for detail.
8.Loading driver at boot.
If you want to load the driver at boot.
Add a line shown below into /boot/loader.conf
( create this file if it does not exist. )
ltmdm_load="YES"
( In this way, IRQ cannot be shared. )
or
Add a line shown below into /etc/rc.local
( create this file if it does not exist. )
/sbin/kldload ltmdm.ko
otherwise
You must execute "kldload ltmdm.ko" by hand before you use modem.
9.Edit the configuration file for your application.
Change the device name.
sio0 -> ltmdm0
cuaa0 -> cual0
cuaia0 -> cuail0
cuala0 -> cuall0
ttyd0 -> ttyl0
ttyid0 -> ttyil0
ttyld0 -> ttyll0
Add country code setting to AT command script.
( substitute xx for country code. see ltmodem-5.78e/COUNTRY_CODES
)
AT+GCI=xx
10.