Changes

Jump to: navigation, search

Orange Pi RK3399

2,160 bytes added, 19:43, 23 June 2022
no edit summary
</div>
<br>
=== '''Compile Linux SDK and Make Firmware''' ===
<br>
It is defaulted compilation under userdebug mode.<br>
'''U-boot Compilation:'''
<div style="background:#f1f1f1;border:1px solid #ddd;padding:5px;">
./build/mk-u-boot.sh rk3399-orangepi
</div>
There will be generated the following file on out/u-boot directory:<br>
➜ tree ./out/u-boot<br>
u-boot<br>
├── idbloader.img<br>
├── rk3399_loader_v1.08.106.bin<br>
├── trust.img<br>
└── uboot.img<br>
<br>
'''Kernel Compilation:'''
<div style="background:#f1f1f1;border:1px solid #ddd;padding:5px;">
./build/mk-kernel.sh rk3399-orangepi
</div>
There will be generated the following file on out directory<br>
➜ tree ./out/kernel <br>
├── boot.img<br>
└── kernel<br>
├── Image<br>
└── rk3399-orangepi.dtb<br>
'''Rootfs Compilation:'''<br>
<br>
You could use different Rootfs, what have already compiled just like the following which could be used directory:<br>
<br>
Ubuntu16.04 Desktop version: ubuntu-desktop.img<br>
<br>
Ubuntu16.04 Server version: ubuntu-server.img<br>
<br>
Ubuntu16.04 LXDE version: ubuntu-lxde.img<br>
<br>
Debian9 Desktop version: debian-desktop.img<br>
<br>
You could also make your own Rootfs with reference of OrangePi RK3399 Rootfs Construction.<br>
<br>
'''Pack every partitions’ image into a unity full firmware:'''
<div style="background:#f1f1f1;border:1px solid #ddd;padding:5px;">
./build/mk-image.sh -c rk3399 -t system -s 4000 -r out/ubuntu-server.img
</div>
c for chip, represents the chip model<br>
t for target, represents the generated image name<br>
s for size, represents the predistribution size(but it does not means the final real size. The firmware will Redynamic adjustment the size), unit: Mbyte<br>
r for rootfs, represents the path used by rootfs
After execute the above command, there will be generate the unity full firmware(system.img ) on the directory of out.<br>
<br>
=== '''Flash Linux Firmware''' ===
<br>
'''Flash the full Linux firmware into eMMC:'''
1.Short circuit connecting with Clk and GND of EMMC, connect DC power supply, enter into Maskrom mode.<br>
EMMC Clk is like the following shows:

Navigation menu