svn commit: r335276 - in head/stand/i386: gptboot zfsboot
O. Hartmann
ohartmann at walstatt.org
Tue Jun 19 20:31:40 UTC 2018
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Am Sun, 17 Jun 2018 03:18:57 +0000 (UTC)
Allan Jude <allanjude at FreeBSD.org> schrieb:
> Author: allanjude
> Date: Sun Jun 17 03:18:56 2018
> New Revision: 335276
> URL: https://svnweb.freebsd.org/changeset/base/335276
>
> Log:
> gptboot, zfsboot, gptzfsboot: Enable the video and serial consoles early
>
> Normally the serial console is not enabled until /boot.config is read and
> we know how the serial console should be configured. Initialize the
> consoles early in 'dual' mode (serial & keyboard) with a default serial
> rate of 115200. Then serial is re-initialized once the disk is decrypted
> and the /boot.config file can be read.
>
> This allows the GELIBoot passphrase to be provided via the serial console.
>
> PR: 221526
> Requested by: many
> Reviewed by: imp
> Sponsored by: Klara Systems
> Differential Revision: https://reviews.freebsd.org/D15862
>
> Modified:
> head/stand/i386/gptboot/gptboot.c
> head/stand/i386/zfsboot/zfsboot.c
>
> Modified: head/stand/i386/gptboot/gptboot.c
> ==============================================================================
> --- head/stand/i386/gptboot/gptboot.c Sun Jun 17 03:10:25 2018 (r335275)
> +++ head/stand/i386/gptboot/gptboot.c Sun Jun 17 03:18:56 2018 (r335276)
> @@ -285,6 +285,16 @@ main(void)
> bootinfo.bi_memsizes_valid++;
> bootinfo.bi_bios_dev = dsk.drive;
>
> + /*
> + * Initialize the serial console early with a modern default of 115200.
> + * Later, we'll read PATH_DOTCONFIG and reconfigure serial according
> + * to the configuration provided.
> + */
> + opts = OPT_SET(RBX_DUAL);
> + ioctrl = (IO_SERIAL|IO_KEYBOARD);
> + if (sio_init(115200) != 0)
> + ioctrl &= ~IO_SERIAL;
> +
> #ifdef LOADER_GELI_SUPPORT
> geli_init();
> #endif
>
> Modified: head/stand/i386/zfsboot/zfsboot.c
> ==============================================================================
> --- head/stand/i386/zfsboot/zfsboot.c Sun Jun 17 03:10:25 2018 (r335275)
> +++ head/stand/i386/zfsboot/zfsboot.c Sun Jun 17 03:18:56 2018 (r335276)
> @@ -693,6 +693,16 @@ main(void)
> }
> setheap(heap_next, heap_end);
>
> + /*
> + * Initialize the serial console early with a modern default of 115200.
> + * Later, we'll read PATH_DOTCONFIG and reconfigure serial according
> + * to the configuration provided.
> + */
> + opts = OPT_SET(RBX_DUAL);
> + ioctrl = (IO_SERIAL|IO_KEYBOARD);
> + if (sio_init(115200) != 0)
> + ioctrl &= ~IO_SERIAL;
> +
> dsk = malloc(sizeof(struct dsk));
> dsk->drive = *(uint8_t *)PTOV(ARGS);
> dsk->type = dsk->drive & DRV_HARD ? TYPE_AD : TYPE_FD;
> _______________________________________________
> svn-src-head at freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/svn-src-head
> To unsubscribe, send any mail to "svn-src-head-unsubscribe at freebsd.org"
This commit breaks booting off GPT partition (using NanoBSD, as Iposted mistakenly to
commit r335254, see there).
Having CURRENT applied to a SD card for usage on a PCEngines APU 2C4, the boot process
dies immediately showing "Booting from harddisk". r335275 boots well.
- --
O. Hartmann
Ich widerspreche der Nutzung oder Übermittlung meiner Daten für
Werbezwecke oder für die Markt- oder Meinungsforschung (§ 28 Abs. 4 BDSG).
-----BEGIN PGP SIGNATURE-----
iLUEARMKAB0WIQQZVZMzAtwC2T/86TrS528fyFhYlAUCWyloHQAKCRDS528fyFhY
lLOLAgCcjWzTgedHN1tUalrIV/TNsnmo4vVhr1MuPMNvzeKp8VCsebl8yDaIMwnf
GOQ2aLxBl7tqp+XWQTt8yLDLlj9/Af0XvKkWiFkf4BOLRpKqbClew2gYJRSdMR+6
RMXE77Js4wQslzSXiidHcweIDmiPrlo4JysjPdQdzAAjCn+J3YU9
=LpXy
-----END PGP SIGNATURE-----
More information about the svn-src-all
mailing list