Difference between revisions of "APITestPage"

From FriendlyELEC WiKi
Jump to: navigation, search
(updated by API)
(updated by API)
 
(157 intermediate revisions by the same user not shown)
Line 1: Line 1:
[[How to install chinese input method on NanoPC-T4|English]]
 
  
==Step1: 安装中文语言包==
+
{{RockchipUnbrick|NanoPC-T4}}
<syntaxhighlight lang="bash">
+
sudo apt-get install language-pack-zh-hans
+
</syntaxhighlight>
+
 
+
==Step2: 安装字体==
+
<syntaxhighlight lang="bash">
+
sudo apt-get install fonts-arphic-bkai00mp fonts-arphic-bsmi00lp fonts-arphic-gbsn00lp fonts-arphic-ukai
+
</syntaxhighlight>
+
 
+
==Step3: 将系统默认语言切换成中文==
+
<syntaxhighlight lang="bash">
+
sudo dpkg-reconfigure locales
+
</syntaxhighlight>
+
命令执行之后进入交互界面,使用上下箭头单行移动,使用PageUp和PageDown翻页,使用空格键选中,选择en_US.UTF-8和zh_CN.UTF-8然后回车。<br />
+
然后会让你选择系统默认的语言,需要选择zh_CN.UTF-8并回车: <br />
+
[[File:friendlydesktop-zhcn-utf8-local.png|frameless|600px]]
+
重启一下:
+
<syntaxhighlight lang="bash">
+
sudo reboot
+
</syntaxhighlight>
+
可以看到系统语言已经切换成中文:
+
[[File:friendlydesktop-zhcn-desktopt.png|frameless|600px]]
+
 
+
==Step4: 安装中文拼音输入法==
+
默认是没有中文输入法的,需要用以下命令安装:
+
<syntaxhighlight lang="bash">
+
sudo apt-get install ibus-pinyin
+
sudo apt-get install ibus-sunpinyin
+
</syntaxhighlight>
+
安装完毕后,重启一下IBus服务:
+
<syntaxhighlight lang="bash">
+
ibus restart
+
</syntaxhighlight>
+
现在可以点击右上角的键盘图标,进入Perference界面添加中文拼音输入法了,如下图所示:
+
<div><ul>
+
<li style="display: inline-block;">[[File:friendlydesktop-add-pinyin.png|300px]]</li>
+
<li style="display: inline-block;">[[File:friendlydesktop-add-pinyin2.png|300px]] </li>
+
</ul></div>
+
可以愉快地使用拼音输入法打字了:<br />
+
[[File:friendlydesktop-input-chinese-text.png|frameless|600px]]
+
==其他: 安装五笔输入法==
+
用以下命令安装软件包后,就可以选择五笔输入法了:
+
<syntaxhighlight lang="bash">
+
sudo apt-get install ibus-table-wubi
+
ibus restart
+
</syntaxhighlight>
+

Latest revision as of 09:23, 4 June 2024

1 Unbricking Method

If the ROM is not installed correctly, causing the development board to become bricked, and you might not have the opportunity to reinstall the ROM via an SD card, you need to enter Maskrom mode to unbrick it by erasing the storage device.

1.1 Windows Users

1.1.1 Download Required Files

  • Get the necessary tools: Visit here, find RKDevTool_v3.19_for_window.zip and DriverAssitant_v5.12.zip in the 05_Tools directory, and download them to your local machine.
  • Install Rockchip USB driver and RKDevTool: Extract DriverAssitant_v5.12.zip to install the Rockchip USB driver, and extract RKDevTool_v3.19_for_window.zip to obtain the Rockchip flashing tool RKDevTool.
  • Get the loader: Visit here, enter the tools directory corresponding to your CPU model, and download MiniLoaderAll.bin.

1.1.2 Enter Maskrom Mode to Erase the Storage Device

  • Connect NanoPC-T4 to your computer using a USB data cable.
  • Start RKDevTool on your computer.
  • Disconnect the power from NanoPC-T4, hold down the MASK button, connect the power, and release the button when you see Found One MASKROM Device displayed at the bottom of the interface, as shown below:

Rkdevtool found one maskrom device.png

  • Click the Advanced Function tab in the RKDevTool interface.
  • In the Boot text box, select MiniLoaderAll.bin, then click the Download button.
  • Select EMMC, click Switch Storage, then click the EraseAll button to erase the eMMC.

Rkdevtool erase emmc.png

  • At this point, NanoPC-T4 is restored to its initial state and can be normally booted via SD card or eMMC.

1.2 Linux/Mac Users

1.2.1 Download the Required Files

  • Get the necessary tools: Visit here and find upgrade_tool_v2.30_for_linux.tgz (or for Mac users, select upgrade_tool_v2.25_for_mac.tgz) in the 05_Tools directory and download it locally.
  • Get the loader: Visit here, enter the tools directory corresponding to your CPU model, and download MiniLoaderAll.bin.

1.2.2 Installation for upgrade_tool

The following commands are for Linux, with only slight differences in file and directory names for Mac users:

tar xzf upgrade_tool_v2.30_for_linux.tgz
cd upgrade_tool_v2.30_for_linux
sudo cp upgrade_tool /usr/local/sbin/
sudo chmod 755 /usr/local/sbin/upgrade_tool

1.2.3 Enter Maskrom Mode to Erase the Storage Device

  • Connect NanoPC-T4 to the computer using a USB data cable.
  • Disconnect the power from NanoPC-T4, hold down the MASK button, connect the power, and release the button after 4 seconds.
  • Check the connection with the following command:
upgrade_tool LD

A result similar to "DevNo=1 Vid=0x2207,Pid=0x350b,LocationID=13 Mode=Maskrom SerialNo=" indicates that the device has been detected.

  • Erase the eMMC with the following command:
upgrade_tool EF MiniLoaderAll.bin
  • At this point, NanoPC-T4 has been restored to its initial state and can boot the system normally via SD card or eMMC.