![theobroma systems RK3399-Q7 Скачать руководство пользователя страница 35](http://html.mh-extra.com/html/theobroma-systems/rk3399-q7/rk3399-q7_user-manual_1101597035.webp)
load mmc 1 $kernel_addr_r root/u-boot.itb
sf erase 0$filesize
sf write $kernel_addr_r 0x40000 $filesize
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
4.9.1 Partition Setup
, but using the device
/dev/mmcblk1
.
Mount the eMMC partition and copy the contents of the SD card to the eMMC storage. The copy process will take about
30 seconds:
sudo mkdir
-
p
/
mnt
/
emmc
sudo mount
/
dev
/
mmcblk1p1
/
mnt
/
emmc
sudo cp
-
ax
/ /
mnt
/
emmc
sudo umount
/
mnt
/
emmc
The final step is copying the bootloader to the eMMC:
dd
if
=
spl
.
img of
=/
dev
/
mmcblk1 bs
=
1
k seek
=
32
dd
if
=
u
-
boot
.
itb of
=/
dev
/
mmcblk1 bs
=
1
k seek
=
256
Shut down the board (
poweroff
command) and remove the SD card. Make sure the boot selector switch is set to “
Normal
Boot
”. The next boot will run U-Boot off the internal eMMC storage.
4.12 Compiling Linux Applications
The easiest option is to compile your applications directly on a running RK3399-Q7 module. Just install the gcc package
and related utilities and you are good to go:
sudo apt
-
get install build
-
essential
The second option is to cross-compile your applications. The Cortex-A compiler that was installed earlier is suitable to
compile applications for the RK3399-Q7.
RK3399-Q7 User Manual
© Theobroma Systems Design und Consulting GmbH
Release v0.2-3-g574c114
Page
31
Содержание RK3399-Q7
Страница 2: ......