Compare commits

...

11 Commits

Author SHA1 Message Date
openeuler-ci-bot
9a1826e16c !7 跟进master分支:跟进上游蓝牙代码
From: @woqidaideshi
Reviewed-by: @miao_kaibo,@solarhu
Signed-off-by: @miao_kaibo,@solarhu
2020-11-24 14:16:44 +08:00
openeuler-ci-bot
8f247376b3 !5 update to the latest commit(a69d8f54901aab31f2f47e0cc4f9d2879e183f1d) from 1f8d16200050b59ff9b859ee7565cdf7b08053bb
From: @woqidaideshi
Reviewed-by: @jianminw
Signed-off-by: @jianminw
2020-11-16 15:03:43 +08:00
yafen
17e8639592 update to the latest commit(a69d8f54901aab31f2f47e0cc4f9d2879e183f1d) of pi-bluetooth(0.1.15) 2020-11-11 15:17:42 +08:00
openeuler-ci-bot
df434a2d4e !3 更新 pi-bluetooth 版本为 0.1.15,source0 改为链接
From: @woqidaideshi
Reviewed-by: @jianminw
Signed-off-by:
2020-09-18 16:15:29 +08:00
yafen
38f79bacf3 change source0's name 2020-09-16 15:43:21 +08:00
yafen
b6722177fd rm last_query in yaml file 2020-09-04 10:32:46 +08:00
yafen
eba4c5581d Source0 change to url and Update pi-bluetooth version to 0.1.15 2020-09-03 23:55:16 +08:00
openeuler-ci-bot
042134e2d2 !2 add source url and yaml file
Merge pull request !2 from woqidaideshi/master
2020-08-31 17:17:22 +08:00
yafen
d10e81e7cb add source url and yaml file 2020-08-31 17:02:11 +08:00
openeuler-ci-bot
af3d190952 !1 增加 spec 文件用于构建树莓派 hciuart 等服务的 RPM
Merge pull request !1 from woqidaideshi/master
2020-08-05 10:56:53 +08:00
yafen
28edde3ee3 增加 spec 文件用于构建树莓派 hciuart 等服务的 RPM 2020-08-03 18:25:35 +08:00
5 changed files with 102 additions and 36 deletions

View File

@ -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 isnt 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/)

View File

@ -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/)

View 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.

View File

@ -0,0 +1,4 @@
version_control: github
src_repo: RPi-Distro/pi-bluetooth
tag_prefix: ^
seperator: .