Changes

Jump to: navigation, search

Orange Pi RK3399

2,724 bytes added, 19:51, 23 June 2022
no edit summary
=== '''Flash Linux Firmware''' ===
<br>
'''Flash the full Linux firmware into eMMC:'''<br>
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:
<div>[[文件:Orange-pi-rk3399-img11.png|600px|]]</div>
<br>
<div>[[文件:Orange-pi-rk3399-img12.png|600px|]]</div>
<br>
2.Connect TypeC cable with PC and RK3399<br>
3.Execute the following command to flash
<div style="background:#f1f1f1;border:1px solid #ddd;padding:5px;">
./build/flash_tool.sh -c rk3399 -p system -i out/system.img
</div>
<br>
c for chip, represents chip model<br>
<br>
p for partition, represents partition, such as boot loader1 system <br>
<br>
i for image, represents path of image<br>
<br>
'''You could also flash different partitions separately, for example:'''<br>
<br>
Separate flashing boot:<br>
<br>
<div style="background:#f1f1f1;border:1px solid #ddd;padding:5px;">
./build/flash_tool.sh -c rk3399 -p boot -i out/boot.img
</div>
<br>
Separate flashing uboot:<br>
<br>
<div style="background:#f1f1f1;border:1px solid #ddd;padding:5px;">
./build/flash_tool.sh -p loader1 -i out/u-boot/idbloader.img -c rk3399<br>
./build/flash_tool.sh -p loader2 -i out/u-boot/uboot.img -c rk3399<br>
./build/flash_tool.sh -p atf -i out/u-boot/trust.img -c rk3399
</div>
<br>
== '''Construct Compilation Environment and Make Rootfs Image''' ==
<br>
=== '''Construct Compilation Environment''' ===
<br>
<div style="background:#f1f1f1;border:1px solid #ddd;padding:5px;">
sudo apt-get update<br>
sudo apt-get install qemu-user-static
</div>
<br>
If your development environment is not Ubuntu16.04, please make sure the gcc-arm-linux-gnueabihf and gcc-aarch64-linux-gnu compile tool train less than 6.0.<br>
<br>
<div style="background:#f1f1f1;border:1px solid #ddd;padding:5px;">
mkdir rootfs<br>
sudo tar -xpf ubuntu-base-16.04.1-base-arm64.tar.gz -C rootfs
</div>
<br>
=== '''Modify Rootfs and Add Customize Software''' ===
<br>
<div style="background:#f1f1f1;border:1px solid #ddd;padding:5px;">
sudo cp -b /etc/resolv.conf rootfs/etc/resolv.conf<br>
sudo cp /usr/bin/qemu-aarch64-static rootfs/usr/bin/<br>
<nowiki># Enter into root system</nowiki><br>
sudo chroot rootfs /bin/bash<br>
<br>
<nowiki># Update software library and install software</nowiki><br>
apt update<br>
apt upgrade<br>
<nowiki># according to you installation need</nowiki><br>
apt install build-essential vim ping ssh, etc.<br>
<nowiki># Install desktop version, it would take a little long time, please keep the network smooth.</nowiki><br>
<nowiki># It would be Server version if do not execute</nowiki><br>
apt install ubuntu-desktop<br>
<br>
<nowiki># Add user and set password</nowiki><br>
useradd -s '/bin/bash' -m -G adm,sudo orangepi<br>
<nowiki># Set password for user orangepi</nowiki><br>
passwd orangepi<br>
<nowiki># Set password for rootpasswd root</nowiki><br>
<br>
<nowiki># exit Rootfs</nowiki><br>
exit
</div>
<br>

Navigation menu