From 4e0a1c2bd5792ef53470e528fc501c83b23a0204 Mon Sep 17 00:00:00 2001 From: Maxim Devaev Date: Sun, 2 Aug 2020 05:01:23 +0300 Subject: [PATCH] Update flashing_hid.md --- pages/flashing_hid.md | 32 ++++++++++++++------------------ 1 file changed, 14 insertions(+), 18 deletions(-) diff --git a/pages/flashing_hid.md b/pages/flashing_hid.md index 84c5cb13..54a34376 100644 --- a/pages/flashing_hid.md +++ b/pages/flashing_hid.md @@ -1,24 +1,20 @@ # Flashing the Arduino HID This operation can be done using your RPi. Here the common steps: -* Disconnect the RESET wire from the Arduino board. -* Connect the Arduino and RPi with a suitable USB cable. -* Log in to the Raspberry Pi using SSH (`ssh root@` with password `root` by default) or using keyboard and monitor. The Raspberry Pi obtains the network address over DHCP. -* Next, upload the firmware. -* Connect the RESET wire, disconnect the USB cable, and reboot the RPi. - -Here the commands to SSH and upload the firmware: - -```shell -[user@localhost os]$ ssh root@ -[root@pikvm ~]# rw -[root@pikvm ~]# systemctl stop kvmd -[root@pikvm ~]# cp -r /usr/share/kvmd/hid ~ -[root@pikvm ~]# cd ~/hid -[root@pikvm hid]# make -[root@pikvm hid]# make install -[root@pikvm hid]# reboot -``` +1. Disconnect the RESET wire from the Arduino board. +2. Connect the Arduino and RPi with a suitable USB cable. +3. Log in to the Raspberry Pi using SSH (`ssh root@` with password `root` by default) or using keyboard and monitor. The Raspberry Pi obtains the network address over DHCP. +4. Upload the firmware: + ```shell + [root@pikvm ~]# rw + [root@pikvm ~]# systemctl stop kvmd + [root@pikvm ~]# cp -r /usr/share/kvmd/hid ~ + [root@pikvm ~]# cd ~/hid + [root@pikvm hid]# make + [root@pikvm hid]# make install + [root@pikvm hid]# reboot + ``` +5. Connect the RESET wire, disconnect the USB cable, and reboot the RPi. On `make install` you may encounter the following error: ```