Messages in this thread | | | Date | Thu, 18 Nov 2010 20:56:47 +0000 | From | Alan Cox <> | Subject | Re: How do I choose an arbitrary minor number for my tty device? |
| |
On Thu, 18 Nov 2010 14:43:17 -0600 Timur Tabi <timur@freescale.com> wrote:
> Greg KH wrote: > >> > One last question. If I create multiple TTY devices, how do I tell the kernel > >> > which one should be used for the console? > > > On the command line. > > Is there a way to do it in the driver itself? Getting the boot loader to > identify the specific byte channel for stdout isn't trivial. It'd be nice if > the driver could tell the tty layer, "BTW, this use this for the default console".
You can - provide the required method in your console driver and it'll get used by /dev/console. Funnily enough a lot of other platform and consoles need that too.
Alan
| |