Difference between revisions of "Template:RK3399-BurnOS-with-TypeC"

From FriendlyELEC WiKi
Jump to: navigation, search
(updated by API)
(updated by API)
Line 4: Line 4:
 
|-
 
|-
 
   | colspan=2 | Image Files
 
   | colspan=2 | Image Files
 +
|-
 +
  | rk3399-typec-android10-YYYYMMDD.tgz
 +
  | Android 10 image file
 
|-
 
|-
 
   | rk3399-typec-android8-YYYYMMDD.img.zip
 
   | rk3399-typec-android8-YYYYMMDD.img.zip
Line 21: Line 24:
 
|-
 
|-
 
   | colspan=2 | Flash Utility:
 
   | colspan=2 | Flash Utility:
|-
 
  | AndroidTool_Release_v2.54.zip
 
  | Windows utility provided by Rockchip
 
 
|-
 
|-
 
   | DriverAssitant_v4.5.tgz
 
   | DriverAssitant_v4.5.tgz
Line 32: Line 32:
 
https://www.youtube.com/watch?v=Wh7gyIjB9UY<br />
 
https://www.youtube.com/watch?v=Wh7gyIjB9UY<br />
 
<br />
 
<br />
 +
 +
 
Here are the steps:<br />
 
Here are the steps:<br />
 
* Download DriverAssitant_v4.5.tgz, extract it and install it on a Windows PC;
 
* Download DriverAssitant_v4.5.tgz, extract it and install it on a Windows PC;
Line 48: Line 50:
 
[[File:Rk-clean-emmc.png]]
 
[[File:Rk-clean-emmc.png]]
 
<br/>
 
<br/>
 +
 +
Here are the steps:<br />
 +
* Download DriverAssitant_v4.5.tgz, extract it and install it on a Windows PC;
 +
* Download your wanted image,AndroidTools.exe tool and configuration file (config.cfg) have been built in;
 +
* Run AndroidTool.exe as administrator;
 +
* Connect a DC power cord and an HDMI monitor to your {{{1}}}, connect your {{{1}}} to a PC with a Type-C cable. Press and hold the Recovery button and the Power button for at least 1.5 seconds AndroidTools will prompt that a LOADER device is found;
 +
* Go to "Update Firmware" -> Select "MiniLoaderAll.bin" and then click on "Erase Flash";
 +
* Back to AdnroidTools home ui,Click on "Run" to download image to eMMC. A while later after the image is flashed successfully your board will be rebooted automatically.
 +
About loader and maskrom mode:<br />
 +
* If the eMMC has no system or the eMMC system is erased or damaged, it will be displayed as a MASKROM device;
 +
* You can also press and hold the BOOT button and then long press the Power button to turn on (keep pressing the BOOT button for more than 5 seconds), it will be forced to enter the MASKROM mode;<br />
 +
* If it displays "No device found", please check whether the driver has been successfully installed, check the Type-C data cable and then reboot according to the above method, or press and hold the Recovery button and then press the Reset button;<br />
 +
* You can execute the "reboot loader" command on the terminal to restart {{{1}}}, will enter the LOADER mode;<br />
 +
  
 
====Flash Image to eMMC under Linux with Type-C Cable====
 
====Flash Image to eMMC under Linux with Type-C Cable====
 +
Note: it is not supported to burn Android10 through Typc-C under Linux; <br /><br />
 
Visit [http://download.friendlyarm.com/{{{1}}} download link] to download Windows utilities and image files<br />
 
Visit [http://download.friendlyarm.com/{{{1}}} download link] to download Windows utilities and image files<br />
 
{| class="wikitable"
 
{| class="wikitable"

Revision as of 06:54, 20 August 2020

1 Flash Image under Windows with Type-C Cable

Visit download link to download Windows utilities and image files:

Image Files
rk3399-typec-android10-YYYYMMDD.tgz Android 10 image file
rk3399-typec-android8-YYYYMMDD.img.zip Android 8.1 image file
rk3399-typec-android7-YYYYMMDD.tgz Android 7.1.2 Image File
rk3399-typec-friendlycore-bionic-4.4-arm64-YYYYMMDD.tgz FriendlyCore Image File(Qt 5.10)
rk3399-typec-friendlydesktop-bionic-4.4-arm64-YYYYMMDD.tgz FriendlyDesktop with X Window
rk3399-typec-lubuntu-desktop-YYYYMMDD.tgz Lubuntu Desktop with X Window
Flash Utility:
DriverAssitant_v4.5.tgz USB driver for Windows provided by Rockchip. This is needed when using AndroidTool to flash OS

Video Tutorial:
https://www.youtube.com/watch?v=Wh7gyIjB9UY


Here are the steps:

  • Download DriverAssitant_v4.5.tgz, extract it and install it on a Windows PC;
  • Download your wanted image from images-for-eflasher and extract it. For example the image for Android 7 is "android-nougat-images.tgz". You can ignore the "idbloader.img" and "info.conf" files.
  • Download AndroidTool_Release_v2.54.zip, extract it and run AndroidTool.exe as administrator.
  • Import a parameter.txt for sections and configure a file for each section if needed:

Download Android Image

  • Connect a DC power cord and an HDMI monitor to your {{{1}}}, connect your {{{1}}} to a PC with a Type-C cable. Press and hold the Recovery button and the Power button for at least 1.5 seconds AndroidTools will prompt that a LOADER device is found


a) If eMMC hasn't been flashed with an image or the image inside is removed or damaged this eMMC will be recognized as a MASKROM device;
b) You can hold both the BOOT button and the Power button for at least 5 seconds to force the board to enter the MASKROM mode;
c) If your system shows "no device is found" you need to check if you have installed a driver or if your Type-C cable works and then try it again;
d) If your system is booted successfully you can run "reboot loader" on your board via adb or SSH and force your board to enter the LOADER mode.

  • Click on "Run" to download your wanted image to eMMC. A while later after the image is flashed successfully your board will be rebooted automatically.
  • If you want to update your system e.g. you want to replace the Linux system on your board with an Android system, you need to erase your eMMC by following the steps below:

Go to "Update Firmware" -> Select "MiniLoaderAll.bin" and then click on "Erase Flash"
Rk-clean-emmc.png

Here are the steps:

  • Download DriverAssitant_v4.5.tgz, extract it and install it on a Windows PC;
  • Download your wanted image,AndroidTools.exe tool and configuration file (config.cfg) have been built in;
  • Run AndroidTool.exe as administrator;
  • Connect a DC power cord and an HDMI monitor to your {{{1}}}, connect your {{{1}}} to a PC with a Type-C cable. Press and hold the Recovery button and the Power button for at least 1.5 seconds AndroidTools will prompt that a LOADER device is found;
  • Go to "Update Firmware" -> Select "MiniLoaderAll.bin" and then click on "Erase Flash";
  • Back to AdnroidTools home ui,Click on "Run" to download image to eMMC. A while later after the image is flashed successfully your board will be rebooted automatically.

About loader and maskrom mode:

  • If the eMMC has no system or the eMMC system is erased or damaged, it will be displayed as a MASKROM device;
  • You can also press and hold the BOOT button and then long press the Power button to turn on (keep pressing the BOOT button for more than 5 seconds), it will be forced to enter the MASKROM mode;
  • If it displays "No device found", please check whether the driver has been successfully installed, check the Type-C data cable and then reboot according to the above method, or press and hold the Recovery button and then press the Reset button;
  • You can execute the "reboot loader" command on the terminal to restart {{{1}}}, will enter the LOADER mode;


2 Flash Image to eMMC under Linux with Type-C Cable

Note: it is not supported to burn Android10 through Typc-C under Linux;

Visit download link to download Windows utilities and image files

Image Files
rk3399-typec-android8-YYYYMMDD.img.zip Android 8.1 image file
rk3399-typec-android7-YYYYMMDD.tgz Android 7.1.2 Image File
rk3399-typec-friendlycore-bionic-4.4-arm64-YYYYMMDD.tgz FriendlyCore Image File(Qt 5.10)
rk3399-typec-friendlydesktop-bionic-4.4-arm64-YYYYMMDD.tgz FriendlyDesktop with X Window
rk3399-typec-lubuntu-desktop-YYYYMMDD.tgz Lubuntu Desktop with X Window
Flash Utility:
Linux_Upgrade_Tool_1.27.rar Linux utility provided by Rockchip

Linux_Upgrade_Tool is a Linux utility provided by Rockchip. You need to use it together with a Type-C cable. It can be used to install an image to eMMC, delete image files from eMMC, read from and write to eMMC and etc.

  • Install upgrade_tool: download Linux_Upgrade_Tool_1.27.rar, extract it and set upgrade_tool's access right
 sudo cp upgrade_tool /usr/local/sbin
 sudo chown root:root /usr/local/sbin/upgrade_tool
 sudo chmod 0755 /usr/local/sbin/upgrade_tool
  • Download your wanted image from images-for-eflasher and extract it. For example the image for Lubuntu is "lubuntu-desktop-images.tgz".
  • Refer to the steps in "Flash Image to eMMC with AndroidTool" to boot your board and force it to enter either LOADER or MASKROM mode;
  • Linux: Run the following commands to flash Linux to eMMC and reboot your board:
 sudo upgrade_tool ul MiniLoaderAll.bin
 sudo upgrade_tool di -p parameter.txt
 sudo upgrade_tool di uboot uboot.img
 sudo upgrade_tool di trust trust.img
 sudo upgrade_tool di resource resource.img
 sudo upgrade_tool di kernel kernel.img
 sudo upgrade_tool di boot boot.img
 sudo upgrade_tool di rootfs rootfs.img
 sudo upgrade_tool RD
  • Android 7: Run the following commands to flash Android 7 to eMMC and reboot your board:
sudo upgrade_tool ul MiniLoaderAll.bin
sudo upgrade_tool di -p parameter.txt
sudo upgrade_tool di uboot uboot.img
sudo upgrade_tool di trust trust.img
sudo upgrade_tool di misc misc.img
sudo upgrade_tool di resource resource.img
sudo upgrade_tool di kernel kernel.img
sudo upgrade_tool di boot boot.img
sudo upgrade_tool di recovery recovery.img
sudo upgrade_tool di system system.img
sudo upgrade_tool RD
  • Android 8: Run the following commands to flash Android 8 to eMMC and reboot your board:
sudo upgrade_tool ul MiniLoaderAll.bin
sudo upgrade_tool di -p parameter.txt
sudo upgrade_tool di uboot uboot.img
sudo upgrade_tool di trust trust.img
sudo upgrade_tool di misc misc.img
sudo upgrade_tool di resource resource.img
sudo upgrade_tool di kernel kernel.img
sudo upgrade_tool di boot boot.img
sudo upgrade_tool di recovery recovery.img
sudo upgrade_tool di system system.img
sudo upgrade_tool di vendor vendor.img
sudo upgrade_tool di oem oem.img
sudo upgrade_tool RD

If the image's MiniLoaderAll.bin has a different version or the image you want to flash to eMMC is different from the image that already exists in eMMC you need to erase eMMC and then flash your new image to it.
Boot your board and enter the LOADER mode, run the following commands to erase eMMC. If a prompt shows "Download Boot Start" and it lasts for 10 seconds you need to press the Reset button and run the following commands again.

 sudo upgrade_tool EF MiniLoaderAll.bin

If it succeeds you will see a prompt showing "Erase flash ok."