loader.efi: comconsole needs to identify the port handle better
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 9 months ago
- % Done changed from 90 to 100
- Status changed from In Progress to Closed
commit a2f10c447c8cfe20ac08f6c287fe67307f2a5175 Author: Toomas Soome <email@example.com> Date: 2019-03-21T15:43:45.000Z 10481 loader.efi: comconsole needs to identify the port handle better Reviewed by: John Levon <firstname.lastname@example.org> Reviewed by: Andy Fiddaman <email@example.com> Reviewed by: Gergő Doma <firstname.lastname@example.org> Approved by: Dan McDonald <email@example.com>