2
0
mirror of https://github.com/pikvm/pikvm synced 2024-11-16 12:12:57 +00:00
pikvm/docs/v3.md

163 lines
10 KiB
Markdown
Raw Normal View History

2023-04-14 00:36:21 +00:00
# PiKVM V3 HAT
2021-10-12 18:45:00 +00:00
<img src="assembled.jpg" width="400" />
2021-10-12 18:45:00 +00:00
## Installation requirements
??? note "If you have an assembly kit, you will need the following things"
* Raspberry Pi 4 with 1Gb RAM or more.
* Heat sinks (Optional)
2021-10-12 18:45:00 +00:00
* MicroSD card (at least 16Gb, class 10 recommended).
* USB-C to USB-A cable.
* HDMI cable.
2021-10-25 15:17:20 +00:00
* [Straight Ethernet cable](https://www.home-network-help.com/straight.html) (for the ATX board connection).
2021-10-12 18:45:00 +00:00
* Power supply unit (5.1V 3A USB-C, recommended by the Raspberry Pi).
2021-11-03 06:51:35 +00:00
!!! tip "Before assembling"
* Please review the back of the box. All parts are required before the HAT is fully functional.
* The USB-C bridge is located in with the ATX end which includes a pink foam spacer.
* Please assemble the HAT onto the RPi and test all of the parts before installing in the case, it's easier to install in the case than to dissasemble it.
2023-04-14 00:36:21 +00:00
* If going from a V2 to a V3, the splitter is **no longer needed**.
2023-04-14 00:36:21 +00:00
??? note "For pre-assembled V3"
* If going from a V2 to a V3, the splitter is built in and is **no longer needed**.
2021-11-03 06:51:35 +00:00
2021-10-12 18:45:00 +00:00
## Basic setup
2023-04-14 00:36:21 +00:00
If you have a kit without a metal case, you can use our free 3D printing case drawing: [V3.3](stl/v3.3/index.md){target=_blank} for the Kickstarter/Store model, [V3.2](stl/v3.2/index.md){target=_blank} for the pre-release.
2021-10-12 18:45:00 +00:00
2023-04-14 23:01:16 +00:00
1. **[Flash the memory card.](flashing_os.md){target=_blank}**. Please use the V3 image, V2 image is not compatible.
2021-10-12 18:45:00 +00:00
2. **Build PiKVM** according to the video instruction or review the [illustrated instructions](v3_illustrated_install_instructions.md):
2022-04-15 20:48:14 +00:00
??? tip "Video Guide: Metal case step by step"
NOTE: OLED will not light up till step 5 is performed, video was performed after it was already configured, heat sinks NOT included.
2021-10-12 18:45:00 +00:00
![type:video](https://www.youtube.com/embed/jdqiwHKQcD4)
2022-04-15 20:48:14 +00:00
??? tip "Video Guide: Step by step with HAT device with or without the 3D-printed case"
2021-10-12 18:45:00 +00:00
![type:video](https://www.youtube.com/embed/-SRL92VJ870)
2022-04-15 20:48:14 +00:00
!!! warning "OLED glass can crack if force is used to install it, please handle with care and rock back and forth on the pins side to install."
2021-10-12 18:45:00 +00:00
3. **Connect PiKVM** to the computer according to the diagram below:
| Back side | Front side |
|-----------|------------|
| <img src="basic_back.jpg" width="300" /> | <img src="basic_front.jpg" width="300" /> |
2023-04-14 23:01:16 +00:00
* **HDMI input** and **USB emulation** port must be connected to the computer. Optionally, the **[ATX port](atx_board.md)** can be connected to control the power. There should be no USB hub between PiKVM and the computer, as some UEFI/BIOS cannot detect them at the boot stage. On the HDMI the HAT, like the CSI bridge, supports 1080p50Hz or 720p60Hz or lower.
2021-10-12 18:45:00 +00:00
* Connect **Ethernet** to the network and **USB power** to the Raspberry Pi power supply.
2021-10-12 18:45:00 +00:00
2023-04-14 23:01:16 +00:00
4. **Carefully read [the "First steps" guide](first_steps.md){target=_blank}** - how to find a device on the network, how to log in there, change passwords, and so on. **Follow the steps described there and come back to this page**.
2021-10-12 18:45:00 +00:00
2023-04-14 00:36:21 +00:00
5. ??? note "If your kit includes the OLED display and/or the fan, you'll need to turn them on (this is only needed for the older V3 image for the HAT, in the box image everything is enabled by default)"
2021-10-12 18:45:00 +00:00
Log in to PiKVM and run these commands:
```
# rw
2021-11-07 14:16:11 +00:00
# systemctl enable --now kvmd-oled kvmd-oled-reboot kvmd-oled-shutdown
2021-10-12 18:45:00 +00:00
# systemctl enable --now kvmd-fan
# ro
```
2023-04-14 00:36:21 +00:00
6. ??? note "Using Fahrenheit instead of Celsius on the OLED"
2022-04-15 20:48:14 +00:00
```
2022-01-08 18:44:34 +00:00
# mkdir -p /etc/systemd/system/kvmd-oled.service.d
2022-04-15 20:48:14 +00:00
```
Create file `touch or nano /etc/systemd/system/kvmd-oled.service.d/override.conf`:
2022-01-08 18:44:34 +00:00
```ini
[Service]
ExecStart=
2023-04-14 00:36:21 +00:00
ExecStart=/usr/bin/kvmd-oled --clear-on-exit --fahrenheit
2022-01-08 18:44:34 +00:00
```
2023-04-14 23:01:16 +00:00
And run `systemctl restart kvmd-oled`. In some cases, if you still do not see Fahrenheit being displayed, reboot the device.
2021-10-12 18:45:00 +00:00
2023-06-08 20:39:51 +00:00
7. **Just reminding again:**
{!_passwd.md!}
2021-10-12 18:45:00 +00:00
8. **Try to manage the computer using PiKVM with the Web Interface.** Make sure that you get an image and both keyboard and mouse are working. If something doesn't work, check out our [FAQ](faq.md) (it's really useful). If nothing helped, you can get support in our [Discord chat](https://discord.gg/bpmXfz5).
2021-10-12 18:45:00 +00:00
9. ??? note "Check the HDMI backpowering problem. ONLY applicable under specific circumstances. NOT getting NO SIGNAL."
2023-04-08 16:26:30 +00:00
Try restarting PiKVM using the `reboot` command executed in the terminal. If PiKVM hangs during boot (you can't get the Web Interface for a long time), then you are faced with this rare problem. **Don't worry, it's easy to fix.** Turn off the PiKVM, disconnect all cables from it, take a close look at the [diagram of its ports and jumpers](#io-ports-and-jumpers), and **remove jumper #14** (it is to the right of the CSI connector). Then you can connect and power up PiKVM again. Now everything will be fine. If you are interested in the technical background, it is described [here](https://www.kickstarter.com/projects/mdevaev/pikvm-v3-hat/posts/3296343). Also, just for information: not a single case of negative consequences from the removal of the jumper has been recorded.
2021-10-12 18:45:00 +00:00
10. !!! warning "IO ports and other things"
2021-10-12 18:45:00 +00:00
**Before using GPIO** pins to control a relay, KVM switch, or anything else, be sure to [check the HAT pinout](#io-ports-and-jumpers). Many ports are busy with internal functions. Before using them for your own use, you must disable them, otherwise you may damage the device.
11. **You can also try the experimental [audio forwarding](audio.md){target=_blank}**.
2022-06-08 01:10:11 +00:00
2023-04-14 23:01:16 +00:00
12. Explore the features of PiKVM using the site's table of contents and have fun!
2021-10-12 18:45:00 +00:00
2023-07-23 22:17:34 +00:00
## Video modes
PiKVM V3 supports maximum resolution 1920x1080@50Hz, 60Hz will not work. You can use any other resolution less than the specified one, for example: 1600x1200@60Hz, 1280x720@60Hz, etc. If you have problems with the video, follow [this guide](edid.md).
2021-10-12 18:45:00 +00:00
## ATX connection
2023-04-14 00:36:21 +00:00
[See here](atx_board.md).
2021-10-12 18:45:00 +00:00
## IO ports and jumpers
??? note "See the diagram"
<img src="v3_features.jpg" />
2023-04-14 00:36:21 +00:00
1. [**ATX controller** interface](atx_board.md) (power on/off, reboot control, PWR and HDD ACT LEDs).
2022-04-15 21:02:22 +00:00
2. **HDMI reset** jumper. Connects GPIO 17 and RESET pin to HDMI capture chip. Currently not used, don't touch it.
2021-10-12 18:45:00 +00:00
3. **SPI and GPIO** for the custom extension boards.
2022-04-15 21:02:22 +00:00
4. **Audio capture** jumpers. Connects I2S pins 18, 19, 20 to HDMI capture chip.
2022-04-15 21:35:07 +00:00
5. **UART access** jumpers. Connects GPIO 14 and 15 to the RJ-45 and USB console ports.
2022-12-01 08:22:10 +00:00
6. **Serial console port** (default: /dev/ttyAMA0, RS232 input, outputs +6V/-6V, for the Raspberry Pi or server console access, use the [Cisco/Mikrotik-style](https://wiki.mikrotik.com/wiki/File:Rj45-pinout.gif.png) cable).
7. **USB-C console port** (shared with #6 above, takes priority over RJ45).
2022-04-15 21:02:22 +00:00
8. **Power** and **activity LEDs**. On the left of the LEDs the watchdog jumper is located. Don't touch it.
2021-10-12 18:45:00 +00:00
9. **USB-C power input**.
10. **I2C display connector**.
11. **Alternate +5V power input/output** header pins.
12. **RTC clock** supercapacitor (rechargeable).
13. **FAN connector** - PWM controlled.
14. **CSI-2 interface** and **HDMI backpowering** jumper, see [Step 9 of the Basic Setup](#basic-setup). Open: (jumper removed) diode will stop current from HDMI input (backpower will be fixed), closed: (jumper connected to both pins) will allow current from HDMI device.
2021-10-12 18:45:00 +00:00
15. Built-in **power splitter** port.
16. **HDMI capture port** (max 1080p @ 50Hz) with **sound capture** support.
17. **USB emulation pins** for alternative access.
18. **USB-C emulation port** - this port is doing the emulation of a USB keyboard, mouse, Virtual CD-ROM or USB Flash Drive, USB-Ethernet, USB-Serial port and a lot of other Linux-supported features.
19. **1-Wire** & **Neo-pixel** interface (under, advanced user feature).
2022-04-15 21:35:07 +00:00
??? note "GPIO pinout"
2022-05-31 14:47:26 +00:00
!!! warning "Before proceeding, make sure that the mb you are using has normal ATX headers"
2022-04-15 21:35:07 +00:00
* **ATX control**
- `power led = GPIO 24` - Used for reading the host power state.
- `hdd led = 22` - Same for the HDD activity.
- `power switch = 23` - Used for pressing the power button of the host.
- `reset switch = 27` - Same for the reset button.
These pins can't be used for any other purposes even if ATX function is disabled.
* **I2C bus** - `GPIO 2, 3` - Can be used as I2C ONLY (OLED/RTC).
2022-04-15 21:35:07 +00:00
* **1-Wire [19]** - `GPIO 4` - Also available under ATX RJ-45 port (point [19] on the above) as bi-directional buffered open-drain 5V for regular 1-Wire usage.
* **UART** - `GPIO 14, 15` - Can be used as UART only for the serial console. When jumpers [5] are removed, you can connect to pins 14 and 15 directly using GPIO header. Also you can remove jumper [5] and disable UART console in the `/boot/config.txt` and `/boot/cmdline.txt` to use this pins for any purpose. But it's not recommended.
* **Red activity led on the front [8]** - `GPIO 13` - Can be disabled in `/boot/config.txt` and available on the Neo-pixel port [19].
* **PWM fan controller** - `GPIO 12`. Can be used for custom purposes if the fan disconnected and `kvmd-fan` service is stopped.
* **I2S HDMI sound** - `GPIO 18, 19, 20, 21`. Can be used for custom purposes if the `tc358743-audio` overlay in `/boot/config.txt` is disabled **AND** jumpers [4] are removed.
* **USB breaker** - `GPIO 5` - Can't be used for any other purposes.
2021-10-12 18:45:00 +00:00
2023-08-09 02:12:50 +00:00
The standard Raspberry Pi HDMI output (marked as `VIDEO OUT` on the PiKVM case) displays its own PiKVM OS console.
2023-08-09 02:10:17 +00:00
2021-10-12 18:45:00 +00:00
## Known issues and limitations
2023-04-14 23:01:16 +00:00
* The actual frame rate of the image received via HDMI will depend on the network bandwidth, resolution and the load on the Raspberry Pi. This is usually **~24-28 FPS for 1080p over LAN**.
2023-04-14 00:36:21 +00:00
* There may be **compatibility** issues with some motherboards (such as **HP** or **DELL**) which are the same as those that exist with PiKVM V2. Not everything is perfect, but if you have already used PiKVM V2 - our new V3 will work great and please you. If there is no image from the BIOS, you can fine-tune the HDMI settings, but it is possible that the Mass Storage devices will not be available in the BIOS.
* Pre-release V3.2 board (NOT Kickstarter/Store edition) doesn't have HDMI backpowering workaround jumper.