![theobroma systems RK3399-Q7 User Manual Download Page 28](http://html.mh-extra.com/html/theobroma-systems/rk3399-q7/rk3399-q7_user-manual_1101597028.webp)
cp rk3399
-
cortex
-
m0
/
rk3399m0
.
bin arm
-
trusted
-
firmware
/
build
/
rk3399
/
debug
/
bl31
.
bin puma
-
u
-
boot
Then you are ready to compile U-Boot:
cd puma
-
u
-
boot
export ARCH
=
arm64
export CROSS_COMPILE
=/
opt
/
gcc
-
linaro
-
6.3
.
1
-
2017.02
-
x86_64_aarch64
-
linux
-
gnu
/
bin
/
aarch64
-
linux
-
gnu
-
make puma
-
rk3399_defconfig
make
-
j4
tools
/
mkimage
-
n rk3399
-
T rksd
-
d spl
/
u
-
boot
-
spl
.
bin spl
.
img
make u
-
boot
.
itb
cd
..
The resulting bootloader consists of two files, “
spl.img
” and “
u-boot.itb
”.
4.6 Compile the Boot Script
The U-Boot boot sequence is controlled by a file called “
boot.scr
”. This file is generated from a plain-text file called
“
boot.cmd
”.
Download the repository containing the file using:
git clone https:
//
git
.
theobroma
-
systems
.
com
/
som
-
tools
.
git
Generate “
boot.scr
” using:
cd som
-
tools
make
-
C boot
-
script
/
boot
cd
..
4.7 Compile the Linux Kernel
The kernel source code can be cloned with:
git clone https:
//
git
.
theobroma
-
systems
.
com
/
puma
-
linux
.
git
Compile using:
Release v0.2-3-g574c114
Page
24
Summary of Contents for RK3399-Q7
Page 2: ......