![theobroma systems RK3399-Q7 User Manual Download Page 33](http://html.mh-extra.com/html/theobroma-systems/rk3399-q7/rk3399-q7_user-manual_1101597033.webp)
Now, to format the partition as ext4:
sudo
/
sbin
/
mkfs
.
ext4
-
E lazy_itable_init
=
0
/
dev
/
sdX1
The option “
lazy_itable_init=0
” speeds up the first boot because it initializes the inode tables in advance.
The SD card is now ready to have the U-Boot bootloader and Linux deployed.
4.9.2 Deploy U-Boot
The U-Boot images
spl.img
and
u-boot.itb
are written to the SD card. Assuming the SD card is mapped to /dev/sdX:
sudo dd
if
=
puma
-
u
-
boot
/
spl
.
img of
=/
dev
/
sdX bs
=
1
k seek
=
32
sudo dd
if
=
puma
-
u
-
boot
/
u
-
boot
.
itb of
=/
dev
/
sdX bs
=
1
k seek
=
256
4.9.3 Deploy the Linux Kernel and the Root Filesystem
Mount the SD card partition and copy the rootfs (assuming that the rootfs is located at “
/opt/rk3399-rootfs
” and the
sd card at “
/dev/sdX1
”):
sudo mkdir
-
p
/
mnt
/
sdcard
sudo mount
/
dev
/
sdX1
/
mnt
/
sdcard
sudo cp
-
av
/
opt
/
rk3399
-
rootfs
/* /
mnt
/
sdcard
Copy kernel image, device tree and boot script into the boot directory:
sudo cp
-
r som
-
tools
/
boot
-
script
/
boot
/
{boot
.
scr,puma_rk3399}
/
mnt
/
sdcard
/
boot
sudo cp rockchip_linux
/
arch
/
arm64
/
boot
/
dts
/
rockchip
/
rk3399
-
puma
.
dtb
/
mnt
/
sdcard
/
boot
/
puma_rk3399
sudo cp rockchip_linux
/
arch
/
arm64
/
boot
/
Image
/
mnt
/
sdcard
/
boot
/
puma_rk3399
Finally, unmount the SD card:
sudo umount
/
mnt
/
sdcard
The SD card is ready for booting.
4.9.4 U-Boot Customization
The boot script
/boot/boot.scr
handles the boot sequence. Unless you want to customize the sequence, no further action is
required.
RK3399-Q7 User Manual
© Theobroma Systems Design und Consulting GmbH
Release v0.2-3-g574c114
Page
29
Summary of Contents for RK3399-Q7
Page 2: ......