diff -urN linux-2.6.5/drivers/char/Kconfig linux-2.6.6_rc1-love1/drivers/char/Kconfig --- linux-2.6.5/drivers/char/Kconfig 2004-04-19 16:01:50.006624287 -0500 +++ linux-2.6.6_rc1-love1/drivers/char/Kconfig 2004-04-19 16:39:01.877138133 -0500 @@ -57,6 +57,10 @@ If unsure, say Y. +config NR_TTY_DEVICES + int "Number of tty devices" + default 63 + config HW_CONSOLE bool depends on VT && !S390 && !UM diff -urN linux-2.6.5/include/linux/tty.h linux-2.6.6_rc1-love1/include/linux/tty.h --- linux-2.6.5/include/linux/tty.h 2004-04-19 11:04:19.000000000 -0500 +++ linux-2.6.6_rc1-love1/include/linux/tty.h 2004-04-19 16:52:19.782915029 -0500 @@ -10,8 +10,13 @@ * resizing). */ #define MIN_NR_CONSOLES 1 /* must be at least 1 */ +#if (CONFIG_NR_TTY_DEVICES < 11) #define MAX_NR_CONSOLES 63 /* serial lines start at 64 */ #define MAX_NR_USER_CONSOLES 63 /* must be root to allocate above this */ +#else +#define MAX_NR_CONSOLES CONFIG_NR_TTY_DEVICES +#define MAX_NR_USER_CONSOLES CONFIG_NR_TTY_DEVICES +#endif /* Note: the ioctl VT_GETSTATE does not work for consoles 16 and higher (since it returns a short) */