Is here way to have 9600+ serial console and see boot0 message?

Lev Serebryakov lev at FreeBSD.org
Thu Sep 6 20:08:41 UTC 2018


On 06.09.2018 22:45, Craig Leres wrote:

>>    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?=    9600
>> .if ${BOOT_COMCONSOLE_SPEED} == 9600
>> BOOT_BOOT0_COMCONSOLE_SPEED=    "7 << 5 + 3"
>> .elif ${BOOT_COMCONSOLE_SPEED} == 4800
>> BOOT_BOOT0_COMCONSOLE_SPEED=    "6 << 5 + 3"
>> .elif ${BOOT_COMCONSOLE_SPEED} == 2400
>> BOOT_BOOT0_COMCONSOLE_SPEED=    "5 << 5 + 3"
>> .elif ${BOOT_COMCONSOLE_SPEED} == 1200
>> BOOT_BOOT0_COMCONSOLE_SPEED=    "4 << 5 + 3"
>> .elif ${BOOT_COMCONSOLE_SPEED} == 600
>> BOOT_BOOT0_COMCONSOLE_SPEED=    "3 << 5 + 3"
>> .elif ${BOOT_COMCONSOLE_SPEED} == 300
>> BOOT_BOOT0_COMCONSOLE_SPEED=    "2 << 5 + 3"
>> .elif ${BOOT_COMCONSOLE_SPEED} == 150
>> BOOT_BOOT0_COMCONSOLE_SPEED=    "1 << 5 + 3"
>> .elif ${BOOT_COMCONSOLE_SPEED} == 110
>> BOOT_BOOT0_COMCONSOLE_SPEED=    "0 << 5 + 3"
>> .else
>> BOOT_BOOT0_COMCONSOLE_SPEED=    "7 << 5 + 3"
>> .endif
>> .endif
> 
> Maybe I don't understand what you're saying but I don't think defining
> to "0" is the same as not defining.
 It is exactly what I've said: defining it to "0" bypass all these
checks for permitted value.


-- 
// Lev Serebryakov


More information about the freebsd-hackers mailing list