Skocz do zawartości
jat_87

Aurox - Problem Z Modemem.

Rekomendowane odpowiedzi

Witam!

Jestem posiadaczem wewnętrznego modemu (szczegółowe dane poniżej). Chciałbym móc korzystać z internetu przez Linuxa, ale nie daję rady aby zmusić modem do działania. Zastosowałem się do poradnika dostępnego na tej stronie: http://users.ox.ac.uk/~mert1313/ltmodem.html

Wszystko szło dobrze dopóki nie zabrałem się za kompilowanie modułu. Oto cała procedura:

[root@localhost 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.4.22-1.2174.nptl, 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:  redhat, Aurox Linux release 9.3 (Wind)

        End of distribution check.

 

 

 

UPDATE=2004_Nov_26

TMPM=0tmpfile

 

   

Providing detail for device at PCI_bus 00:0b.0

  with vendor-ID:device-ID

            ----:----

Class 0780: 11c1:0440  Communication controller: Lucent Microelectronics 56k WinModem (rev 01)

  SubSystem 1668:0440  Actiontec Electronics Inc: Unknown device 0440

        Flags: bus master, medium devsel, latency 0, IRQ 12

        Memory at e3103000 (32-bit, non-prefetchable)

        I/O ports at e000

 

                  -----PCI_IDs-------                    --CompilerVer-

    Feature List:  Primary  Subsystem Distr  KernelVer  kernel default  CPU

./scanModem test 11c1:0440 1668:0440 redhat 2.4.22-1.2174.nptl 3.2.3 3.3.2    i686

 

IDENT=AGERE

PCIDEV=11c1:0440

Vendor=11c1

 

The modem has a supported Lucent/Agere DSP (digital signal processing) chipset

  with primary PCI_ID:  11c1:0440

DSP=1

 

 

To continue:    Enter

==================================================

 

Checking for any preliminary complications.

The kernel supports only single processor motherboards.

 

To continue:    Enter

==================================================

 

For the Red hat Linux distribution,

there are four alternative kernel config files

within the folder /usr/src/linux/configs/

The kernel-header set to be used in this driver compile

MUST flavor match of your current kernel as displayed by:

        uname -r

Otherwise ./build_module will succeed and ./ltinst2 also.

But there will be a failure during the system update

        depmod -a      included within ./autoload

To check this issue if desirable, abort with Ctrl-C

or 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 cze 25 09:09 BLDrecord.txt -> ../BLDrecord.txt

Setting ./tmpfile link within source/ folder.

lrwxrwxrwx  1 root root 12 cze 25 09:09 ./tmpfile -> .././tmpfile

Following a successful check for matching kernel-headers,

the modem drivers will be compiled for the current kernel version: 2.4.22-1.2174.nptl

To start resource tests:        Enter

 

Performing a configure trial and capturing the report to ../conf-report.txt.

Parsing the report:

        No evident problems.

 

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 3

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: nope

  ... in /usr/src/kernel-headers-2.4.22-1.2174.nptl: nope

  ... in /usr/src/linux-2.4.22: nope

  ... in /usr/src/linux-2.4.22-1.2174.nptl: Kernel headers found in /usr/src/linux-2.4.22-1.2174.nptl

  ... in /lib/modules/2.4.22-1.2174.nptl/build: Kernel headers found in /lib/modules/2.4.22-1.2174.nptl/build

  using /lib/modules/2.4.22-1.2174.nptl/build

Checking kernel header version

  kernel headers are version 2.4.22-1.2174.nptl

RPM will require kernel = 2.4.22-1.2174.nptl

  has irq_spinlock in async_struct 1

checking for fakeroot... no

+-----------------------------------------------------------------------------+

|          will have to be root. Otherwise this won't affect you.            |

+-----------------------------------------------------------------------------+

updating cache ./config.cache

creating ./config.status

creating Makefile

creating ltinst2

creating Makefile.2.4

creating autoload

creating cleanup

creating ltmodem.spec

 

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 for the the needed header file:  modversions.h

Found: /lib/modules/2.4.22-1.2174.nptl/build/include/linux/modversions.h

 

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  3.3.2

Gnu make  3.77        3.79.1

binutils  2.8.1.0.23  2.9.1.0.25      2.14.90.0.6

 

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

 

  The gcc compiler resources available are:

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

-rwxr-xr-x  2 root root 80676 paź 23  2003 /usr/bin/gcc

-rwxr-xr-x  2 root root 81864 lut 11  2003 /usr/bin/gcc296

-rwxr-xr-x  1 root root 76548 cze  2  2003 /usr/bin/gcc32

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

with your System currently using version 3.3.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

 

Makefile:103: ostrzeżenie: polecenia zakrywające dla obiektu `uninstall'

Makefile.2.4:170: ostrzeżenie: ignoruję stare polecenia dla obiektu `uninstall'

ltmodem.c: In function `dp_regread':

ltmodem.c:478: warning: `flags' might be used uninitialized in this function

serial-lt-2.4.c: In function `lt_rs_interrupt':

serial-lt-2.4.c:1248: error: `info' undeclared (first use in this function)

serial-lt-2.4.c:1248: error: (Each undeclared identifier is reported only once

serial-lt-2.4.c:1248: error: for each function it appears in.)

make: *** [serial-lt-2.4.a] Błąd 1

Using KCFLAGS for gcc version 3.x

gcc -D__KERNEL__ -I/lib/modules/2.4.22-1.2174.nptl/build/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strict-aliasing -pipe -fno-strength-reduce -DMODULE -DLT_VERSION=8.31a10 -DLINUX -DNO_EEPROM -DLT_SERIAL_MODULE=lt_serial -DFORCEMODVERSIONS -DASMLINKAGE=asmlinkage -DHAS_IRQSPINLOCK  -c -o ltmodem.a ltmodem.c

objcopy -W x_input --redefine-sym memset=ltmodem_memset ltmdmobj.o ./xxx.o

ld -r -defsym x_input_orig=x_input -o ./xxx1.o ./xxx.o

ld -r -d -o lt_modem.o ltmodem.a ./xxx1.o

rm -f ./xxx.o

rm -f ./xxx1.o

#ld -r -o lt_modem.o ltmodem.a ltmdmobj.o

Using KCFLAGS for gcc version 3.x

gcc -D__KERNEL__ -I/lib/modules/2.4.22-1.2174.nptl/build/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strict-aliasing -pipe -fno-strength-reduce -DMODULE -DLT_VERSION=8.31a10 -DLINUX -DNO_EEPROM -DLT_SERIAL_MODULE=lt_serial -DFORCEMODVERSIONS -DASMLINKAGE=asmlinkage -DHAS_IRQSPINLOCK  -c -o serial-lt-2.4.a serial-lt-2.4.c

 

Checking for driver products:

-rw-r--r--  1 root root 557900 cze 25 09:10 lt_modem.o

 

Compilation of lt_serial.o 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

Wiecie jak temu zaradzić?

Udostępnij tę odpowiedź


Odnośnik do odpowiedzi
Udostępnij na innych stronach

Dołącz do dyskusji

Możesz dodać zawartość już teraz a zarejestrować się później. Jeśli posiadasz już konto, zaloguj się aby dodać zawartość za jego pomocą.

Gość
Dodaj odpowiedź do tematu...

×   Wklejono zawartość z formatowaniem.   Przywróć formatowanie

  Dozwolonych jest tylko 75 emoji.

×   Odnośnik został automatycznie osadzony.   Przywróć wyświetlanie jako odnośnik

×   Przywrócono poprzednią zawartość.   Wyczyść edytor

×   Nie możesz bezpośrednio wkleić grafiki. Dodaj lub załącz grafiki z adresu URL.

Ładowanie


×
×
  • Dodaj nową pozycję...