Re: Fwd: agrsm patch for kernel 2.6.27.7

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

 



2009/1/23 Bjorn Wielens <Uniacke1@xxxxxxxx>:
> There are several locations.

Thanks for the prompt reply.

> The latest are in
> http://linux.zsolttech.com/linmodem/agrsm/
> You will need to install dkms for these to work.

I have slackware, so debs and rpms are no use to me. I couldn't even
extract files from the rpms using the version of rpm included with
slackware (4.4.2.3).

> Earlier releases (not guaranteed to work with 2.6.27) are in
>
> http://linmodems.technion.ac.il/packages/ltmodem/11c11040/

My modem is a Netcomm IN5920, which is PCI ID 11c1:048c.

I tried 20080808 anyway, and had a little trouble compiling it (patch
attached). After I got it compiled, I could load the modules, and
wvdial would initialize the modem, but I couldn't dial out.

I'll stick with 20080203, since it works. Thanks for your help anyway.

> Joshua Gordon Crawford wrote:
>> 2009/1/23 Bjorn Wielens <Uniacke1@xxxxxxxx>:
>>> That is an EXTREMELY outdated package... Please use agrsm-20080808, at
>>> least, or furthermore, the packages in Zsolt's repositories- those work
>>> properly.
>>> Bjorn.
>>
>> Where can I find these updated packages? I've been checking
>> http://linmodems.technion.ac.il/packages/ltmodem/sv92/ every now and
>> then for updates, but the latest is 20080203.
>>
>>> Marvin Stodolsky wrote:
>>>> ---------- Forwarded message ----------
>>>> From: Joshua Gordon Crawford <jgcrawford@xxxxxxxxx>
>>>> Date: Wed, Jan 21, 2009 at 8:50 PM
>>>> Subject: agrsm patch for kernel 2.6.27.7
>>>> To: Linmodems <discuss@xxxxxxxxxxxxx>
>>>>
>>>>
>>>> G'day,
>>>>
>>>> It's been a while since I read this list, so sorry if this is old news.
>>>>
>>>> I've just upgraded my system and found that agrsm-20080203 won't
>>>> compile on recent kernels. It compiled for 2.6.24.5, but does not
>>>> compile on 2.6.27.7. One struct member has been renamed in the kernel
>>>> headers. There's a small patch below to update the agrsm source code.

-- 
Joshua Crawford ... http://geocities.com/mortarn

http://www.rewardscentral.com.au/Join/Default.aspx?refer=mortarn
Be rewarded! Join RewardsCentral today!
diff -upPr agrsm-20080808-orig/agrsoftmodem.c agrsm-20080808/agrsoftmodem.c
--- agrsm-20080808-orig/agrsoftmodem.c	2008-09-27 04:55:53.000000000 +1000
+++ agrsm-20080808/agrsoftmodem.c	2009-01-23 12:52:13.000000000 +1100
@@ -316,7 +316,7 @@ fnatr void *x_memcpy (void *dest, const 
 fnatr int x_memcmp (const void *ptr1, const void *ptr2, int len) { return (memcmp (ptr1, ptr2, len)); }
 fnatr unsigned char x_isprint (char c) { return(isprint (c)); }
 fnatr unsigned char x_toupper (char c) { return toupper (c); }
-fnatr int kill_proc_wrap(pid_t pid, int sig, int opt) { return (kill_proc(pid, sig, opt));}
+fnatr int kill_proc_wrap(pid_t pid, int sig, int opt) { return (send_sig(sig, pid, opt));}
 fnatr int x_sprintf(char * buf, const char * fmt, ...)
 {
 	va_list args;
diff -upPr agrsm-20080808-orig/serial26.c agrsm-20080808/serial26.c
--- agrsm-20080808-orig/serial26.c	2008-07-09 22:54:17.000000000 +1000
+++ agrsm-20080808/serial26.c	2009-01-23 12:53:05.000000000 +1100
@@ -987,7 +987,7 @@ static void serial8250_enable_ms(struct 
 static _INLINE_ void
 receive_chars(struct uart_8250_port *up, int *status, struct pt_regs *regs)
 {
-	struct tty_struct *tty = up->port.info->tty;
+	struct tty_struct *tty = up->port.info->port.tty;
 	unsigned char ch, lsr = *status;
 	int max_count = 256;
 	char flag;

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

  Powered by Linux