Files installed as per Marv's request.
Under http://linmodems.technion.ac.il/ltmodem/kernel2.6
Files AgereSoftModem-2.1.40SuSE9.1-20070630.tar.gz
agrsm-alpha.tar.bz2
Jacques
Marvin Stodolsky wrote:
Jacques,
Please put the packages in the
http://phep2.technion.ac.il/linmodems/packages/ltmodem/kernel-2.6/
folder
Ludi
The CC: in this email are others trying to get this code package to work.
Unfortunate there has only been one success, reported by Pablo marcondes
http://linmodems.technion.ac.il/bigarch/archive-seventh/msg00970.html
and that under now old kernels from 2.6.8 to 2.6.12. He used a
package from SuSE
AgereSoftModem-2.1.40SuSE9.1.zip.
Hence a major goal is to get the code upgraded to server under current
(2.6.17 and later) kernels
Alexei Chentsov has done some partial upgrading in a package named
agrsm (for short). See
http://linmodems.technion.ac.il/bigarch/archive-seventh/msg00849.html
I presume that the agrsm is an update from the
AgereSoftModem-2.1.40SuSE9.1 code. but Alexei will have to verify.
Both packages have instances of config.h in
8250.h:#include <linux/config.h>
(8250.h is present only in the agrsm package)
agrsoftmodem.c:#include <linux/config.h>
serial26.c:#include <linux/config.h>
In the attached updates, I have replaced these occurences with a leading
#include <linux/version.h>
and then the conditional
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,19)
#include <linux/config.h>
#endif
This fix has been used in several other post 2.6.18 packages with success.
If should cure Ludi's initial error in the compile, but others may remain.
Note that the serial26.c code has a later comment
--------
/*
* This converts from our new CONFIG_ symbols to the symbols
* that asm/serial.h expects. You _NEED_ to comment out the
* linux/config.h include contained inside asm/serial.h for
* this to work.
*/
#undef CONFIG_SERIAL_MANY_PORTS
#undef CONFIG_SERIAL_DETECT_IRQ
#undef CONFIG_SERIAL_MULTIPORT
#undef CONFIG_HUB6
---------
so you may wish to edit your asm/serial.h used in compiling
Lacking this particular modem hardware, I cannot contribute to
functionaity tests.
Furthermore compiling is NOT successful under my current Ubuntu 2.6.17
kernel.
Ludi and others cogent, please report back to the List and NOT directly
to me.
MarvS
On 6/30/07, Ludi Maciel <iludi@xxxxxxxxxx> wrote:
Trying again.
> De: Ludi Maciel <iludi@xxxxxxxxxx>
> Para: discuss@xxxxxxxxxxxxx
> Assunto: Can't compile Agrsm - Ubuntu 7.04/2.6.20-16.29
> Data: Sat, 30 Jun 2007 17:24:21 -0300
>
> Hi folks.
> I'm trying to use this Pinball-B modem (11c1:0620) but I can't compile
> the module. I get the following error message when I try to 'make
> module':
>
> Kernel/headers: 2.6.20-16.29 (lastest)
>
> make -C /lib/modules/`uname -r`/build SUBDIRS=/home/user/Desktop/agrsm
> modules
> make[1]: Entrando no diretório (entering in the directory)
> `/usr/src/linux-headers-2.6.20-16-generic'
> CC [M] /home/user/Desktop/agrsm/agrsoftmodem.o
> /home/user/Desktop/agrsm/agrsoftmodem.c:21:26: error: linux/config.h:
> Arquivo ou diretório inexistente (File or directory doesn't exist)
> /home/user/Desktop/agrsm/agrsoftmodem.c: In function
> 'SetAgrModemInterface':
> /home/user/Desktop/agrsm/agrsoftmodem.c:103: warning: implicit
> declaration of function 'inter_module_get_request'
> /home/user/Desktop/agrsm/agrsoftmodem.c:103: warning: assignment makes
> pointer from integer without a cast
> /home/user/Desktop/agrsm/agrsoftmodem.c:106: warning: implicit
> declaration of function 'inter_module_put'
> /home/user/Desktop/agrsm/agrsoftmodem.c: In function
> 'modem_init_module':
> /home/user/Desktop/agrsm/agrsoftmodem.c:136: warning: implicit
> declaration of function 'inter_module_register'
> /home/user/Desktop/agrsm/agrsoftmodem.c: In function
> 'modem_cleanup_module':
> /home/user/Desktop/agrsm/agrsoftmodem.c:148: warning: implicit
> declaration of function 'inter_module_unregister'
> /home/user/Desktop/agrsm/agrsoftmodem.c: In function 'x_request_irq':
> /home/user/Desktop/agrsm/agrsoftmodem.c:223: warning: passing
argument 2
> of 'request_irq' from incompatible pointer type
> /home/user/Desktop/agrsm/agrsoftmodem.c:367:53: error: macro
"INIT_WORK"
> passed 3 arguments, but takes just 2
> /home/user/Desktop/agrsm/agrsoftmodem.c: In function
> 'x_task_queue_init':
> /home/user/Desktop/agrsm/agrsoftmodem.c:367: error: 'INIT_WORK'
> undeclared (first use in this function)
> /home/user/Desktop/agrsm/agrsoftmodem.c:367: error: (Each undeclared
> identifier is reported only once
> /home/user/Desktop/agrsm/agrsoftmodem.c:367: error: for each
function it
> appears in.)
> /home/user/Desktop/agrsm/agrsoftmodem.c:366: warning: unused variable
> 'x_tqueue'
> make[2]: ** [/home/user/Desktop/agrsm/agrsoftmodem.o] Erro 1
> make[1]: ** [_module_/home/user/Desktop/agrsm] Erro 2
> make[1]: Saindo do diretório `/usr/src/linux-headers-2.6.20-16-generic'
> make: ** [module] Erro 2
>
> Am I doing something wrong?
> Thanks for your help.
>
> Stan