Serial console not working in 7.2-p4 and 7.2-STABLE

View: New views
4 Messages — Rating Filter:   Alert me  

Serial console not working in 7.2-p4 and 7.2-STABLE

by Sven Hazejager-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

All,

I'm pulling my hair out on this one! Can't get the serial console to
work with nanoBSD, either 7.2-p4 or 7-STABLE. A 8.0 nanoBSD image
works fine (which I have not created myself). The symptom is that all
kernel output goes to VGA. Whatever I do. This happens in VMware
Player (where I actually see the VGA output) and on my ALIX
(Soekris-like) board (which does not have a VGA card).

boot0 is boot0sio, boot.config contains -h and the loader works fine
over the serial port. console=comconsole there so that should work,
right? No, because still my kernel outputs everything to VGA...

I'm using the sio device. Even tried putting flags on 0x30 -> no
difference at all. Tried the uart device and removing sio from my
kernel but that resulted in having NO serial ports at all...

Any help is much appreciated!

Sven
_______________________________________________
freebsd-stable@... mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscribe@..."

Parent Message unknown Re: Serial console not working in 7.2-p4 and 7.2-STABLE

by Daniel Braniss-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

> All,
>
> I'm pulling my hair out on this one! Can't get the serial console to
> work with nanoBSD, either 7.2-p4 or 7-STABLE. A 8.0 nanoBSD image
> works fine (which I have not created myself). The symptom is that all
> kernel output goes to VGA. Whatever I do. This happens in VMware
> Player (where I actually see the VGA output) and on my ALIX
> (Soekris-like) board (which does not have a VGA card).
>
> boot0 is boot0sio, boot.config contains -h and the loader works fine
> over the serial port. console=comconsole there so that should work,
> right? No, because still my kernel outputs everything to VGA...
>
> I'm using the sio device. Even tried putting flags on 0x30 -> no
> difference at all. Tried the uart device and removing sio from my
> kernel but that resulted in having NO serial ports at all...
>
> Any help is much appreciated!
>
> Sven
hi,
put hint.uart.0.flags="0x10" in /boot/device.hints, or better, make sure
you have an updated one from /sys/i386/conf/GENERIC.hints
another thing, make sure the speed/bauds is correct, else you probably wont
see any output either
in /boot/loader.conf you need

        console="comconsole,vidconsole"
and
        comconsole_speed="115200"
to set the speed.
to get a login you will need, in /etc/ttys:
ttyu0   "/usr/libexec/getty 3wire.115200"       dialup  on secure

hope this helps
        danny


_______________________________________________
freebsd-stable@... mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscribe@..."

Re: Serial console not working in 7.2-p4 and 7.2-STABLE

by Sven Hazejager-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Mon, Nov 9, 2009 at 18:52, Sven Hazejager <sven@...> wrote:
> I'm pulling my hair out on this one! Can't get the serial console to
> work with nanoBSD, either 7.2-p4 or 7-STABLE. A 8.0 nanoBSD image
> works fine (which I have not created myself). The symptom is that all
> kernel output goes to VGA. Whatever I do. This happens in VMware
> Player (where I actually see the VGA output) and on my ALIX
> (Soekris-like) board (which does not have a VGA card).

PROBLEM SOLVED!

In an attempt to minimize FreeBSD for nanoBSD I had WITHOUT_FORTH=true
in my /etc/src.conf. That apparently breaks the passing of boot flags
to the kernel, which causes the kernel to use the VGA output even
though boot.config has "-h" and console=comconsole in the loader.

Thank you all for your comments and suggestions.

Sven
_______________________________________________
freebsd-stable@... mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscribe@..."

Re: Serial console not working in 7.2-p4 and 7.2-STABLE

by Jeremy Chadwick :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Wed, Nov 11, 2009 at 09:14:05AM +0100, Sven Hazejager wrote:

> On Mon, Nov 9, 2009 at 18:52, Sven Hazejager <sven@...> wrote:
> > I'm pulling my hair out on this one! Can't get the serial console to
> > work with nanoBSD, either 7.2-p4 or 7-STABLE. A 8.0 nanoBSD image
> > works fine (which I have not created myself). The symptom is that all
> > kernel output goes to VGA. Whatever I do. This happens in VMware
> > Player (where I actually see the VGA output) and on my ALIX
> > (Soekris-like) board (which does not have a VGA card).
>
> PROBLEM SOLVED!
>
> In an attempt to minimize FreeBSD for nanoBSD I had WITHOUT_FORTH=true
> in my /etc/src.conf. That apparently breaks the passing of boot flags
> to the kernel, which causes the kernel to use the VGA output even
> though boot.config has "-h" and console=comconsole in the loader.

This would actually break a large portion of the FreeBSD bootstraps.

I'd advocate that WITHOUT_FORTH be removed until the bootstraps are
upgraded to something that doesn't rely on forth (if/when that ever
happens).  Otherwise, someone may want modify the framework involving
src.conf to state that if WITHOUT_FORTH is defined, to bail on a build.

--
| Jeremy Chadwick                                   jdc@... |
| Parodius Networking                       http://www.parodius.com/ |
| UNIX Systems Administrator                  Mountain View, CA, USA |
| Making life hard for others since 1977.              PGP: 4BD6C0CB |
_______________________________________________
freebsd-stable@... mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscribe@..."