On 8 June 2010 09:30, Antonio Olivares <olivares14031@xxxxxxxxx> wrote: > Joshua, > > Thanks. Now kmalloc and/or kfree were changed in 2.6.34 kernel so a > conditional is needed there too! :) > > Adding this part > #if ( LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,34) )' > #include <linux/slab.h>' > #endif' > > to linmodem-2.6.c fixes the kmalloc and kfree error messages. > > The modem responds and works, but connection speed is slow :( compared > to before. The slow speed could have something to do with the line you comment out. I haven't examined the code, but it's possible that pointer might have 'noisy' data on it if it's not nulled. > [ 5115.158017] linmodem(1282): linmodem v0.1 loaded > [ 5115.176152] pctel_hw(155): PCTel hardware driver version > 0.9.7-9-rht-9 for PCT789 > [ 5115.176154] > [ 5115.179592] pctel(481): pctel v0.1 loaded > [ 5115.179653] pctel_hw 0000:01:07.0: PCI INT A -> Link[APC2] -> GSI > 17 (level, low) -> IRQ 17 > [ 5115.179660] pctel_pci(233): PCTel device[0000:01:07.0](0x38) found > 134d:7897 (rev 02), iobase=0xb000, irq=17. > [ 5115.179663] pctel_pci(609): Setup PCI port: port 0xb000, irq 17, > type 0, membase (null), ops (null) > [ 5115.179669] ttyS_PCTEL0 at I/O 0xb000 (irq = 17) is a PCTel > > > > #!/bin/bash > # > # latest fix for 2.6.34 kernels > # > sed -i '423 a if [ ${sub} -lt 30 ]' configure > sed -i '424 a then' configure > sed -i '442 a fi' configure > > sed -i '41a /* Add conditional slab.h in 2.6.34 - 06/07/2010 */' linmodem-2.6.c > sed -i '42a #if ( LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,34) )' > linmodem-2.6.c > sed -i '43a #include <linux/slab.h>' linmodem-2.6.c > sed -i '44a #endif' linmodem-2.6.c > sed -i 's/port.info/port.state/g' linmodem-2.6.c > sed -i 's/delta_msr_wait/port.delta_msr_wait/g' linmodem-2.6.c > sed -i '1230 s|p|\/\/p|g' linmodem-2.6.c > > > Regards, > > Antonio > > BTW > have not tested agrsm-20100106 against 2.6.34 kernel yet :) Nor have I, and it'll be a few weeks before I do. I'm currently downloading Slackware 13.1 (which is taking forever on dialup), and I'll try the 2.6.34 kernel a couple of weeks after I've upgraded. > also martian-full-20100123 code along with slmodem-2.9.11-20100222 code. > Those are next I guess when someone reports problems? Which, hopefully, won't be until Ubuntu 10.10. -- Joshua Crawford ... http://geocities.com/mortarn http://www.rewardscentral.com.au/Join/Default.aspx?refer=mortarn Be rewarded! Join RewardsCentral today!