Bug #10481
closedloader.efi: comconsole needs to identify the port handle better
100%
Description
The UEFI has function to fetch the list of handles of particular type, LocateHandle(), unfortunately the ordering of the result is not defined. In case of serial ports, however, we would need to create the meaningful relation between device name and handle, as we do use names determining the port: ttya, ttyb etc.
There are actual cases where the handle array order is unexpected, it may be that the default console device is set as first handle (ttyb versus ttya), or some other order for handles is set.
We can query device path for a handle, and from that device path we can identify the port. This issue is attempting just that.
Also, currently we only deal with "onboard" serial ports, usb ports are not addressed.
Updated by Electric Monk over 3 years ago
- Status changed from In Progress to Closed
- % Done changed from 90 to 100
git commit a2f10c447c8cfe20ac08f6c287fe67307f2a5175
commit a2f10c447c8cfe20ac08f6c287fe67307f2a5175 Author: Toomas Soome <tsoome@me.com> Date: 2019-03-21T15:43:45.000Z 10481 loader.efi: comconsole needs to identify the port handle better Reviewed by: John Levon <john.levon@joyent.com> Reviewed by: Andy Fiddaman <andy@omniosce.org> Reviewed by: Gergő Doma <domag02@gmail.com> Approved by: Dan McDonald <danmcd@joyent.com>