RE First
#include <linux/version.h>
--- Yes so I discovered and bypassed in my attempts. Under 2.6.17 code, config.h just says use autoconf.h instead. This is also what my code piece below achieves under 2.6.18 The autoconf.h is basically the /boot/config-KernelVersion file in C code format. Why the lethal "Floating point exception" occurs under 2.6.18, but not 2.6.17 compilations is certainly not transparent. MarvS On 1/17/07, Joern Wuestenfeld <j.wuestenfeld@xxxxxx> wrote:
Hello, I tried this because of having the same problem with another driver. But one has to make sure that #include <linux/version.h> is above the #if KERNEL_VERSION_CODE! Otherwise the variable and the macro are not defined! Joern Marvin Stodolsky wrote: > Virgil, > > All you have done is OK in principle. > > This problem of config.h absence in 2.6.18 kernel code > is affecting multiple driver compiles, including Intel537 and pctel > modem drivers. One suggested fix in the context of the Intel537 code > was that at occurences of > #include <config.h> > replace this call by: > > #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,18) > #include<linux/autoconf.h> > #else > #include<linux/config.h> > #endif > > Within the afflicted drivers/amrmo_init.c , I have tried a few > variants of this fix without success. For example for an attempt > with: > ------- > #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,18) > # define POST17 > #endif > > #ifdef POST17 > #include <linux/autoconf.h> > #else > #include <linux/config.h> > #endif > ------- > mimics a similar older conditional in the code. > A compile with 2.6.17 sources succeeds. > But with 2.6.18 sources there is a failure at: > > make all KERNEL_VER=2.6.18-1.2798.fc6 > make[2]: Entering directory > `/usr/src/modules/slmodem-2.9.11-20070116/drivers' > make modules -C /usr/src/kernels/2.6.18-1.2798.fc6-i686 > SUBDIRS=/usr/src/modules/slmodem-2.9.11-20070116/drivers > make[3]: Entering directory `/usr/src/kernels/2.6.18-1.2798.fc6-i686' > CC [M] /usr/src/modules/slmodem-2.9.11-20070116/drivers/amrmo_init.o > Floating point exception > make[4]: *** > [/usr/src/modules/slmodem-2.9.11-20070116/drivers/amrmo_init.o] > Error 136 > make[3]: *** > [_module_/usr/src/modules/slmodem-2.9.11-20070116/drivers] Error 2 > > The lethal "Floating point exception" issues are far beyond my C code > knowledge. > Hopefully maintainer Sasha will be able to work up a fix soon. > > MarvS > scanModem maintainer > > > > > > > On 1/16/07, Virgil Bevans <vbevans54@xxxxxxxxxxx> wrote: > >> Have tried to install both 'kernel-devel' and 'kernel.src ' >> packages. In >> both cases yum reports 'does not update installed packages--nothing >> to do'. >> Tried to follow kernel source configuration directions in "Compiling >> drivers >> for newbies" on this site. 'make mrproper' and 'make clean' both >> fail in >> the [clean drivers] section with 'no such file or directory' (don't >> remember >> what file it was looking for--sorry. >> >> Made sure symbolic link '/usr/src/linux' pointed to correct folder >> and tried >> to 'make' slmodem driver--using slmodem-2.9.11-20061021. Process always >> fails at: >> >> CC [M] /....../amrmo_init.o >> /......./amrmo_init.c:46:26: error: linux/config.h: No such file or >> directory >> >> body of ModemData.txt follows: >> >> Only plain text email is forwarded by the DISCUSS@xxxxxxxxxxxxx List >> Server. >> Do use the following as the email Subject Line: >> SomeName, YourCountry Fedora Core release 6 (Zod) >> Kernel kernel 2.6.18-1.2798.fc6 >> This will alert cogent experts, and distinguish cases in the Archives. >> YourCountry will enable Country Code guidance. >> Occassionally responses are blocked by an Internet Provider mail >> filters. >> So in a day, also check the Archived responses at >> http://www.linmodems.org . >> Local Linux experts can be found through: >> http://www.linux.org/groups/index.html >> -------------------------- System information >> ---------------------------- >> Fedora Core release 6 (Zod) >> Kernel >> Linux version 2.6.18-1.2798.fc6 >> (brewbuilder@xxxxxxxxxxxxxxxxxxxxxxxxxxx) >> (gcc version 4.1.1 20061011 (Red Hat 4.1.1-30)) #1 SMP Mon Oct 16 >> 14:54:20 >> EDT 2006 >> scanModem update of: 2006_December_25 >> >> >> USB modem not detected by lsusb >> >> Modem or host audio card candidates have firmware information: >> >> PCI slot PCI ID SubsystemID Name >> ---------- --------- --------- -------------- >> 00:09.0 10b9:5459 14fe:9100 Modem: ALi Corporation >> SmartLink SmartPCI561 56K >> Modem >> >> Modem interrupt assignment and sharing: >> 169: 0 IO-APIC-level ehci_hcd:usb3 >> >> --- Bootup diagnositcs for card in PCI slot 00:09.0 ---- >> ACPI: PCI Interrupt 0000:00:09.0[A] -> GSI 17 (level, low) -> IRQ 169 >> 0000:00:09.0: ttyS2 at I/O 0xe428 (irq = 169) is a 8250 >> 0000:00:09.0: ttyS3 at I/O 0xe440 (irq = 169) is a 8250 >> Couldn't register serial port 0000:00:09.0: -28 >> >> === Finished modem firmware and bootup diagnostics section. === >> === Next deducing cogent software === >> >> For candidate modem in PCI bus: 00:09.0 >> Class 0703: 10b9:5459 Modem: ALi Corporation SmartLink SmartPCI561 >> 56K >> Modem >> Primary PCI_id 10b9:5459 >> Support type needed or chipset: slamr >> >> >> The modem is supported by the Smartlink slamr driver >> plus the slmodemd helper utility. Read the >> Smartlink.txt and Modem/YourSystem.txt for follow through guidance. >> >> Writing Smartlink.txt >> ============ end Smartlink 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.1 >> and the compiler used in kernel assembly: 4.1.1 >> >> Kernel-header resources needed for compiling are not manifestly ready! >> >> If compiling is necessary packages must be installed, providing: >> kernel-source-2.6.18-1.2798.fc6 >> >> >> Checking pppd properties: >> -r-xr-xr-x 1 root root 312956 Jul 24 13:54 /usr/sbin/pppd >> >> In case of an "error 17" "serial loopback" problem, see: >> http://phep2.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 >> lock >> >> >> Don't worry about the following, it is for the 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/50-udev.rules:KERNEL=="modems/mwave*", >> NAME="%k", >> GROUP="uucp", MODE="0660" >> Within /etc/modprobe.conf files: >> >> Within any ancient /etc/devfs files: >> >> Within ancient kernel 2.4.n /etc/module.conf files: >> >> --------- end modem support lines -------- >> >> _________________________________________________________________ >> Type your favorite song. Get a customized station. Try MSN Radio powered >> by Pandora. http://radio.msn.com/?icid=T002MSN03A07001 >> >> -- Dr. Joern Wuestenfeld Forschungszentrum Dresden - Rossendorf Abt. FWKH Tel: +49 351 260 3263 Postfach 510119 FAX: +49 351 260 3700 01314 Dresden eMail: j.wuestenfeld@xxxxxxxxxxxxxxxx