Boot logging doesn't work with standard (non-SuSE) linux kernel
Hi all, I've compiled the 2.4.19 kernel from www.kernel.org (i.e. NOT from the SuSE sources). Now, boot logging does not work with the following error: blogd: console=/dev/pts/1, stdin=/dev/pts/1, must differ, boot logging disabled Furthermore, the "showconsole" command gives the following (I think related) error: showconsole: Warning: the ioctl TIOCGDEV is not known by the kernel Before posting I located a similar posting in the German mailing list but my German is not good enough to understand it and babelfish didn't help me much... Maybe someone can help out? Here is the URL: http://lists.suse.com/archive/suse-linux/2001-Nov/4435.html -- To err is human, but to forgive is beyond the scope of the Operating System... Alexandros Karypidis University of Thessaly Computer & Communications Engineering dept.
On Sat, 14 Dec 2002, Alexandros Karypidis wrote:
Hi all,
I've compiled the 2.4.19 kernel from www.kernel.org (i.e. NOT from the SuSE sources).
Now, boot logging does not work with the following error:
blogd: console=/dev/pts/1, stdin=/dev/pts/1, must differ, boot logging disabled
Furthermore, the "showconsole" command gives the following (I think related) error:
showconsole: Warning: the ioctl TIOCGDEV is not known by the kernel
Before posting I located a similar posting in the German mailing list but my German is not good enough to understand it and babelfish didn't help me much... Maybe someone can help out? Here is the URL:
The message you link to is from someone with the same problem as you. The actual thread on the german mailing list does not spell out the solution, but mentions that a solution was found by searching on www.deja.com for blogd and suse. It included applying one of SuSE's kernel patches. Regards Ole
Hi Alexandros, I had the same problem and found a patch somewhere in the web (I don't remember where it was...). Here's the patch I have applied to my kernel (2.4.20) - it works for me at last ;-) Regards, Heiko
>>>>
--- linux-old/drivers/char/tty_io.c Mon Feb 25 20:37:57 2002 +++ linux/drivers/char/tty_io.c Sun Apr 28 17:55:24 2002 @@ -1769,6 +1769,8 @@ #endif case TIOCTTYGSTRUCT: return tiocttygstruct(tty, (struct tty_struct *) arg); + case TIOCGDEV: + return put_user (kdev_t_to_nr (real_tty->device), (unsigned int*) arg); /* * Break handling --- linux-old/include/asm-i386/ioctls.h Fri Jul 24 20:10:16 1998 +++ linux/include/asm-i386/ioctls.h Sun Apr 28 17:54:10 2002 @@ -49,6 +49,7 @@ #define TIOCGSID 0x5429 /* Return the session ID of FD */ #define TIOCGPTN _IOR('T',0x30, unsigned int) /* Get Pty Number (of pty-mux device) */ #define TIOCSPTLCK _IOW('T',0x31, int) /* Lock/unlock Pty */ +#define TIOCGDEV _IOR('T',0x32, unsigned int) /* Get real dev no below /dev/con sole */ #define FIONCLEX 0x5450 /* these numbers need to be adjusted. */ #define FIOCLEX 0x5451
>>>>
Alexandros Karypidis wrote:
Hi all,
I've compiled the 2.4.19 kernel from www.kernel.org (i.e. NOT from the SuSE sources).
Now, boot logging does not work with the following error:
blogd: console=/dev/pts/1, stdin=/dev/pts/1, must differ, boot logging disabled
Furthermore, the "showconsole" command gives the following (I think related) error:
showconsole: Warning: the ioctl TIOCGDEV is not known by the kernel
Before posting I located a similar posting in the German mailing list but my German is not good enough to understand it and babelfish didn't help me much... Maybe someone can help out? Here is the URL:
participants (3)
-
Alexandros Karypidis
-
Heiko Ettelbrueck
-
Ole Kofoed Hansen