"Adam J. Richter" <adam@yggdrasil.com> writes:
> Whatever console mechanism the kernel uses up to the point
> it executes /linuxrc, it should continue use until it invokes /sbin/init.
> Then, /sbin/init should mount /dev first, and then execute something like:
>
> fd = open("/dev/vc/0", O_RDWR);
> ioctl(fd, TIOCCONS, &fd);
> close(fd);
What about serial console? Does it work with it?
I think it would be fine to open the device (console -> usually tty0, but
depends on CONFIG_SERIAL_CONSOLE and console=ttySxx) by major.minor
and then exec init. No magics in init then, no automatic /dev mount
required, no linuxrc etc things required.
If required for other reasons, linuxrc/preinit/etc could be configured in
independently of initrd.
-- Krzysztof Halasa Network Administrator- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/
This archive was generated by hypermail 2b29 : Wed May 31 2000 - 21:00:25 EST