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

122 lines
5.6 KiB
Markdown
Raw Normal View History

2023-10-16 18:14:44 +00:00
# Flashing PiKVM OS image
2021-10-12 18:45:00 +00:00
!!! warning "Micro-SD Card Requirements"
2023-10-16 18:14:44 +00:00
Minimum **16 Gb, Class 10** recommended
2021-10-12 18:45:00 +00:00
2023-10-16 18:14:44 +00:00
-----
2021-10-12 18:45:00 +00:00
## Download the image
2023-10-16 18:14:44 +00:00
Download the appropriate SD card image. Select it based on the board, platform, and the video capture device you are using.
2021-10-12 18:45:00 +00:00
2023-10-16 18:14:44 +00:00
!!! abstract "Official PiKVM Devices"
2021-10-12 18:45:00 +00:00
2023-10-16 18:14:44 +00:00
These images are not suitable for DIY and are intended only for our branded devices.
2021-10-12 18:45:00 +00:00
2023-10-16 18:14:44 +00:00
* **PiKVM V4**
* [PiKVM V4 Mini](https://files.pikvm.org/images/v4mini-hdmi-rpi4-latest.img.xz)
<sub>- [*sha1*](https://files.pikvm.org/images/v4mini-hdmi-rpi4-latest.img.xz.sha1)
* [PiKVM V4 Plus](https://files.pikvm.org/images/v4plus-hdmi-rpi4-latest.img.xz)
<sub>- [*sha1*](https://files.pikvm.org/images/v4plus-hdmi-rpi4-latest.img.xz.sha1)
2021-10-12 18:45:00 +00:00
2023-10-16 18:14:44 +00:00
* **PiKVM V3**
* [PiKVM V3 HAT BOX Image, OLED/FAN preactivated](https://files.pikvm.org/images/v3-hdmi-rpi4-box-latest.img.xz)
<sub>- [*sha1*](https://files.pikvm.org/images/v3-hdmi-rpi4-box-latest.img.xz.sha1)
* [PiKVM V3 HAT DIY Assembly](https://files.pikvm.org/images/v3-hdmi-rpi4-latest.img.xz)
<sub>- [*sha1*](https://files.pikvm.org/images/v3-hdmi-rpi4-latest.img.xz.sha1)</sub>
!!! abstract "DIY PiKVM V2 Platform"
* **Raspberry Pi 4**
* [For HDMI-CSI bridge](https://files.pikvm.org/images/v2-hdmi-rpi4-latest.img.xz)
<sub>- [*sha1*](https://files.pikvm.org/images/v2-hdmi-rpi4-latest.img.xz.sha1)</sub>
* [For HDMI-USB dongle](https://files.pikvm.org/images/v2-hdmiusb-rpi4-latest.img.xz)
<sub>- [*sha1*](https://files.pikvm.org/images/v2-hdmiusb-rpi4-latest.img.xz.sha1)</sub>
* **Raspberry Pi Zero 2 W**
* [For HDMI-CSI bridge](https://files.pikvm.org/images/v2-hdmi-zero2w-latest.img.xz)
<sub>- [*sha1*](https://files.pikvm.org/images/v2-hdmi-zero2w-latest.img.xz.sha1)</sub>
* **Raspberry Pi Zero W (obsolete)**
* Support has been discontinued due to reaching the End-of-Life of the base board.<br>
Please join [Discord](https://discord.gg/bpmXfz5) and ask about this in #unofficial_ports channel if you still want to use it.
2023-12-02 01:17:15 +00:00
!!! abstract "DIY PiKVM V1 Platform"
* **Raspberry Pi 3**
* [For HDMI-CSI bridge](https://files.pikvm.org/images/v1-hdmi-rpi3-latest.img.xz)
<sub>- [*sha1*](https://files.pikvm.org/images/v1-hdmi-rpi3-latest.img.xz.sha1)</sub>
* [For HDMI-USB dongle](https://files.pikvm.org/images/v1-hdmiusb-rpi3-latest.img.xz)
<sub>- [*sha1*](https://files.pikvm.org/images/v1-hdmiusb-rpi3-latest.img.xz.sha1)</sub>
* **Raspberry Pi 2**
* [For HDMI-CSI bridge](https://files.pikvm.org/images/v1-hdmi-rpi2-latest.img.xz)
<sub>- [*sha1*](https://files.pikvm.org/images/v1-hdmi-rpi2-latest.img.xz.sha1)</sub>
* [For HDMI-USB dongle](https://files.pikvm.org/images/v1-hdmiusb-rpi2-latest.img.xz)
<sub>- [*sha1*](https://files.pikvm.org/images/v1-hdmiusb-rpi2-latest.img.xz.sha1)</sub>
* **Raspberry Pi Zero 2 W**
* [For HDMI-CSI bridge](https://files.pikvm.org/images/v1-hdmi-zero2w-latest.img.xz)
<sub>- [*sha1*](https://files.pikvm.org/images/v1-hdmi-zero2w-latest.img.xz.sha1)</sub>
* [For HDMI-USB dongle](https://files.pikvm.org/images/v1-hdmiusb-zero2w-latest.img.xz)
<sub>- [*sha1*](https://files.pikvm.org/images/v1-hdmiusb-zero2w-latest.img.xz.sha1)</sub>
!!! abstract "Any other combinations for advanced users"
Please check the [file archives](https://files.pikvm.org/images/) for ready-made image or [build the image yourself](building_os.md).
2023-10-16 18:14:44 +00:00
-----
## Flashing the image
2021-10-12 18:45:00 +00:00
!!! tip
2023-10-16 18:14:44 +00:00
After inserting the memory card into your computer, ignore request to format. This is not nessessary.
2021-10-12 18:45:00 +00:00
### Using Linux CLI (ADVANCED USERS)
2021-10-12 18:45:00 +00:00
2023-10-16 18:14:44 +00:00
Decompress (if nessessary) and flash the image. **Be careful when choosing the device path, it may be different on your machine**:
2021-10-22 02:19:15 +00:00
2023-10-16 18:14:44 +00:00
```console
[user@localhost]$ xz --decompress v2-hdmi-rpi4-latest.img.xz
[user@localhost]$ sudo dd if=v2-hdmi-rpi4-latest.img of=/dev/mmcblkX
2021-10-12 18:45:00 +00:00
```
2021-10-22 02:19:15 +00:00
You can also use `dd_rescue` or `ddrescue`.
2021-10-12 18:45:00 +00:00
2021-10-22 02:19:15 +00:00
### Using RPi Imager (Linux, MacOS and Windows)
2021-10-12 18:45:00 +00:00
2021-10-22 02:19:15 +00:00
1. Download and install **the latest version** of [RPi Imager](https://github.com/raspberrypi/rpi-imager/releases).
2021-10-12 18:45:00 +00:00
2021-10-22 02:19:15 +00:00
2. Run RPi Imager:
2021-10-12 18:45:00 +00:00
<img src="RPi-imager1.jpg" width="400" />
2021-10-12 18:45:00 +00:00
3. Press **NO FILTERING** then **CHOOSE OS** and select **Use custom** image at bottom of the list:
2021-10-12 18:45:00 +00:00
<img src="RPi-imager2.jpg" width="400" />
2021-10-12 18:45:00 +00:00
2023-10-16 18:14:44 +00:00
4. After clicking on this item, select the image file (`*.img` or `*.img.xz`), then click **CHOOSE STORAGE**:
!!! warning
This should already be set to blank though the flashing process from step 7 but its best to double check the advanced settings (`CTRL+SHIFT+X`), make sure they are blank or the flash will fail.
2021-10-12 18:45:00 +00:00
<img src="RPi-imager3.jpg" width="400" />
2021-10-12 18:45:00 +00:00
2021-10-22 02:19:15 +00:00
5. Insert the memory card into the card reader. Choose the card reader from this list. **Be careful** and choose the right device:
2021-10-12 18:45:00 +00:00
<img src="RPi-imager4.jpg" width="400" />
2021-10-12 18:45:00 +00:00
2021-10-22 02:19:15 +00:00
6. After choosing the memory card, press the **WRITE** button. Confirm the operation when you are asked about it:
2021-10-12 18:45:00 +00:00
<img src="RPi-imager5.jpg" width="400" />
2021-10-12 18:45:00 +00:00
2021-10-22 02:19:15 +00:00
7. Wait for the process to finish. Get yourself a coffee or do some stretching :)
2023-10-16 18:14:44 +00:00
The process may hang at 99% for a long time, this is okay, just wait for it to complete.
2021-10-22 02:19:15 +00:00
<img src="RPi-imager6.jpg" width="400" />
2021-10-22 02:19:15 +00:00
2023-10-16 18:14:44 +00:00
8. Remove the memory card after successful completion. If an error occurs during flashing or booting PiKVM, repeat the process.
2023-12-02 13:48:35 +00:00
If the error persists, use a different memory card.
2021-10-22 02:19:15 +00:00
<img src="RPi-imager7.jpg" width="400" />