Quentin Schulz | 00a6f60 | 2023-01-09 11:36:45 +0100 | [diff] [blame] | 1 | Introduction |
| 2 | ============ |
| 3 | |
| 4 | The PX30-uQ7 (Ringneck) SoM is a ยตQseven-compatible (40mmx70mm, MXM-230 |
| 5 | connector) system-on-module from Theobroma Systems[1], featuring the |
| 6 | Rockchip PX30. |
| 7 | |
| 8 | It provides the following feature set: |
| 9 | * up to 4GB DDR4 |
| 10 | * up to 128GB on-module eMMC (with 8-bit 1.8V interface) |
| 11 | * SD card (on a baseboard) via edge connector |
| 12 | * Fast Ethernet with on-module TI DP83825I PHY |
| 13 | * MIPI-DSI/LVDS |
| 14 | * MIPI-CSI |
| 15 | * USB |
| 16 | - 1x USB 2.0 dual-role |
| 17 | - 3x USB 2.0 host |
| 18 | * on-module companion controller (STM32 Cortex-M0 or ATtiny), implementing: |
| 19 | - low-power RTC functionality (ISL1208 emulation) |
| 20 | - fan controller (AMC6821 emulation) |
| 21 | - USB<->CAN bridge controller (STM32 only) |
| 22 | * on-module Espressif ESP32 for Bluetooth + 2.4GHz WiFi |
| 23 | * on-module NXP SE05x Secure Element |
| 24 | |
| 25 | Here is the step-by-step to boot to U-Boot on px30. |
| 26 | |
| 27 | Get the Source and build ATF binary |
| 28 | =================================== |
| 29 | |
| 30 | > git clone https://git.trustedfirmware.org/TF-A/trusted-firmware-a.git |
| 31 | |
| 32 | Compile the ATF |
| 33 | =============== |
| 34 | |
| 35 | > cd trusted-firmware-a |
| 36 | > make CROSS_COMPILE=aarch64-linux-gnu- PLAT=px30 bl31 |
| 37 | > cp build/px30/release/bl31/bl31.elf ../u-boot/bl31.elf |
| 38 | |
| 39 | Compile the U-Boot |
| 40 | ================== |
| 41 | |
| 42 | > cd ../u-boot |
| 43 | > make CROSS_COMPILE=aarch64-linux-gnu- ringneck-px30_defconfig all |
| 44 | |
| 45 | Flash the image |
| 46 | =============== |
| 47 | |
| 48 | Copy u-boot-rockchip.bin to offset 32k for SD/eMMC. |
| 49 | |
| 50 | SD-Card |
| 51 | ------- |
| 52 | |
| 53 | > dd if=u-boot-rockchip.bin of=/dev/sdb seek=64 |
| 54 | |
| 55 | eMMC |
| 56 | ---- |
| 57 | |
| 58 | rkdeveloptool allows to flash the on-board eMMC via the USB OTG interface with |
| 59 | help of the Rockchip loader binary. |
| 60 | |
| 61 | > git clone https://github.com/rockchip-linux/rkdeveloptool |
| 62 | > cd rkdeveloptool |
| 63 | > autoreconf -i && ./configure && make |
| 64 | > git clone https://github.com/rockchip-linux/rkbin.git |
| 65 | > cd rkbin |
| 66 | > ./tools/boot_merger RKBOOT/PX30MINIALL.ini |
| 67 | > cd .. |
| 68 | > ./rkdeveloptool db rkbin/px30_loader_v1.16.131.bin |
| 69 | > ./rkdeveloptool wl 64 ../u-boot-rockchip.bin |