===Flash OS image===
First, decide which CM4 module you wish to use:
#CM4 without eMMC (simpler, but you need a 32GB or 64GB micro sd)
#CM4 with eMMC (requires additional steps)
'''Option 1: CM4 without eMMC'''
:'''1. Prepair flashing tools:'''
:*You can use '''Raspberry Pi Imager''' or one of the following tools:
:*[https://etcher.balena.io/ balenaEtcher]: Compatible with Windows, macOS, and Ubuntu.
:* [https://i-win32diskimager.com/ Win32 Disk Imager]: Designed for Windows.
:'''2. Flash the OS Image to a MicroSD Card'''
:*Follow [https://docs.pikvm.org/flashing_os the straightforward instructions] or [https://www.raspberrypi.com/documentation/computers/getting-started.html#installing-the-operating-system the Official installation tutorial]
:'''3. Power the Device'''
:*Power on your device, then open a browser and log in to the PiKVM web UI.
'''Option 2: CM4 with eMMC (requires additional steps)'''
:'''1. Prepare for flashing'''
:*Short the nBOOT Pin as shown in the image below.
::[[File:X650-IMG-5474-1.jpg|500px]]
: '''2. Connect X680 to Your Computer'''
:*Use a Type-A to Type-B USB cable to connect the CM4 USB port to your computer.
::[[File:X680-IMG-5546-3.jpg|500px]]
: '''3. Power the Device'''
:*Use a 5V power adapter to power the device via the PWR DC Jack.
: '''4. Flash the OS Image'''
:*You need: i) install rpiboot utility, ii) install RaspberryPI imager iii) format the eMMC once connected to the host, iv) select OS, eMMC appearing on the host and flash it via imager
:*You can refer to [https://www.jeffgeerling.com/blog/2020/how-flash-raspberry-pi-os-compute-module-4-emmc-usbboot Jeff's tutorial] or [https://www.raspberrypi.com/documentation/computers/compute-module.html#flash-compute-module-emmc Raspberry Pi Official Tutorial] for detailed instructions on flashing the OS.
: '''5. Complete the Process'''
:*Remove the nBOOT jumper after the flashing is complete, then restart your device.
'''Note''': For CM4 with eMMC, the SD card cannot be used.
#CM4 without eMMC (simpler, but you need a 32GB or 64GB micro sd)