Skip to content

Commit

Permalink
Adjust the display of README
Browse files Browse the repository at this point in the history
  • Loading branch information
ophub committed Oct 21, 2021
1 parent 26cd301 commit 66f31c4
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 33 deletions.
70 changes: 37 additions & 33 deletions README.cn.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,38 @@
armbian-install
```

- ### 更新 Armbian 内核

查询 [可选内核](https://github.com/ophub/flippy-kernel/tree/main/library) 版本,登录 Armbian 系统 → 输入命令:

```yaml
# 使用 root 用户运行 (sudo -i), 输入命令: armbian-update <内核版本>
armbian-update 5.10.66
```

- ### 安装 Docker 服务

登录 Armbian 系统 → 输入命令:

```yaml
armbian-docker
```

- ### 修改 Armbian 配置

登录 Armbian 系统 → 输入命令:

```yaml
armbian-config
```

- ### 当在 TF/USB 中使用 Armbian 时如何激活剩余空间

登录 Armbian 系统 → 输入命令:

```yaml
armbian-tf
```

<details>
<summary>或者手动分配剩余空间 </summary>
Expand All @@ -39,8 +71,10 @@ armbian-install
```yaml
# 1. 根据空间大小确认 TF/USB 的名称,TF卡为 [ mmcblk ],USB 为[ sd ]
在命令行中: 输入 [ fdisk -l | grep "sd" ] 查看卡的名称

# 2. 获取剩余空间的起始值,复制并保存,下面使用(例如:5382144)
在命令行中: 输入 [ fdisk -l | grep "sd" | sed -n '$p' | awk '{print $3}' | xargs -i expr {} + 1 ] 得到剩余空间起始值

# 3. 开始分配未使用的空间(例如:sda、mmcblk0 或 mmcblk1)
在命令行中: 输入 [ fdisk /dev/sda ] 开始分配剩余空间
在命令行中: 输入 [ n ] 创建新分区
Expand All @@ -54,11 +88,14 @@ armbian-install
在命令行中: 指定分区类型为 Linux,输入代码 [ 83 ]
在命令行中: 输入 [ w ] 保存结果
在命令行中: 输入 [ reboot ] 重启

# 4. 重新启动后,格式化新分区
在命令行中: 输入 [ mkfs.ext4 -F -L SHARED /dev/sda3 ] 格式新分区

# 5. 为新分区设置挂载目录
在命令行中: 输入 [ mkdir -p /mnt/share ] 创建新分区的挂载目录
在命令行中: 输入 [ mount -t ext4 /dev/sda3 /mnt/share ] 进行挂载

# 6. 添加开机自动挂载
在命令行中: [ vi /etc/fstab ]
# 按 [ i ] 进入编译模式,将下面的代码复制,黏贴到文件的末尾处
Expand All @@ -67,39 +104,6 @@ armbian-install
```
</details>

- ### 更新 Armbian 内核

查询 [可选内核](https://github.com/ophub/flippy-kernel/tree/main/library) 版本,登录 Armbian 系统 → 输入命令:

```yaml
# 使用 root 用户运行 (sudo -i), 输入命令: armbian-update <内核版本>
armbian-update 5.10.66
```

- ### 安装 Docker 服务

登录 Armbian 系统 → 输入命令:

```yaml
armbian-docker
```

- ### 修改 Armbian 配置

登录 Armbian 系统 → 输入命令:

```yaml
armbian-config
```

- ### 当在 TF/USB 中使用 Armbian 时如何激活剩余空间

登录 Armbian 系统 → 输入命令:

```yaml
armbian-tf
```

## Armbian 固件制作方法

- 不同的 Amlogic armbian 固件,使用对应的 soc 代码生成。 请根据你的盒子的 soc 型号进行选择。支持 `s922x``s922x-n2``s905x3``s905x2``s912``s905d``s905x``s905w` 。说明:`s922x-n2``s922x-odroid-n2`
Expand Down
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,10 @@ armbian-tf
```yaml
# 1. Confirm the name of the TF/USB according to the size of the space. The TF is [ `mmcblk` ], USB is [ `sd` ]
Command: Enter [ fdisk -l | grep "sd" ]

# 2. Get the starting value of the remaining space, Copy and save, used below (E.g: 5382144)
Command: Enter [ fdisk -l | grep "sd" | sed -n '$p' | awk '{print $3}' | xargs -i expr {} + 1 ]

# 3. Start allocating unused space (E.g: sda, mmcblk0 or mmcblk1)
Command: Enter [ fdisk /dev/sda ] Start allocating the remaining space
Command: Select [ n ] to create a partition
Expand All @@ -86,11 +88,14 @@ Command: Enter Partition number [ 3 ]
Command: Enter Hex code (type L to list all codes): [ 83 ]
Command: Enter [ w ] to save
Command: Enter [ reboot ] to restart

# 4. After restarting, format the new partition
Command: Enter [ mkfs.ext4 -F -L SHARED /dev/sda3 ] to format the new partition

# 5. Set the mount directory for the new partition
Command: Enter [ mkdir -p /mnt/share ] to Create mount directory
Command: Enter [ mount -t ext4 /dev/sda3 /mnt/share ] to Mount the newly created partition to the directory

# 6. Add automatic mount at boot
Command: Enter [ vi /etc/fstab ]
# Press [ i ] to enter the input mode, copy the following values to the end of the file
Expand Down

0 comments on commit 66f31c4

Please sign in to comment.