Hi, I have installed Knoppix 5 to hd as Debian. Now I can't compile driver for my smartlink modem. Is there any solution? Thanks here are the output while compiling: make all KERNEL_VER=2.6.27 make[2]: Entering directory `/home/artur/slmodem-2.9.11-20080126/drivers' make modules -C /lib/modules/2.6.27/build SUBDIRS=/home/artur/slmodem-2.9.11-20080126/drivers make[3]: Entering directory `/home/artur/kernel/linux-2.6.27' CC [M] /home/artur/slmodem-2.9.11-20080126/drivers/amrmo_init.o /home/artur/slmodem-2.9.11-20080126/drivers/amrmo_init.c: In function 'amrmo_pci_probe': /home/artur/slmodem-2.9.11-20080126/drivers/amrmo_init.c:612: error: 'SA_SHIRQ' undeclared (first use in this function) /home/artur/slmodem-2.9.11-20080126/drivers/amrmo_init.c:612: error: (Each undeclared identifier is reported only once /home/artur/slmodem-2.9.11-20080126/drivers/amrmo_init.c:612: error: for each function it appears in.) /home/artur/slmodem-2.9.11-20080126/drivers/amrmo_init.c: In function 'amrmo_init': /home/artur/slmodem-2.9.11-20080126/drivers/amrmo_init.c:752: warning: 'pci_find_device' is deprecated (declared at include/linux/pci.h:537) make[4]: *** [/home/artur/slmodem-2.9.11-20080126/drivers/amrmo_init.o] Error 1 make[3]: *** [_module_/home/artur/slmodem-2.9.11-20080126/drivers] Error 2 make[3]: Leaving directory `/home/artur/kernel/linux-2.6.27' make[2]: *** [all] Error 2 make[2]: Leaving directory `/home/artur/slmodem-2.9.11-20080126/drivers' make[1]: *** [all] Error 2 make[1]: Leaving directory `/home/artur/slmodem-2.9.11-20080126/drivers' make: *** [drivers] Error 2 artur karimov
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 Debian GNU/Linux 4.0 kernel 2.6.27 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 GNU/Linux 4.0 Linux version 2.6.27 (root@box) (gcc version 4.1.2 20061028 (prerelease) (Debian 4.1.1-19)) #1 SMP Mon Oct 13 07:46:09 EDT 2008 scanModem update of: 2008_09_28 The modem symbolic link is /dev/modem -> ttySL0 There are no blacklisted modem drivers in /etc/modprobe* files Attached USB devices are: ID 045e:00e1 Microsoft Corp. ID 1d6b:0001 ID 15a9:0004 ID 0bda:0111 Realtek Semiconductor Corp. ID 047e:2892 Agere Systems, Inc. (Lucent) ID 1d6b:0002 USB modems not recognized 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 Unknown device 3052 Modem interrupt assignment and sharing: --- Bootup diagnostics for card in PCI slot 01:0a.0 ---- pci 0000:01:0a.0: found [1057/3052] class 000703 header type 00 PCI: 0000:01:0a.0 reg 10 32bit mmio: [fdbff000, fdbfffff] PCI: 0000:01:0a.0 reg 14 io port: [cc00, ccff] pci 0000:01:0a.0: PME# supported from D0 D3hot D3cold pci 0000:01:0a.0: PME# disabled pci 0000:01:0a.0: calling quirk_cardbus_legacy+0x0/0x30 pci 0000:01:0a.0: calling quirk_usb_early_handoff+0x0/0x480 pci 0000:01:0a.0: calling pci_fixup_video+0x0/0xc0 serial 0000:01:0a.0: PCI INT A -> Link[APC3] -> GSI 18 (level, low) -> IRQ 18 0000:01:0a.0: ttyS0 at I/O 0xcc08 (irq = 18) is a 16450 0000:01:0a.0: ttyS1 at I/O 0xcc10 (irq = 18) is a 8250 0000:01:0a.0: ttyS2 at I/O 0xcc18 (irq = 18) is a 16450 0000:01:0a.0: ttyS3 at I/O 0xcc20 (irq = 18) is a 8250 Couldn't register serial port 0000:01:0a.0: -28 serial 0000:01:0a.0: PCI INT A disabled 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. For candidate card in slot 00:05.0, firmware information and bootup diagnostics are: PCI slot PCI ID SubsystemID Name ---------- --------- --------- -------------- 00:05.0 10de:03f0 103c:2a66 Audio device: nVidia Corporation MCP61 High Definition Audio Modem interrupt assignment and sharing: 23: 1 35000 IO-APIC-fasteoi ohci_hcd:usb1, HDA Intel --- Bootup diagnostics for card in PCI slot 00:05.0 ---- pci 0000:00:05.0: found [10de/03f0] class 000403 header type 00 PCI: 0000:00:05.0 reg 10 32bit mmio: [fe028000, fe02bfff] pci 0000:00:05.0: PME# supported from D3hot D3cold pci 0000:00:05.0: PME# disabled pci 0000:00:05.0: calling quirk_cardbus_legacy+0x0/0x30 pci 0000:00:05.0: calling quirk_usb_early_handoff+0x0/0x480 pci 0000:00:05.0: calling pci_fixup_video+0x0/0xc0 HDA Intel 0000:00:05.0: PCI INT B -> Link[AAZA] -> GSI 23 (level, low) -> IRQ 23 HDA Intel 0000:00:05.0: setting latency timer to 64 The PCI slot 00:05.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. ===== Advanced Linux Sound Architecture (ALSA) diagnostics ===== The ALSA packages provide audio support and also drivers for some modems. ALSA diagnostics are written during bootup to /proc/asound/ folders. The ALSA verion is 1.0.17 The modem cards detected by "aplay -l" are: None The /proc/asound/pcm file reports: ----------------------- 00-02: ALC888 Analog : ALC888 Analog : capture 1 00-01: ALC888 Digital : ALC888 Digital : playback 1 00-00: ALC888 Analog : ALC888 Analog : playback 1 : capture 1 about /proc/asound/cards: ------------------------ 0 [NVidia ]: HDA-Intel - HDA NVidia HDA NVidia at 0xfe028000 irq 23 PCI slot 00:05.0 has a High Definition Audio Card The drivers are in the kernel modules tree at: /lib/modules/2.6.19/kernel/sound/pci/hda/snd-hda-intel.ko /lib/modules/2.6.27/kernel/sound/pci/hda/snd-hda-intel.ko === Finished firmware and bootup diagnostics, next deducing cogent software. === Predictive diagnostics for card in bus 002: Modem chipset detected on SLOT="Bus 002 Device 003:" NAME="Agere Systems, Inc. (Lucent) " bus=002 USBmodemID=047e:2892 IDENT=agrsm Driver=agrsm For candidate modem in: 002 Agere Systems, Inc. (Lucent) Primary device ID: 047e:2892 Support type needed or chipset: agrsm ----------------end Softmodem section -------------- Predictive diagnostics for card in bus 01:0a.0: Modem chipset detected on NAME="Modem: Motorola Unknown device 3052 " CLASS=0703 PCIDEV=1057:3052 SUBSYS=1057:3020 IRQ=18 IDENT=slamr For candidate modem in: 01:0a.0 0703 Modem: Motorola Unknown device 3052 Primary device ID: 1057:3052 Support type needed or chipset: slamr ----------------end Softmodem section -------------- 1057:3052 has a Motorola chipset, poorly supported by Motorola itself However Zello discovered that drivers written to support Smartlink modems do support the 1057:3052 chipset!! It sufficed to add 1057:3052 to the list of modem cards recognized by the Smartlink slamr driver. There is a ungrab-winmodem driver used in conjunction with slamr, which must have 1057:3052 similarly added. See messages from Zello: http://linmodems.technion.ac.il/bigarch/archive-seventh/msg00846.html http://linmodems.technion.ac.il/bigarch/archive-seventh/msg00848.html and Alvaro Aguirre about the ungrab-winmodem fix: http://linmodems.technion.ac.il/bigarch/archive-seventh/msg00990.html For general guidance on ungrab-winmodem + slamr usage, read the DOCs/Smartlink.txt The modem is supported by the Smartlink plus the slmodemd helper utility. Read the DOCs/Smartlink.txt and Modem/DOCs/YourSystem.txt for follow through guidance. For 2.6.27 compiling drivers is necessary. As of October 2007 the current packages at http://linmodems.technion.ac.il/packages/smartlink/ are the ungrab-winmodem-20070505.tar.gz and slmodem-2.9.11-20080126.tar.gz Writing DOCs/Smartlink.txt ============ end Smartlink section ===================== Predictive diagnostics for card in bus 00:05.0: Modem chipset not detected on NAME="Audio device: nVidia Corporation MCP61 High Definition Audio " CLASS=0403 PCIDEV=10de:03f0 SUBSYS=103c:2a66 IRQ=23 HDA=10de:03f0 SOFT=10de:03f0.HDA High Definition Audio (HDA) cards MAY host a modem chip in their Subsystem, and many are supported by the ALSA audio+modem driver snd-hda-intel A modem was not detected on HDA card 10de:03f0. If another modem card is present, then most likely 10de:03f0 does not host a modem. If another modem card has not been detected, then possibilities are: 1) A Conexant modem chip is present on 10de:03f0, as Conexant chips are frequently not detectable by ALSA diagnostics 2) The modem may be of the older non-PCI Controller Chipset (hardware) type. Try detection with Root permission: wvdialconf /etc/wvdial.conf For candidate modem in: 00:05.0 0403 Audio device: nVidia Corporation MCP61 High Definition Audio Primary device ID: 10de:03f0 Subsystem PCI_id 103c:2a66 Softmodem codec or chipset from diagnostics: from Archives: Support type needed or chipset: Support can likely be achieved through two mutually exclusive alternatives: 1) The hsfmodem software for Conexant chipset modems: Read DOCs/Conexant.txt The following ALSA alternative CANNOT work with Conexant modems. 2) An ALSA modem driver plus slmodemd. Read DOCs/Smartlink.txt for details, and to test get the package SLMODEMD.gcc4.1.tar.gz from: http://linmodems.technion.ac.il/packages/smartlink/ ----------------end Softmodem section -------------- 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.27/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/sl-modem.tar.bz2 For Debian and some related distributions, a package kernel-kbuild-2.6-27 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 Nov 14 2006 /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 noauth crtscts lock hide-password modem noipdefault passive 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 Don't worry about the following, it is for experts should trouble shooting be necessary. ========================================================== # start/stop the daemon when the USB modem is connected KERNEL=="slusb[0-9]*", GROUP="dialout", RUN+="/etc/init.d/sl-modem-daemon" Checking for modem support lines: -------------------------------------- /device/modem symbolic link: lrwxrwxrwx 1 root root 6 Oct 14 23:41 /dev/modem -> ttySL0 slmodemd created symbolic link /dev/ttySL0: Within /etc/udev/ files: /etc/udev/rules.d/030_sl-modem-daemon.rules:# start/stop the daemon when the USB modem is connected /etc/udev/rules.d/030_sl-modem-daemon.rules:KERNEL=="slusb[0-9]*", GROUP="dialout", RUN+="/etc/init.d/sl-modem-daemon" /etc/udev/sl-modem-daemon.rules:# start/stop the daemon when the USB modem is connected /etc/udev/sl-modem-daemon.rules:KERNEL=="slusb[0-9]*", GROUP="dialout", RUN+="/etc/init.d/sl-modem-daemon" 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 /etc/modprobe.d/sl-modem-daemon.modutils:install slamr modprobe --ignore-install ungrab-winmodem ; modprobe --ignore-install slamr; test -e /dev/slamr0 || (/bin/mknod -m 660 /dev/slamr0 c 242 0 2>/dev/null && chgrp dialout /dev/slamr0) Within any ancient /etc/devfs files: Within ancient kernel 2.4.n /etc/module.conf files: /etc/modules.conf:options snd-atiixp-modem index=-2 /etc/modules.conf:options snd-via82xx-modem index=-2 /etc/modules.conf:# Uncomment these entries in order to blacklist unwanted modem drivers /etc/modules.conf:# alias snd-atiixp-modem off /etc/modules.conf:# alias snd-via82xx-modem off --------- end modem support lines --------