Compare commits
11 Commits
3736b32f91
...
9a1826e16c
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9a1826e16c | ||
|
|
8f247376b3 | ||
|
|
17e8639592 | ||
|
|
df434a2d4e | ||
|
|
38f79bacf3 | ||
|
|
b6722177fd | ||
|
|
eba4c5581d | ||
|
|
042134e2d2 | ||
|
|
d10e81e7cb | ||
|
|
af3d190952 | ||
|
|
28edde3ee3 |
36
README.en.md
36
README.en.md
@ -1,22 +1,32 @@
|
||||
# raspberrypi-bluetooth
|
||||
|
||||
#### Description
|
||||
Load firmware of bluetooth on boot for Raspberry Pi
|
||||
The bluetooth service for RaspberryPi, which loads BCM43430A1 firmware on boot. These files are from the repositories in RaspberryPi community.
|
||||
|
||||
- https://github.com/RPi-Distro/pi-bluetooth
|
||||
|
||||
#### Software Architecture
|
||||
Software architecture description
|
||||
|
||||
AArch64
|
||||
|
||||
#### Installation
|
||||
|
||||
1. xxxx
|
||||
2. xxxx
|
||||
3. xxxx
|
||||
`dnf install raspberrypi-bluetooth`
|
||||
|
||||
#### Instructions
|
||||
|
||||
1. xxxx
|
||||
2. xxxx
|
||||
3. xxxx
|
||||
After installing raspberrypi-bluetooth,
|
||||
|
||||
1. Start the bluetooth service (i.e., hciuart service) to load related firmware: `systemctl start hciuart`.
|
||||
|
||||
2. Check the service's status using the status command: `systemctl status hciuart`.
|
||||
|
||||
3. If this service isn’t running, you can use the restart command: `systemctl restart hciuart` to restart the service.
|
||||
|
||||
4. To view the name and basic information of the bluetooth device, you can use the command: `hciconfig`.
|
||||
|
||||
5. Set the service to start on boot: `systemctl enable hciuart`.
|
||||
|
||||
|
||||
#### Contribution
|
||||
|
||||
@ -24,13 +34,3 @@ Software architecture description
|
||||
2. Create Feat_xxx branch
|
||||
3. Commit your code
|
||||
4. Create Pull Request
|
||||
|
||||
|
||||
#### Gitee Feature
|
||||
|
||||
1. You can use Readme\_XXX.md to support different languages, such as Readme\_en.md, Readme\_zh.md
|
||||
2. Gitee blog [blog.gitee.com](https://blog.gitee.com)
|
||||
3. Explore open source project [https://gitee.com/explore](https://gitee.com/explore)
|
||||
4. The most valuable open source project [GVP](https://gitee.com/gvp)
|
||||
5. The manual of Gitee [https://gitee.com/help](https://gitee.com/help)
|
||||
6. The most popular members [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)
|
||||
|
||||
35
README.md
35
README.md
@ -1,23 +1,32 @@
|
||||
# raspberrypi-bluetooth
|
||||
|
||||
#### 介绍
|
||||
Load firmware of bluetooth on boot for Raspberry Pi
|
||||
|
||||
Raspberry Pi 的蓝牙相关服务组件,用于树莓派开机时加载 BCM43430A1 固件。文件来自于 Raspberry Pi 社区的上游仓库:
|
||||
|
||||
- https://github.com/RPi-Distro/pi-bluetooth
|
||||
|
||||
#### 软件架构
|
||||
软件架构说明
|
||||
|
||||
AArch64
|
||||
|
||||
#### 安装教程
|
||||
|
||||
1. xxxx
|
||||
2. xxxx
|
||||
3. xxxx
|
||||
`dnf install raspberrypi-bluetooth`
|
||||
|
||||
#### 使用说明
|
||||
|
||||
1. xxxx
|
||||
2. xxxx
|
||||
3. xxxx
|
||||
安装 raspberrypi-bluetooth 后,
|
||||
|
||||
1. 启动蓝牙服务(hciuart 服务)用于加载相关固件:`systemctl status hciuart`。
|
||||
|
||||
2. 查看该服务的运行状态:`systemctl status hciuart`。
|
||||
|
||||
3. 如果该服务启动失败,重启该服务:`systemctl restart hciuart`。
|
||||
|
||||
4. 查看蓝牙设备的名称和基本信息:`hciconfig`。
|
||||
|
||||
5. 设置该服务开机启动:`systemctl enable hciuart`。
|
||||
|
||||
#### 参与贡献
|
||||
|
||||
@ -25,13 +34,3 @@ Load firmware of bluetooth on boot for Raspberry Pi
|
||||
2. 新建 Feat_xxx 分支
|
||||
3. 提交代码
|
||||
4. 新建 Pull Request
|
||||
|
||||
|
||||
#### 码云特技
|
||||
|
||||
1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md
|
||||
2. 码云官方博客 [blog.gitee.com](https://blog.gitee.com)
|
||||
3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解码云上的优秀开源项目
|
||||
4. [GVP](https://gitee.com/gvp) 全称是码云最有价值开源项目,是码云综合评定出的优秀开源项目
|
||||
5. 码云官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help)
|
||||
6. 码云封面人物是一档用来展示码云会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)
|
||||
|
||||
BIN
pi-bluetooth-a69d8f54901aab31f2f47e0cc4f9d2879e183f1d.tar.gz
Normal file
BIN
pi-bluetooth-a69d8f54901aab31f2f47e0cc4f9d2879e183f1d.tar.gz
Normal file
Binary file not shown.
63
raspberrypi-bluetooth.spec
Normal file
63
raspberrypi-bluetooth.spec
Normal file
@ -0,0 +1,63 @@
|
||||
%global _bin_path /usr/bin
|
||||
%global _rules_path /lib/udev/rules.d
|
||||
%global _systemd_path /lib/systemd/system
|
||||
%global _license_path /usr/share/licenses/raspi
|
||||
%global commitid a69d8f54901aab31f2f47e0cc4f9d2879e183f1d
|
||||
%global debug_package %{nil}
|
||||
|
||||
Name: raspberrypi-bluetooth
|
||||
Version: 20201110
|
||||
Release: 3
|
||||
Summary: bluetooth files used for RaspberryPi
|
||||
License: BSD-3-Clause
|
||||
ExclusiveArch: aarch64
|
||||
|
||||
Provides: raspberrypi-bluetooth = %{version}-%{release}
|
||||
|
||||
URL: https://github.com/RPi-Distro/pi-bluetooth
|
||||
Source0: https://github.com/RPi-Distro/pi-bluetooth/archive/%{commitid}/pi-bluetooth-%{commitid}.tar.gz
|
||||
|
||||
%description
|
||||
This package contains executable files of bluetooth required by some RaspberryPi devices.
|
||||
|
||||
%prep
|
||||
%setup -q -n %{name}-%{version} -c
|
||||
|
||||
%install
|
||||
mkdir -p %{buildroot}%{_bin_path}
|
||||
mkdir -p %{buildroot}%{_rules_path}
|
||||
mkdir -p %{buildroot}%{_systemd_path}
|
||||
mkdir -p %{buildroot}%{_license_path}
|
||||
cd pi-bluetooth-%{commitid}
|
||||
install -p -m 755 usr/bin/* %{buildroot}%{_bin_path}/
|
||||
install -p -m 644 lib/udev/rules.d/90-pi-bluetooth.rules %{buildroot}%{_rules_path}/
|
||||
install -p -m 644 debian/pi-bluetooth.bthelper\@.service %{buildroot}%{_systemd_path}/bthelper\@.service
|
||||
install -p -m 644 debian/pi-bluetooth.hciuart.service %{buildroot}%{_systemd_path}/hciuart.service
|
||||
install -p -m 644 debian/copyright %{buildroot}%{_license_path}/LICENSE.pi-bluetooth
|
||||
|
||||
cd -
|
||||
|
||||
%files
|
||||
%dir %{_rules_path}
|
||||
%dir %{_systemd_path}
|
||||
%dir %{_license_path}
|
||||
%{_license_path}
|
||||
%{_bin_path}/*
|
||||
%{_rules_path}/*
|
||||
%{_systemd_path}/*
|
||||
|
||||
%changelog
|
||||
* Tue Nov 10 2020 Yafen Fang<yafen@iscas.ac.cn> - 20201110-3
|
||||
- update to the latest commit(a69d8f54901aab31f2f47e0cc4f9d2879e183f1d) of pi-bluetooth(0.1.15).
|
||||
|
||||
* Wed Sep 16 2020 Yafen Fang<yafen@iscas.ac.cn> - 20200904-2
|
||||
- Change source0's name.
|
||||
|
||||
* Fri Sep 4 2020 Yafen Fang<yafen@iscas.ac.cn> - 20200904-1
|
||||
- Update pi-bluetooth version to 0.1.15 release.
|
||||
|
||||
* Mon Aug 31 2020 Yafen Fang<yafen@iscas.ac.cn> - 20200729-2
|
||||
- Add source url in spec.
|
||||
|
||||
* Wed Jul 29 2020 Yafen Fang<yafen@iscas.ac.cn> - 20200729-1
|
||||
- Add rules file, bthelper and hciuart from pi-bluetooth.
|
||||
4
raspberrypi-bluetooth.yaml
Normal file
4
raspberrypi-bluetooth.yaml
Normal file
@ -0,0 +1,4 @@
|
||||
version_control: github
|
||||
src_repo: RPi-Distro/pi-bluetooth
|
||||
tag_prefix: ^
|
||||
seperator: .
|
||||
Loading…
x
Reference in New Issue
Block a user