-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: nio-12l: add ubuntu user guide
Signed-off-by: Stephen Chen <stephen@radxa.com>
- Loading branch information
1 parent
b0093e4
commit 207c421
Showing
4 changed files
with
194 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
sidebar_position: 9 | ||
--- | ||
|
||
# Ubuntu 系统 | ||
|
||
介绍 Ubuntu 系统使用等。 | ||
|
||
<DocCardList /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
--- | ||
sidebar_position: 5 | ||
--- | ||
|
||
# Ubuntu 用户指南 | ||
|
||
## 默认用户名和密码 | ||
|
||
<pre> | ||
username : ubuntu | ||
password : ubuntu | ||
</pre> | ||
|
||
## 访问设备 | ||
|
||
### 选项一:使用 HDMI 显示器,USB 键盘和鼠标 | ||
|
||
可以在 HDMI 显示器看到桌面系统。 | ||
|
||
### 选项二:SSH | ||
|
||
SSH 服务默认是使能的。 | ||
可以在路由器管理界面查看设备的 IP;或者是通过电脑主机的 [angryip](https://angryip.org/) 来找到设备的 IP。 | ||
|
||
<pre> | ||
$ ping ip-of-device | ||
$ ssh ubuntu@ip-of-device | ||
</pre> | ||
|
||
第一次登陆,会强制让用户修改密码。请按照提示操作。 | ||
|
||
### 选项三:串口 | ||
|
||
可以参照 [NIO 12L 串口使用](/nio/nio12l/low-level-dev/serial)。 | ||
|
||
## 添加源并安装视频硬件包 | ||
|
||
<pre> | ||
$ sudo apt-add-repository ppa:mediatek-genio/genio-public | ||
$ sudo apt update | ||
$ sudo apt install mediatek-vpud-genio1200 | ||
$ sudo apt install gstreamer1.0-plugins-base | ||
$ sudo apt install gstreamer1.0-plugins-good | ||
$ sudo apt install gstreamer1.0-plugins-bad | ||
$ sudo rm ~/.cache/gstreamer-1.0/registry.aarch64.bin | ||
</pre> | ||
|
||
## 更新内核 | ||
|
||
下载最新的 kernel 包,并安装 | ||
|
||
<pre> | ||
$ wget https://dl.radxa.com/nio12l/images/ubuntu/radxa-nio-12l-kernel-5.15.0-1029.33-packages.tar.gz | ||
$ tar zxvf radxa-nio-12l-kernel-5.15.0-1029.33-packages.tar.gz | ||
$ sudo dpkg -i radxa-nio-12l-kernel-5.15.0-1029.33-packages/*.deb | ||
</pre> | ||
|
||
安装完内核后,需要重启才生效。 | ||
|
||
## 使用触摸屏 Radxa Display 8HD | ||
|
||
### 步骤一:更新内核到最新 | ||
|
||
最新的内核版本是 5.15.0-1029.33。 | ||
|
||
### 步骤二:添加 radxa-nio-12l-radxa-display-8hd dt overlay | ||
|
||
进入主机中存放 ubuntu 镜像文件的顶层目录。 | ||
修改文件 `u-boot-initial-env`。 | ||
找到 `list_dtbo=` 行,追加写入 `radxa-nio-12l-radxa-display-8hd.dtbo` 字符串。如: | ||
|
||
<pre> | ||
list_dtbo= gpu-mali.dtbo video.dtbo ddr-8g.dtbo radxa-nio-12l-radxa-display-8hd.dtbo | ||
</pre> | ||
|
||
### 步骤三:执行命令 `genio-flash board-assets` | ||
|
||
<pre> | ||
$ genio-flash board-assets | ||
</pre> | ||
|
||
### 步骤四:板子进入下载模式 | ||
|
||
参照[NIO 12L 进入烧录模式](/en/nio/nio12l/installation/install-ubuntu-image-on-linux-pc#enter-download-mode) | ||
|
||
这样主机将会把新的 `u-boot-initial-env` 更新到设备中。 | ||
|
||
断电重启设备后,将会看到 8HD 触摸屏显示桌面。 |
9 changes: 9 additions & 0 deletions
9
i18n/en/docusaurus-plugin-content-docs/current/nio/nio12l/ubuntu/README.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
sidebar_position: 9 | ||
--- | ||
|
||
# Ubuntu | ||
|
||
We will introduce the usage of Ubuntu and so on. | ||
|
||
<DocCardList /> |
88 changes: 88 additions & 0 deletions
88
...n/docusaurus-plugin-content-docs/current/nio/nio12l/ubuntu/ubuntu-user-guide.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
--- | ||
sidebar_position: 5 | ||
--- | ||
|
||
# Ubuntu User guide | ||
|
||
## Default user name and password | ||
|
||
<pre> | ||
username : ubuntu | ||
password : ubuntu | ||
</pre> | ||
|
||
## Access the device | ||
|
||
### Option one: Use HDMI monitor, USB keyboard and mouse | ||
|
||
You can view the Desktop on the monitor. | ||
|
||
### Option two: SSH | ||
|
||
ssh service is enabled by default. | ||
You can find the IP from the router management windows or [angryip](https://angryip.org/). | ||
|
||
<pre> | ||
$ ping ip-of-device | ||
$ ssh ubuntu@ip-of-device | ||
</pre> | ||
|
||
The first login will force the user to change their password. Please follow the prompts. | ||
|
||
### Option three: Serial port | ||
|
||
Please refer to [NIO 12L serial port usage](/nio/nio12l/low-level-dev/serial). | ||
|
||
## Add APT source and install video hardware packages | ||
|
||
<pre> | ||
$ sudo apt-add-repository ppa:mediatek-genio/genio-public | ||
$ sudo apt update | ||
$ sudo apt install mediatek-vpud-genio1200 | ||
$ sudo apt install gstreamer1.0-plugins-base | ||
$ sudo apt install gstreamer1.0-plugins-good | ||
$ sudo apt install gstreamer1.0-plugins-bad | ||
$ sudo rm ~/.cache/gstreamer-1.0/registry.aarch64.bin | ||
</pre> | ||
|
||
## Update kernel | ||
|
||
Download the latest kernel packages and install them. | ||
|
||
<pre> | ||
$ wget https://dl.radxa.com/nio12l/images/ubuntu/radxa-nio-12l-kernel-5.15.0-1029.33-packages.tar.gz | ||
$ tar zxvf radxa-nio-12l-kernel-5.15.0-1029.33-packages.tar.gz | ||
$ sudo dpkg -i radxa-nio-12l-kernel-5.15.0-1029.33-packages/*.deb | ||
</pre> | ||
|
||
After installing the kernel, a restart is required for it to take effect. | ||
|
||
## Use Radxa Display 8HD Touchscreen | ||
|
||
### Step one: Update the kernel to the latest version | ||
|
||
The latest kernel version is 5.15.0-1029.33. | ||
|
||
### Step two: Add radxa-nio-12l-radxa-display-8hd dt overlay | ||
|
||
Navigate to the top level of directory including ubuntu system files. | ||
Modify file `u-boot-initial-env`. | ||
Find the line `list_dtbo=` and write `radxa-nio-12l-radxa-display-8hd.dtbo` at the end of the line. Like this: | ||
|
||
<pre> | ||
list_dtbo= gpu-mali.dtbo video.dtbo ddr-8g.dtbo radxa-nio-12l-radxa-display-8hd.dtbo | ||
</pre> | ||
|
||
### Step three: Execute the command `genio-flash board-assets` | ||
|
||
<pre> | ||
$ genio-flash board-assets | ||
</pre> | ||
|
||
### Step four: Boot the device to download mode | ||
|
||
Please refer to [NIO 12L Download mode](/en/nio/nio12l/installation/install-ubuntu-image-on-linux-pc#enter-download-mode) | ||
|
||
The Host PC will update the `u-boot-initial-env` to the device OS. | ||
|
||
Power cycle the device and you will see the Desktop on the 8HD touchscreen. |