blob: c16b9ed17edf6e6264d80f38e591b0bc5a0bd4b7 [file] [log] [blame]
Quentin Schulz301f1632024-03-11 13:02:02 +01001.. SPDX-License-Identifier: GPL-2.0+
2
3PX30-uQ7 Ringneck
4=================
5
6The PX30-uQ7 (Ringneck) SoM is a ยตQseven-compatible (40mmx70mm, MXM-230
7connector) system-on-module from Theobroma Systems, featuring the Rockchip PX30.
8
9It provides the following feature set:
10
11 * up to 4GB DDR4
12 * up to 128GB on-module eMMC (with 8-bit 1.8V interface)
13 * SD card (on a baseboard) via edge connector
14 * Fast Ethernet with on-module TI DP83825I PHY
15 * MIPI-DSI/LVDS
16 * MIPI-CSI
17 * USB
18
19 - 1x USB 2.0 dual-role
20 - 3x USB 2.0 host
21
22 * on-module companion controller (STM32 Cortex-M0 or ATtiny), implementing:
23
24 - low-power RTC functionality (ISL1208 emulation)
25 - fan controller (AMC6821 emulation)
26 - USB<->CAN bridge controller (STM32 only)
27
28 * on-module Espressif ESP32 for Bluetooth + 2.4GHz WiFi
29 * on-module NXP SE05x Secure Element
30
31Here is the step-by-step to boot to U-Boot on PX30-uQ7 Ringneck from Theobroma
32Systems.
33
34Get the Source and build ATF binary
35-----------------------------------
36
37.. prompt:: bash
38
39 git clone https://git.trustedfirmware.org/TF-A/trusted-firmware-a.git
40 cd trusted-firmware-a
41 make CROSS_COMPILE=aarch64-linux-gnu- PLAT=px30 bl31
42 export BL31=$PWD/build/px30/release/bl31/bl31.elf
43
44Compile the U-Boot
45------------------
46
47.. prompt:: bash
48
49 cd ../u-boot
50 make CROSS_COMPILE=aarch64-linux-gnu- ringneck-px30_defconfig all
51
52This will build ``u-boot-rockchip.bin`` which can be written to an MMC device
53(eMMC or SD card).
54
55Flash the image
56---------------
57
58Copy ``u-boot-rockchip.bin`` to offset 32k for SD/eMMC.
59
60SD-Card
61~~~~~~~
62
63.. prompt:: bash
64
65 dd if=u-boot-rockchip.bin of=/dev/sdX seek=64
66
67.. note::
68
69 Replace ``/dev/sdX`` to match your SD card kernel device.
70
71eMMC
72~~~~
73
74``rkdeveloptool`` allows to flash the on-board eMMC via the USB OTG interface
75with help of the Rockchip loader binary.
76
77To enter the USB flashing mode on Haikou baseboard, remove any SD card, insert a
78micro-USB cable in the ``Q7 USB P1`` connector (P8), move ``SW5`` switch into
79``BIOS Disable`` mode, power cycle or reset the board and move ``SW5`` switch
80back to ``Normal Boot`` mode. A new USB device should have appeared on your PC
81(check with ``lsusb -d 2207:330d``).
82
83To flash U-Boot on the eMMC with ``rkdeveloptool``:
84
85.. prompt:: bash
86
87 git clone https://github.com/rockchip-linux/rkdeveloptool
88 cd rkdeveloptool
89 autoreconf -i && CPPFLAGS=-Wno-format-truncation ./configure && make
90 git clone https://github.com/rockchip-linux/rkbin.git
91 cd rkbin
92 ./tools/boot_merger RKBOOT/PX30MINIALL.ini
93 cd ..
94 ./rkdeveloptool db rkbin/px30_loader_v2.08.135.bin
95 ./rkdeveloptool wl 64 ../u-boot-rockchip.bin