Date: Mon, 05 Dec 2011 12:00:57 -0500 From: Adam McDougall <mcdouga9@egr.msu.edu> To: freebsd-current@freebsd.org Subject: Re: Trouble getting serial support for "Live CD" in 9 installer Message-ID: <4EDCF8C9.3030805@egr.msu.edu> In-Reply-To: <CAGH67wSi9zq1n7hc6jN_HZ0vAxVNwhgbrLgN9MLLAE2-x7aO_w@mail.gmail.com> References: <4ECD4584.6040905@egr.msu.edu> <CAGH67wSi9zq1n7hc6jN_HZ0vAxVNwhgbrLgN9MLLAE2-x7aO_w@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On 11/23/11 15:03, Garrett Cooper wrote: > On Wed, Nov 23, 2011 at 11:12 AM, Adam McDougall<mcdouga9@egr.msu.edu> wrote: >> I often use the serial console on my servers through ILOM remote console >> access to install FreeBSD because it lets me cut and paste commands into a >> live shell from install media. Back with FreeBSD 8.x and previous, the >> console worked as a dual console between the redirected VGA/keyboard console >> and serial, all I had to do was drop to the loader prompt at the boot loader >> menu to enter: >> >> set console=comconsole >> set boot_serial=yes >> boot >> >> From then on, the VGA console was ignored until I rebooted. But in 9.x >> (currently trying 9.0-RC2 from the usb image), I have to interrupt an >> earlier loader to use -h or -D to enable serial(dual) console support at >> all. I then enter the two variables above as I usually do, then specify my >> terminal type (xterm), then choose "Live CD" which prints: >> Updating motd: /etc/motd is not writable, update failed. >> Configuring syscons: blanktime. >> Starting cron. >> Starting background file system checks in 60 seconds. >> >> Wed Nov 23 19:03:02 UTC 2011 >> >> but then it prints the FreeBSD banner and spawns the login: prompt on the >> VGA console instead. >> >> Is there something else I can set during the boot process to make this work? >> I could try modifying the configuration on the usb image to suit my site >> but this is more modification than I required in the past and surprisingly >> different. Please let me know if I can provide more information or help in >> some way. Thanks. >> >> If I don't hear back in a few days or so, I'll make a PR. > > You'll need to change your device.hints and /etc/ttys. > -Garrett > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" Thanks. This lead me to an even easier solution with no editing that should work with booting from CD and with previous versions: 1. Boot completely normally 2. Use the installer to drop to Live CD shell 3. execute: /usr/libexec/getty std.9600 ttyu0 This spawns a login prompt on the serial port ttyu0 which is essentially all I need. I didn't seem to need to alter the device hints at all for my situation, and on a USB key I can mount -u -o rw / to edit one or more of /etc/ttys, /boot/loader.conf, /boot.config if I want to make it permanent for next time.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4EDCF8C9.3030805>