Re: agrsm update

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Alexei,   Thanks, but see remaining problems below.
All,  Note that Alexei's patch should be applied to this original sources athttp://phep2.technion.ac.il/linmodems/packages/ltmodem/kernel-2.6/the  agrsm-alpha.tar.bz2 after unpacking.  The patch does NOT applyproperly to the agrsm-20070630.tar.gz, I sent out earlier, and thatpackage should simple be descarded as Alexie's patch covers many moreissues.
Ludi,
The problem you relate is due only a minor typo.In Makefile, just change:all: moduletoall: modulesThen the compile succeeds for my 2.6.17 system, per sample below.
agrmodem inserts as expected, even without the correct modem hardware.But there is a warning:$ sudo modprobe agrmodem[17292522.656000] agrserial: Unknown symbol uart_write_wakeup
$ lsmod | grep agagrmodem             1186916  0
Insertion of agrserial is expected to be dependent on proper hardware,but even a trial reveals further symbol problems:$ sudo modprobe agrserialFATAL: Error inserting agrserial(/lib/modules/2.6.17.14-marv3/extra/agrserial.ko): Unknown symbol inmodule, or unknown parameter (see dmesg)marv@marvlap:/usr/src/modules/agrsm$  [17292544.620000] agrsm: created 0 infos [17292896.168000] agrserial: Unknown symbol uart_get_baud_rate [17292896.168000] agrserial: Unknown symbol uart_resume_port [17292896.168000] agrserial: Unknown symbol uart_register_driver [17292896.168000] agrserial: Unknown symbol uart_suspend_port [17292896.168000] agrserial: Unknown symbol uart_remove_one_port [17292896.168000] agrserial: Unknown symbol uart_update_timeout [17292896.168000] agrserial: Unknown symbol uart_unregister_driver [17292896.168000] agrserial: Unknown symbol uart_get_divisor [17292896.168000] agrserial: Unknown symbol uart_add_one_port
Additionally per below, the compile itself fails using 2.6.20 linux-headers
Alexei,   For reasons obscure,There is a  failure on my System for the usually rudimentary:$ make clean$ ls8250.h      agrmodem.ko     agrmodem.mod.o  agrserial.mod.cagrsm.rules     linuxif.h  Modules.symversagr.h       agrmodemlib.o   agrmodem.o      agrserial.mod.oagrsoftmodem.c  Makefile   READMEagrmodem.h  agrmodem.mod.c  agrserial.ko    agrserial.o      LICENSE      Makefile~  serial26.c
However if I copy in Sarkars' variant:clean:        rm -f *.a        rm -f *~        rm -f agrmodem.o        rm -f agrmodem.ko        rm -f agrmodem.mod.o        rm -f agrmodem.mod.c        rm -f agrserial.o        rm -f agrserial.ko        rm -f agrserial.mod.o        rm -f agrserial.mod.c        rm -f agrsoftmodem.o        rm -f serial26.o
There is a success in:$ make clean$ ls8250.h  agrmodem.h     agrsm.rules     LICENSE    Makefile         READMEagr.h   agrmodemlib.o  agrsoftmodem.c  linuxif.h  Modules.symvers  serial26.c
MarvS============ makemake -C /lib/modules/2.6.17.14-marv3/buildSUBDIRS=/usr/src/modules/agrsm modulesmake[1]: Entering directory `/usr/src/linux-headers-2.6.17.14-marv3'  CC [M]  /usr/src/modules/agrsm/agrsoftmodem.oobjcopy --weaken-symbol=LXHardwareInfoCreate \                --weaken-symbol=LXHardwareInfoDestroy \                /usr/src/modules/agrsm/agrmodemlib.o/usr/src/modules/agrsm/agrsm_core.o  CC [M]  /usr/src/modules/agrsm/serial26.o/usr/src/modules/agrsm/serial26.c: In function 'serial8250_get_mctrl':/usr/src/modules/agrsm/serial26.c:1371: warning: unused variable 'flags'/usr/src/modules/agrsm/serial26.c: In function 'serial8250_config_port':/usr/src/modules/agrsm/serial26.c:2039: warning: unused variable 'ret'/usr/src/modules/agrsm/serial26.c: At top level:/usr/src/modules/agrsm/serial26.c:2131: warning: initialization fromincompatible pointer type/usr/src/modules/agrsm/serial26.c:2132: warning: initialization fromincompatible pointer type/usr/src/modules/agrsm/serial26.c:1922: warning:'serial8250_request_rsa_resource' defined but not used  LD [M]  /usr/src/modules/agrsm/agrmodem.o  LD [M]  /usr/src/modules/agrsm/agrserial.o  Building modules, stage 2.  MODPOSTWARNING: could not find /usr/src/modules/agrsm/.agrsm_core.o.cmd for/usr/src/modules/agrsm/agrsm_core.oWARNING: "uart_write_wakeup" [/usr/src/modules/agrsm/agrserial.ko] undefined!WARNING: "uart_add_one_port" [/usr/src/modules/agrsm/agrserial.ko] undefined!WARNING: "uart_get_divisor" [/usr/src/modules/agrsm/agrserial.ko] undefined!WARNING: "uart_unregister_driver"[/usr/src/modules/agrsm/agrserial.ko] undefined!WARNING: "uart_update_timeout" [/usr/src/modules/agrsm/agrserial.ko] undefined!WARNING: "uart_remove_one_port" [/usr/src/modules/agrsm/agrserial.ko] undefined!WARNING: "uart_suspend_port" [/usr/src/modules/agrsm/agrserial.ko] undefined!WARNING: "uart_register_driver" [/usr/src/modules/agrsm/agrserial.ko] undefined!WARNING: "uart_resume_port" [/usr/src/modules/agrsm/agrserial.ko] undefined!WARNING: "uart_get_baud_rate" [/usr/src/modules/agrsm/agrserial.ko] undefined!  CC      /usr/src/modules/agrsm/agrmodem.mod.o  LD [M]  /usr/src/modules/agrsm/agrmodem.ko  CC      /usr/src/modules/agrsm/agrserial.mod.o  LD [M]  /usr/src/modules/agrsm/agrserial.ko
$ ls -l *.ko-rw-r--r-- 1 marv marv 1431435 2007-07-03 19:45 agrmodem.ko-rw-r--r-- 1 marv marv   14272 2007-07-03 19:45 agrserial.ko
2.6.20 compile attempt:=================$ make KERNEL_DIR=/usr/src/linux-headers-2.6.20-15-genericmake -C /usr/src/linux-headers-2.6.20-15-genericSUBDIRS=/usr/src/modules/agrsm modulesmake[1]: Entering directory `/usr/src/linux-headers-2.6.20-15-generic'  CC [M]  /usr/src/modules/agrsm/agrsoftmodem.oobjcopy --weaken-symbol=LXHardwareInfoCreate \                --weaken-symbol=LXHardwareInfoDestroy \                /usr/src/modules/agrsm/agrmodemlib.o/usr/src/modules/agrsm/agrsm_core.o  CC [M]  /usr/src/modules/agrsm/serial26.o/usr/src/modules/agrsm/serial26.c: In function 'serial8250_get_mctrl':/usr/src/modules/agrsm/serial26.c:1371: warning: unused variable 'flags'/usr/src/modules/agrsm/serial26.c: In function 'serial8250_config_port':/usr/src/modules/agrsm/serial26.c:2045: error: 'UPF_BOOT_ONLYMCA'undeclared (first use in this function)/usr/src/modules/agrsm/serial26.c:2045: error: (Each undeclaredidentifier is reported only once/usr/src/modules/agrsm/serial26.c:2045: error: for each function it appears in.)/usr/src/modules/agrsm/serial26.c:2039: warning: unused variable 'ret'/usr/src/modules/agrsm/serial26.c: At top level:/usr/src/modules/agrsm/serial26.c:2131: warning: initialization fromincompatible pointer type/usr/src/modules/agrsm/serial26.c:2132: warning: initialization fromincompatible pointer typemake[2]: *** [/usr/src/modules/agrsm/serial26.o] Error 1make[1]: *** [_module_/usr/src/modules/agrsm] Error 2make[1]: Leaving directory `/usr/src/linux-headers-2.6.20-15-generic'make: *** [modules] Error 2

On 7/2/07, Ludi Maciel <iludi@xxxxxxxxxx> wrote:> Em Ter, 2007-07-03 às 00:16 +0300, A.Chentsov escreveu:> > Apply the patch to agrsm/ directory.> > $ cd agrsm/> > $ bzcat ../patch-20070702.bz2 | patch -p1> >> > Follow the usual build procedure. If it's not working with newer kernel> > try 'acpi=off' boot option.> >> > Regards,> > A.Chentsov>> No go here. After the patch is applied, the compilation fails:>> ~/agrsm$ bzcat patch-20070702.bz2 | patch -p1> patching file 8250.h> patching file Makefile> patching file agr.h> patching file agrmodem.h> patching file agrsoftmodem.c> patching file linuxif.h> patching file serial26.c>> :~/agrsm$ make module> make: *** Sem regra para processar o alvo `module'.  Pare. (No rule to> process the target 'module')>> :~/agrsm$ make> make: *** Sem regra para processar o alvo `module', necessário por> `all'.  Pare>> Thank you Chentsov.>>

[Index of Archives]     [Linux Media Development]     [Asterisk]     [DCCP]     [Netdev]     [X.org]     [Xfree86]     [Fedora Women]     [Linux USB]

  Powered by Linux