Author Topic: USB keyboards not working in petitboot bootloader environment  (Read 4375 times)

pocock

  • Sr. Member
  • ****
  • Posts: 297
  • Karma: +33/-0
    • View Profile
USB keyboards not working in petitboot bootloader environment
« on: September 13, 2022, 02:59:48 pm »
On one of my machines, I notice that it doesn't respond to the USB keyboard when I am in the bootloader.  I haven't tested the other machine yet.

Normally I control these workstations through SSH to the BMC and it is a long time since I tried using a directly connected keyboard so I don't even remember if this worked before

I tried two different keyboards.  Both keyboards work fine with other workstations.

When Linux and GNOME boots on the Talos II, the keyboard begins working

In the bootloader config, I found an option to choose between hvc0 and tty1 consoles.  I don't know if that should make any difference but I tried both settings and it didn't help.
Debian Developer
https://danielpocock.com

atomicdog

  • Newbie
  • *
  • Posts: 39
  • Karma: +4/-0
    • View Profile
Re: USB keyboards not working in petitboot bootloader environment
« Reply #1 on: September 13, 2022, 04:51:58 pm »
Maybe petiboot isn't loading the USBHID driver? I've been able to directly login to the bootloader.
IIRC, hvc0 is for connecting a terminal to the Rs232 serial port.

pocock

  • Sr. Member
  • ****
  • Posts: 297
  • Karma: +33/-0
    • View Profile
Re: USB keyboards not working in petitboot bootloader environment
« Reply #2 on: September 14, 2022, 02:07:35 am »

Connecting to the BMC with SSH and accessing the petitboot console with obmc-console-client

In petitboot, I choose the shell option

At the shell, I run dmesg

The dmesg output shows that usbhid is loaded and it shows the keyboard

Code: [Select]
[    6.004628] input:   USB Keyboard Consumer Control as /devices/pci0003:00/0003:00:00.0/0003:01:00.0/usb1/1-4/1-4.2/1-4.2:1.1/0003:04D9:1702.0005/input/input11
[    6.004683] hid-generic 0003:04D9:1702.0005: input: USB HID v1.10 Device [  USB Keyboard] on usb-0003:01:00.0-4.2/input1

The numlock light works on the keyboard too, so it appears to have power to the keyboard
Debian Developer
https://danielpocock.com

pocock

  • Sr. Member
  • ****
  • Posts: 297
  • Karma: +33/-0
    • View Profile
Re: USB keyboards not working in petitboot bootloader environment
« Reply #3 on: September 14, 2022, 02:18:28 am »

I have the jumper installed for disabling internal VGA, does that also serve to mask the keyboard in some way?
Debian Developer
https://danielpocock.com

pocock

  • Sr. Member
  • ****
  • Posts: 297
  • Karma: +33/-0
    • View Profile
Re: USB keyboards not working in petitboot bootloader environment
« Reply #4 on: September 14, 2022, 07:33:49 am »

It does appear to be related to the jumper

With the jumper installed:
the view of petitboot on the VGA output and in the SSH session are identical.
When I type something in the SSH session it appears on both the VGA and in the SSH console

Without the jumper:
the VGA and USB keyboard act as a terminal together.
The SSH / BMC terminal operates independently, what I type there doesn't appear on the VGA and vice-versa, what I type on the USB keyboard doesn't appear in the SSH view of petitboot

It would be useful to have a note about this in the motherboard manual, to the effect that the jumper impacts the keyboard and not only the VGA
Debian Developer
https://danielpocock.com