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