Developer Guide for ROC-RK3328-CC (Renegade)
UARTThe board features standard 3.3V UART on the 40 pin header. Pin 1 is closest to the IR sensor and pin 39 is closest to the USB 3.0 connector. If you are using one of the dirt cheap UART dongles, you can connect the color coded wires based on the graphic below:
The baud rate is 1500000 8N1. minicom -b 1500000 -D /dev/ttyUSB0. Disable flow control by pressing Control + A, O, Serial port setup, F.
LinuxCurrently, there are 3 recommended kernels depending on your needs: Mainline 5.9 LTS 5.4 and Vendor 4.4
We try to use the latest Linux LTS release which is currently 5.4 but will be transitioning to 5.10 as it is released in Q4 2020. Linux 5.4 LTS will not work out of the box so we have out of tree patches. Linux 5.10 should work out of the box.
CompilingFor cross compiling the kernel on x86, clone the appropriate git repository and generate a dtb and deb via:
make ARCH=arm64 defconfig make CROSS_COMPILE=aarch64-linux-gnu- ARCH=arm64 -j `nproc` deb-pkg rockchip/rk3328-roc-cc.dtbThis will have a lot fewer built-ins and modules than the kernel we use but it is a starting point. Make sure to compile btrfs into the kernel as a built-in since the root file system needs to be readable. Make sure that EFI stub is enabled so that grub-efi-arm64 is capable of starting the kernel.