2 First Steps This chapter provides instructions for getting the RK3399-Q7 EVK running after opening the box. 2.1 Required Tools • PZ1 (Pozidriv) screwdriver 2.2 Insert the Module Insert the RK3399-Q7 module at a 30-degree angle into the connector in the base board. Once fully inserted , push it down until it rests on the standoffs and check alignment of the mounting holes.
3.2 Power Supply The baseboard can operate with a single 12V DC power supply. Fig. 3.2: 12V Power connector Power can be controlled manually from the board using the Power control buttons and switches, located on the lower right side of the board (see Evaluation Board Overview). Depending on the setting of Normally On / Normally Off switch the board will boot as soon as it receives power.
3.6 USB Serial Console The evaluation board contains an on-board Silicon Labs CP2102N USB-serial converter. Connect the included Micro-USB cable to the Micro-USB jack labeled USB-UART Bridge: Fig. 3.4: USB UART The serial converter does not require additional drivers on Windows and Linux. For Mac OS, drivers are available from Silicon Labs: http://www.silabs.com/products/development-tools/ software/usb-to-uart-bridge-vcp-drivers The Q7 modules has two external UARTs:...
3.10 USB Interfaces The RK3399-Q7 provides four USB ports: • 1x USB 3.0 OTG • 2x USB 3.0 Host • 1x USB 2.0 Host Fig. 3.7: USB 3.0 OTG port (dual-role port: can be used as a host or device interface) Fig.
Display Port on LVDS A rk3399-puma-hdmi+mipidsi.dtb HDMI MIPI-DSI on LVDS A See https://git.embedded.cherry.de/som-hardware.git/ for video adapter reference designs. 3.12 RTC the RK3399-Q7 contain a real-time clock (RTC) on-module. The RTC is read by the kernel on bootup and used to set the system clock.
3.13.2 SMBus The board provides communication through SMBus. It is basically like I2C with an additional line for interrupt and is used for connecting sensors and power peripherals. Fig. 3.14: SMBUS header 3.13.3 Linux Bus Numbering Linux identifies each I2C bus using a bus number. The table below shows the mapping between Q7 names, Linux bus number and EVK header.
The GPIO will be set to a value of 1 (high at 3.3V). 3.15 Audio The board provides two audio connectors for input and output. Line-in is on top and Headphones is on bottom of the audio connector. Fig. 3.16: Audio input/output port Additionally, an expansion connector for I2S audio is available on the bottom row of the board: 3V3 LDO I2S_RST#...
Set up environment variables to make use of the ARMv6-M compiler, then download the source code and com- pile: export ARCH=arm64 export CROSS_COMPILE=/opt/gcc-arm-none-eabi-6-2017-q1-update/bin/arm-none-eabi- git clone https://git.embedded.cherry.de/rk3399-cortex-m0.git cd rk3399-cortex-m0 make 4.3.1 Optional: Compile the cross-compiler As an alternative to using a ready-made compiler, the firmware repository has a mechanism to compile the ARMv6-M-compiler as a part of the build process.
• The device tree: arch/arm64/boot/dts/rockchip/rk3399-puma.dtb • The kernel image: arch/arm64/boot/Image 4.8 Building the root filesystem A filesystem can be created using Debootstrap, specifying arm64 as architecture in the command line. Supposing the target dir is called rk3399-rootfs and the chosen distribution is Debian 9 “Stretch” (recom- mended): export targetdir=/opt/rk3399-rootfs sudo mkdir -p $targetdir...
Page 28
(continued from previous page) Select (default p): <ENTER> Partition number (1-4, default 1): <ENTER> First sector (2048-7774207, default 2048): 4096 Last sector, +sectors +size{K,M,G} (...): <ENTER> This will create a primary partition at offset 2MiB. Enter w to write the new partition table to the disk: >...
4.11 Deploy on On-Board eMMC storage As the eMMC storage is only accessible from the module itself, you must first boot the RK3399-Q7 from SD card. Partition and format the eMMC storage as described in Partition Setup, but using the device /dev/mmcblk1. Mount the eMMC partition and copy the contents of the SD card to the eMMC storage.
5 Hardware Guide This Hardware Guide provides information about the features, connectors and signals available on the RK3399-Q7 module. 5.1 Qseven Implementation Qseven has mandatory and optional features. Following table shows the feature set of the RK3399-Q7 module compared to the minimum ARM/RISC based and maximum configuration according to the Q7 standard. System I/O Interface Q7 Minimum RK3399-Q7...
5.4 Signal Details 5.4.1 Ethernet Signal Type Signal Description Level GBE_MDI[0:3]+ Analog Gigabit Ethernet Controller: Media Dependent Interface Differ- GBE_MDI[0:3]- ential Pairs 0,1,2,3. The MDI can operate in 1000, 100 and 10 Mbit/sec modes GBE_ACT# 3.3V Gigabit Ethernet Controller activity indicator, active low GBE_LINK# 3.3V Gigabit Ethernet Controller link indicator, active low...
Page 40
5.4.12 Misc Signal Type Signal Description Level WDTRIG# 3.3V Watchdog trigger signal WDOUT 3.3V Watchdog event indicator SMB_CLK 3.3V Clock line of System Management Bus. Alternate function I2C GP1_I2C_CLK Bus clock line SMB_DAT 3.3V Data line of System Management Bus. Alternate function I2C GP1_I2C_DAT Bus data line SMB_ALERT#...
Page 42
5.5.6 Ethernet PHY The Micrel KSZ9031RNX is connected to the CPU via RGMII and MDIO. Further connections are shown below. PHY signal Connected to Linux GPIO # RESET CPU pin GPIO3_C0 MDIO CPU pin GPIO3_B5 CPU pin GPIO3_B0 LED1 Qseven GBE_LINK1000 and GBE_LINK100 and GBE_LINK (tied together) LED2 Qseven GBE_ACT 5.5.7 Test points...
5.7 Using Qseven Signals as GPIO Most Qseven signals can be reused as general purpose pin. Following table shows the mapping and the possible direction between the edge connector and the SoC. Qseven Signal CPU Pin Linux Direction GPIO SUS_S5# GPIO1_A1 Output WAKE#...
5.8 Electrical Specification 5.8.1 Power Supply The power supply requirements are listed in the table below and are identical to the Qseven specification. Rail Description Nominal voltage Tolerance Main power supply 4.75 … 5.25V VCC_RTC Backup battery 2.4 … 3.3V v1.6 Page 42...