From e5382e43fcc8d143db24d80833a02b44b9c0b78e Mon Sep 17 00:00:00 2001 From: John Ogness Date: Fri, 15 Feb 2019 12:50:06 +0106 Subject: schulung_tools: leds: add Qt leds application for host The leds application runs on the host and is used to simulate PCI hardware with 3 LEDs. See the README for information about how to build and use it. Signed-off-by: John Ogness --- schulung_tools/leds/README | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 schulung_tools/leds/README (limited to 'schulung_tools/leds/README') diff --git a/schulung_tools/leds/README b/schulung_tools/leds/README new file mode 100644 index 0000000..b89d34d --- /dev/null +++ b/schulung_tools/leds/README @@ -0,0 +1,24 @@ +# +# build +# +QT_SELECT=qt5 qmake +make + +# +# leds expects that ivshmem-server is already running +# (ivshmem-server does not need to run as root) +# +ivshmem-server -p /tmp/ivshmem-server.pid + +# +# run leds +# (must run as the same user as ivshmem-server) +# +./leds + +# +# qemu should be started with the following extra options: +# +# -device ivshmem-doorbell,vectors=1,chardev=chid1 +# -chardev socket,path=/tmp/ivshmem_socket,id=chid1 +# -- cgit v1.2.3