To: discuss@xxxxxxxxxxxxx
Subject: Oleksis, Cuba kernel 2.6.36
Utility commands to display information on the Kernel and Modem
universo:~# uname -a
Linux universo 2.6.36 #1 SMP Sun Oct 24 19:37:54 CDT 2010 i686
GNU/Linux
universo:~# uname -r
2.6.36
universo:~# lspci
...
01:0a.0 Modem: Motorola SM56 Data Fax Modem (rev 04)
The problem is when I try to compile the driver gives the following
error slamr shown below. Using the kernel source linux-6.2.1936. How
to solve this problem? Thanks for the help!
universo:~/MyDocument/slmodem-2.9.11-20100718# make
make -C modem all
make[1]: se ingresa al directorio
`/root/MyDocument/slmodem-2.9.11-20100718/modem'
rebuild profile...
gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM -o modem_main.o -c
modem_main.c
gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM -o modem_cmdline.o -c
modem_cmdline.c
gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM -o modem.o -c modem.c
gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM -o modem_datafile.o -c
modem_datafile.c
gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM -o modem_at.o -c modem_at.c
gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM -o modem_timer.o -c
modem_timer.c
gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM -o modem_pack.o -c
modem_pack.c
gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM -o modem_ec.o -c modem_ec.c
gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM -o modem_comp.o -c
modem_comp.c
gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM -o modem_param.o -c
modem_param.c
gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM -o modem_debug.o -c
modem_debug.c
gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM -o homolog_data.o -c
homolog_data.c
gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM -o dp_sinus.o -c dp_sinus.c
gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM -o dp_dummy.o -c dp_dummy.c
gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM -o sysdep_common.o -c
sysdep_common.c
gcc -o slmodemd modem_main.o modem_cmdline.o modem.o modem_datafile.o
modem_at.o modem_timer.o modem_pack.o modem_ec.o modem_comp.o
modem_param.o modem_debug.o homolog_data.o dp_sinus.o dp_dummy.o
dsplibs.o sysdep_common.o
gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM -o modem_test.o -c
modem_test.c
gcc -o modem_test modem_test.o modem_cmdline.o modem.o
modem_datafile.o modem_at.o modem_timer.o modem_pack.o modem_ec.o
modem_comp.o modem_param.o modem_debug.o homolog_data.o dp_sinus.o
dp_dummy.o dsplibs.o sysdep_common.o
make[1]: se sale del directorio
`/root/MyDocument/slmodem-2.9.11-20100718/modem'
make -C drivers KERNEL_DIR=/lib/modules/2.6.36/build
/bin/sh: line 0: [: 36/build: integer expression expected
make[1]: se ingresa al directorio
`/root/MyDocument/slmodem-2.9.11-20100718/drivers'
doing kernel-ver::
cc -I/lib/modules/2.6.36/build/include -o kernel-ver kernel-ver.c
make all KERNEL_VER=2.6.36
/bin/sh: line 0: [: 36/build: integer expression expected
make[2]: se ingresa al directorio
`/root/MyDocument/slmodem-2.9.11-20100718/drivers'
obj-m=slamr.o slusb.o
slamr-objs=amrmo_init.o sysdep_amr.o amrlibs.o
make modules -C /lib/modules/2.6.36/build
SUBDIRS=/root/MyDocument/slmodem-2.9.11-20100718/drivers
make[3]: se ingresa al directorio `/usr/src/linux-2.6.36'
/bin/sh: line 0: [: 36/build: integer expression expected
CC [M]
/root/MyDocument/slmodem-2.9.11-20100718/drivers/amrmo_init.o
/root/MyDocument/slmodem-2.9.11-20100718/drivers/amrmo_init.c: In
function âamrmo_ioctlâ:
/root/MyDocument/slmodem-2.9.11-20100718/drivers/amrmo_init.c:450:
warning: ignoring return value of âcopy_from_userâ, declared with
attribute warn_unused_result
/root/MyDocument/slmodem-2.9.11-20100718/drivers/amrmo_init.c: At top
level:
/root/MyDocument/slmodem-2.9.11-20100718/drivers/amrmo_init.c:517:
error: unknown field âioctlâ specified in initializer
/root/MyDocument/slmodem-2.9.11-20100718/drivers/amrmo_init.c:517:
warning: initialization from incompatible pointer type
make[4]: ***
[/root/MyDocument/slmodem-2.9.11-20100718/drivers/amrmo_init.o] Error
1
make[3]: ***
[_module_/root/MyDocument/slmodem-2.9.11-20100718/drivers] Error 2
make[3]: se sale del directorio `/usr/src/linux-2.6.36'
make[2]: *** [all] Error 2
make[2]: se sale del directorio
`/root/MyDocument/slmodem-2.9.11-20100718/drivers'
make[1]: *** [all] Error 2
make[1]: se sale del directorio
`/root/MyDocument/slmodem-2.9.11-20100718/drivers'
make: *** [drivers] Error 2
Only plain text email is forwarded by the Discuss@xxxxxxxxxxxxx List Server,
as HTML can contain viruses. Use as the email Subject Line:
YourName, YourCountry kernel 2.6.36
With this Subject Line cogent experts will be alerted, and useful case names left in the Archive.
YourCountry will enable Country specific guidance. Linux experts in YourCountry
can be found through: http://www.linux.org/groups/index.html.
They will know your Country's modem code, which may be essential for dialup service.
Responses from Discuss@xxxxxxxxxxxxx are sometimes blocked by an Internet Provider mail filters.
So in a day, also check the Archived responses at http://www.linmodems.org
-------------------------- System information ----------------------------
CPU=i686, debian , ALSA_version=1.0.23
Linux version 2.6.36 (root@universo) (gcc version 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)) #1 SMP Sun Oct 24 19:37:54 CDT 2010
scanModem update of: 2010_05_29
/etc/lsb-release not found
Presently install your Linux Distributions dkms package. It provides for automated driver updates,
following upgrade of your kernel. For details see http://linux.dell.com/projects.shtml#dkms
There are no blacklisted modem drivers in /etc/modprobe* files
Potentially useful modem drivers now loaded are:
Attached USB devices are:
ID 0951:1603 Kingston Technology DataTraveler 1GB/2GB Pen Drive
If a cellphone is not detected, see http://ubuntuforums.org/archive/index.php/t-878554.html
A sample report is: http://linmodems.technion.ac.il/bigarch/archive-nineth/msg00578.html
If a USB modem or cellphone is attached and was not detected, please
provide available information in your request to discuss@xxxxxxxxxxxxx
Candidate PCI devices with modem chips are:
01:0a.0 Modem: Motorola SM56 Data Fax Modem (rev 04)
High Definition Audio cards can host modem chips.
For candidate card in slot 01:0a.0, firmware information and bootup diagnostics are:
PCI slot PCI ID SubsystemID Name
---------- --------- --------- --------------
01:0a.0 1057:3052 1057:3020 Modem: Motorola SM56 Data Fax Modem
Modem interrupt assignment and sharing:
--- Bootup diagnostics for card in PCI slot 01:0a.0 ----
[ 0.083128] pci 0000:01:0a.0: reg 10: [mem 0xd4001000-0xd4001fff]
[ 0.083146] pci 0000:01:0a.0: reg 14: [io 0xc800-0xc8ff]
[ 0.083216] pci 0000:01:0a.0: PME# supported from D0 D3hot D3cold
[ 0.083226] pci 0000:01:0a.0: PME# disabled
[ 1.196763] serial 0000:01:0a.0: PCI INT A -> Link[LNKE] -> GSI 10 (level, low) -> IRQ 10
[ 1.197232] 0000:01:0a.0: ttyS2 at I/O 0xc808 (irq = 10) is a 16450
[ 1.197491] 0000:01:0a.0: ttyS3 at I/O 0xc810 (irq = 10) is a 8250
[ 1.197615] Couldn't register serial port 0000:01:0a.0: -28
The PCI slot 01:0a.0 of the modem card may be disabled early in
a bootup process, but then enabled later. If modem drivers load
but the modem is not responsive, read DOCs/Bootup.txt about possible fixes.
Send dmesg.txt along with ModemData.txt to discuss@xxxxxxxxxxxxx
if help is needed.
=== Finished firmware and bootup diagnostics, next deducing cogent software. ===
Completed candidate modem analyses.
The base of the UDEV device file system is: /dev/.udev
Versions adequately match for the compiler installed: 4.1.2
and the compiler used in kernel assembly: 4.1.2
Minimal compiling resources appear complete:
make utility - /usr/bin/make
Compiler version 4.1
linuc_headers base folder /lib/modules/2.6.36/build
However some compilations and executable functions may need additional files,
in the FileNames.h (so called kernel "h"eaders) collection installed in /usr/include/ .
For martian_modem, additional required packages are needed. The also required headers of package libc6 are commonly installed by default.
Compiling hsfmodem drivers does require linux-libc-dev and libc6-dev packages, for kernels 2.6.24 and later versions.
In not included on your install CD, search for them at http://packages.ubuntu.com
or comparable Repository for other Linux distros.
When compiling ALSA drivers, the utility "patch" will also be needed.
Compressed files at: /usr/src/virtualbox-ose-guest.tar.bz2 /usr/src/virtualbox-ose.tar.bz2
For Debian and some related distributions, a package kernel-kbuild-2.6-36 may be needed to support driver compiling.
If a driver compilation fails, with message including some lack of some FileName.h (stdio.h for example), then
Some additional kernel-header files need installation to /usr/include. The minimal additional packages are libc6-dev
and any of its dependents, under Ubuntu linux-libc-dev
If an alternate ethernet connection is available,
$ apt-get update
$ apt-get -s install linux-kernel-devel
will install needed packages.
For Debian/Ubuntu related distributions, run the following command to display the needed package list:
Otherwise packages have to be found through http://packages.ubuntu.com
Once downloaded and transferred into a Linux partition,
they can be installed alltogether with:
$ sudo dpkg -i *.deb
Checking pppd properties:
-rwsr-xr-- 1 root dip 260920 mar 17 2007 /usr/sbin/pppd
In case of an "error 17" "serial loopback" problem, see:
http://linmodems.technion.ac.il/linmodems/archive-sixth/msg02637.html
To enable dialout without Root permission do:
$ su - root (not for Ubuntu)
chmod a+x /usr/sbin/pppd
or under Ubuntu related Linuxes
chmod a+x /usr/sbin/pppd
Checking settings of: /etc/ppp/options
asyncmap 0
auth
crtscts
lock
hide-password
modem
proxyarp
lcp-echo-interval 30
lcp-echo-failure 4
noipx
In case of a message like:
Warning: Could not modify /etc/ppp/pap-secrets: Permission denied
see http://linmodems.technion.ac.il/bigarch/archive-sixth/msg04656.html
For guidance on FAX usage, get from http://linmodems.technion.ac.il/packages/ get faxing.tar.gz
It has samples for a modem using port /dev/ttySL0, which must be changed to match your modem's port.
Read Modem/DOCs/YourSystem.txt concerning other COMM channels: eth0
Which can interfere with Browser naviagation.
Don't worry about the following, it is for experts should trouble shooting be necessary.
==========================================================
Checking for modem support lines:
--------------------------------------
/device/modem symbolic link:
slmodemd created symbolic link /dev/ttySL0:
Within /etc/udev/ files:
/etc/udev/rules.d/80-drivers.rules:SUBSYSTEM=="atm", RUN+="dsl-modem.agent"
Within /etc/modprobe.conf files:
/etc/modprobe.d/alsa-base:options snd-atiixp-modem index=-2
/etc/modprobe.d/alsa-base:options snd-via82xx-modem index=-2
/etc/modprobe.d/alsa-base-blacklist:# Uncomment these entries in order to blacklist unwanted modem drivers
/etc/modprobe.d/alsa-base-blacklist:# blacklist snd-atiixp-modem
/etc/modprobe.d/alsa-base-blacklist:# blacklist snd-via82xx-modem
Within any ancient /etc/devfs files:
Within ancient kernel 2.4.n /etc/module.conf files:
--------- end modem support lines --------
For Debian users, the linux-headers-2.6.36.deb can be used instead of kernel-source/