eliminate excessive journal errors

When the USB gadget is shut down, the application needs to avoid writes
to it in order to avoid lots of errors in the kernel log. Close the file
handle and re-open it when timings are detected again. Also, prevent
logging the failed timings query more than once.

Change-Id: Ic126828fe26ef44ebb0a5cb65cc47b23bb84f7f3
Signed-off-by: Eddie James <eajames@linux.ibm.com>
4 files changed
tree: 67fb9dddfa4c4145b9c3f72f834d174c1e174fab
  1. bootstrap.sh
  2. configure.ac
  3. create_usbhid.sh
  4. ikvm_args.cpp
  5. ikvm_args.hpp
  6. ikvm_input.cpp
  7. ikvm_input.hpp
  8. ikvm_manager.cpp
  9. ikvm_manager.hpp
  10. ikvm_server.cpp
  11. ikvm_server.hpp
  12. ikvm_video.cpp
  13. ikvm_video.hpp
  14. LICENSE
  15. MAINTAINERS
  16. Makefile.am
  17. meson.build
  18. obmc-ikvm.cpp
  19. README.md
  20. scancodes.hpp
  21. start-ipkvm.service
README.md

OpenBMC IpKVM Server

The obmc-ikvm application is a VNC server that provides access to the host graphics output. The application interfaces with the video device on the BMC that captures the host graphics, and then serves that video data on the RFB (remote framebuffer, also known as VNC) protocol. The application also interfaces with the BMC USB gadget device to pass HID events from the BMC to the host, allowing the user to interact with the host system.

Usage

Once the host is running and an appropriate HID gadget device is instantiated on the BMC, the application can be started with the following command: obmc-ikvm -v <video device path> -i <HID gadget device path>

For example:

obmc-ikvm -v /dev/video0 -i /dev/hidg0