Автор Гілка: незрозуміла проблема з вінмодемом...  (Прочитано 5638 раз)

Відсутній andrej_w

  • Новачок
  • *
  • дописів: 43
  • Карма: +0/-0
  • Елвіс - живий!
Знайшов драйвера різних виробників для мого вінмодему (Class 0780: 11c1:044c   Communication controller: Agere Systems LT WinModem (rev 02)). Найперший драйвер, який пробував, це з сайту linmodemів - "ltmodem-8.31a10", він говорить, що debian:/opt/ltmodem-8.31a10# ./build_module

 Lucent/Agere_Systems(AS) DSP chip modems (but Not the AMR or soft PCI chipsets)
 are supported by the the resources of this kit.
 AS maintainer S. Sarkar develops the code on a Red Hat Linux test bed.
 The lt_serial.o Serial Interface module comes under GPL and is Open Source.
 The lt_modem.o code is entirely proprietary, though partially Open Source.
 Adaptation to ongoing changes in Linux source code is enabled by the Open Source components.
 Critical AS proprietary information is pre-complied in   ltmdmobj.o,
 whose constituents are functionally not affected by minor Linux source code changes.

 Volunteer maintainers periodically receive code updates from AS.
 Through the contributions of Many described in CREDITS, there are
 enhancements in utility, ease of installation and documentation.
 Mark Spieth initiated this ltmodem compiler kit series.
 Chris Hebeisen introduced the Configure implementation, bringing Newbie friendliness.
 Marv Stodolsky is culpable for the verbose messaging.
 Within DOCs/, Ltmodem.html has URLs to many particular usage cases.
 Volunteers assemble the ltmodem-version.deb and
 ltmodem-version.rpm Installers for the User Community as Linux source code evolves
 utiliizing the resources of this compiler kit series.

 If new to compiling, read the ModemCompiling.txt which is being output, to guide
 proper set up your kernel-sources. The kernel-source package as installed does
 NOT in general match an installed kernel, but one of several alternative kernels.
 Thus with a niave usage, all could be completed well technically.
 BUT the installed drivers might not be compatible with your kernel,
 of even reside in the needed /lib/modules/Kernel_Version/ tree.

To continue,     Enter

 This compilation process is likely Not necessary to work through,
 if the only need is modem drivers matching the standard kernel of the
 following Linux distributions: Debian, Red Hat, Mandrake, SuSE and Connectiva

 Volunteers have already compiled most standard drivers. For more current releases,
 those available compatible with your System requirements will be later listed.
 They are available for download as ltmodem-version.rpm and
 ltmodem-version.deb Installers from a repository, http://ltmodem.heby.de
 If your System can use one of these Installers, you will be informed below.
 Many installers for older kernels are available at:
    http://linmodems.technion.ac.il/packages.html

 The compiling process is a learning experience for Newbies.
 We strongly recommend that you DO learn it sometime.
 But getting on the Internet under Linux should have first priority.
 This kit provides several diagnostics aids and good documentation.
 Continuing will do no harm.  Useful diagnostic information
 on your system will be written to BLDrecord.txt,
 with direction to documentation if a failure occurs.

 At a minimum, Do keep the DOCs/ and utils/ folders and become familiar
 with the resources therein.

To continue:  Enter
=================================================================

 This is the version 8.31a10 of the compiler + installer kit
        8.31    corresponds to the version of the core Agere Systems DSP code.
            a10  designation that follows reflects NO improvement in DSP code.
 Rather peripheral driver, added diagnostics and installer improvements
 are reflected.  They are progressively implemented as Users report problems
 or the Linux kernel evolves.

 The modem drivers will serve with Linux kernels beginning with 2.2.2, the current
 2.4.nn series, and the 2.5.nn development kernels.
 However support was broken in the early 2.4.n-test series.
 When there is a Red Hat 2.6.nn release, AS will then update the code

 If your PC is being well served with this 8.31a10,
 there is NO Benefit in using a more recent version
 until there is an update in the Agere driver code, say 8.26 to 9.00.

 But if the driver installation for a new kernel should in some way fail,
 please do download the most recent ltmodem-VER.tar.gz
 before sending a query to discuss@linmodems.org,
 because the problem may already be solved.

 This build_module script only compiles drivers,
 with their installation managed by subsequent commands.
 Thus ./build_module can be rerun for education or amusement,
 without as yet committing changes to your System.

For general instructions:  Enter
 =================================================================
 All should work automatically for most Linux installations/distributions,
        IF a complete kernel-headers/ folder is available:
 through a symbolic link:       /lib/modules/KernelVersion/build --> PATH_to/kernel-headers/
 at the classical /usr/src/ position.
 Otherwise a symbolic link will be necessary:
 ln -s PATH_to/kernel-headers/ /usr/src/linux
 Read ModemDriverCompiling.txt if an explanation is needed about kernel-headers.

 To compile modules for a kernel other version than 2.6.20-and-4-deb, such as version 2.2.17-3test, use syntax:
        ./build_module 2.2.17-3test
 where the version.h in the kernel-headers/ folder has 2.2.17-3test

If desirable to make a record for trouble shooting purposes,
Abort with Ctrl-C. Then the process can be recorded to ltrecord.txt :

         ./build_module     | tee ltrecord.txt

To continue:  Enter

====================================================================
Diagnostic information is progressively being written to BLDrecord.txt .
Often, contents of BLDrecord.txt will aid in solving a problem.

The Linux distribution is:   debian, 4.0
        End of distribution check.



UPDATE=2004_Nov_26
TMPM=0tmpfile


Providing detail for device at PCI_bus 01:08.0
  with vendor-ID:device-ID
            ----:----
Class 0780: 11c1:044c   Communication controller: Agere Systems LT WinModem (rev 02)
  SubSystem 11c1:044c   Agere Systems LT WinModem
01:08.0 0780: 11c1:044c (rev 02)
        Flags: bus master, medium devsel, latency 32, IRQ 9
        Memory at e7000000 (32-bit, non-prefetchable) [size=256]
        I/O ports at 9000 [size=8]

                  -----PCI_IDs-------                    --CompilerVer-
    Feature List:  Primary  Subsystem Distr  KernelVer   kernel default  CPU
 ./scanModem test 11c1:044c 11c1:044c debian 2.6.20-and-4-deb 4.1.2 4.1.2    i686

IDENT=AGERE
PCIDEV=11c1:044c
Vendor=11c1

 The modem has a supported Lucent/Agere DSP (digital signal processing) chipset
  with primary PCI_ID:  11c1:044c
 DSP=1
grep: /etc/modprobe.conf: No such file or directory
grep: /etc/modprobe.conf: No such file or directory


To continue:    Enter
==================================================

Checking for any preliminary complications.
Bad links to /usr/include not evident.
The kernel supports only single processor motherboards.

To continue:    Enter
==================================================

OK thus far.
To begin acquisition of compiling information:  Enter

Removing old makings and expanding a clean source.tar.gz
Setting BLDrecord.txt link within source/ folder.
lrwxrwxrwx 1 root root 16 2007-04-10 18:30 BLDrecord.txt -> ../BLDrecord.txt
Setting ./tmpfile link within source/ folder.
lrwxrwxrwx 1 root root 12 2007-04-10 18:30 ./tmpfile -> .././tmpfile
Following a successful check for matching kernel-headers,
the modem drivers will be compiled for the current kernel version: 2.6.20-and-4-deb
To start resource tests:        Enter

Performing a configure trial and capturing the report to ../conf-report.txt.
Parsing the report:
        No evident problems.

grep: Makefile: No such file or directory
creating cache ./config.cache
Checking OS
Checking machine type
Processor i686 is supported.
checking for gcc... gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
Checking gcc major version 4
Checking for rpm build... rpmbuild
checking for a BSD compatible install... /usr/bin/install -c
checking for make... yes
checking for ld... yes
Checking for kernel headers
  ... in /usr/src/linux: Kernel headers found in /usr/src/linux
  ... in /usr/src/linux-2.6.20: Kernel headers found in /usr/src/linux-2.6.20
Checking kernel header version
Test program for figuring out kernel header version failed

The check for compilation tools and general resources was successful.
Within DOCs/ there is an annotated conf-report.txt
The Makefile and down steam installation scripts have been created.

To continue:
   Enter

Next checking utilty versions,
           Version_min
 Utility    or range for kernels
   name     2.2.16       2.4.18          Actual_version
-------------------------------------------------------------------
Gnu C      2.7.2.3      2.95.3-2.9.99   4.1.2
Gnu make   3.77         3.79.1          3.81
binutils   2.8.1.0.23   2.9.1.0.25      2.17

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

  The gcc compiler resources available are:
 ----------------------------
 lrwxrwxrwx 1 root root      7 2007-03-21 21:51 /usr/bin/gcc -> gcc-4.1
-rwxr-xr-x 1 root root  74104 2006-07-13 19:47 /usr/bin/gcc-2.95
-rwxr-xr-x 1 root root  80976 2007-01-03 20:48 /usr/bin/gcc-3.3
-rwxr-xr-x 1 root root  84848 2007-01-01 23:36 /usr/bin/gcc-3.4
-rwxr-xr-x 1 root root 183444 2006-12-10 16:46 /usr/bin/gcc-4.1
lrwxrwxrwx 1 root root     10 2007-03-21 21:51 /usr/bin/gccbug -> gccbug-4.1
-rwxr-xr-x 1 root root  15963 2007-01-03 20:42 /usr/bin/gccbug-3.3
-rwxr-xr-x 1 root root  16079 2007-01-01 23:29 /usr/bin/gccbug-3.4
-rwxr-xr-x 1 root root  16283 2006-12-10 16:44 /usr/bin/gccbug-4.1
-rwxr-xr-x 1 root root   2018 2006-12-20 04:02 /usr/bin/gccmakedep
 ----------------------------
 with your System currently using version 4.1.2
 Do NOT mix the major versions of compilers for the kernel and modem drivers
 or your System will crash! The following releases are using gcc version 3.2.x :
    Mandrake 9, Redhat 8 and SuSE 8.1 in November 2002.

To continue:
        Enter

        To begin compilation of lt_modem.o and lt_serial.o,  Enter

 To avoid faulting Systems with an Enviromental setting:        make -e
        make
 is the compiling command used with build_module.
 To modify "make" invocation on your System, if desirable,
 edit the  build_module line below:  MAKEE

make: *** Не задані цілі і не знайдений make-файл.  Зупинка.

Checking for driver products:

Compilation of lt_modem.ko failed,
Do assess whether your utilities are up to date as listed within 1ST-READ!
Read Compile_properly.txt from DOCs/.
If you cannot solve the problem, send BLDrecord.txt to: discuss@linmodems.org




Навіть не знаю, що й думати.

Другий драйвер: "ltmodem-2.6-alk-8" вже не ппамятаю де його взяв видає наступне:
debian:/opt/ltmodem-2.6-alk-8# make
make -C /lib/modules/`uname -r`/build SUBDIRS=/opt/ltmodem-2.6-alk-8 modules
make[1]: Вхожу у каталог "/usr/src/linux-2.6.20"
  CC [M]  /opt/ltmodem-2.6-alk-8/lt_modem.o
/opt/ltmodem-2.6-alk-8/lt_modem.c:123: error: expected ')' before string constant
/opt/ltmodem-2.6-alk-8/lt_modem.c:125: error: expected ')' before string constant
/opt/ltmodem-2.6-alk-8/lt_modem.c:130: error: expected ')' before string constant
make[2]: *** [/opt/ltmodem-2.6-alk-8/lt_modem.o] Помилка 1
make[1]: *** [_module_/opt/ltmodem-2.6-alk-8] Помилка 2
make[1]: Залишаю каталог "/usr/src/linux-2.6.20"
make: *** [module] Помилка 2
debian:/opt/ltmodem-2.6-alk-8#


тут схоже на те, що я не довстановив ще якихось пакетів, але яких саме???


Третій драйвер: "ltmodem-0.9.9" говорить:

debian:/opt/ltmodem-0.9.9# make
cd lib && ./configure /usr 0.9.9
Configuring libpci for your system...Linux/i386 2.6.20-and-4-deb
Looking for access methods... proc i386-ports dump
make -C lib all
make[1]: Вхожу у каталог "/opt/ltmodem-0.9.9/lib"
cc -O2 -g -Wall -W -Wno-parentheses -Wstrict-prototypes -Werror -fcommon    -c -o access.o access.c
cc1: warnings being treated as errors
access.c: In function 'pci_null_debug':
access.c:109: warning: unused parameter 'msg'
make[1]: *** [access.o] Помилка 1
make[1]: Залишаю каталог "/opt/ltmodem-0.9.9/lib"
make: *** [lib] Помилка 2
debian:/opt/ltmodem-0.9.9#


Допоможіть, будь ласка! Система Debian "Etch"? ядро власного збирання версії 2.6.20...
Якщо ще щось необхідно знати, то пишіть...
Не знаю, чи потрібен кому файл BLDrecord.txt, але не буду його вивішувати.

Дякую за допомогу!

Відсутній rangel

  • Графоман
  • ****
  • дописів: 281
  • Карма: +0/-0
  • Python programmer
Re: незрозуміла проблема з вінмодемом...
« Відповідей #1 : 2007-04-10 18:29:27 »
Чомусь мені здавалося, що пакунок ltmodem для Debian можна знайти на дисках? Хоча можу помилятися.

Можливо це допоможе?
http://www.physcip.uni-stuttgart.de/heby/ltmodem/dists/debian/
http://www.sfu.ca/~cth/ltmodem/dists/debian/
Roman Suprotkin

Відсутній andrej_w

  • Новачок
  • *
  • дописів: 43
  • Карма: +0/-0
  • Елвіс - живий!
Re: незрозуміла проблема з вінмодемом...
« Відповідей #2 : 2007-04-10 18:59:32 »
Та ж ні, то були вихідні коди драйверів. Можливо я не зовсім коректно пояснив...
До того ж, для тих пакетів, на які ві дали посилання потрібні досить "старі" версії ядер, причому стандартні і великі, як на мене...
« Змінено: 2007-04-10 19:51:08 від andrej_w »

Відсутній rangel

  • Графоман
  • ****
  • дописів: 281
  • Карма: +0/-0
  • Python programmer
Re: незрозуміла проблема з вінмодемом...
« Відповідей #3 : 2007-04-10 20:31:14 »
Щось у мене таке враження, що в другому випадку помилка закралася в сирці, хоча можу й помилятися. Ось, знайшов ще таке:
http://www.archivesat.com/Linux_modems_help/thread2378119.htm - здається Ваш випадок.

grep: /etc/modprobe.conf: No such file or directorygrep: Makefile: No such file or directoryНа якісь думки наштовхує?

Таке враження, що не створено makefile  :-?

Roman Suprotkin

Відсутній Михайло Даниленко

  • Адміністратор ЩОДО
  • Літератор
  • *****
  • дописів: 1262
  • Карма: +0/-0
  • [Debian Stretch]
Re: незрозуміла проблема з вінмодемом...
« Відповідей #4 : 2007-04-10 21:12:33 »
Лається на дужки в ltmodem-2.6-alk-8, бо використовується застаріле макро для оголошення параметрів модуля. В новіших кернелах цього макро нема, отож воно й лається.
ltmodem-0.9.9 вилітає, бо до gcc використовується флаг -Werror, тому gcc сприймає warnings'и (досить нормальне явище для програм, що не підтримуються постійно) як помилки, і вилітає на них.

P.S. Див. оцю гілку як пофіксити застаріле макро: http://linux.org.ua/cgi-bin/yabb/YaBB.pl?num=1168811174
P.P.S. Але, здається, вам краще спочатку спробувати використати martian-full-xxx, як вказано за посиланням пана rangel'а.
P.P.P.S. З ltmodem-8.31a10 - знов-таки застарілі сирці:
Для визначення версії заголовків ядра ./configure компілює тестову програму. І в сирцях цієї програми присутнє
#include <$KERNEL_DIR/include/linux/config.h>
В нових ядрах цього заголовку немає, чи він містить
#error ....
« Змінено: 2007-04-11 11:33:28 від ISBear »

Відсутній andrej_w

  • Новачок
  • *
  • дописів: 43
  • Карма: +0/-0
  • Елвіс - живий!
Re: незрозуміла проблема з вінмодемом...
« Відповідей #5 : 2007-04-11 20:04:40 »
Зібрав та проінсталював драйвер martian-full-20061203, модуль завантажується без проблем, далі при запуску martian_modem створюється пристрій як і задумано... Тут все без проблем. При запуски wvdial модем проходить ініціалізацію, набирає номер, але при отриманні CONNECT "вішає" трубку... Та ж сама біда з KPPP... Вже зовсім їду з глузду через цей модем....

Може потрібні якість логи, чи ще що....

Говорить вихід зі станом 1.... А чого він стосується??? Зберігаю лог до файлу, який виявляється порожнім.... Зовсім якась дивина....  Може ну його під тин.....
« Змінено: 2007-04-12 14:17:31 від andrej_w »

Відсутній andrej_w

  • Новачок
  • *
  • дописів: 43
  • Карма: +0/-0
  • Елвіс - живий!
Re: незрозуміла проблема з вінмодемом...
« Відповідей #6 : 2007-04-16 17:22:20 »
 :-/Від імені користувача просто вилітає, а від імені рута пише вихід зі станом 1 .....  >:(

Відсутній andrej_w

  • Новачок
  • *
  • дописів: 43
  • Карма: +0/-0
  • Елвіс - живий!
Re: незрозуміла проблема з вінмодемом...
« Відповідей #7 : 2007-04-18 19:00:03 »
The PPP daemon has died. (exit code = 10)

Відсутній andrej_w

  • Новачок
  • *
  • дописів: 43
  • Карма: +0/-0
  • Елвіс - живий!
Re: незрозуміла проблема з вінмодемом...
« Відповідей #8 : 2007-04-26 11:46:11 »
При використанні wvdial отримую:
debian-etch:/etc# wvdial --config=/etc/wvdiallt.conf
--> WvDial: Internet dialer version 1.56
--> Cannot get information for serial port.
--> Initializing modem.
--> Sending: ATZ
ATZ
OK
--> Modem initialized.
--> Sending: ATDP*******
--> Waiting for carrier.
ATDP*******
CONNECT 46666 V44
User Access Verification
Username:
--> Carrier detected.  Waiting for prompt.
--> Connected, but carrier signal lost!  Retrying...
--> Sending: ATDP*******
--> Waiting for carrier.
Username:
Username:
Username:
NO CARRIER
--> No Carrier!  Trying again.
--> Sending: ATDP*******
--> Waiting for carrier.
--> Disconnecting at Thu Apr 26 11:31:59 2007
debian-etch:/etc#  

Як це діло поправити? Чи змиритися???

Відсутній ussr1k

  • Кореспондент
  • ***
  • дописів: 100
  • Карма: +0/-0
  • [team Linux] KPI
Re: незрозуміла проблема з вінмодемом...
« Відповідей #9 : 2007-04-29 12:20:09 »
я десь місяць болів вінмодемом - перебболів бо нічого не вийшло...

краще вже розкошелитися та й купити номальний НЕвінмодем

Відсутній rangel

  • Графоман
  • ****
  • дописів: 281
  • Карма: +0/-0
  • Python programmer
Re: незрозуміла проблема з вінмодемом...
« Відповідей #10 : 2007-04-29 12:51:12 »
я десь місяць болів вінмодемом - перебболів бо нічого не вийшло...

краще вже розкошелитися та й купити номальний НЕвінмодем

Десь колись пан Cthulhu давав посилання про недоцільність зміни статі та технічного завдання. Шкода не можу знайти  :(
Roman Suprotkin

Відсутній andrej_w

  • Новачок
  • *
  • дописів: 43
  • Карма: +0/-0
  • Елвіс - живий!
Re: незрозуміла проблема з вінмодемом...
« Відповідей #11 : 2007-05-05 07:32:43 »
KPPP почав писати таке до логів:

May  5 00:59:16 debian pppd[22909]: The remote system is required to authenticate itself
May  5 00:59:16 debian pppd[22909]: but I couldn't find any suitable secret (password) for it to use to do so.
May  5 00:59:16 debian pppd[22909]: (None of the available passwords would let it use an IP address.)

Я так розумію, що щось не так з авторизацією користувача.... Дивно це все, адже під віндою вінмодем нормально працює, а під Лінаксом незовсім....
Пробував перевірити чи працюватиме інший модем (GPRS) - запрацював... а цього треба в лоба товкти.

Може щось не так з налаштуваннями ppp?

Якщо вже нічого з цього не вийде - доведеться приймати радикальні зміни, і підключати виділенку :)

Praporshic

  • Гість
Re: незрозуміла проблема з вінмодемом...
« Відповідей #12 : 2007-05-05 09:08:10 »
Воно пише, що Ви вимагаєте авторизації від віддаленої системи (до якої намагаєтесь під'єднатись).
Щоб цього не було вкажіть у /etc/ppp/options noauth (мабуть там є строка auth - відредагуйте її).

Відсутній andrej_w

  • Новачок
  • *
  • дописів: 43
  • Карма: +0/-0
  • Елвіс - живий!
Re: незрозуміла проблема з вінмодемом...
« Відповідей #13 : 2007-05-15 21:35:18 »
Проблдему вирішено!
Спасибі вссім, хто проняв участь...

Тільки буває демон pppd вилітає...