diff --git a/README.en.md b/README.en.md index 642eb699988dc512d663325ca8ce8a2cf806b290..d90b279578f321f8491e14a84537667c08352042 100644 --- a/README.en.md +++ b/README.en.md @@ -10,9 +10,9 @@ You can get introduction of openEuler RaspberryPi SIG from [sig-RaspberryPi](htt - Issues: welcome to collaborate with us by create new issues or reply opened issues. You can get repository list from [sig-RaspberryPi](https://gitee.com/jianminw/community/tree/master/sig/sig-RaspberryPi). - Join Slack workspace: [openeuler-raspberrypi](https://openeuler-raspberrypi.slack.com ) - - [Invite link](https://join.slack.com/t/openeuler-raspberrypi/shared_invite/zt-dlqztpyb-GSgR98xIAI06SoTpFiJH6A), this link will be due on May 15th. We will update the link periodically. + - [Invite link](https://join.slack.com/t/openeuler-raspberrypi/shared_invite/zt-gghnovr7-l05In14G3uAtuQIVZ3xH2A), this link will be due on Sep 7th. We will update the link periodically. - Weekly meeting - - Time: Every week on Tue, 15:00 - 15:30 +0800 + - Time: The first and third Tuesday of every month, 15:00 - 15:30 +0800 - Zoom Meeting ID: 881 4204 8958 - [Meeting Agenda](https://docs.google.com/document/d/1HuN7sWLiPuvGLqd-1tH1WAbzk51tgXpFBodp3dz_DBY/) - [Meeting Minutes](https://gitee.com/openeuler/raspberrypi/issues/I1EYZ6?from=project-issue) @@ -32,15 +32,15 @@ You can get introduction of openEuler RaspberryPi SIG from [sig-RaspberryPi](htt ## How to download latest image -Alpha version of openEuler 20.03 LTS image for Raspberry Pi, [download](https://isrc.iscas.ac.cn/EulixOS/repo/dailybuild/1/isos/20200508/openEuler_20200508151847.img.xz). +Alpha version of openEuler 20.03 LTS image for Raspberry Pi, [download](https://isrc.iscas.ac.cn/eulixos/repo/others/openeuler-raspberrypi/images/openEuler-20.03-LTS-aarch64-raspi.img.xz). Basic information of the above image: - [ChangeLog](documents/changelog.en.md) -- Release date: 2020-05-11 -- Size: 245 MiB +- Release date: 2020-08-10 +- Size: 259 MiB - OS version: openEuler 20.03 LTS -- Kernel version: 4.19.90-2003.4.0.0036 +- Kernel version: 4.19.90-2005.2.0.0002 - 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](http://repo.openeuler.org/openEuler-20.03-LTS/everything/aarch64/) - Repository inside the image: [openEuler 20.03 LTS repository](https://gitee.com/openeuler/raspberrypi/blob/master/scripts/config/openEuler-20.03-LTS.repo) diff --git a/README.md b/README.md index cb7a5f4ec4255c33f263c2183286b1df225f290d..b6ba963f2d6a7eecd2946ead49e2647bbdafd454 100644 --- a/README.md +++ b/README.md @@ -10,8 +10,8 @@ SIG 组基本信息位于 [sig-RaspberryPi](https://gitee.com/jianminw/community - 建立或回复 issue:欢迎通过建立或回复 issue 来讨论,此 SIG 组维护的仓库列表可在 [sig-RaspberryPi](https://gitee.com/jianminw/community/tree/master/sig/sig-RaspberryPi) 中查看。 - 加入 Slack 群组:[openeuler-raspberrypi](https://openeuler-raspberrypi.slack.com ) - - [加入群组链接](https://join.slack.com/t/openeuler-raspberrypi/shared_invite/zt-dlqztpyb-GSgR98xIAI06SoTpFiJH6A),此链接于 5 月 15 日失效,我们会定期更新。 -- 每周 SIG 组会议:每周二下午 03:00 - 03:30 会进行一次讨论会议,Zoom Meeting ID: 881 4204 8958 + - [加入群组链接](https://join.slack.com/t/openeuler-raspberrypi/shared_invite/zt-gghnovr7-l05In14G3uAtuQIVZ3xH2A),此链接于 9 月 7 日失效,我们会定期更新。 +- SIG 组会议:每个月的第一个和第三个周二下午 03:00 - 03:30 会进行一次讨论会议,Zoom Meeting ID: 881 4204 8958 - [会议议题](https://docs.google.com/document/d/1HuN7sWLiPuvGLqd-1tH1WAbzk51tgXpFBodp3dz_DBY/):每周会议前填写要讨论的议题,我们也会从 issue 列表中提取本周讨论的内容。 - [会议记录](https://gitee.com/openeuler/raspberrypi/issues/I1EYZ6?from=project-issue):每周会议结束后会议结论会更新在此 issue 中。 - 重要的事说三遍:**欢迎提交 PR!欢迎提交 PR!欢迎提交 PR!** @@ -30,16 +30,16 @@ SIG 组基本信息位于 [sig-RaspberryPi](https://gitee.com/jianminw/community ## 最新镜像 -openEuler 20.03 LTS 的内测版本镜像,[下载](https://isrc.iscas.ac.cn/EulixOS/repo/dailybuild/1/isos/20200508/openEuler_20200508151847.img.xz)。 +openEuler 20.03 LTS 的内测版本镜像,[下载](https://isrc.iscas.ac.cn/eulixos/repo/others/openeuler-raspberrypi/images/openEuler-20.03-LTS-aarch64-raspi.img.xz)。 该镜像的基本信息: - [更新日志](documents/changelog.md) -- 发布时间:2020-05-11 -- 大小:245 MiB +- 发布时间:2020-08-10 +- 大小:259 MiB - 操作系统版本:openEuler 20.03 LTS -- 内核版本:4.19.90-2003.4.0.0036 +- 内核版本:4.19.90-2005.2.0.0002 - 固件来源:[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://repo.openeuler.org/openEuler-20.03-LTS/everything/aarch64/) - 镜像内置源仓库:[openEuler 20.03 LTS 源仓库](https://gitee.com/openeuler/raspberrypi/blob/master/scripts/config/openEuler-20.03-LTS.repo) diff --git a/documents/changelog.en.md b/documents/changelog.en.md index 0cffe429a6d4c8138cea1fba7457fce8332aada1..a2884bd5e08bc6ce40d9f5a5a5256079c252711b 100644 --- a/documents/changelog.en.md +++ b/documents/changelog.en.md @@ -2,6 +2,24 @@ English | [简体中文](./changelog.md) +### 2020-08-10 + +#### Basic information + +- Release date: 2020-08-10 +- Size: 259 MiB +- OS version: openEuler 20.03 LTS +- Kernel version: 4.19.90-2005.2.0.0002 +- 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](http://repo.openeuler.org/openEuler-20.03-LTS/everything/aarch64/) +- Repository inside the image: [openEuler 20.03 LTS repository](https://gitee.com/openeuler/raspberrypi/blob/master/scripts/config/openEuler-20.03-LTS.repo) + +#### Updates + +##### Kernel + +Update to the latest stable version of openeuler: 4.19.90-2005.2.0. + ### 2020-05-09 #### Basic information diff --git a/documents/changelog.md b/documents/changelog.md index cff5c7444ed0161fcd32eab4ac0f791ba386a42b..6c2abd05a45b0269eabd91d67e5e1f9f71762f40 100644 --- a/documents/changelog.md +++ b/documents/changelog.md @@ -2,6 +2,24 @@ [English](./changelog.en.md) | 简体中文 +### 2020-08-10 + +#### 基本信息 + +- 发布时间:2020-08-10 +- 大小:259 MiB +- 操作系统版本:openEuler 20.03 LTS +- 内核版本:4.19.90-2005.2.0.0002 +- 固件来源:[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://repo.openeuler.org/openEuler-20.03-LTS/everything/aarch64/) +- 镜像内置源仓库:[openEuler 20.03 LTS 源仓库](https://gitee.com/openeuler/raspberrypi/blob/master/scripts/config/openEuler-20.03-LTS.repo) + +#### 更新说明 + +##### 内核 + +更新到 openEuler 最新稳定版本 4.19.90-2005.2.0。 + ### 2020-05-09 #### 基本信息 diff --git "a/documents/images/\345\206\231\345\205\245SD.jpg" "b/documents/images/\345\206\231\345\205\245SD.jpg" deleted file mode 100644 index 92f0cbffd0c70631ab74d2e7e39a3e51d1b9ca69..0000000000000000000000000000000000000000 Binary files "a/documents/images/\345\206\231\345\205\245SD.jpg" and /dev/null differ diff --git "a/documents/images/\345\206\231\345\205\245SD.png" "b/documents/images/\345\206\231\345\205\245SD.png" new file mode 100644 index 0000000000000000000000000000000000000000..1b6a9912f327b2b941acede84e68cc9b0b6cea82 Binary files /dev/null and "b/documents/images/\345\206\231\345\205\245SD.png" differ diff --git "a/documents/images/\345\210\206\345\214\272\346\211\251\345\256\271.jpg" "b/documents/images/\345\210\206\345\214\272\346\211\251\345\256\271.jpg" deleted file mode 100644 index a21a70aca08d2d6535b4af35d4869468718b831c..0000000000000000000000000000000000000000 Binary files "a/documents/images/\345\210\206\345\214\272\346\211\251\345\256\271.jpg" and /dev/null differ diff --git "a/documents/images/\345\210\206\345\214\272\346\211\251\345\256\271.png" "b/documents/images/\345\210\206\345\214\272\346\211\251\345\256\271.png" new file mode 100644 index 0000000000000000000000000000000000000000..37a6ef7a2371a9a5518f6d2ce0dc6d36fc71fe1b Binary files /dev/null and "b/documents/images/\345\210\206\345\214\272\346\211\251\345\256\271.png" differ diff --git "a/documents/images/\346\240\274\345\274\217\345\214\226\345\211\215.jpg" "b/documents/images/\346\240\274\345\274\217\345\214\226\345\211\215.jpg" deleted file mode 100644 index 61fd4b86bb9d8db745496d08b8309c91a01a808c..0000000000000000000000000000000000000000 Binary files "a/documents/images/\346\240\274\345\274\217\345\214\226\345\211\215.jpg" and /dev/null differ diff --git "a/documents/images/\346\240\274\345\274\217\345\214\226\345\211\215.png" "b/documents/images/\346\240\274\345\274\217\345\214\226\345\211\215.png" new file mode 100644 index 0000000000000000000000000000000000000000..cad20bf482494b6dbf8d8188694fa025bb22bc1f Binary files /dev/null and "b/documents/images/\346\240\274\345\274\217\345\214\226\345\211\215.png" differ diff --git "a/documents/images/\346\240\274\345\274\217\345\214\226\345\220\216.jpg" "b/documents/images/\346\240\274\345\274\217\345\214\226\345\220\216.jpg" deleted file mode 100644 index 37bc06b18121c03633ba6edb6bca827712c73c41..0000000000000000000000000000000000000000 Binary files "a/documents/images/\346\240\274\345\274\217\345\214\226\345\220\216.jpg" and /dev/null differ diff --git "a/documents/images/\346\240\274\345\274\217\345\214\226\345\220\216.png" "b/documents/images/\346\240\274\345\274\217\345\214\226\345\220\216.png" new file mode 100644 index 0000000000000000000000000000000000000000..7f927c498f2880b1d475f9c2b0a9b54d904462f8 Binary files /dev/null and "b/documents/images/\346\240\274\345\274\217\345\214\226\345\220\216.png" differ diff --git "a/documents/images/\346\240\274\345\274\217\345\214\226\345\220\216\347\233\230.jpg" "b/documents/images/\346\240\274\345\274\217\345\214\226\345\220\216\347\233\230.jpg" deleted file mode 100644 index 8ac2750ca3a474357bea3f09bbbb7a2c84c90b29..0000000000000000000000000000000000000000 Binary files "a/documents/images/\346\240\274\345\274\217\345\214\226\345\220\216\347\233\230.jpg" and /dev/null differ diff --git "a/documents/images/\346\240\274\345\274\217\345\214\226\345\220\216\347\233\230.png" "b/documents/images/\346\240\274\345\274\217\345\214\226\345\220\216\347\233\230.png" new file mode 100644 index 0000000000000000000000000000000000000000..5376c044cc0ec03d7254d9898364f473543cbf02 Binary files /dev/null and "b/documents/images/\346\240\274\345\274\217\345\214\226\345\220\216\347\233\230.png" differ diff --git "a/documents/images/\347\231\273\345\275\225\346\240\221\350\216\223\346\264\276.jpg" "b/documents/images/\347\231\273\345\275\225\346\240\221\350\216\223\346\264\276.jpg" deleted file mode 100644 index 26cfc716449353128998013b59827538e27a030f..0000000000000000000000000000000000000000 Binary files "a/documents/images/\347\231\273\345\275\225\346\240\221\350\216\223\346\264\276.jpg" and /dev/null differ diff --git "a/documents/images/\347\231\273\345\275\225\346\240\221\350\216\223\346\264\276.png" "b/documents/images/\347\231\273\345\275\225\346\240\221\350\216\223\346\264\276.png" new file mode 100644 index 0000000000000000000000000000000000000000..17fe1dcdd3c49f006d764aaae3a284b34d8226b8 Binary files /dev/null and "b/documents/images/\347\231\273\345\275\225\346\240\221\350\216\223\346\264\276.png" differ diff --git "a/documents/images/\350\216\267\345\217\226IP.jpg" "b/documents/images/\350\216\267\345\217\226IP.jpg" deleted file mode 100644 index 100e330db48aa85b8af900056a31ecc794c97daf..0000000000000000000000000000000000000000 Binary files "a/documents/images/\350\216\267\345\217\226IP.jpg" and /dev/null differ diff --git "a/documents/images/\350\216\267\345\217\226IP.png" "b/documents/images/\350\216\267\345\217\226IP.png" new file mode 100644 index 0000000000000000000000000000000000000000..26b6f8f60a36c4b43ebebe4dbdce169ade4b13ae Binary files /dev/null and "b/documents/images/\350\216\267\345\217\226IP.png" differ diff --git "a/documents/\345\210\267\345\206\231\351\225\234\345\203\217.md" "b/documents/\345\210\267\345\206\231\351\225\234\345\203\217.md" index 3f82d0754681a1a5802550eab24c89e6507d56ea..b48bea00c071a67dec82af9dab497a78a1d5547f 100644 --- "a/documents/\345\210\267\345\206\231\351\225\234\345\203\217.md" +++ "b/documents/\345\210\267\345\206\231\351\225\234\345\203\217.md" @@ -28,6 +28,8 @@ 下载适配树莓派的最新 openEuler 镜像,下面以 `XXX.img` 表示该镜像。 +注意!如果下载的是压缩后的镜像,需要先将压缩文件解压得到 img 格式的镜像文件。 + # 刷写 SD 卡 下面分别介绍 Windows、Linux、Mac 下的刷机步骤。 @@ -38,17 +40,17 @@ 下载应用:SDFormater,用于格式化 SD 卡。 -若 SD 卡之前未安装过镜像,盘符正常只有一个,选择 SD 卡对应盘符,直接格式化即可; +若 SD 卡之前未安装过镜像,盘符只有一个,SDFormater 应用中选择 SD 卡对应盘符,直接格式化即可; -若 SD 卡之前安装过镜像,盘符会有三个,选择 SD 卡对应盘符(图例中为 E: 盘),格式化即可: +若 SD 卡之前安装过镜像,盘符会有多个,如下图所示,该 SD 卡对应三个盘符:E、G、H,SDFormater 应用中选择 SD 卡对应 boot 分区盘符 E,格式化即可。 ![](images/盘符.jpg) -![](images/格式化前.jpg) +![](images/格式化前.png) -![](images/格式化后.jpg) +![](images/格式化后.png) -![](images/格式化后盘.jpg) +![](images/格式化后盘.png) ### 写入 SD 卡 @@ -56,11 +58,11 @@ 右键选择“以管理员身份运行”,打开 Win32 Disk Imager,选择镜像 img 文件和待写入的 SD 卡,点击【写入/Write】。 -![](images/写入SD.jpg) +![](images/写入SD.png) 写入完成即可。 -写入成功后,SD 卡自动分区后的盘符为: +写入成功后,SD 卡自动分区后的盘符为三个,如下图所示。 ![](images/盘符.jpg) @@ -78,8 +80,7 @@ `df -lh` -例如,SD 卡对应磁盘两个分区 /dev/sdb1 和 /dev/sdb3 默认已挂载。 -卸载对应分区: +如果 SD 卡对应的分区未挂载,则该步骤跳过;如果 SD 卡对应分区已挂载,如 SD 卡对应的两个分区 /dev/sdb1 和 /dev/sdb3 已挂载,则需要卸载对应分区: `umount /dev/sdb1` @@ -105,8 +106,7 @@ `df -lh` -例如,SD 卡对应磁盘两个分区 /dev/disk3s1 和 /dev/disk3s3 默认已挂载。 -卸载对应分区: +如果 SD 卡对应的分区未挂载,则该步骤跳过;如果 SD 卡对应分区已挂载,如 SD 卡对应的两个分区 /dev/sdb1 和 /dev/sdb3 已挂载,则需要卸载对应分区: `diskutil umount /dev/sdb1` 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 beb69f8fbcc1760fc8bf1997e368791f6bca3a9f..143caf1032cfdd7aa68aaf34ae7e103caad1d8c1 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" @@ -81,27 +81,25 @@ 默认用户名:root,密码:openeuler。 -将刷好的 SD 卡插入树莓派,通电启用。树莓派正常启动,还需连接网线至局域网。 +将刷写镜像后的 SD 卡插入树莓派,通电启用。 -由于使用树莓派时,大多都使用 ssh 远程连接;在树莓派启动联网时,无法得知其 IP 地址。 - -有以下两种方式: +登录树莓派有以下两种方式: 1. 本地登录 -将树莓派连接显示器(树莓派视频输出接口为 Micro HDMI)、键盘、鼠标后,启动树莓派,可以看到树莓派启动日志输出到显示器上。待树莓派启动成功,输入用户名(root)和密码(openeuler)登录。目前,openEuler 系统无桌面环境,添加桌面支持相关进度可关注 [期望增加桌面支持](https://gitee.com/openeuler/raspberrypi/issues/I1F21F),欢迎大家参与。 +树莓派连接显示器(树莓派视频输出接口为 Micro HDMI)、键盘、鼠标后,启动树莓派,可以看到树莓派启动日志输出到显示器上。待树莓派启动成功,输入用户名(root)和密码(openeuler)登录。目前,openEuler 系统无桌面环境,添加桌面支持相关进度可关注 [期望增加桌面支持](https://gitee.com/openeuler/raspberrypi/issues/I1F21F),欢迎大家参与。 -登录成功后,树莓派即显示本机相关信息,包括本机 IP。如下图(下面 ssh 远程登录也显示这些信息): +2. ssh 远程登录 -![](images/登录树莓派.jpg) +树莓派默认采用 DHCP 的方式自动获取 IP。如果树莓派连接已知路由器,可登录路由器查看,新增的 IP 即为树莓派 IP。 -2. ssh 远程登录 +![](images/获取IP.png) -如果树莓派连接已知路由器,可登录路由器管理,新增的 IP 即为树莓派 IP: +从上图看到,树莓派对应 IP 为:192.168.31.109,使用命令 `ssh root@192.168.1.109` 后输入密码 `openeuler`,即可远程登录树莓派。 -![](images/获取IP.jpg) +如下图,登录成功后,树莓派即显示本机相关信息,包括本机 IP。 -从上图看到,树莓派对应 IP 为:192.168.1.102,使用命令 `ssh root@192.168.1.102` 后输入密码 `openeuler`,即可远程登录树莓派。 +![](images/登录树莓派.png) # 根目录分区扩展 @@ -130,7 +128,7 @@ `p` -记录下分区 /dev/mmcblk0p3 的起始扇区号,这里记为 `xxx`。 +记录下分区 /dev/mmcblk0p3 的起始扇区号,这里记为 `xxx`,本例中实际为 `1593344`。 ### 删除分区 /dev/mmcblk0p3 @@ -154,7 +152,7 @@ ### 输入新分区的起始扇区号 -注意!!!不要直接输入回车或使用默认参数。这是需要输入删除分区 /dev/mmcblk0p3 之前查看到的的起始扇区号。 +注意!!!不要直接输入回车或使用默认参数。这是需要输入删除分区 /dev/mmcblk0p3 之前查看到的的起始扇区号,上面记为 `xxx`,本例中实际为 `1593344`。 `xxx` @@ -187,7 +185,7 @@ 至此,根目录分区扩容结束。扩容过程见下图: -![](images/分区扩容.jpg) +![](images/分区扩容.png) # wifi 连接 @@ -206,12 +204,12 @@ valid_lft forever preferred_lft forever 2: eth0: mtu 1500 qdisc mq state UP group default qlen 1000 link/ether dc:a6:32:50:de:57 brd ff:ff:ff:ff:ff:ff - inet 192.168.1.108/24 brd 192.168.31.255 scope global dynamic noprefixroute eth0 - valid_lft 41527sec preferred_lft 41527sec - inet6 fe80::bda0:3318:35ba:7583/64 scope link noprefixroute + inet 192.168.31.109/24 brd 192.168.31.255 scope global dynamic noprefixroute eth0 + valid_lft 41570sec preferred_lft 41570sec + inet6 fe80::cd39:a969:e647:3043/64 scope link noprefixroute valid_lft forever preferred_lft forever 3: wlan0: mtu 1500 qdisc fq_codel state DOWN group default qlen 1000 - link/ether 7e:f1:16:71:7e:69 brd ff:ff:ff:ff:ff:ff + link/ether e2:e6:99:89:47:0c brd ff:ff:ff:ff:ff:ff ``` ## 扫描可以连接的 wifi 信息 @@ -222,10 +220,10 @@ `nmcli dev wifi connect SSID password PWD` -其中,`SSID` 为上一步扫描到的可供连接的 wifi 的 SSID,`PWD` 为对应 wifi 的密码。例如:`nmcli dev wifi connect xxx password yyy`,连接成功: +其中,`SSID` 为上一步扫描到的可供连接的 wifi 的 SSID,`PWD` 为对应 wifi 的密码。例如,`SSID` 为 `openEuler-wifi`,密码为 `12345678`,则连接该 wifi 命令为:`nmcli dev wifi connect openEuler-wifi password 12345678`,连接成功提示: ``` -Device 'wlan0' successfully activated with 'dca7d2f4-00af-44e7-8374-13ef5efe1f9a'. +Device 'wlan0' successfully activated with '26becaab-4adc-4c8e-9bf0-1d63cf5fa3f1'. ``` ## 查看 IP 和无线网卡信息 @@ -241,15 +239,15 @@ Device 'wlan0' successfully activated with 'dca7d2f4-00af-44e7-8374-13ef5efe1f9a valid_lft forever preferred_lft forever 2: eth0: mtu 1500 qdisc mq state UP group default qlen 1000 link/ether dc:a6:32:50:de:57 brd ff:ff:ff:ff:ff:ff - inet 192.168.1.108/24 brd 192.168.31.255 scope global dynamic noprefixroute eth0 - valid_lft 42966sec preferred_lft 42966sec - inet6 fe80::bda0:3318:35ba:7583/64 scope link noprefixroute + inet 192.168.31.109/24 brd 192.168.31.255 scope global dynamic noprefixroute eth0 + valid_lft 41386sec preferred_lft 41386sec + inet6 fe80::cd39:a969:e647:3043/64 scope link noprefixroute valid_lft forever preferred_lft forever 3: wlan0: mtu 1500 qdisc fq_codel state UP group default qlen 1000 link/ether dc:a6:32:50:de:58 brd ff:ff:ff:ff:ff:ff - inet 192.168.1.109/24 brd 192.168.31.255 scope global dynamic noprefixroute wlan0 - valid_lft 43190sec preferred_lft 43190sec - inet6 fe80::7a67:44e2:b596:fc01/64 scope link noprefixroute + inet 192.168.31.110/24 brd 192.168.31.255 scope global dynamic noprefixroute wlan0 + valid_lft 43094sec preferred_lft 43094sec + inet6 fe80::394:d086:27fa:deba/64 scope link noprefixroute valid_lft forever preferred_lft forever ``` @@ -642,7 +640,9 @@ WiringPi 是应用于树莓派平台的 GPIO 控制库函数,包括一套 GPIO wiringPiSetup: mmap (GPIO) failed: Operation not permitted ``` -解决方法,编辑 `/boot/cmdline.txt` 添加内容 `iomem=relaxed`。当前,`/boot/cmdline.txt` 最终内容为: +解决方法,编辑 `/boot/cmdline.txt` 添加内容 `iomem=relaxed`,重启树莓派。 + +当前,`/boot/cmdline.txt` 最终内容为: ``` console=serial0,115200 console=tty1 root=/dev/mmcblk0p3 rootfstype=ext4 elevator=deadline iomem=relaxed rootwait diff --git a/scripts/build-img.sh b/scripts/build-img.sh index aa86bb0ddda96917820b3a25da8571fafea7e244..dd85f2b9840ae801d64869a52d1c7f7ab7f01f61 100644 --- a/scripts/build-img.sh +++ b/scripts/build-img.sh @@ -385,7 +385,6 @@ make_rootfs(){ mount --bind /dev ${rootfs_dir}/dev mount -t proc /proc ${rootfs_dir}/proc mount -t sysfs /sys ${rootfs_dir}/sys - chmod +x ${cur_dir}/scripts/chroot.sh chroot ${rootfs_dir} /bin/bash -c "echo 'Y' | /chroot.sh" umount -l ${rootfs_dir}/dev umount -l ${rootfs_dir}/proc diff --git a/scripts/scripts/chroot.sh b/scripts/scripts/chroot.sh index aa5179812fd7e8c1191f2346ce61eb206f87d15f..954cf62c0570c5e6cc47f737ebb37643567326d3 100755 --- a/scripts/scripts/chroot.sh +++ b/scripts/scripts/chroot.sh @@ -11,4 +11,6 @@ if [ -f /usr/share/zoneinfo/Asia/Shanghai ]; then fi ln -s /usr/share/zoneinfo/Asia/Shanghai /etc/localtime fi - +if [ -f /etc/rc.d/rc.local ]; then + chmod +x /etc/rc.d/rc.local +fi \ No newline at end of file