1 .. SPDX-License-Identifier: GPL-2.0+
5 Cool Pi GenBook is a laptop powered by RK3588, it works with a
6 carrier board connect with CM5.
16 * USB-C 3.0 with DisplayPort AltMode
17 * PCIE M.2 E Key for RTL8852BE Wireless connection
18 * PCIE M.2 M Key for NVME connection
19 * eDP panel with 1920x1080
21 Here is the step-by-step to compile and boot to U-Boot on GenBook.
23 Get the TF-A and DDR init (TPL) binaries
24 ----------------------------------------
29 export ROCKCHIP_TPL=../rkbin/bin/rk35/rk3588_ddr_lp4_2112MHz_lp5_2400MHz_v1.17.bin
30 export BL31=../rkbin/bin/rk35/rk3588_bl31_v1.46.elf
31 make coolpi-genbook-cm5-rk3588_defconfig
32 make CROSS_COMPILE=aarch64-linux-gnu-
34 This will build ``u-boot-rockchip.bin`` for eMMC and ``u-boot-rockchip-spi.bin`` for SPI Nor.
36 Write u-boot to eMMC or SPI Nor from a Linux system on the laptop
37 -----------------------------------------------------------------
39 Copy ``u-boot-rockchip.bin`` and ``u-boot-rockchip-spi.bin`` to the laptop.
46 dd if=u-boot-rockchip.bin of=/dev/mmcblk0 bs=512 seek=64
53 dd if=u-boot-rockchip-spi.bin of=/dev/mtdblock0
55 ``upgrade_tool`` allows to flash the on-board SPI Nor via the USB TypeC interface
56 with help of the Rockchip loader binary.
58 To enter the USB flashing mode, connect the laptop and your HOST PC with a USB-C
59 cable, reset the laptop with ``Loader Key`` pressed.
60 On your PC, check with ``lsusb -d 2207:350b``).
62 To flash U-Boot on the SPI Nor with ``upgrade_tool``:
66 upgrade_tool db rk3588/MiniLoaderAll.bin
67 upgrade_tool ssd // Input 5 for SPINOR download mode
68 upgrade_tool wl 0 u-boot-rockchip-spi.bin