Difference between revisions of "APITestPage"

From FriendlyELEC WiKi
Jump to: navigation, search
(updated by API)
(updated by API)
 
(103 intermediate revisions by the same user not shown)
Line 1: Line 1:
====Install OS to eMMC====
+
 
=====Option 1: Install OS on Web Page=====
+
{{BurnLinuxToExtDrive-Rockchip/zh|NanoPC-T4}}
Get a TF card which has been installed with FriendlyWrt, log in FriendlyWrt on the web page, click on “System” ->”eMMC Tools”. Click on “Select file” to select your wanted image file, either an official image (the name might start with “rk3399-sd”) or a third party image. The file should be a “.gz” or “.img” file.<br/>
+
{{BurnLinuxToExtDrive-Rockchip|NanoPC-T4}}
After a file is selected, click on “Upload and Write” to start installing an OS.<br/>
+
[[File:Friendlywrt-emmctools2-en.png|frameless|600px]]<br/>
+
After installation is done, eject the SD card, the system will automatically reboot and load the OS from eMMC. After the OS begins to load, if the system LED is flashing and the network LED is on, it means the the OS has loaded successfully. If the OS is FriendlyWrt, you can click on “Go to Homepage” to enter the homepage. <br/>
+
Note that if you are burning the FriendlyElec firmware, you need to use an image file with the "-sd-" file name, similar to the one below:
+
{| class="wikitable"
+
|-
+
  | rk3399-sd-friendlywrt-21.02-YYYYMMDD.img.gz
+
|-
+
  | rk3399-sd-friendlywrt-21.02-docker-YYYYMMDD.img.gz
+
|}
+
If the file is in 7z, zip or rar format, you will need to extract it first. If the file is too large to write, you can compress it into .gz format and try again.
+
=====Option 2: Install OS via TF Card=====
+
======Install OS to eMMC======
+
* This method firstly boots a mini Linux from a TF card and then automatically runs an EFlasher utility to install the OS to eMMC.<br />
+
* You can watch its progress by observing its LEDs as well.<br />
+
Visit [http://download.friendlyelec.com/{{#replace:{{#replace:{{BASEPAGENAME}}| |}}|/zh|}} download link] to download the needed utilities and image file:<br />
+
{| class="wikitable"
+
|-
+
  | colspan=2 | '''Image File'''
+
|-
+
  | rk3399-eflasher-friendlywrt-21.02-YYYYMMDD.img.gz
+
  | '''[[How to Build FriendlyWrt|FriendlyWrt]]'''<br/>Based on OpenWrt 21.02.3<br />Kernel version 5.15.y
+
|-
+
  | rk3399-eflasher-friendlywrt-21.02-docker-YYYYMMDD.img.gz
+
  | '''[[How to Build FriendlyWrt|FriendlyWrt]]'''<br/>Pre-installed Docker<br />Based on OpenWrt 21.02.3<br />Kernel version 5.15.y
+
|-
+
  | rk3399-eflasher-debian-buster-desktop-arm64-YYYYMMDD.img.gz
+
  | '''Debian 10(buster) Desktop'''<br />Uses LXDE as default desktop<br />Pre-installed mpv, smplayer and chromium brower<br />Supports hardware acceleration<br >Kernel version 5.15.y
+
|-
+
  | rk3399-eflasher-friendlycore-lite-focal-5.15-arm64-YYYYMMDD.img.gz
+
  | '''FriendlyCore'''<br />Minimal system<br />Based on Ubuntu core 20.04<br />kernel version 5.15.y
+
|-
+
  | colspan=2 | '''Flash Utility:'''
+
|-
+
  | win32diskimager.rar
+
  | Windows utility. Under Linux users can use "dd"
+
|}
+
Here are the steps:<br />
+
* Get an SDHC card with a minimum capacity of 8G
+
* Download a rk3399-eflasher-OSNAME-YYYYMMDD.img.gz image file and a win32diskimager;
+
* Under Windows, run win32diskimager as administrator, select your SD card and extracted [[EFlasher/zh|EFlasher]] image file, and click on “Write” to write image file on the SD card; or under Linux, you use the dd command to write the rk3399-eflasher-OSNAME-YYYYMMDD.img file to the SD card. 
+
* Eject your SD card and insert it to {{{1}}}’s microSD card slot.
+
* Turn on {{{1}}}, it will boot from the SD card and automatically run [[EFlasher/zh|EFlasher]] to install the OS to the board’s eMMC. You can observer the board’s LEDs to watch its installation progress 
+
{| class="wikitable"
+
|-
+
! Progress
+
! SYS LED(Red)
+
! LAN LED(Green)
+
! WAN LED(Green)
+
|-
+
| Power On
+
| Solid On
+
| Off
+
| Off
+
|-
+
| System Boot
+
| Slow Flashing
+
| Off
+
| Off
+
|-
+
| Installation in Progress
+
| Fast Flashing
+
| Off
+
| Off
+
|-
+
| Installation Done
+
| Slow Flashing
+
| Solid On
+
| Solid On
+
|}
+
* After installation is done, power off the board, eject the SD card from {{{1}}}, power on the board again, {{{1}}} will load the OS from its eMMC
+
======Install Flash Image File to eMMC======
+
* Auto Install (Default Behavior)
+
1) Download an “eflasher” firmware from [http://download.friendlyelec.com/{{#replace:{{#replace:{{BASEPAGENAME}}| |}}|/zh|}} network drive], extract it and install it to a TF card ;<br />
+
2) Eject and insert the TF card to your PC, after a “FriendlyARM” device shows up(Under Linux, it is a “FriendlyARM” directory), copy an .img or .gz file to the TF card.<br />
+
3) Open the eflasher.conf file on the TF card, set “autoStart=” to the name of your image file, such as:<br />
+
<syntaxhighlight lang="bash">
+
autoStart=openwrt-rockchip-armv8_nanopi-ext4-sysupgrade.img.gz
+
</syntaxhighlight>
+
Anyone of the files that contain “-sd-” will work. Here is a list:
+
{| class="wikitable"
+
|-
+
  | rk3399-sd-friendlywrt-21.02-YYYYMMDD.img.gz
+
|-
+
  | rk3399-sd-friendlywrt-21.02-docker-YYYYMMDD.img.gz
+
|-
+
  | rk3399-sd-friendlywrt-22.03-YYYYMMDD.img.gz
+
|-
+
  | rk3399-sd-friendlywrt-22.03-docker-YYYYMMDD.img.gz
+
|}
+
4) Eject the TF card, insert the TF card to {{{1}}}, power it on it will automatically install your firmware. You can watch the installation progress by observing the LEDs’ status.<br />
+
=====Option 3: Install OS via USB=====
+
======Step 1: Install USB Driver and Tools/Utilities======
+
Download a driver file DriverAssitant_v5.1.1.zip under the “tools” directory from [http://download.friendlyelec.com/{{#replace:{{#replace:{{BASEPAGENAME}}| |}}|/zh|}} network drive], extract and install it. <br />
+
Under the same directory, download a utility RKDevTool_Release_v2.84.zip and extract it. <br />
+
======Step 2: Connect {{{1}}} to PC and Enter Installation Mode======
+
1) Disconnect the connected USB cable and the power cord from {{{1}}}, eject the TF card;<br />
+
2) Press and hold the “Mask” key, power on the board. After the status LED has been on for at least 3 seconds, release the Mask key.<br />
+
3) Use a USB A-to-A cable, connect {{{1}}} to a PC as follows. Note: please pay attention to the USB port the USB cable is connected to in the screenshot. <br />
+
[[File:Nanopir4se-usba-to-usba.jpg|frameless|400px]]<br />
+
======Step 3: Install image to eMMC======
+
A firmware in general is packaged in either of the two options: the first is an whole image (ie, update.img) which is often offered by third party developers, the second is that an image is packaged and placed in multiple partition images. FriendlyElec offers an image in the latter option.
+
* Option 1: Install whole image (ie, update.img)<br />
+
On a PC which has the extracted RKDevTool_Release_v2.84 utility, go to the RKDevTool_Release_v2.84 directory, run the RKDevTool.exe file. If everything works, you will see a “Found a new Maskrom device” message on the utility;<br />
+
Go to “Upgrade Firmware(升级固件)”, click on “Firmware(固件)”, select your wanted image file, and click on “Upgrade(升级)” to install. After installation is done, your board will reboot automatically and load the system from eMMC;<br />
+
* Option 2: Install OS that is packaged & placed in multiple partition images<br />
+
Go to [http://download.friendlyelec.com/{{#replace:{{#replace:{{BASEPAGENAME}}| |}}|/zh|}} network drive] to download your needed package and extract it.
+
{| class="wikitable"
+
|-
+
  | colspan=2 | '''Image File'''
+
|-
+
  | rk3399-usb-friendlywrt-21.02-YYYYMMDD.img.gz
+
  | '''[[How to Build FriendlyWrt|FriendlyWrt]]'''<br/>Based on OpenWrt 21.02.3<br />Kernel version 5.15.y
+
|-
+
  | rk3399-usb-friendlywrt-21.02-docker-YYYYMMDD.img.gz
+
  | '''[[How to Build FriendlyWrt|FriendlyWrt]]'''<br/>Pre-installed Docker<br />Based on OpenWrt 21.02.3<br />Kernel version 5.15.y
+
|-
+
  | rk3399-usb-debian-buster-desktop-arm64-YYYYMMDD.img.gz
+
  | '''Debian 10(buster) Desktop'''<br />Uses LXDE as default desktop<br />Pre-installed mpv, smplayer and chromium brower<br />Supports hardware acceleration<br >Kernel version 5.15.y
+
|-
+
  | rk3399-usb-friendlycore-lite-focal-5.10-arm64-YYYYMMDD.img.gz
+
  | '''FriendlyCore'''<br />Minimal system<br />Based on Ubuntu core 20.04<br />kernel version 5.15.y
+
|}
+
After it is extracted, you will see some utilities and a configuration file under the directory. double click on RKDevTool.exe, you will see a “Found a new Maskrom device” message on the utility. Click on the “Execute”, wait a moment and it will be installed. After installation is done your system will automatically reboot and load the system from eMMC.<br />
+

Latest revision as of 09:58, 29 October 2024

1 安装系统到M.2或USB硬盘

可以通过使用TF卡启动eFlasher系统,将引导和系统分别安装到不同存储设备,但是由于CPU不支持直接从M.2和USB设备引导,所以虽然系统可以安装到M.2和USB设备,但是引导仍然需要安装到eMMC或者TF卡。
操作步骤如下:

  • 准备一张32G或以上容量的TF卡;
  • 访问此处的下载地址下载文件名为XXXX-eflasher-multiple-os-YYYYMMDD-30g.img.gz的固件(位于"01_系统固件/02_SD卡刷机固件(SD-to-eMMC)"目录);
  • 将固件写入TF卡,在NanoPC-T4上连接好存储设备,插入TF卡上电开机,接下来要在界面上操作,如果没有显示设备,可以使用VNC代替,请参考使用VNC操作eFlasher;
  • 在eFlasher界面上,首先选择要安装的OS,然后选择引导安装的目的地 (通常选eMMC),以及选择系统安装的目的地(可以选eMMC,M.2硬盘,USB存储设备等),如下图所示:

Eflasher-select-boot-and-system-device.png

  • 没有eMMC时可使用TF卡作为引导,方法是将另一个TF卡通过USB读卡器插入USB端口,然后选择USB设备作为引导安装目的地,从而实现从TF卡引导,但系统存放在M.2或USB硬盘的目的;
  • 烧写完成后,从NanoPC-T4弹出SD卡,引导在eMMC的情况下,NanoPC-T4会自动重启至你刚刚烧写的系统,如果引导安装在TF卡,则需要拨掉电源,插入TF引导卡再上电开机;
  • 更详细的安装指南请参考此处;

2 Installing the System to M.2 or USB Drive

You can use a TF card to boot the eFlasher system, allowing the boot and system to be installed on different storage devices. However, since the CPU doesn’t support booting directly from M.2 and USB devices, the system can be installed on M.2 and USB devices, but the boot must still be installed on eMMC or a TF card.
Steps are as follows:

  • Prepare a TF card with a capacity of 32GB or larger.
  • Visit [the download link here](http://download.friendlyelec.com/APITestPage) to download the firmware file named XXXX-eflasher-multiple-os-YYYYMMDD-30g.img.gz (located in the “01_Official images/02_SD-to-eMMC images” directory).
  • Flash the firmware to the TF card, connect the storage device you intend to use on NanoPC-T4, insert the TF card and power on, we need to perform the operations in the eFlasher GUI. If your NanoPC-T4 does not have a display interface, you can use VNC; refer to Using VNC to Operate eFlasher.
  • In the eFlasher GUI, select the OS to install, and in the OS settings interface, choose the destination for boot installation (typically eMMC), then choose the destination for system installation (options include eMMC, M.2 hard drive, USB storage, etc.), as shown below:

Eflasher-select-boot-and-system-device.png

  • If no eMMC is available, the TF card can serve as the boot by inserting another TF card into the USB port via a USB card reader and selecting it as the boot destination, enabling booting from the TF card with the system stored on the M.2 or USB drive.
  • After flashing, eject the SD card from NanoPC-T4. If booting from eMMC, NanoPC-T4 will automatically restart into the newly flashed system. If boot installation is on a TF card, power off, insert the boot TF card, and power on again.
  • For a more detailed installation guide, please refer to this link.