The console_init() Function

Console_init() is located in drivers/char/tty_io.c.

The console_init() function performs early initialization of the kernel's serial console device, if one is configured for use. This console device is used to display kernel boot messages before the formal, complete virtual console system is initialized.

Once some basic TTY information is recorded, console_init() calls a host-specific console initialization function like sci_console_init(), which uses the Hitachi SH's SCI peripheral as a serial console.

In most cases, the kernel's console device is the host's VGA display hardware, or a serial port. By creating your own terminal initialization function for console_init(), however, just about any primitive interface is possible. Consoles that talk to network hosts can't be used here, since the kernel's networking subsystem has not yet been initialized.