RK3288 software development scheme construction data download

Development and compilation of debian system for RK3288 motherboard

1. Build the development environment for compilation
1. Initialize the development environment
This part includes how to build the local environment for RK LINUX development. You need to build in Linux or Mac OS environment. It is recommended to use Ubuntu 64ibt for development, such as Ubuntu 14.04 64ibt, Ubuntu 16.04 64ibt, etc.

2. Configure a Linux development environment
This creation step is based on the Ubuntu LTS (14.04) version, but most distributions must ensure that the required tools can run.

Note: You can also set up the environment in a virtual machine. If you are running Linux in a virtual machine, you need at least 2GB of RAM/swap, or more than 30GB of disk space to create a build environment.

Under Ubuntu or MacOS, you usually need to install the following tools:

A. Python 2.6 -- 2.7, you can download from python.org.
B. GNU Make 3.81 -- 3.82, you can download from gnu.org.
C. Git 1.7 or newer. You can download from git-scm.com.

3. Install the required packages (based on Ubuntu 14.04)
You need a 64-bit version of Ubuntu. Note: There may be compatibility issues with older versions of Ubuntu.
Install the required packages for Ubuntu with the following command:
$ sudo apt-get install git gnupg flex bison gperf build-essential \
zip tar curl libc6-dev libncurses5-dev:i386 x11proto-core-dev \
libx11-dev:i386 libreadline6- dev:i386 libgl1-mesa-glx:i386 \
libgl1-mesa-dev g++-multilib mingw32 cmake tofrodos \
python-markdown libxml2-utils xsltproc zlib1g-dev:i386 lzop
$ sudo ln -s /usr/lib/i386-linux- gnu/mesa/libGL.so.1 /usr/lib/i386-linux-gn u/libGL.so

4. Install the ARM cross-compilation toolchain and compile the kernel-related packages:
$ sudo apt-get install gcc-arm-linux-gnueabihf \
gcc-aarch64-linux-gnu device-tree-compiler lzop libncurses5-dev \
libssl1.0.0 libssl -dev

2. Compile
1. uboot compile
Source mk-uboot.sh
2. Kernel compile
Source mk-kernel.sh
Note: rk3288 -evb-android-rk808-mipi.dts file is the configuration MIPI LCD file,
3. Rootfs system and app compilation
cd rootfs
VERSION=stretch TARGET=desktop ARCH=armhf ./mk-base-debian.s

3. Configuration of parameters such as SecureCRT
baud rate

The baud rate is currently modified to 115200 in the kernel driver, and users can set it to 1500000 baud rate

Project directory introduction
There are kernel, u-boot, prebuilts, Image, rootfs, tools and other directories under the project directory. Each directory or
submission needs to be made under its own directory.
1) rootfs: store debian related files
2) kernel: kernel code.
3) u-boot: uboot code
8) prebuilts: store gcc and cross-compilation tool toolschain needed to compile the kernel.
9) Image: Store the compiled output firmware.
10) tools: store programming tools.

···························

Related Posts