Interface Introduction

Firmware Upgrade
OS download
- Download system image from rootfs directory as shown in the following figure.
- Note that the downloaded system image defaults to*. 7z format and needs to be decompressed to*. img before it can be used.
Enter UMS mode
- Double A-type USB cable connects the computer and the USB 3.0 interface on the upper layer of the development board.
- Connect the adapter and quickly press the pow-key multiple times, and the machine will enter UMS mode. At this time, the computer will recognize one USB flash drive.

Load firmware and upgrade
- Download the Echer tool.
- Open the ETCHER tool, load the firmware, select the UMS device, and run flash .

Compile and update uboot
- Uboot is stored separately in the on-board SPI-NOR flash, and generally does not need to be updated unless it is manually damaged.
git clone https://github.com/coolpi-george/coolpi-loader.git git clone https://github.com/coolpi-george/rkbin.git cd coolpi-loader ./make.sh coolpi_rk3588_cm5v1--spl-new
- As shown in the figure below, the coolpi_rk3588s_cp4b folder corresponding to the out directory contains the generated loader and uboot files.

- Connect the upper USB 3.0 interface of CM5-EVB to the USB interface of X86 computer using a dual A-port USB cable, then long press the LOADER-KEY and short press the RST-KEY to enter moakrom mode.

-
- Open RKdevtool as shown in the following figure, select the burn file, choose the storage as SPI NOR, and check the option to force write to address. Then run it.
- The rkdevtool tool can be downloaded from the tools folder on the cloud drive.
- If it is the first time using it, the driver needs to be installed through the DriverrAsitant software.


Compile and update kernel
- The OS file includes kernel partitions, which normally do not require a separate upgrade.
- If there are modifications to the kernel driver or DTS configuration file, the kernel partition can be upgraded separately.
git clone https://github.com/coolpi-george/coolpi-kernel.git cd coolpi-kernel ./build-kernel.sh
- After compilation, all kernel files will be generated in the out directory.

- Copy the out folder to the cp4b machine, or use samba sharing to overwrite the corresponding directory on the machine using the following command.
sudo cp -rfp out/* /boot/firmware/ sudo tar -zxvf out/modules.tar.gz -C /lib sudo tar -zxvf out/headers.tar.gz -C /usr sudo sync
- The kernel partition of the UMS mode state machine will be virtualized as a USB disk, and users can also upgrade the kernel by copying and overwriting the USB disk files on their computer.
