Thank you for answer.
So, I discovered that the correct device is being ignored because of this check:
if (epdesc->wMaxPacketSize != 8) return -1;
If I just comment it out, the keyboard works. wMaxPacketSize = 10 in my case.
I attach `lsusb -v` output, in case it will help.
On 6/2/19 9:01 PM, Kevin O'Connor wrote:
On Sun, Jun 02, 2019 at 05:39:11PM +0300, Evgeny Zinoviev wrote:
Hi folks.
I've recently ported coreboot on MBA 5,2 (13'' mid 2012 model) and MBP 10,1 (15'' mid 2012 retina model). The integrated keyboard on these models is connected as a USB device, not PS/2. I have tested GRUB, SeaBIOS and Tianocore payloads, and the keyboard works in GRUB and Tianocore but not in SeaBIOS.
I was advised to send a log to this mailing list. It was created with SEABIOS_DEBUG_LEVEL=9. I'm not yet familiar with SeaBIOS code, but with your help perhaps I can debug and fix this.
At a quick glance, it appears multiple USB keyboards/mice were found. SeaBIOS just chooses one randomly in that case. As a guess, it chose the wrong one. If you want to try and debug it, you could look at src/hw/usb-hid.c:usb_kbd_setup().
-Kevin