9fans archive / 1997 / 04 / 6 / prev next From: David Hogan dhog@lor... Subject: Plan 9 on Sun IPC + cgthree? Date: Tue, 8 Apr 1997 06:12:34 +1000 Speaking of hacks to the ss confinit(), here is a patch to enable the use of a serial console on a sparcstation which has a monitor. The comment explains what you have to do to take advantage of it. You probably also need to say ``setenv input-device ttya'' and ``setenv output-device ttya'' to make the boot monitor use the serial console... diff /sys/src/9/ss/main.c ... 321a322 > int montype; 332a334 > montype = ((uchar*)va)[0x1f]; 340,343c342,345 < * If we find a frame buffer, we always use it as a console < * rather than the attached terminal, if any. This means < * if you have a frame buffer you'd better have a builtin < * keyboard, too. --- > * If we find a frame buffer, we use it as a console > * rather than the attached terminal (if any), except if > * the console is set to ttya in the nv-ram. Type ``10 1f eeprom!'' > * in new command mode to set this... 344a347 > if (montype != 0x10) /* ttya */