2
0
mirror of https://github.com/pikvm/pikvm synced 2024-11-18 09:25:43 +00:00
pikvm/pages/flashing_hid.md

30 lines
1.3 KiB
Markdown
Raw Normal View History

2020-07-31 16:39:12 +00:00
# Flashing the Arduino HID
2020-08-01 22:53:41 +00:00
This operation can be done using your RPi. Here the common steps:
2020-08-01 22:52:54 +00:00
2020-08-02 02:01:23 +00:00
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@<addr>` with password `root` by default) or using keyboard and monitor. The Raspberry Pi obtains the network address over DHCP.
2020-08-06 21:48:47 +00:00
4. Upload the firmware (USB keyboard & mouse is used by default, on this step [you can choose PS/2 keyboard](arduino_hid.md#ps2-keyboard)):
2020-08-02 02:01:23 +00:00
```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.
2020-07-31 16:39:12 +00:00
2020-08-01 22:52:54 +00:00
On `make install` you may encounter the following error:
2020-07-31 16:39:12 +00:00
```
/root/.platformio/packages/tool-avrdude/avrdude: error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such file or directory
```
Create a symlink for this library:
```bash
[root@pikvm ~]# ln -s /usr/lib/libtinfo.so.6 /usr/lib/libtinfo.so.5
```
And run `make install` again.
If you have any problems or questions, contact us using Discord: https://discord.gg/bpmXfz5