Navigacija
Lista poslednjih: 16, 32, 64, 128 poruka.

FreeBSD 4.3 i modem

[es] :: BSD :: FreeBSD 4.3 i modem

[ Pregleda: 8628 | Odgovora: 14 ] > FB > Twit

Postavi temu Odgovori

Autor

Pretraga teme: Traži
Markiranje Štampanje RSS

zakic
Aleksandar Zakić

Član broj: 311
Poruke: 102
*.rcub.bg.ac.yu

ICQ: 89076459
Sajt: www.its.rs


Profil

icon FreeBSD 4.3 i modem05.05.2001. u 16:51 - pre 279 meseci
Imam hardverski modem Rockwell 33.6 i radi na linuxu super, a radio je i na FreeBSD 4.2, znaci kompajlirao sam kernel na novom FreeBSD-u i kppp ga nadje ali kad treba da se konektujem stane na "Initialization modem" i tu zaglavi, ima li neko resenje? Pozdrav!
Aleksandar Zakić
[email protected]
 
Odgovor na temu

c00l_daem0n
Beograd

Član broj: 309
Poruke: 294
*.telekom.yu

Jabber: andrew@elitesecurity.org
ICQ: 53650656


Profil

icon Re: FreeBSD 4.3 i modem05.05.2001. u 17:22 - pre 279 meseci
pa probaj da stavish initial string iz minicom-a sa X3 umesto X4
ili podesi kernel sa parametrima za modem

Would you translate me on the other page in face = Da li biste me preveli na drugu stranu ulice
 
Odgovor na temu

zakic
Aleksandar Zakić

Član broj: 311
Poruke: 102
*.rcub.bg.ac.yu

ICQ: 89076459
Sajt: www.its.rs


Profil

icon Re: FreeBSD 4.3 i modem05.05.2001. u 21:31 - pre 279 meseci
Malo komplikovano za pocetak:) Na koju foru ovde radi ppp deamon kako da pozivam script ppp.conf (probao sam sa man ppp ali nije mi bas jasno).
Aleksandar Zakić
[email protected]
 
Odgovor na temu

random
Vladimir Vrzić
Beograd

Član broj: 85
Poruke: 3866
194.106.163.*

Sajt: www.last.fm/user/vrza


+4 Profil

icon Re: FreeBSD 4.3 i modem06.05.2001. u 02:44 - pre 279 meseci
Ma vrlo jednostavno... Recimo da ti je provajder EUnet. Staviš u /etc/ppp/ppp.conf stavku

Code:

eunet:
 set phone 3020202
 set authname korisnik
 set authkey lozinka


i eventualno dodaš neki init string u liniju

Code:

set dial "ABORT BUSY...


i naravno podesiš serijski port na kome ti se nalazi modem (recimo da je COM2):

Code:

set device /dev/cuaa1


Snimiš ppp.conf i onda pokreneš user-ppp kao root:

Code:

# ppp
Working in interactive mode
Using interface: tun0
ppp ON localhost>


tu ukucaš

Code:

dial eunet


i to ti je to. Ako hoćeš na drugoj konzoli da pratiš šta se dešava, kucaj

Code:

# tail -f /var/log/ppp.log


Za više detalja procitaj ipak ppp(8). Tu imaš objašnjeno i kako da radiš redial, reconnect i ostale lepe stvari koje user-ppp pruža.

Pozdrav,

rnd()

[Ovu poruku je menjao random dana 05-06-2001 u 02:47 AM GMT]
int rand(void);

Those who do not understand Unix are condemned to reinvent it, poorly.

Upali lampicu — koristi Jabber!
 
Odgovor na temu

zakic
Aleksandar Zakić

Član broj: 311
Poruke: 102
*.rcub.bg.ac.yu

ICQ: 89076459
Sajt: www.its.rs


Profil

icon Re: FreeBSD 4.3 i modem06.05.2001. u 13:58 - pre 279 meseci
Ok hvala proradilo, je:))Ali sad imam drui problem: ping yahoo.com kaze ..... no route to host, ili bilo sta pingujem. Nisam bas imao isustva sa tim rutiranjem.
Aleksandar Zakić
[email protected]
 
Odgovor na temu

zakic
Aleksandar Zakić

Član broj: 311
Poruke: 102
*.rcub.bg.ac.yu

ICQ: 89076459
Sajt: www.its.rs


Profil

icon Re: FreeBSD 4.3 i modem06.05.2001. u 15:16 - pre 279 meseci
Napokon, namestio sam sve hvala puno svima, a posebno random!
Aleksandar Zakić
[email protected]
 
Odgovor na temu

random
Vladimir Vrzić
Beograd

Član broj: 85
Poruke: 3866
*.verat.net

Sajt: www.last.fm/user/vrza


+4 Profil

icon Re: FreeBSD 4.3 i modem06.05.2001. u 15:22 - pre 279 meseci
Nije sramota nemati iskustva. Međutim...

Pokušaj komandom

Code:

PPP ON localhost> add default HISADDR


ili stavi

Code:

add default HISADDR


u ppp.conf.

Ako upali, onda znači da me nisi poslušao i da nisi pročitao ppp(8). Nisam ti to rekao čisto da bih nešto rekao, već da ne bih morao ja da ti prepričavam manual stranicu.

Pozdrav,

rnd()
int rand(void);

Those who do not understand Unix are condemned to reinvent it, poorly.

Upali lampicu — koristi Jabber!
 
Odgovor na temu

random
Vladimir Vrzić
Beograd

Član broj: 85
Poruke: 3866
*.verat.net

Sajt: www.last.fm/user/vrza


+4 Profil

icon Re: FreeBSD 4.3 i modem06.05.2001. u 15:24 - pre 279 meseci
Eto vidiš, dok sam ja ukucao odgovor već si rešio problem... Jel bilo ono što sam predlagao?
int rand(void);

Those who do not understand Unix are condemned to reinvent it, poorly.

Upali lampicu — koristi Jabber!
 
Odgovor na temu

Gojko Vujovic
Amsterdam, NL

Administrator
Član broj: 1
Poruke: 13651



+165 Profil

icon Re: FreeBSD 4.3 i modem06.05.2001. u 15:44 - pre 279 meseci
Heh to za HISADDR sam mu i ja rekao na #elitesecurity negde bas u to vreme. Ne znam dal je pomoglo il je sam otkrio to..
 
Odgovor na temu

zakic
Aleksandar Zakić

Član broj: 311
Poruke: 102
*.rcub.bg.ac.yu

ICQ: 89076459
Sajt: www.its.rs


Profil

icon Re: FreeBSD 4.3 i modem06.05.2001. u 18:27 - pre 279 meseci
Da hvala obojici na uputstvu, moram priznati da mi je man ppp pomogao ali tek posle usmeravanja koje ste mi vi dali. Kppp i dalje ne radi verovatno je neka greska u samom paketu posto mi je na isti nacin podesavanja Free4.2 radio.

Pozdrav!
Aleksandar Zakić
[email protected]
 
Odgovor na temu

Tigerheart
Mladen Komac
VMware SME / IT Architect
NIL ltd.
Celje

Član broj: 306
Poruke: 461
*.verat.net

Jabber: tigerheart@elitesecurity.org
Sajt: www.linkedin.com/in/komac


Profil

icon Re: FreeBSD 4.3 i modem06.05.2001. u 23:17 - pre 279 meseci
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.

--
Mladen Komac
VMware SME / IT Architect
Web site: http://www.linkedin.com/in/komac
Blog: http://guru4hp.blogspot.com


 
Odgovor na temu

creep
Semper Fidelis
Beograd

Član broj: 2321
Poruke: 3
*.tane.com



Profil

icon Re: FreeBSD 4.3 i modem10.06.2002. u 03:19 - pre 266 meseci
Zanima me dali postoji driver (lucent winmodem) za FreeBSD 4.3, posto uglavnom nalazim driver za FreeBSD 4.2, a koliko sam upucen driver ne radi na 4.3.
Pitam pre nego sto uopste krenem sa instalacijom.
A.K.
 
Odgovor na temu

Dusan Marjanovic
Consultant, SAS
Beograd

Član broj: 59
Poruke: 1290
*.016le.net

Jabber: dusanm@gmail.com
ICQ: 84621598
Sajt: marjanovic.net


+6 Profil

icon Re: FreeBSD 4.3 i modem11.06.2002. u 23:04 - pre 265 meseci
Da, u portovima postoji /usr/ports/comms/ltmdm koji će ti po instaliranju dozvoliti da koristiš Lucent modem na FreeBSD. A pogledaj i bsd.org.yu/~madafaka/lucent/ možda ti bude od pomoći
Srećno
VMware VCP/Microsoft MCSE 2003/HP ASE
 
Odgovor na temu

marko85
Marko Radisa
Engleska

Član broj: 866
Poruke: 174
*.in-addr.btopenworld.com.

ICQ: 153901177
Sajt: www.markoradisa.tk


Profil

icon Re: FreeBSD 4.3 i modem12.06.2002. u 20:25 - pre 265 meseci
Samo jedno pitanje:
Kakave je FreeBSD za hvatanje hardware?
Pozdrav
If u can do it i can do it as well
 
Odgovor na temu

Dusan Marjanovic
Consultant, SAS
Beograd

Član broj: 59
Poruke: 1290
*.016le.net

Jabber: dusanm@gmail.com
ICQ: 84621598
Sajt: marjanovic.net


+6 Profil

icon Re: FreeBSD 4.3 i modem14.06.2002. u 04:01 - pre 265 meseci
probaj malo bolje da formulises to pitanje
VMware VCP/Microsoft MCSE 2003/HP ASE
 
Odgovor na temu

[es] :: BSD :: FreeBSD 4.3 i modem

[ Pregleda: 8628 | Odgovora: 14 ] > FB > Twit

Postavi temu Odgovori

Navigacija
Lista poslednjih: 16, 32, 64, 128 poruka.