diff --git a/README.en.md b/README.en.md index 40ce8a098af34e016ed25671b1650abaa32e45b3..97074dba00bfb174fc329a6910aaa9b5596931b7 100644 --- a/README.en.md +++ b/README.en.md @@ -54,29 +54,29 @@ Basic information of the image is as follows:

Repository of rootfs

-openEuler 20.03 LTS alpha4 +openEuler 20.03 LTS alpha5 ChangeLog -

2021/01/06

-

217 MiB

-

4.19.90-2012.5.0

+

2021/01/19

+

212 MiB

+

4.19.90-2101.1.0

openEuler 20.03 LTS repository built daily -openEuler 20.09 alpha4 +openEuler 20.09 alpha5 ChangeLog -

2021/01/06

-

243 MiB

-

4.19.140-2012.2.0.0006

+

2021/01/19

+

236 MiB

+

4.19.140-2101.1.0.0007

openEuler 20.09 repository built daily -openEuler 20.09 alpha5 (with Xfce desktop environment) +openEuler 20.09 alpha6 (with Xfce desktop environment) ChangeLog -

2021/01/06

-

922 MiB

+

2021/01/19

+

903 MiB

4.19.138-2008.1.0.0001

openEuler 20.09 repository @@ -90,28 +90,28 @@ Basic information of the image is as follows: openEuler 20.09 repository -openEuler 20.03 LTS SP1 alpha2 +openEuler 20.03 LTS SP1 alpha3 ChangeLog -

2021/01/06

-

239 MiB

+

2021/01/19

+

234 MiB

4.19.90-2012.5.0.0013

openEuler 20.03 LTS SP1 repository built daily -openEuler 20.03 LTS SP1 alpha2 (with UKUI desktop environment) +openEuler 20.03 LTS SP1 alpha3 (with UKUI desktop environment) ChangeLog -

2021/01/06

+

2021/01/19

1.0 GiB

4.19.90-2012.5.0.0013

openEuler 20.03 LTS SP1 repository built daily -openEuler 20.03 LTS SP1 alpha2 (with DDE desktop environment) +openEuler 20.03 LTS SP1 alpha3 (with DDE desktop environment) ChangeLog -

2021/01/06

+

2021/01/19

1.0 GiB

4.19.90-2012.5.0.0013

openEuler 20.03 LTS SP1 repository built daily diff --git a/README.md b/README.md index 6aa615f3ba06d79767b01f45298eb840f1b76960..f2078a9e6c2aa82ce71749cfb237f5a108770a2a 100644 --- a/README.md +++ b/README.md @@ -53,29 +53,29 @@ SIG 组基本信息位于 [sig-RaspberryPi](https://gitee.com/jianminw/community

构建文件系统的源仓库

-openEuler 20.03 LTS 内测版 +openEuler 20.03 LTS 内测版 更新日志 -

2021/01/06

-

217 MiB

-

4.19.90-2012.5.0

+

2021/01/19

+

212 MiB

+

4.19.90-2101.1.0

openEuler 20.03 LTS 每日构建的源仓库 -openEuler 20.09 内测版 +openEuler 20.09 内测版 更新日志 -

2021/01/06

-

243 MiB

-

4.19.140-2012.2.0.0006

+

2021/01/19

+

236 MiB

+

4.19.140-2101.1.0.0007

openEuler 20.09 每日构建源仓库 -openEuler 20.09 内测版(包含 Xfce 桌面环境) +openEuler 20.09 内测版(包含 Xfce 桌面环境) 更新日志 -

2021/01/06

-

922 MiB

+

2021/01/19

+

903 MiB

4.19.138-2008.1.0.0001

openEuler 20.09 源仓库 @@ -89,28 +89,28 @@ SIG 组基本信息位于 [sig-RaspberryPi](https://gitee.com/jianminw/community openEuler 20.09 源仓库 -openEuler 20.03 LTS SP1 内测版 +openEuler 20.03 LTS SP1 内测版 更新日志 -

2021/01/06

-

239 MiB

+

2021/01/19

+

234 MiB

4.19.90-2012.5.0.0013

openEuler 20.03 LTS SP1 每日构建源仓库 -openEuler 20.03 LTS SP1 内测版(包含 UKUI 桌面环境) +openEuler 20.03 LTS SP1 内测版(包含 UKUI 桌面环境) 更新日志 -

2021/01/06

+

2021/01/19

1.0 GiB

4.19.90-2012.5.0.0013

openEuler 20.03 LTS SP1 每日构建源仓库 -openEuler 20.03 LTS SP1 内测版(包含 DDE 桌面环境) +openEuler 20.03 LTS SP1 内测版(包含 DDE 桌面环境) 更新日志 -

2021/01/06

+

2021/01/19

1.0 GiB

4.19.90-2012.5.0.0013

openEuler 20.03 LTS SP1 每日构建源仓库 diff --git a/documents/changelog/changelog-20.03-LTS-SP1-DDE.en.md b/documents/changelog/changelog-20.03-LTS-SP1-DDE.en.md index 1905ac81a4886ef8a806e69c5db5a10c25a3ea29..4ba1b72bacf672dba15a2a462659223bb07031ec 100644 --- a/documents/changelog/changelog-20.03-LTS-SP1-DDE.en.md +++ b/documents/changelog/changelog-20.03-LTS-SP1-DDE.en.md @@ -2,6 +2,25 @@ English | [简体中文](./changelog-20.03-LTS-SP1-DDE.md) +### 2021-01-19 + +#### Basic information + +- Release date: 2021/01/19 +- Size: 1.0 GiB +- OS version: openEuler 20.03 LTS SP1 +- Kernel version: 4.19.90-2012.5.0.0013 +- Firmware source: [firmware](https://github.com/raspberrypi/firmware), [bluez-firmware](https://github.com/RPi-Distro/bluez-firmware), [firmware-nonfree](https://github.com/RPi-Distro/firmware-nonfree) +- Repository of rootfs: [openEuler 20.03 LTS SP1 repository built daily](http://119.3.219.20:82/openEuler:/20.03:/LTS:/SP1/standard_aarch64/aarch64/) +- Repository inside the image: [openEuler 20.03 LTS SP1 repository](https://gitee.com/src-openeuler/openEuler-repos/blob/openEuler-20.03-LTS-SP1/generic.repo) + +#### Updates + +##### Feature update + +- Install openssh-clients. +- Fixed: missing files' extended attributes. + ### 2021-01-06 #### Basic information diff --git a/documents/changelog/changelog-20.03-LTS-SP1-DDE.md b/documents/changelog/changelog-20.03-LTS-SP1-DDE.md index 55218d87437d66c6203c8a5d6b78991bcf7e2184..2bc636397b14c2ad2fccdff53078a2b35c5d12c6 100644 --- a/documents/changelog/changelog-20.03-LTS-SP1-DDE.md +++ b/documents/changelog/changelog-20.03-LTS-SP1-DDE.md @@ -2,6 +2,25 @@ [English](./changelog-20.03-LTS-SP1-DDE.en.md) | 简体中文 +### 2021-01-19 + +#### 基本信息 + +- 发布时间:2021/01/19 +- 大小:1.0 GiB +- 操作系统版本:openEuler 20.03 LTS SP1 +- 内核版本:4.19.90-2012.5.0.0013 +- 固件来源:[firmware](https://github.com/raspberrypi/firmware)、[bluez-firmware](https://github.com/RPi-Distro/bluez-firmware)、[firmware-nonfree](https://github.com/RPi-Distro/firmware-nonfree) +- 构建文件系统的源仓库:[openEuler 20.03 LTS SP1 每日构建的源仓库](http://119.3.219.20:82/openEuler:/20.03:/LTS:/SP1/standard_aarch64/aarch64/) +- 镜像内置源仓库:[openEuler 20.03 LTS SP1 源仓库](https://gitee.com/src-openeuler/openEuler-repos/blob/openEuler-20.03-LTS-SP1/generic.repo) + +#### 更新说明 + +##### 功能改动 + +- 安装 openssh-clients。 +- 修复:缺失文件扩展属性。 + ### 2021-01-06 #### 基本信息 diff --git a/documents/changelog/changelog-20.03-LTS-SP1-UKUI.en.md b/documents/changelog/changelog-20.03-LTS-SP1-UKUI.en.md index 0f6a41659b9cb38a613e953c9f3757583dc9d6df..24d6e850cd4bf185b11918b88b2d6dc62bc228d9 100644 --- a/documents/changelog/changelog-20.03-LTS-SP1-UKUI.en.md +++ b/documents/changelog/changelog-20.03-LTS-SP1-UKUI.en.md @@ -2,6 +2,25 @@ English | [简体中文](./changelog-20.03-LTS-SP1-UKUI.md) +### 2021-01-19 + +#### Basic information + +- Release date: 2021/01/19 +- Size: 1.0 GiB +- OS version: openEuler 20.03 LTS SP1 +- Kernel version: 4.19.90-2012.5.0.0013 +- Firmware source: [firmware](https://github.com/raspberrypi/firmware), [bluez-firmware](https://github.com/RPi-Distro/bluez-firmware), [firmware-nonfree](https://github.com/RPi-Distro/firmware-nonfree) +- Repository of rootfs: [openEuler 20.03 LTS SP1 repository built daily](http://119.3.219.20:82/openEuler:/20.03:/LTS:/SP1/standard_aarch64/aarch64/) +- Repository inside the image: [openEuler 20.03 LTS SP1 repository](https://gitee.com/src-openeuler/openEuler-repos/blob/openEuler-20.03-LTS-SP1/generic.repo) + +#### Updates + +##### Feature update + +- Install openssh-clients. +- Fixed: missing files' extended attributes. + ### 2021-01-06 #### Basic information diff --git a/documents/changelog/changelog-20.03-LTS-SP1-UKUI.md b/documents/changelog/changelog-20.03-LTS-SP1-UKUI.md index 42298cc42b952bb1c72c901bc382666d2950957f..a5d34a2dbcec728fa3082d90d36a3b7ea7317e66 100644 --- a/documents/changelog/changelog-20.03-LTS-SP1-UKUI.md +++ b/documents/changelog/changelog-20.03-LTS-SP1-UKUI.md @@ -2,6 +2,25 @@ [English](./changelog-20.03-LTS-SP1-UKUI.en.md) | 简体中文 +### 2021-01-19 + +#### 基本信息 + +- 发布时间:2021/01/19 +- 大小:1.0 GiB +- 操作系统版本:openEuler 20.03 LTS SP1 +- 内核版本:4.19.90-2012.5.0.0013 +- 固件来源:[firmware](https://github.com/raspberrypi/firmware)、[bluez-firmware](https://github.com/RPi-Distro/bluez-firmware)、[firmware-nonfree](https://github.com/RPi-Distro/firmware-nonfree) +- 构建文件系统的源仓库:[openEuler 20.03 LTS SP1 每日构建的源仓库](http://119.3.219.20:82/openEuler:/20.03:/LTS:/SP1/standard_aarch64/aarch64/) +- 镜像内置源仓库:[openEuler 20.03 LTS SP1 源仓库](https://gitee.com/src-openeuler/openEuler-repos/blob/openEuler-20.03-LTS-SP1/generic.repo) + +#### 更新说明 + +##### 功能改动 + +- 安装 openssh-clients。 +- 修复:缺失文件扩展属性。 + ### 2021-01-06 #### 基本信息 diff --git a/documents/changelog/changelog-20.03-LTS-SP1.en.md b/documents/changelog/changelog-20.03-LTS-SP1.en.md index 0588c64f4802bf4c73c24dd1febf06a2df427e0e..27cf522ed7758916857408d59fc790ebc6481e09 100644 --- a/documents/changelog/changelog-20.03-LTS-SP1.en.md +++ b/documents/changelog/changelog-20.03-LTS-SP1.en.md @@ -2,6 +2,25 @@ English | [简体中文](./changelog-20.03-LTS-SP1.md) +### 2021-01-19 + +#### Basic information + +- Release date: 2021/01/19 +- Size: 234 MiB +- OS version: openEuler 20.03 LTS SP1 +- Kernel version: 4.19.90-2012.5.0.0013 +- Firmware source: [firmware](https://github.com/raspberrypi/firmware), [bluez-firmware](https://github.com/RPi-Distro/bluez-firmware), [firmware-nonfree](https://github.com/RPi-Distro/firmware-nonfree) +- Repository of rootfs: [openEuler 20.03 LTS SP1 repository built daily](http://119.3.219.20:82/openEuler:/20.03:/LTS:/SP1/standard_aarch64/aarch64/) +- Repository inside the image: [openEuler 20.03 LTS SP1 repository](https://gitee.com/src-openeuler/openEuler-repos/blob/openEuler-20.03-LTS-SP1/generic.repo) + +#### Updates + +##### Feature update + +- Install openssh-clients. +- Fixed: missing files' extended attributes. + ### 2021-01-06 #### Basic information diff --git a/documents/changelog/changelog-20.03-LTS-SP1.md b/documents/changelog/changelog-20.03-LTS-SP1.md index 343c73c7c0075438b5c6e44f3def2a57db22f883..c1351f3df26588a36d46d05cf324b3c0d062fa65 100644 --- a/documents/changelog/changelog-20.03-LTS-SP1.md +++ b/documents/changelog/changelog-20.03-LTS-SP1.md @@ -2,6 +2,25 @@ [English](./changelog-20.03-LTS-SP1.en.md) | 简体中文 +### 2021-01-19 + +#### 基本信息 + +- 发布时间:2021/01/19 +- 大小:234 MiB +- 操作系统版本:openEuler 20.03 LTS SP1 +- 内核版本:4.19.90-2012.5.0.0013 +- 固件来源:[firmware](https://github.com/raspberrypi/firmware)、[bluez-firmware](https://github.com/RPi-Distro/bluez-firmware)、[firmware-nonfree](https://github.com/RPi-Distro/firmware-nonfree) +- 构建文件系统的源仓库:[openEuler 20.03 LTS SP1 每日构建的源仓库](http://119.3.219.20:82/openEuler:/20.03:/LTS:/SP1/standard_aarch64/aarch64/) +- 镜像内置源仓库:[openEuler 20.03 LTS SP1 源仓库](https://gitee.com/src-openeuler/openEuler-repos/blob/openEuler-20.03-LTS-SP1/generic.repo) + +#### 更新说明 + +##### 功能改动 + +- 安装 openssh-clients。 +- 修复:缺失文件扩展属性。 + ### 2021-01-06 #### 基本信息 diff --git a/documents/changelog/changelog-20.03-LTS.en.md b/documents/changelog/changelog-20.03-LTS.en.md index 60e37b9c254ca569e19f9c3b0aeb050eb53e61fd..010d426352da91526f1b4817be830f2372b6a58f 100644 --- a/documents/changelog/changelog-20.03-LTS.en.md +++ b/documents/changelog/changelog-20.03-LTS.en.md @@ -2,6 +2,29 @@ English | [简体中文](./changelog-20.03-LTS.md) +### 2021-01-19 + +#### Basic information + +- Release date: 2021/01/19 +- Size: 212 MiB +- OS version: openEuler 20.03 LTS +- Kernel version: 4.19.90-2101.1.0 +- Firmware source: [firmware](https://github.com/raspberrypi/firmware), [bluez-firmware](https://github.com/RPi-Distro/bluez-firmware), [firmware-nonfree](https://github.com/RPi-Distro/firmware-nonfree) +- Repository of rootfs: [openEuler 20.03 LTS repository built daily](http://119.3.219.20:82/openEuler:/20.03:/LTS/standard_aarch64/aarch64/) +- Repository inside the image: [openEuler 20.03 LTS repository](https://gitee.com/src-openeuler/openEuler-repos/blob/openEuler-20.03-LTS/generic.repo) + +#### Updates + +##### Kernel + +Update to the latest stable version of openEuler: 4.19.90-2101.1.0. + +##### Feature update + +- Install openssh-clients. +- Fixed: missing files' extended attributes. + ### 2021-01-06 #### Basic information diff --git a/documents/changelog/changelog-20.03-LTS.md b/documents/changelog/changelog-20.03-LTS.md index ee6ca471aade2e74a2fb86e05e23b03f6f85f221..4d0c86c5bcb58967f4aabab63c1b3e4d7560ce06 100644 --- a/documents/changelog/changelog-20.03-LTS.md +++ b/documents/changelog/changelog-20.03-LTS.md @@ -2,6 +2,29 @@ [English](./changelog-20.03-LTS.en.md) | 简体中文 +### 2021-01-19 + +#### 基本信息 + +- 发布时间:2021/01/19 +- 大小:212 MiB +- 操作系统版本:openEuler 20.03 LTS +- 内核版本:4.19.90-2101.1.0 +- 固件来源:[firmware](https://github.com/raspberrypi/firmware)、[bluez-firmware](https://github.com/RPi-Distro/bluez-firmware)、[firmware-nonfree](https://github.com/RPi-Distro/firmware-nonfree) +- 构建文件系统的源仓库:[openEuler 20.03 LTS 每日构建的源仓库](http://119.3.219.20:82/openEuler:/20.03:/LTS/standard_aarch64/aarch64/) +- 镜像内置源仓库:[openEuler 20.03 LTS 源仓库](https://gitee.com/src-openeuler/openEuler-repos/blob/openEuler-20.03-LTS/generic.repo) + +#### 更新说明 + +##### 内核 + +更新到 openEuler 最新稳定版本 4.19.90-2101.1.0。 + +##### 功能改动 + +- 安装 openssh-clients。 +- 修复:缺失文件扩展属性。 + ### 2021-01-06 #### 基本信息 diff --git a/documents/changelog/changelog-20.09-Xfce.en.md b/documents/changelog/changelog-20.09-Xfce.en.md index 357c3267c0c7e08daabd7ddb95c6342bd04b9eee..0c65ce6d2e75431b89d27154c029b78d057f34fa 100644 --- a/documents/changelog/changelog-20.09-Xfce.en.md +++ b/documents/changelog/changelog-20.09-Xfce.en.md @@ -2,6 +2,25 @@ English | [简体中文](./changelog-20.09-Xfce.md) +### 2021-01-19 + +#### Basic information + +- Release date: 2021/01/19 +- Size: 903 MiB +- OS version: openEuler 20.09 +- Kernel version: 4.19.138-2008.1.0.0001 +- Firmware source: [firmware](https://github.com/raspberrypi/firmware), [bluez-firmware](https://github.com/RPi-Distro/bluez-firmware), [firmware-nonfree](https://github.com/RPi-Distro/firmware-nonfree) +- Repository of rootfs: [openEuler 20.09 repository](https://repo.openeuler.org/openEuler-20.09/) +- Repository inside the image: [openEuler 20.09 repository](https://repo.openeuler.org/openEuler-20.09/) + +#### Updates + +##### Feature update + +- Install openssh-clients. +- Fixed: missing files' extended attributes. + ### 2021-01-06 #### Basic information diff --git a/documents/changelog/changelog-20.09-Xfce.md b/documents/changelog/changelog-20.09-Xfce.md index 056fadf975a2fc25cedfdf51c8fa3ac2f4c291ce..0625af4041d4b5664a6796323c23d375a185b8c8 100644 --- a/documents/changelog/changelog-20.09-Xfce.md +++ b/documents/changelog/changelog-20.09-Xfce.md @@ -2,6 +2,25 @@ [English](./changelog-20.09-Xfce.en.md) | 简体中文 +### 2021-01-19 + +#### 基本信息 + +- 发布时间:2021/01/19 +- 大小:903 MiB +- 操作系统版本:openEuler 20.09 +- 内核版本:4.19.138-2008.1.0.0001 +- 固件来源:[firmware](https://github.com/raspberrypi/firmware)、[bluez-firmware](https://github.com/RPi-Distro/bluez-firmware)、[firmware-nonfree](https://github.com/RPi-Distro/firmware-nonfree) +- 构建文件系统的源仓库:[openEuler 20.09 源仓库](https://repo.openeuler.org/openEuler-20.09/) +- 镜像内置源仓库:[openEuler 20.09 源仓库](https://repo.openeuler.org/openEuler-20.09/) + +#### 更新说明 + +##### 功能改动 + +- 安装 openssh-clients。 +- 修复:文件扩展属性缺失。 + ### 2021-01-06 #### 基本信息 diff --git a/documents/changelog/changelog-20.09.en.md b/documents/changelog/changelog-20.09.en.md index 6e6205d81d693f1ee8fddb76b743f8d3dc1c5305..08d0492ef09eeda15138d36197bb79403fe8ab2b 100644 --- a/documents/changelog/changelog-20.09.en.md +++ b/documents/changelog/changelog-20.09.en.md @@ -2,6 +2,29 @@ English | [简体中文](./changelog-20.09.md) +### 2021-01-19 + +#### Basic information + +- Release date: 2021/01/19 +- Size: 236 MiB +- OS version: openEuler 20.09 +- Kernel version: 4.19.140-2101.1.0.0007 +- Firmware source: [firmware](https://github.com/raspberrypi/firmware), [bluez-firmware](https://github.com/RPi-Distro/bluez-firmware), [firmware-nonfree](https://github.com/RPi-Distro/firmware-nonfree) +- Repository of rootfs: [openEuler 20.09 repository built daily](https://gitee.com/src-openeuler/openEuler-repos/blob/openEuler-20.09/generic.repo) +- Repository inside the image: [openEuler 20.09 repository](http://repo.openeuler.org/openEuler-20.09/) + +#### Updates + +##### Kernel + +Update to the latest stable version of openEuler: 4.19.140-2101.1.0. + +##### Feature update + +- Install openssh-clients. +- Fixed: missing files' extended attributes. + ### 2021-01-06 #### Basic information diff --git a/documents/changelog/changelog-20.09.md b/documents/changelog/changelog-20.09.md index 2b531f5388119979e2adb5f97f5f4a2d7a374621..26cdabfb598c22b2c90cc1a87b01051039ae4387 100644 --- a/documents/changelog/changelog-20.09.md +++ b/documents/changelog/changelog-20.09.md @@ -2,6 +2,29 @@ [English](./changelog-20.09.en.md) | 简体中文 +### 2021-01-19 + +#### 基本信息 + +- 发布时间:2021/01/19 +- 大小:236 MiB +- 操作系统版本:openEuler 20.09 +- 内核版本:4.19.140-2101.1.0.0007 +- 固件来源:[firmware](https://github.com/raspberrypi/firmware)、[bluez-firmware](https://github.com/RPi-Distro/bluez-firmware)、[firmware-nonfree](https://github.com/RPi-Distro/firmware-nonfree) +- 构建文件系统的源仓库:[openEuler 20.09 每日构建的源仓库](https://gitee.com/src-openeuler/openEuler-repos/blob/openEuler-20.09/generic.repo) +- 镜像内置源仓库:[openEuler 20.09 源仓库](http://repo.openeuler.org/openEuler-20.09/) + +#### 更新说明 + +##### 内核 + +更新到 openEuler 最新稳定版本 4.19.140-2101.1.0。 + +##### 功能改动 + +- 安装 openssh-clients。 +- 修复:缺失文件扩展属性。 + ### 2021-01-06 #### 基本信息 diff --git "a/documents/openEuler\351\225\234\345\203\217\347\232\204\346\236\204\345\273\272.md" "b/documents/openEuler\351\225\234\345\203\217\347\232\204\346\236\204\345\273\272.md" index 80d82a0715d1c1b2faf508462fb711c5c3b65d10..f191c7ac43209ac0a9219c0842d29315606c1571 100644 --- "a/documents/openEuler\351\225\234\345\203\217\347\232\204\346\236\204\345\273\272.md" +++ "b/documents/openEuler\351\225\234\345\203\217\347\232\204\346\236\204\345\273\272.md" @@ -264,7 +264,7 @@ etc/ usr/ var/ `mkdir ${WORKDIR}/rootfs/etc/sysconfig/network-scripts` - `vim ${WORKDIR}/rootfs/etc/sysconfig/network-scripts/ifup-eth0` + `vim ${WORKDIR}/rootfs/etc/sysconfig/network-scripts/ifcfg-eth0` 内容: ``` @@ -448,13 +448,7 @@ UUID=a451bee4-4384-48a2-8d5a-d09c2dd9a1a swap swap defaults,noatime 0 0 ## rootfs 拷贝到镜像 -`cd ${WORKDIR}/rootfs/` - -`tar cpf ${WORKDIR}/rootfs.tar .` - -`cd ${WORKDIR}/root` - -`tar xpf ${WORKDIR}/rootfs.tar -C .` +`rsync -avHAXq ${WORKDIR}/rootfs/* ${WORKDIR}/root` ## boot 引导拷贝到镜像 diff --git "a/documents/\346\240\221\350\216\223\346\264\276\344\275\277\347\224\250.md" "b/documents/\346\240\221\350\216\223\346\264\276\344\275\277\347\224\250.md" index 5a77072299670e24dd6da42581f8831b42d1893e..2d1fb2e2ac9f935e97ec69ad267c3e07ec372de0 100644 --- "a/documents/\346\240\221\350\216\223\346\264\276\344\275\277\347\224\250.md" +++ "b/documents/\346\240\221\350\216\223\346\264\276\344\275\277\347\224\250.md" @@ -59,15 +59,52 @@ 2. ssh 远程登录 - 树莓派默认采用 DHCP 的方式自动获取 IP。如果树莓派连接已知路由器,可登录路由器查看,新增的 IP 即为树莓派 IP。 + 1. DHCP 自动获取 IP - ![](images/获取IP.png) + 树莓派默认采用 DHCP 的方式自动获取 IP。如果树莓派连接已知路由器,可登录路由器查看,新增的 IP 即为树莓派 IP。 - 从上图看到,树莓派对应 IP 为:192.168.31.109,使用命令 `ssh root@192.168.1.109` 后输入密码 `openeuler`,即可远程登录树莓派。 + ![](images/获取IP.png) - 如下图,登录成功后,树莓派即显示本机相关信息,包括本机 IP。 + 从上图看到,树莓派对应 IP 为:192.168.31.109,使用命令 `ssh root@192.168.31.109` 后输入密码 `openeuler`,即可远程登录树莓派。 - ![](images/登录树莓派.png) + 如下图,登录成功后,树莓派即显示本机相关信息,包括本机 IP。 + + ![](images/登录树莓派.png) + + 2. 设置固定 IP + + 1. 将树莓派的 SD 卡借助读卡器插到装有 Linux 操作系统的个人电脑,电脑中会读到两个分区:boot 分区和根目录分区。根目录分区挂载路径记为 ``。 + 2. 修改 `` 目录下的文件 `etc/sysconfig/network-scripts/ifcfg-eth0`,主要修改内容有: + - `BOOTPROTO` 设置为 `static`; + - 添加 `IPADDR`、`NETMASK`、`GATEWAY` 等字段。 + + 例如,我们设置树莓派 IP 为 192.168.31.109,同时根据实际情况设置其子网掩码和网关。最终,`/etc/sysconfig/network-scripts/ifcfg-eth0` 的内容如下: + + ``` + TYPE=Ethernet + PROXY_METHOD=none + BROWSER_ONLY=no + BOOTPROTO=static + DEFROUTE=yes + IPV4_FAILURE_FATAL=no + IPV6INIT=yes + IPV6_AUTOCONF=yes + IPV6_DEFROUTE=yes + IPV6_FAILURE_FATAL=no + IPV6_ADDR_GEN_MODE=stable-privacy + NAME=eth0 + UUID=851a6f36-e65c-3a43-8f4a-78fd0fc09dc9 + ONBOOT=yes + AUTOCONNECT_PRIORITY=-999 + DEVICE=eth0 + IPADDR=192.168.31.109 + NETMASK=255.255.255.0 + GATEWAY=192.168.31.1 + ``` + + 3. 在电脑中选择 SD 卡挂载的任一盘符,右键选择 `弹出上级驱动器`,待提示 `驱动器已成功弹出` 后拔出读卡器。 + 4. 将 SD 卡插入树莓派,并通电启动。 + 5. 树莓派启动成功后,使用命令 `ssh root@192.168.31.109` 后输入密码 `openeuler`,即可远程登录树莓派。 # 根目录分区扩展 @@ -181,7 +218,7 @@ Device Boot Start End Sectors Size Id Type ## 连接 wifi -这里我们介绍连接 wifi 的两种方式:nmcli 命令行和 nmtui 字符界面。 +这里我们介绍连接 wifi 的三种方式:nmcli 命令行、nmtui 字符界面、编辑配置文件。 1. nmcli 命令行 @@ -221,6 +258,48 @@ Device Boot Start End Sectors Size Id Type 7. 查看添加的 wifi 连接是否已激活(已激活的连接名称前有 `*` 标记)。如果未激活,选择该 wifi 连接,然后按下键盘右方向键选择 `Activate`,按 `Enter` 激活该连接。待激活完成后,选择 `Back`,按 `Enter` 退出该激活界面,回退到最初的 nmtui 字符界面。 8. 选择 `Quit`,然后按下键盘右方向键选择 `OK`,按 `Enter` 退出 nmtui 字符界面。 +3. 编辑配置文件 + + 1. 添加配置文件 /etc/sysconfig/network-scripts/ifcfg-`SSID`。例如,文件内容如下: + ``` + ESSID=SSID + MODE=Managed + KEY_MGMT=WPA-PSK + SECURITYMODE=open + MAC_ADDRESS_RANDOMIZATION=default + TYPE=Wireless + PROXY_METHOD=none + BROWSER_ONLY=no + BOOTPROTO=dhcp + DEFROUTE=yes + IPV4_FAILURE_FATAL=no + IPV6INIT=yes + IPV6_AUTOCONF=yes + IPV6_DEFROUTE=yes + IPV6_FAILURE_FATAL=no + IPV6_ADDR_GEN_MODE=stable-privacy + NAME=SSID + UUID=66d533cf-525d-46af-a17f-000465660b75 + DEVICE=wlan0 + ONBOOT=yes + ``` + + >![](public_sys-resources/icon-notice.gif) **须知:** + >- 上述 `SSID` 为之前扫描到的可供连接的 wifi 的 SSID。如果 SSID 中包含特殊字符,需将该文件中的 SSID 使用单引号括起来。 + >- 该 WiFi 连接为自动分配 IP,如需要设置静态 IP,请参考 `启用树莓派` 章节 `ssh 远程登录` 中 `设置固定 IP` 的方法。 + + 2. 添加配置文件 /etc/sysconfig/network-scripts/keys-`SSID`。例如,文件内容如下: + + ``` + WPA_PSK=PWD + ``` + + >![](public_sys-resources/icon-notice.gif) **须知:** + >- 上述 `SSID` 为之前扫描到的可供连接的 wifi 的 SSID。 + >- 上述 `PWD` 为对应 wifi 的密码。如果密码中包含特殊字符,需将密码使用单引号括起来。 + + 3. 执行命令 `systemctl restart NetworkManager` 重启 NetworkManager 服务,或者执行命令 `reboot` 重启树莓派。 + ## 查看 IP 和无线网卡信息 `ip a` diff --git a/scripts/build-image-common.sh b/scripts/build-image-common.sh index 818d8b696750d33fec4de63fab1120b614345c43..7cbc5e2441189f718a50f156f1acc850b0fc3cb9 100644 --- a/scripts/build-image-common.sh +++ b/scripts/build-image-common.sh @@ -216,7 +216,7 @@ prepare(){ LOG "prepare begin..." dnf clean all dnf makecache - dnf install -y bison flex openssl-devel bc wget dnf-plugins-core tar parted dosfstools grep bash xz kpartx + dnf install -y bison flex openssl-devel bc wget dnf-plugins-core rsync parted dosfstools grep bash xz kpartx repo_info_names=`cat ${repo_file} | grep "^\["` repo_baseurls=`cat ${repo_file} | grep "^baseurl="` @@ -469,7 +469,7 @@ make_rootfs(){ if [ ! -d $rootfs_dir/etc/sysconfig/network-scripts ]; then mkdir -p $rootfs_dir/etc/sysconfig/network-scripts fi - cp ${euler_dir}/ifup-eth0 $rootfs_dir/etc/sysconfig/network-scripts/ifup-eth0 + cp ${euler_dir}/ifcfg-eth0 $rootfs_dir/etc/sysconfig/network-scripts/ifcfg-eth0 mkdir -p ${rootfs_dir}/lib/firmware ${rootfs_dir}/usr/bin ${rootfs_dir}/lib/udev/rules.d ${rootfs_dir}/lib/systemd/system cp ${workdir}/bluez-firmware/broadcom/* ${rootfs_dir}/lib/firmware/ cp -r ${workdir}/firmware-nonfree/brcm/ ${rootfs_dir}/lib/firmware/ @@ -549,15 +549,9 @@ make_img(){ cp --preserve=mode,timestamps --no-preserve=ownership ${output_dir}/*.dtb ${boot_mnt}/ cp --preserve=mode,timestamps --no-preserve=ownership ${output_dir}/overlays/* ${boot_mnt}/overlays/ - if [ -f ${tmp_dir}/rootfs.tar ]; then - rm ${tmp_dir}/rootfs.tar - fi - pushd ${rootfs_dir} - rm -rf boot - tar cpf ${tmp_dir}/rootfs.tar . - popd + rm -rf ${rootfs_dir}/boot + rsync -avHAXq ${rootfs_dir}/* ${root_mnt} pushd ${root_mnt} - tar xpf ${tmp_dir}/rootfs.tar -C . for tmpdir in `ls ${output_dir}/lib/modules` do if [ -d ./lib/modules/${tmpdir} ]; then @@ -573,7 +567,6 @@ make_img(){ sync sleep 10 LOSETUP_D_IMG - rm ${tmp_dir}/rootfs.tar rm -rf ${rootfs_dir} losetup -D pushd ${img_dir} diff --git a/scripts/build-image.sh b/scripts/build-image.sh index 1447099626d73ab07037d3d6d4d5bdc3a0d2a6a1..8a4f19cb35d5b90ee79b89eaa03b9d5044e29b7e 100644 --- a/scripts/build-image.sh +++ b/scripts/build-image.sh @@ -189,7 +189,7 @@ prepare(){ LOG "prepare begin..." dnf clean all dnf makecache - dnf install -y dnf-plugins-core tar parted dosfstools grep bash xz kpartx + dnf install -y dnf-plugins-core rsync parted dosfstools grep bash xz kpartx if [ -d ${rootfs_dir} ]; then rm -rf ${rootfs_dir} @@ -257,7 +257,7 @@ make_rootfs(){ if [ ! -d $rootfs_dir/etc/sysconfig/network-scripts ]; then mkdir -p $rootfs_dir/etc/sysconfig/network-scripts fi - cp ${euler_dir}/ifup-eth0 $rootfs_dir/etc/sysconfig/network-scripts/ifup-eth0 + cp ${euler_dir}/ifcfg-eth0 $rootfs_dir/etc/sysconfig/network-scripts/ifcfg-eth0 mkdir -p ${rootfs_dir}/usr/bin ${rootfs_dir}/lib/udev/rules.d ${rootfs_dir}/lib/systemd/system if [ -d ${rootfs_dir}/usr/share/licenses/raspi ]; then mkdir -p ${rootfs_dir}/usr/share/licenses/raspi @@ -326,20 +326,11 @@ make_img(){ cp ${euler_dir}/config.txt ${boot_mnt}/ echo "console=serial0,115200 console=tty1 root=/dev/mmcblk0p3 rootfstype=ext4 elevator=deadline rootwait" > ${boot_mnt}/cmdline.txt - if [ -f ${tmp_dir}/rootfs.tar ]; then - rm ${tmp_dir}/rootfs.tar - fi - pushd ${rootfs_dir} - rm -rf boot - tar cpf ${tmp_dir}/rootfs.tar . - popd - pushd ${root_mnt} - tar xpf ${tmp_dir}/rootfs.tar -C . - popd + rm -rf ${rootfs_dir}/boot + rsync -avHAXq ${rootfs_dir}/* ${root_mnt} sync sleep 10 LOSETUP_D_IMG - rm ${tmp_dir}/rootfs.tar rm -rf ${rootfs_dir} losetup -D pushd ${img_dir} diff --git a/scripts/config-common/Dockerfile_makeraspi b/scripts/config-common/Dockerfile_makeraspi index 52c73163f227bd79898efff13e714d6d676c5051..cfa8efb1e1f7e5fe0f13cf33c1148ef506e6984d 100644 --- a/scripts/config-common/Dockerfile_makeraspi +++ b/scripts/config-common/Dockerfile_makeraspi @@ -6,7 +6,7 @@ RUN dnf -y install cmake gdb gcc gcc-c++ libstdc++-static ncurses ncurses-devel dnf -y clean all RUN dnf -y install module-init-tools git openssl-devel bc bison flex dnf-plugins-core dosfstools parted wget device-mapper-multipath grep xz kpartx -RUN dnf -y install tar passwd diffutils +RUN dnf -y install rsync passwd diffutils ENV SHELL=/bin/bash ENTRYPOINT ["/bin/bash", "/work/build-image-common.sh"] diff --git a/scripts/config-common/ifcfg-eth0 b/scripts/config-common/ifcfg-eth0 new file mode 120000 index 0000000000000000000000000000000000000000..4f62beee9c919aeec93932843a7660eae8539fc5 --- /dev/null +++ b/scripts/config-common/ifcfg-eth0 @@ -0,0 +1 @@ +../config/ifcfg-eth0 \ No newline at end of file diff --git a/scripts/config-common/ifup-eth0 b/scripts/config-common/ifup-eth0 deleted file mode 120000 index 494c56cce61b1f531849977a60c31e561211d9cc..0000000000000000000000000000000000000000 --- a/scripts/config-common/ifup-eth0 +++ /dev/null @@ -1 +0,0 @@ -../config/ifup-eth0 \ No newline at end of file diff --git a/scripts/config/chroot.sh b/scripts/config/chroot.sh index e3cdd63f7b6459be8c1486919d8f65a1a7eeb87b..eb01b35ee06a27b2f4a71a6780db5470ba248230 100755 --- a/scripts/config/chroot.sh +++ b/scripts/config/chroot.sh @@ -29,4 +29,5 @@ cd /etc/rc.d/init.d chmod +x extend-root.sh chkconfig --add extend-root.sh chkconfig extend-root.sh on -cd - \ No newline at end of file +cd - +ln -s /lib/firmware /etc/firmware \ No newline at end of file diff --git a/scripts/config/ifup-eth0 b/scripts/config/ifcfg-eth0 similarity index 100% rename from scripts/config/ifup-eth0 rename to scripts/config/ifcfg-eth0