Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 16 Mar 2011 14:44:18 -0700
From:      Freddie Cash <fjwcash@gmail.com>
To:        Garrett Cooper <yanegomi@gmail.com>
Cc:        FreeBSD-Current <freebsd-current@freebsd.org>
Subject:   Re: How does one get a working serial console with gptboot?
Message-ID:  <AANLkTinWbTaiU6Yf6HbXBojYDLXefWhfuveuvjYO0Dh8@mail.gmail.com>
In-Reply-To: <AANLkTikmxT8Eh2rURR2%2B%2BXL7on2qMUV%2B0HROscXTUJUf@mail.gmail.com>
References:  <AANLkTinLPQ5BS7sHv_0=M8iYevS9nsvTqBfY71MjRj=1@mail.gmail.com> <AANLkTimamff1m%2BnkNRSENCsvKB8YKGfmVtcPN3VAX9yy@mail.gmail.com> <AANLkTikmxT8Eh2rURR2%2B%2BXL7on2qMUV%2B0HROscXTUJUf@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Mar 16, 2011 at 2:20 PM, Garrett Cooper <yanegomi@gmail.com> wrote:
> On Wed, Mar 16, 2011 at 10:20 AM, Freddie Cash <fjwcash@gmail.com> wrote:
>> On Wed, Mar 16, 2011 at 9:49 AM, Freddie Cash <fjwcash@gmail.com> wrote:
>>> I feel like an idiot right now because I can just not figure out how
>>> to make $subject work on a -CURRENT system. =C2=A0:(
>>>
>>> I've read through the Handbook chapter on this. =C2=A0I've done the pro=
cess
>>> I've used with 8.x systems. =C2=A0But once the kernel loads, the serial
>>> console stops working. =C2=A0I'm obviously missing a step somewhere.
>>>
>>> Here's what I've done. =C2=A0Please point out my error(s):
>>>
>>> /boot/loader.conf:
>>> =C2=A0 =C2=A0hint.uart.0.disabled=3D"0"
>>> =C2=A0 =C2=A0hint.uart.0.flags=3D"0x30"
>>> =C2=A0 =C2=A0console=3D"comconsole vidconsole"
>>> =C2=A0 =C2=A0comconsole_speed=3D"115200"
>>> =C2=A0 =C2=A0boot_multicons=3D"yes"
>>>
>>> /etc/make.conf:
>>> =C2=A0 =C2=A0BOOT_COMCONSOLE_PORT=3D0x3F8
>>> =C2=A0 =C2=A0BOOT_COMCONSOLE_SPEED=3D115200
>>
>> Nevermind. =C2=A0PEBCAK error. =C2=A0Adding the right port address would=
 work.
>> Amazing how easy it is to mixup a 3 and an E. =C2=A0:(
>
> Are you referring to the .flags value or the BOOT_COMCONSOLE_PORT value?
> Thanks,

Both.

The BIOS is configured to use COM3 for the remote access support, with
an address of 3E8.

The kernel sees COM3 as uart0 with an address of 0x3e8.

Me, in my infinite copy/paste wisdom set loader.conf and make.conf to use 3=
F8.

Figured that one out by dropping to a loader prompt and reading
through the output of "show" and manually setting the hint.uart.0.port
correctly.  Then setting it in loader.conf and make.conf correctly
afterward.

--=20
Freddie Cash
fjwcash@gmail.com



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTinWbTaiU6Yf6HbXBojYDLXefWhfuveuvjYO0Dh8>