Re: 2.6.0-test11 -- Failed to open /dev/ttyS0: No such device

From: Jacek Kawa
Date: Sun Nov 30 2003 - 17:28:55 EST


Steve Youngs wrote:

> JK> bert hubert wrote:
> >>> Does anyone have modem working in 2.6.0-test11?
> >>> I have external modem connected to /dev/ttyS0 (COM1). Kernel
> >>> 2.6.0-test11 give me

> JK> It reminds me, that I had to add serial to the list of modules
> JK> loading at start to get back access to /dev/ttyS*
> JK> (while upgrading from -test9 to -test10).

> I _think_ this patch will bring back auto-loading of the serial module
> for you. Please let me know how it goes.

Well: patched, installed new serial_core.ko, then depmod -a, and try to
access ttySwhatever.

I don't see any difference... If I understood correctly, it could not load
my 'fake' serial module anyway (?)

BTW. only changes,I think could affect serial directly and
made betwen test9 and test10 are:

diff -Nru a/drivers/serial/serial_core.c b/drivers/serial/serial_core.c
--- a/drivers/serial/serial_core.c Sun Nov 23 17:33:38 2003
+++ b/drivers/serial/serial_core.c Sun Nov 23 17:33:38 2003
@@ -1707,6 +1707,9 @@
strcat(stat_buf, "\n");

ret += sprintf(buf + ret, stat_buf);
+ } else {
+ strcat(buf, "\n");
+ ret++;
}
#undef STATBIT
#undef INFOBIT

diff -Nru a/include/linux/serial.h b/include/linux/serial.h
--- a/include/linux/serial.h Sun Nov 23 17:33:38 2003
+++ b/include/linux/serial.h Sun Nov 23 17:33:38 2003
@@ -49,7 +49,6 @@
unsigned short iomem_reg_shift;
unsigned int port_high;
unsigned long iomap_base; /* cookie passed into ioremap */
- int reserved[1];
};

/*

I could try to narrow it down to some -bk, but it will take time...

PS. I wonder - could it be, that somewhere in the middle of
decision process test9 > test10 (as test1something)

bye

--
Jacek Kawa **Oh, Lord, bless this thy hand grenade that with it thou
mayest blow thy enemies to tiny bits, in thy mercy.**
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/