Re: Trying to setup a serial console on my desktop
,--[ On Sunday 20 Jan 2008, WATANABE Kazuhiro wrote: | Hello. [...] | loader.conf(5) says: | | comconsole_speed | | (``9600'' or the value of the BOOT_COMCONSOLE_SPEED vari- | | able when loader(8) was compiled). Sets the speed of the | | serial console. If the previous boot loader stage speci- | | fied that a serial console is in use then the default | | speed is determined from the current serial port speed | | setting. | | If you specify to use a serial console via /boot.config and | want to change the speed from 9600bps (default), you need to add | the -S speed flag to your /boot.config. See boot(8) for details. By me specifying use of serial console via /boot.config, you mean '-D' option, which I specified in /boot.config, hmm...? If yes, then this means it'll override 'console' setting I specified in loader.conf, hmm...? e.g. if I specified 'console=vidconsole' in 'loader.conf', but has '-D' in /boot.config, will I get output on both serial and internal console, hmm...? And BtW, if I specify anything at loader prompt, e.g. set comconsole_speed=115200, it works, i.e. I can connect to serial console at 115200 bps. So won't values specified at loader prompt have same priority as values specified in loader.conf, hmm... ? Sorry I'm bit confused regarding which gets priority, 'loader.conf' or 'boot.config'. | 2. Keyboard doesn't work irrespective of '-P' being present in | /boot.config . So I can't login to any TTY or login to X via GDM. | | I'm following | http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/serialconsole-s | etup.html | | Is a login prompt displayd to the video console? I asked GDM service to start at startup. So I get a GDM GUI, but I can't use my keyboard to enter my username there, not I'll be able to switch TTYs, though mouse is working fine. | If not, the system boot sequence may have been stopped at some kinds | of daemon (sshd, sendmail, etc.). I've all my hostname, and DNS stuff set up correctly, so there isn't problem of any kind, as I see messages of sendmail, sshd starting on my serial console at 9600bps. BtW, only 'dmesg' message appears on my video console, whereas all kind of messages appear on serial console, do I need some changes in syslog too to get all messages also on my video console, hmm...? TIA -- Ashish Shukla आशीष शुक्ल http://wahjava.wordpress.com/ ·-- ·- ·--- ·- ···- ·- ·--·-· --· -- ·- ·· ·-·· ·-·-·- -·-· --- -- signature.asc Description: This is a digitally signed message part.
Re: Trying to setup a serial console on my desktop
Hello. At Sat, 19 Jan 2008 02:17:42 +0530, ? Ashish Shukla wrote: Hi, I'm trying to setup serial console on my FreeBSD 7.0-BETA4, I'm facing some issues. 88 [EMAIL PROTECTED] ~]$ cat /boot.config -DP [EMAIL PROTECTED] ~]$ cat /boot/loader.conf sound_load=YES# Digital sound subsystem snd_hda_load=YES # Intel High Definition Audio (Controller) snd_ds1_load=YES # ds1 comconsole_speed=115200 boot_multicons=YES boot_serial=YES console=comconsole,vidconsole # A comma separated list of console(s) [EMAIL PROTECTED] ~]$ cat /etc/ttys |grep -v ^# |fgrep -v none ttyv0 /usr/libexec/getty Pc cons25 on secure ttyv1 /usr/libexec/getty Pc cons25 on secure ttyv2 /usr/libexec/getty Pc cons25 on secure ttyv3 /usr/libexec/getty Pc cons25 on secure ttyv4 /usr/libexec/getty Pc cons25 on secure ttyv5 /usr/libexec/getty Pc cons25 on secure ttyv6 /usr/libexec/getty Pc cons25 on secure ttyv7 /usr/libexec/getty Pc cons25 on secure ttyv8 /usr/local/bin/xdm -nodaemon xterm off secure ttyd0 /usr/libexec/getty std.115200 vt220 on secure ttyd1 /usr/libexec/getty std.9600 dialup off secure ttyd2 /usr/libexec/getty std.9600 dialup off secure ttyd3 /usr/libexec/getty std.9600 dialup off secure dcons /usr/libexec/getty std.9600 vt100 off secure [EMAIL PROTECTED] ~]$ stty -a -f /dev/ttyd0 speed 115200 baud; 0 rows; 0 columns; lflags: icanon isig iexten echo echoe -echok echoke -echonl echoctl -echoprt -altwerase -noflsh -tostop -flusho pendin -nokerninfo -extproc iflags: -istrip icrnl -inlcr -igncr ixon -ixoff ixany imaxbel -ignbrk brkint -inpck -ignpar -parmrk oflags: opost onlcr -ocrnl oxtabs -onocr -onlret cflags: cread cs8 -parenb -parodd hupcl clocal -cstopb crtscts -dsrflow -dtrflow -mdmbuf cchars: discard = ^O; dsusp = ^Y; eof = ^D; eol = undef; eol2 = undef; erase = ^?; erase2 = ^H; intr = ^C; kill = ^U; lnext = ^V; min = 1; quit = ^\; reprint = ^R; start = ^Q; status = ^T; stop = ^S; susp = ^Z; time = 0; werase = ^W; 88 I've a desktop mobo (Intel D945GNTL) with onboard Intel Graphics. My BIOS doesn't support redirecting its output to COM1. Following are the issues: 1. comconsole_speed in /boot/loader.conf is not working. I wanted to try 115200 baud rate, but its not working when set in loader.conf. If I set comconsole_speed at loader prompt, it works. loader.conf(5) says: | comconsole_speed | (``9600'' or the value of the BOOT_COMCONSOLE_SPEED vari- | able when loader(8) was compiled). Sets the speed of the | serial console. If the previous boot loader stage speci- | fied that a serial console is in use then the default | speed is determined from the current serial port speed | setting. If you specify to use a serial console via /boot.config and want to change the speed from 9600bps (default), you need to add the -S speed flag to your /boot.config. See boot(8) for details. 2. Keyboard doesn't work irrespective of '-P' being present in /boot.config . So I can't login to any TTY or login to X via GDM. I'm following http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/serialconsole-setup.html Is a login prompt displayd to the video console? If not, the system boot sequence may have been stopped at some kinds of daemon (sshd, sendmail, etc.). --- WATANABE Kazuhiro ([EMAIL PROTECTED]) ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Trying to setup a serial console on my desktop
WATANABE Kazuhiro writes: WATANABE Hello. [...] WATANABE loader.conf(5) says: WATANABE | comconsole_speed WATANABE | (``9600'' or the value of the BOOT_COMCONSOLE_SPEED vari- WATANABE | able when loader(8) was compiled). Sets the speed of the WATANABE | serial console. If the previous boot loader stage speci- WATANABE | fied that a serial console is in use then the default WATANABE | speed is determined from the current serial port speed WATANABE | setting. WATANABE If you specify to use a serial console via /boot.config and WATANABE want to change the speed from 9600bps (default), you need to add WATANABE the -S speed flag to your /boot.config. See boot(8) for details. By me specificying use of serial console via /boot.config, you mean '-D' option, which I specified in /boot.config, hmm...? If yes, then this means it'll override 'console' setting I specified in loader.conf, hmm...? e.g. if I specified 'console=vidconsole' in 'loader.conf', but has '-D' in /boot.config, will I get output on both serial and internal console, hmm...? And BtW, if I specify anything at loader prompt, e.g. set comconsole_speed=115200, it works, i.e. I can connect to serial console at 115200 bps. So won't values specified at loader prompt have same priority as values specified in loader.conf, hmm... ? Sorry I'm bit confused regarding which gets priority, 'loader.conf' or 'boot.config'. 2. Keyboard doesn't work irrespective of '-P' being present in /boot.config . So I can't login to any TTY or login to X via GDM. I'm following http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/serialconsole-setup.html WATANABE Is a login prompt displayd to the video console? I asked GDM service to start at startup. So I get a GDM GUI, but I can't use my keyboard to enter my username there, not I'll be able to switch TTYs, though mouse is working fine. WATANABE If not, the system boot sequence may have been stopped at some kinds WATANABE of daemon (sshd, sendmail, etc.). I've all my hostname, and DNS stuff set up correctly, so there isn't problem of any kind, as I see messages of sendmail, sshd starting on my serial console at 9600bps. BtW, only 'dmesg' message appears on my video console, whereas all kind of messages appear on serial console, do I need some changes in syslog too to get all messages also on my video console, hmm...? WATANABE --- WATANABE WATANABE Kazuhiro ([EMAIL PROTECTED]) TIA -- Ashish Shukla आशीष शुक्ल http://wahjava.wordpress.com/ ·-- ·- ·--- ·- ···- ·- ·--·-· --· -- ·- ·· ·-·· ·-·-·- -·-· --- -- pgplkI6QIAsNe.pgp Description: PGP signature
Trying to setup a serial console on my desktop
Hi, I'm trying to setup serial console on my FreeBSD 7.0-BETA4, I'm facing some issues. 88 [EMAIL PROTECTED] ~]$ cat /boot.config -DP [EMAIL PROTECTED] ~]$ cat /boot/loader.conf sound_load=YES# Digital sound subsystem snd_hda_load=YES # Intel High Definition Audio (Controller) snd_ds1_load=YES # ds1 comconsole_speed=115200 boot_multicons=YES boot_serial=YES console=comconsole,vidconsole # A comma separated list of console(s) [EMAIL PROTECTED] ~]$ cat /etc/ttys |grep -v ^# |fgrep -v none ttyv0 /usr/libexec/getty Pc cons25 on secure ttyv1 /usr/libexec/getty Pc cons25 on secure ttyv2 /usr/libexec/getty Pc cons25 on secure ttyv3 /usr/libexec/getty Pc cons25 on secure ttyv4 /usr/libexec/getty Pc cons25 on secure ttyv5 /usr/libexec/getty Pc cons25 on secure ttyv6 /usr/libexec/getty Pc cons25 on secure ttyv7 /usr/libexec/getty Pc cons25 on secure ttyv8 /usr/local/bin/xdm -nodaemon xterm off secure ttyd0 /usr/libexec/getty std.115200 vt220 on secure ttyd1 /usr/libexec/getty std.9600 dialup off secure ttyd2 /usr/libexec/getty std.9600 dialup off secure ttyd3 /usr/libexec/getty std.9600 dialup off secure dcons /usr/libexec/getty std.9600 vt100 off secure [EMAIL PROTECTED] ~]$ stty -a -f /dev/ttyd0 speed 115200 baud; 0 rows; 0 columns; lflags: icanon isig iexten echo echoe -echok echoke -echonl echoctl -echoprt -altwerase -noflsh -tostop -flusho pendin -nokerninfo -extproc iflags: -istrip icrnl -inlcr -igncr ixon -ixoff ixany imaxbel -ignbrk brkint -inpck -ignpar -parmrk oflags: opost onlcr -ocrnl oxtabs -onocr -onlret cflags: cread cs8 -parenb -parodd hupcl clocal -cstopb crtscts -dsrflow -dtrflow -mdmbuf cchars: discard = ^O; dsusp = ^Y; eof = ^D; eol = undef; eol2 = undef; erase = ^?; erase2 = ^H; intr = ^C; kill = ^U; lnext = ^V; min = 1; quit = ^\; reprint = ^R; start = ^Q; status = ^T; stop = ^S; susp = ^Z; time = 0; werase = ^W; 88 I've a desktop mobo (Intel D945GNTL) with onboard Intel Graphics. My BIOS doesn't support redirecting its output to COM1. Following are the issues: 1. comconsole_speed in /boot/loader.conf is not working. I wanted to try 115200 baud rate, but its not working when set in loader.conf. If I set comconsole_speed at loader prompt, it works. 2. Keyboard doesn't work irrespective of '-P' being present in /boot.config . So I can't login to any TTY or login to X via GDM. I'm following http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/serialconsole-setup.html . TIA -- Ashish Shukla आशीष शुक्ल http://wahjava.wordpress.com/ ·-- ·- ·--- ·- ···- ·- ·--·-· --· -- ·- ·· ·-·· ·-·-·- -·-· --- -- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]