Date: Thu, 6 Sep 2018 16:01:13 -0400 From: Jung-uk Kim <jkim@FreeBSD.org> To: Craig Leres <leres@freebsd.org>, lev@FreeBSD.org, gljennjohn@gmail.com Cc: freebsd-hackers@freebsd.org, Allan Jude <allanjude@freebsd.org> Subject: Re: Is here way to have 9600+ serial console and see boot0 message? Message-ID: <1031e4b8-08ed-a084-4398-af0fd15671b7@FreeBSD.org> In-Reply-To: <264c2f26-dda5-129c-5cab-513bb1cb4132@freebsd.org> References: <ac3fe50c-d9a0-96ba-28f0-84ffca8e4cd3@FreeBSD.org> <14cd401a-660c-1a3a-8d80-677a42727146@freebsd.org> <0bc33818-641c-07db-194b-66fd1eb30c55@FreeBSD.org> <36485aef-0fdd-bcb1-993e-e334a1cd81ab@FreeBSD.org> <f718fbf2-4433-f9be-7ce2-24a91f78c6cb@FreeBSD.org> <20180906191109.49f9d0ab@ernst.home> <7dd2224d-f109-c585-5ee9-a1cc2c09d20e@FreeBSD.org> <264c2f26-dda5-129c-5cab-513bb1cb4132@freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --IK1CuvnQnmufY8C3Pbdg2v28oEvYDaBe6 Content-Type: multipart/mixed; boundary="5CUOz4CVAc3bq4mj8sOIkwQcWXJ89a7Kp"; protected-headers="v1" From: Jung-uk Kim <jkim@FreeBSD.org> To: Craig Leres <leres@freebsd.org>, lev@FreeBSD.org, gljennjohn@gmail.com Cc: freebsd-hackers@freebsd.org, Allan Jude <allanjude@freebsd.org> Message-ID: <1031e4b8-08ed-a084-4398-af0fd15671b7@FreeBSD.org> Subject: Re: Is here way to have 9600+ serial console and see boot0 message? References: <ac3fe50c-d9a0-96ba-28f0-84ffca8e4cd3@FreeBSD.org> <14cd401a-660c-1a3a-8d80-677a42727146@freebsd.org> <0bc33818-641c-07db-194b-66fd1eb30c55@FreeBSD.org> <36485aef-0fdd-bcb1-993e-e334a1cd81ab@FreeBSD.org> <f718fbf2-4433-f9be-7ce2-24a91f78c6cb@FreeBSD.org> <20180906191109.49f9d0ab@ernst.home> <7dd2224d-f109-c585-5ee9-a1cc2c09d20e@FreeBSD.org> <264c2f26-dda5-129c-5cab-513bb1cb4132@freebsd.org> In-Reply-To: <264c2f26-dda5-129c-5cab-513bb1cb4132@freebsd.org> --5CUOz4CVAc3bq4mj8sOIkwQcWXJ89a7Kp Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable On 18. 9. 6., Craig Leres wrote: > On 9/6/18 8:17 AM, Lev Serebryakov wrote: >> =C2=A0=C2=A0 Nope. If BOOT_BOOT0_COMCONSOLE_SPEED defined, it is used = as-is. If it >> is not defined it is derived from BOOT_COMCONSOLE_SPEED. So, defining = it >> to "0" should work. And disassembling boot0sio confirms it. >> >> .if !defined(BOOT_BOOT0_COMCONSOLE_SPEED) >> BOOT_COMCONSOLE_SPEED?=3D=C2=A0=C2=A0=C2=A0 9600 >> .if ${BOOT_COMCONSOLE_SPEED} =3D=3D 9600 >> BOOT_BOOT0_COMCONSOLE_SPEED=3D=C2=A0=C2=A0=C2=A0 "7 << 5 + 3" >> .elif ${BOOT_COMCONSOLE_SPEED} =3D=3D 4800 >> BOOT_BOOT0_COMCONSOLE_SPEED=3D=C2=A0=C2=A0=C2=A0 "6 << 5 + 3" >> .elif ${BOOT_COMCONSOLE_SPEED} =3D=3D 2400 >> BOOT_BOOT0_COMCONSOLE_SPEED=3D=C2=A0=C2=A0=C2=A0 "5 << 5 + 3" >> .elif ${BOOT_COMCONSOLE_SPEED} =3D=3D 1200 >> BOOT_BOOT0_COMCONSOLE_SPEED=3D=C2=A0=C2=A0=C2=A0 "4 << 5 + 3" >> .elif ${BOOT_COMCONSOLE_SPEED} =3D=3D 600 >> BOOT_BOOT0_COMCONSOLE_SPEED=3D=C2=A0=C2=A0=C2=A0 "3 << 5 + 3" >> .elif ${BOOT_COMCONSOLE_SPEED} =3D=3D 300 >> BOOT_BOOT0_COMCONSOLE_SPEED=3D=C2=A0=C2=A0=C2=A0 "2 << 5 + 3" >> .elif ${BOOT_COMCONSOLE_SPEED} =3D=3D 150 >> BOOT_BOOT0_COMCONSOLE_SPEED=3D=C2=A0=C2=A0=C2=A0 "1 << 5 + 3" >> .elif ${BOOT_COMCONSOLE_SPEED} =3D=3D 110 >> BOOT_BOOT0_COMCONSOLE_SPEED=3D=C2=A0=C2=A0=C2=A0 "0 << 5 + 3" >> .else >> BOOT_BOOT0_COMCONSOLE_SPEED=3D=C2=A0=C2=A0=C2=A0 "7 << 5 + 3" >> .endif >> .endif >=20 > Maybe I don't understand what you're saying but I don't think defining > to "0" is the same as not defining. =2E.. Defining BOOT_BOOT0_COMCONSOLE_SPEED to 0 is not the same as not defining, of course. However, setting it to 0 lets us add "-DCOMSPEED=3D0" to CFLAGS[1] and we can skip port configuration[2]. Jung-uk Kim 1. https://svnweb.freebsd.org/base/head/stand/i386/boot0/Makefile?revision=3D= 328769&view=3Dmarkup#l75 2. https://svnweb.freebsd.org/base/head/stand/i386/boot0/boot0.S?revision=3D= 325834&view=3Dmarkup#l211 --5CUOz4CVAc3bq4mj8sOIkwQcWXJ89a7Kp-- --IK1CuvnQnmufY8C3Pbdg2v28oEvYDaBe6 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEl1bqgKaRyqfWXu/CfJ+WJvzb8UYFAluRh4kACgkQfJ+WJvzb 8UYnmgf8Dmo+sgmp5oqEHJSose1tzDUANedUasKBQtGSrZs/J0Fem6p9YsjAJ6o5 na35UFxVMjWQCylEsq93EtBKdq2eeht1pe8tb+/6pFqW4K9YThOTfKOyKjBm0GFa TI8Ee4lZeAGjH+dwRoakOZV7FD7+zdSpXAtT/RkrUDbQuaQki2OxHAut2R/SVqHu l53MOGfZDzcNce67ZZfdSgva9f4VA1UXvNiRWu7XFLtzj7mrfQRsLEbYv9L+jzR5 4KA6yN79ipGwVglWT1a9dN75kykTumEtFTmuKt3DWUlEQSxDwqCUQcwZ6SVnERIR QeDCiQAPz4Mq9A+t7S9NHq3PK20gMw== =qmo1 -----END PGP SIGNATURE----- --IK1CuvnQnmufY8C3Pbdg2v28oEvYDaBe6--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1031e4b8-08ed-a084-4398-af0fd15671b7>