Fmstrat / diy-ipmi

A DIY IPMI / IP KVM system utilizing the Raspberry Pi
894 stars 100 forks source link

Keyboard input not working - possible compilation problem with hub-ctrl? #25

Closed seffyroff closed 5 years ago

seffyroff commented 5 years ago

I'm getting no keyboard commands to my target machine. I can successfully attach to the Pi0 via screen from the Pi3, but issuing sendkeys commands just hang there, If I run hub-ctrl with no arguments on the Pi0 I get this output:

pi@raspberrypi:~$ ./hub-ctrl
./hub-ctrl: line 1: /bin: Is a directory
./hub-ctrl: line 15: struct: command not found
./hub-ctrl: line 16: const: command not found
./hub-ctrl: line 17: unsigned: command not found
./hub-ctrl: line 18: syntax error near unexpected token `}'
./hub-ctrl: line 18: `};'

Whereas running hub-ctrl on the Pi3 gives this output:

pi@mincepi:/opt/diy-ipmi/Pi0 $ ./hub-ctrl
Hub #0 at 001:000
 INFO: ganged switching.
 WARN: Port indicators are NOT supported.
Hub #1 at 001:000
 INFO: ganged switching.
 WARN: Port indicators are NOT supported.

Perhaps a compilation issue? I'll try compiling it on a Pi0 instead, and see if that helps.

seffyroff commented 5 years ago

Confirmed that compiling hub-ctrl.c on the Pi0W (with libusb-dev) resolves this. It's in my fork - I'll look at the recent PRs and submit if I can tidy it up enough.