Willy Tarreau a écrit : >On Sat, Nov 29, 2003 at 12:49:50AM +0100, Baptiste Malguy wrote: > > > >>In relation to this patch, I want to say that many many websites, FAQs, >>... say that you must >>have something like console="/dev/ttyX CONSOLE=/dev/ttyN" to redirect >>the kernel and init >>messages. >> >>About 'CONSOLE=', that's true because this is a environment variable >>that /sbin/init obtains. >>About 'console=', it's completly wrong ! 'console=' expects a driver >>name (example: "tty", >>"tty1", "ttyS0"), not device file name. Only the Linux source code >>reading and a few websites >>says the right usage of 'console='. >> >> > >If there really are FAQ reporting this, it might be simpler to make the >kernel accept /dev/XXX than to try to fix all FAQs, and it would be more >intuitive to people who type on lilo command line. > > I guess you are right. However, all I've done (and again, essentially, using someone else code) is to fix of bug. Changing the way the 'console=' argument works is more a design stuff. If all the console drivers' names are based on the device file name (that is "tty" for "/dev/tty1", ort "/dev/tty2", ...) it can be easily done by dropping "/dev/" from the 'console=' argument value, in one C file. However, a device file name can be anything you want. So the "/dev/" wouldn't work. I don't know if that's the good way to do it. Maybe a more complete work, like looking at the device file, its major and minor and the corresponding driver, would be a better idea. >You'd better send an "unified diff" (diff -u) which includes one level of >kernel directory. You diff then starts like this : >--- linux-2.4.22/drivers/char/console >+++ linux-2.4.22-bm1/drivers/char/console > > Yes, sure, I read that before and did not even do that .... I'd better sleep more at night :) Here it comes now. I have tested with 'vga=normal' and 'vga=792'. That's fine for me. However, I may have not taken in consideration some locks required. I let interested people test for a few days before sending to Marcello. Thank you for your comments. -- Baptiste Malguy - http://baptiste.malguy.net Ingénieur en informatique libre