아이폰/패드랑 맥의 음악을 스피커로 듣고 싶어서 shairport를 boriliketree에설치 해서 사용중 OS업그레이드로(Jessy -> Stretch) 오류 발생.
구글링 해보니 Shairports는 더이상 관리 안됨 shairport/README.md at master · abrasive/shairport · GitHub
ShairPort is no longer maintained
As I no longer use Shairport myself, I am no longer maintaining or supporting Shairport. Thanks to everyone who has contributed over the years; it's been a great experience. For the ongoing user, there are a great many forks and ports to choose from now, many of which are of a very high quality and well maintained.
— James
그런데 …. 이미 설치된 애는 어떻게 지우지
Shairport기반해서 여러 기기의 싱크를 맞추어주는(우리나라에서는 꼭 필요할거 같지 않지만 집이 큰 미국에서는 여러방에서 노래가 싱크되어서 들리는게 중요한가 보다) shairport-sync 있어 다시 설치.
설치 작업
shairport-sync/INSTALL.md at master · mikebrady/shairport-sync · GitHub 를 설치가이드 를 따라서 설치 함
참고 사이트:
리눅스 커널업그레이드(펌웨어? github 본문에는 firmware로 표기) 업그레이드
참고 : Moving Linux kernel to 4.14 - Raspberry Pi Forums
18년 9월 타이밍 모듈 개선 적용 (잉 오늘이 9/1인데...)
rpi-update(An easier way to get the latest firmware for your Raspberry Pi.) 가 없어서 설치 후 업그레이드 함. 근데 펌웨어와 커널은 다른거 아닌가?(구글신에게 물어보자 what is raspberry pi firmware?)
Firmware is a small package of code that usually lives on a special chip of a computer that helps the software know how to talk to the hardware.
The software package called "raspberrypi-bootloader" also contains the firmware. This will be updated by apt-get upgrade.
The rpi-update command will load the latest "cutting edge" version of the firmware. Occasionally this can cause minor problems, and very rarely could cause your Pi to fail to start up. Unless you need the latest version you are probably better off with apt-get upgrade.(Pi Firmware - Raspberry Pi Forums)
- 그럼 커널은 모지 ? SW와 HW 연결해주는 운영체제의 핵심 ㅋㅋㅋ
Borilikeharry 알아서 업그레이드 되어 있음 …. (어제 업그레이드 해서 된건가? 그건 아무도 모름, boriliketree는 커널 버전이 모였지 이미 업그레이드 된걸 또 업그레이드 하는 거 아닐까? 에고 확인좀 하고 해라)
pi@Borilikeharry:~ $ uname -a
Linux Borilikeharry 4.14.52-v7+ #1123 SMP Wed Jun 27 17:35:49 BST 2018 armv7l GNU/Linux
pi@boriliketree:~ $ uname -a
Linux boriliketree 4.14.62-v7+ #1134 SMP Tue Aug 14 17:10:10 BST 2018 armv7l GNU/Linux
- 펌웨어/커널 업그레이드
pi@boriliketree:~ $ sudo rpi-update
*** Raspberry Pi firmware updater by Hexxeh, enhanced by AndrewS and Dom
*** Performing self-update
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 13545 100 13545 0 0 25432 0 --:--:-- --:--:-- --:--:-- 25508
*** Relaunching after update
*** Raspberry Pi firmware updater by Hexxeh, enhanced by AndrewS and Dom
*** We're running for the first time
*** Backing up files (this will take a few minutes)
*** Backing up firmware
*** Backing up modules 4.14.62-v7+
#############################################################
This update bumps to rpi-4.14.y linux tree
Be aware there could be compatibility issues with some drivers
Discussion here:
https://www.raspberrypi.org/forums/viewtopic.php?f=29&t=197689
##############################################################
*** Downloading specific firmware revision (this will take a few minutes)
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 168 0 168 0 0 188 0 --:--:-- --:--:-- --:--:-- 188
100 56.0M 0 56.0M 0 0 353k 0 --:--:-- 0:02:42 --:--:-- 141k
*** Updating firmware
*** Updating kernel modules
*** depmod 4.14.67+
*** depmod 4.14.67-v7+
*** Updating VideoCore libraries
*** Using HardFP libraries
*** Updating SDK
*** Running ldconfig
*** Storing current firmware revision
*** Deleting downloaded files
*** Syncing changes to disk
*** If no errors appeared, your firmware was successfully updated to 45782b55788c58b10b6376487fd86ca9c13296e1
*** A reboot is needed to activate the new firmware
pi@boriliketree:~ $ uname -a
Linux boriliketree 4.14.62-v7+ #1134 SMP Tue Aug 14 17:10:10 BST 2018 armv7l GNU/Linux
재부팅 후 블루투스 드라이 탑재 오류 발생 - VCHI 오류는 업그레이드 계속 나는 에러
pi@boriliketree:~ $ dmesg|grep -i fail*
[ 1.040936] CPU2: failed to come online
[ 1.769290] vc_vchi_sm_init: failed to open VCHI service (-1)
[ 1.769301] [vc_sm_connected_init]: failed to initialize shared memory service
[ 23.285633] bluetooth hci0: Direct firmware load for brcm/BCM20702A1-0a5c-21e8.hcd failed with error -2
해당 hcd파일 /lib/firmware/brcm 에 저장 후 재 부팅 참고 : GitHub - winterheart/broadcom-bt-firmware: Repository for various Broadcom Bluetooth firmware
재부팅 후 새로운 에러
Bluetooth: hci0: BCM: Patch command 0a0a failed (-110)
[ 33.992348] Bluetooth: hci0 command 0x1001 tx timeout
[ 42.072393] Bluetooth: hci0: BCM: Reading local version info failed (-110)
[ 44.232388] Bluetooth: hci0 command 0x1001 tx timeout
[ 52.312847] Bluetooth: hci0: BCM: Reading local version info failed (-110)
Shairport 제거 - 스크립트 파일 제거/부팅시 기동 스크립트 제거
pi@boriliketree:~ $ which shairport-sync
pi@boriliketree:~ $ which shairport
/usr/local/bin/shairport
pi@boriliketree:~ $ sudo rm /usr/local/bin/shairport
pi@boriliketree:~ $ sudo rm /etc/init.d/shairport
pi@boriliketree:~ $ sudo rm /etc/systemd/system/shairport*
rm: cannot remove '/etc/systemd/system/shairport*': 그런 파일이나 디렉터리가 없습니다
pi@boriliketree:~ $ sudo ls -al /etc/systemd/system/shairport*
ls: cannot access '/etc/systemd/system/shairport*': 그런 파일이나 디렉터리가 없습니다
- 필요 패키지 설치
pi@boriliketree**:**/usr/local/bin $** sudo apt-get install autoconf automake avahi-daemon build-essential git libasound2-dev libavahi-client-dev libconfig-dev libdaemon-dev libpopt-dev libssl-dev libtool xmltoman
autoconf is already the newest version (2.69-10).
automake is already the newest version (1:1.15-6).
avahi-daemon is already the newest version (0.6.32-2).
build-essential is already the newest version (12.3).
git is already the newest version (1:2.11.0-3+deb9u3).
libssl-dev is already the newest version (1.1.0f-3+deb9u2).
libtool is already the newest version (2.4.6-2).
다음 패키지가 자동으로 설치되었지만 더 이상 필요하지 않습니다:
python-cffi python-ply python-pycparser python3-cffi python3-ply python3-pycparser
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
libavahi-common-dev libconfig-doc libconfig9 libxml-parser-perl
제안하는 패키지:
libasound2-doc libdaemon-doc
다음 새 패키지를 설치할 것입니다:
libasound2-dev libavahi-client-dev libavahi-common-dev libconfig-dev libconfig-doc libconfig9 libdaemon-dev libpopt-dev libxml-parser-perl xmltoman
0개 업그레이드, 10개 새로 설치, 0개 제거 및 0개 업그레이드 안 함.
- 소스 복제
pi@boriliketree**:**~ $** git clone https://github.com/mikebrady/shairport-sync.git
'shairport-sync'에 복제합니다...
remote: Counting objects: 10710, done.
remote: Compressing objects: 100% (30/30), done.
remote: Total 10710 (delta 15), reused 19 (delta 11), pack-reused 10669
오브젝트를 받는 중: 100% (10710/10710), 5.04 MiB | 855.00 KiB/s, 완료.
델타를 알아내는 중: 100% (7194/7194), 완료.
- Build & Install - 양이 많아서 상세 로그는 생략
$ autoreconf -fi
$ ./configure --sysconfdir=/etc --with-alsa --with-avahi --with-ssl=openssl --with-systemd
$ make
$ sudo make install
- 부팅시 자동 기동 설정 및 서비스 스타트
pi@boriliketree:~/shairport-sync $ sudo systemctl enable shairport-sync
Created symlink /etc/systemd/system/multi-user.target.wants/shairport-sync.service → /lib/systemd/system/shairport-sync.service.
pi@boriliketree:~/shairport-sync $ sudo systemctl start shairport-sync
테스트
아이폰 화면에서 검색 됨 그런데 어찌 테스트 하나 .....
블루투스라도 되야 스피커 연결해서 해볼텐데 흐이그.
TV로 연결 소리 나오는 거 확인함 ... 여전히 불루투스는 안됨. 오늘(9/1)은 여기까지.