I just noticed that Alexei's patch, patch-20070702.bz2 does not deal with the config.h problem that begins with 2.6.19 kernels The following patch is for those of you working with those most current kernels. Within 8250.h, agrsoftmodem.c and serial26.c if just brackets a line: #include <linux/config.h> with the following conditional: #include <linux/version.h> #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,19) #include <linux/config.h> #endif Save the script section below as patch2619 (for example) Apply it from within the agrsm/ folder with: patch < ../patch2619 with patch2619 in front of the agrsm/ folder MarvS -------------- diff -Nur agrsm/8250.h agrsm05/8250.h --- agrsm/8250.h 2007-01-12 20:29:06.000000000 -0500 +++ agrsm05/8250.h 2007-07-05 18:57:41.000000000 -0400 @@ -15,7 +15,10 @@ * $Id: 8250.h,v 1.8 2002/07/21 21:32:30 rmk Exp $ */ +#include <linux/version.h> +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,19) #include <linux/config.h> +#endif #include <linux/serial_8250.h> struct old_serial_port { diff -Nur agrsm/agrsoftmodem.c agrsm05/agrsoftmodem.c --- agrsm/agrsoftmodem.c 2005-11-16 16:32:09.000000000 -0500 +++ agrsm05/agrsoftmodem.c 2007-07-05 19:00:49.000000000 -0400 @@ -18,7 +18,10 @@ #define AGERE_SOFT_MODEM #endif +#include <linux/version.h> +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,19) #include <linux/config.h> +#endif #include <linux/module.h> #include <linux/version.h> diff -Nur agrsm/serial26.c agrsm05/serial26.c --- agrsm/serial26.c 2007-01-12 20:29:31.000000000 -0500 +++ agrsm05/serial26.c 2007-07-05 18:59:19.000000000 -0400 @@ -70,7 +70,10 @@ static char *serialif_name = "Agere Modem Interface driver"; #endif +#include <linux/version.h> +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,19) #include <linux/config.h> +#endif #include <linux/module.h> #include <linux/tty.h> #include <linux/ioport.h> On 7/4/07, Paul Vojta <vojta@xxxxxxxxxxxxxxxxx> wrote:
On Wed, Jul 04, 2007 at 07:40:01PM +0900, Isamar Maia wrote: > It compiles here well using Fedora core 6, 2.6.20-1.2798 kernel. > It loads ok too but freezes with kernel "oops" when I open minicom > pointing to its device file. I suspect it's a problem with the 2.6.20 kernel. I had problems using martian under 2.6.20, but under 2.6.18 and 2.6.21.1 it runs fine. --Paul Vojta, vojta@xxxxxxxxxxxxxxxxx