Raspberry 4B+miniHDMI to HDMI
https://www.raspberrypi.org/products/
下载树莓派操作系统映像
https://github.com/raspberrypi/documentation/blob/master/installation/noobs.md
https://www.raspberrypi.org/software/operating-systems/
制作 U 盘
https://www.raspberrypi.org/software/
参见
Install Raspberry Pi OS using Raspberry Pi Imager
升级树莓派的 Firmware
为了使用网络引导或者USB 移动硬盘引导,需要升级树莓派的 Firmware
下载文件
https://github.com/raspberrypi/rpi-eeprom
解压到 Micro SD 卡的根目录,由于没有 Micro SD 卡的读卡器,使用电信的机顶盒,开启 adb,电脑上远程 adb push 文件到 /sdcard 目录中。
Raspberry 上电,绿灯闪,屏幕输出为绿色
启动
重新加电启动
配置远程访问
https://www.raspberrypi.org/documentation/remote-access/
https://github.com/raspberrypi/documentation/blob/master/remote-access/README.md
配置软件源
https://developer.aliyun.com/mirror/raspbian?spm=a2c6h.13651102.0.0.3e221b11S1dtFI
安装 shairport-sync
https://github.com/mikebrady/shairport-sync
编辑配置文件,我使用的 DAC 是 Amanero OEM Combo384 Module + ES9038 Q2M DAC DSD 解码板,output_device 使用 aplay -L 来查看。
sudo vim /etc/shairport-sync.conf
general =
{
volume_control_profile = "standard" ; // use this advanced setting to specify how the airplay volume is transferred to the mixer volume.
playback_mode = "stereo"; // This can be "stereo", "mono", "reverse stereo", "both left" or "both right". Default is "stereo".
alac_decoder = "apple"; // This can be "hammerton" or "apple". This advanced setting allows you to choose
};
alsa =
{
output_device = "hw:Amanero"; // the name of the alsa output device. Use "alsamixer" or "aplay" to find out the names of devices, mixers, etc.
};
重启 shairport-sync 服务
sudo /etc/init.d/shairport-sync restart
使用 iphone 或者 mac airplay
现在可以使用 airplay 啦!
文档
https://www.raspberrypi.org/documentation/
https://github.com/raspberrypi/documentation/