On Fri, Feb 17, 2017 at 9:14 AM, Jean-Baptiste COUPIAC <
jeanbaptiste.coup...@nfrance.com> wrote:

>
> Hello,
>
> I'm trying to use BSDRP. Mybox only have a serial port, so I use the
> serial img.
>
> Unfortunately, I did not find a working configuration.
>
> In a legacy FBSD11, here a functional configuration:
>
>
> root@:~ # cat /boot/loader.conf
>
> *boot_multicons="YES"*
> *boot_serial="YES"*
> *comconsole_speed="38400"*
> *console="comconsole,vidconsole"*
>
> root@:~ # cat /etc/ttys
>
> *ttyu0   "/usr/libexec/getty std.38400"  vt100   on secure*
>
>
> root@:~ # cat /boot.config
>
> *-Dh*
>
> Regarding, BSDRP /boot/loader.conf comments, I can't use same options in
> the file
>
> So can you give me right way to boot into my 38400 bauds configured serial
> port
>
>
​Regarding the BSDRP serial configuration image:

As boot block, this image uses boot0sio (boot0 with serial output) for
displaying early boot0 messages to the serial port.

This boot0 is compiled with:
BOOT_BOOT0_COMCONSOLE_SPEED=0
This allow to innerit high serial speed from the BIOS configuration,
because boot0sio code support only old slow speed
(110,150,300,600,1200,2400,4800,9600).
(cf FreeBSD sys/boot/i386/boot0/Makefile for more information about).

After the first boot stage is done, the second stage boot parameters are
declared in /boot.config.
serial-port only BSDRP image uses this parameters on the /boot.config:
-S115200 -h
-S for configuring serial speed
-h: force the serial console

After this 2 stages boot, the last stage (loader) loads /boot/loader.conf.
At this moment the system already knows it needs to use the serial port as
console and its speed.
This is why there is no need to declare a second times the serial console
values into /boot/loader.conf.

Regarding /etc/ttys:
You should no more specified console speed here (cf 2 years old FreeBSD
commit message of revisions 262957 and 267591).
1. In place of specifying speed here with old "std.38400" the keyword is
now "3wire" (and innerit from the boot/loader parameters)
2. In place of "on" the keyword should be "onifconsole", but "on" still
works great (cf 2 years old FreeBSD commit r260913).

The correct /etc/ttys should be like this:
ttyu0   "/usr/libexec/getty 3wire"      vt100   onifconsole secure

Is your serial port a standard UART on your box ? (no USB, neither IPMI SoL)
​
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Bsdrp-users mailing list
Bsdrp-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bsdrp-users

Reply via email to