https://bugs.dragonflybsd.org/https://bugs.dragonflybsd.org/favicon.ico?16293952082018-11-01T19:45:06ZDragonFlyBSD bugtrackerDragonFlyBSD - Submit #3154: Update serial handling in bootloaderhttps://bugs.dragonflybsd.org/issues/3154?journal_id=135282018-11-01T19:45:06Zddegroot
<ul></ul><p>Excerpt of changes:<br />General:<br />- /usr/src/sys/boot makefile fix<br />- Set default serial console speed to 115200 <br />- Use stable names/terms in the Makefile ie COMSPEED and BOOT_COMCONSOLE_SPEED</p>
<p>boot0<br />- Update boot0.S with the newer fbsd version (not sure if this is like/ok)<br />- If the COMSPEED is set to 0, then don't try to initialize the serial<br /> port and assume that the BIOS has set it up for us. This allows folks<br /> with a serial-aware BIOS to set the BIOS to speeds above 9600 and<br /> allow boot0 to just use the existing settings.<br /> (freebsd/freebsd@d9d5c6d)<br />- Allow boot0cfg to force a PXE boot via boot0 on the next boot.<br /> - Fix boot0 to check for PXE when using the pre-set setting for the<br /> preferred slice.</p>
<p>boot1<br />- Use most of the newer fbsd boot1.S (freebsd/freebsd@b730d20)<br />- Allows you to set the Serial Speed (ie: <del>S115200)<br /></del> Correct line breaks / nicer commandline output when manually entering commands<br /> - Once the first parameter is entered on the commandline, stop timeout<br /> - Suppress twiddle when autoboot is off<br /> - Show current set of flags when making a change<br />- Allow setting the serial speed (which will also activate RB_SERIAL)<br />- <del>D for DUAL makes more sense then -D for Keyboard<br /></del> Continue to loader/kernel using an empty commandline (\n) instead of timing out<br />- Error on unknown flags/cmds<br />- Move/Reorder some functions<br />- Use unsigned char / uint8_t to reduce size.</p>
<p>loader<br />- Reuse the speed already set in boot1<br />- Allow handling of boot_multicons (currently until loader and not in the kernel (yet))<br />- Reuse isa_inb/isa_outb from comconsole.c (via extern bootstrap.h)<br />- Add print RB flags which were passed in (used for debugging)<br />- Use new cons_probe function<br />- Updated loader.8 to show change functionality</p>
<p>pxeboot<br />- Synced with fbsd (freebsd/freebsd@433bd38)<br />- Integrate support for tftp and nfs in one pxeloader<br /> Remove need for loader_tftp and pxeldr_tftp as special versions<br /> Update man pages accordingly<br />- Use RB_SERIAL and RB_MULTIPLE (aka boot_multicons) from sys/reboot.h<br /> when no keyboard was detected (potential false positive).</p>
<p>comconsole<br />- Handle Multiple/Dual console drivers in a nicer way<br />- Add extra functionality to comconsole<br />- Add sleep/usleep definitions</p>