-
Notifications
You must be signed in to change notification settings - Fork 7
/
README
57 lines (39 loc) · 2.26 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
NanoPi NEO, NanoPi NEO2, ZeroPi and Raspberry Pi 3 (Model B) configs for Buildroot
==================================================================================
Intro
=====
Build a network audio player with
- the smallest SBC 4cm x 4cm (NanoPi NEO, NanoPi NEO2 and ZeroPi)
- a minimal Linux system
- 2 players:
- squeezelite (for LMS)
- Apple AirPlay: shairport-sync
- USB audio output
- CPU isolation: cores 2 and 3 only for Squeezelite (NanopiNEO2 and RaspberryPi3)
How to build
============
$ sudo apt-get install libncurses-dev build-essential gettext-base git rsync bc python wget unzip python3 python3-distutils python-dev python3-dev
$ git clone https://github.com/bz31/Buildroot.git br
$ cd br
$ git clone -b 2022.02.x --single-branch git://git.buildroot.net/buildroot buildroot-2022.02.x
$ cd buildroot-2022.02.x
$ patch -p1 <../buildroot-2022.02.x_squeezelite.patch
$ cd ..
$ mkdir nanopineo2-output (mkdir zeropi-output) (mkdir nanopineo-output) (mkdir rpi3-output)
$ cd nanopineo2-output (cd zeropi-output) (cd nanopineo-output) (cd rpi3-output)
$ make O=$PWD -C ../buildroot-2022.02.x defconfig BR2_DEFCONFIG=../configs/nanopi-neo2_buildroot-2022.02.x_linux-5.10.x_squeezelite_defconfig
($ make O=$PWD -C ../buildroot-2022.02.x defconfig BR2_DEFCONFIG=../configs/zeropi_buildroot-2022.02.x_linux-5.15.x_squeezelite_defconfig)
($ make O=$PWD -C ../buildroot-2022.02.x defconfig BR2_DEFCONFIG=../configs/nanopi-neo_buildroot-2022.02.x_linux-5.15.x_squeezelite_defconfig)
($ make O=$PWD -C ../buildroot-2022.02.x defconfig BR2_DEFCONFIG=../configs/raspberrypi3_buildroot-2022.02.x_linux-5.10.x_squeezelite_defconfig)
[$ make menuconfig]
[$ make savedefconfig]
[$ make linux-menuconfig]
$ make
Write the image file to a microSD card (for example /dev/sdb)
=============================================================
$ sudo dd bs=4M if=images/sdcard.img of=/dev/sdb
$ sudo sync
Raspberry Pi 3: If using only WiFi, edit /etc/wpa_supplicant.conf for SSID/passwd.
Insert the microSD card in NanoPi NEO, Nanopi NEO2, ZeroPi or Raspberry Pi 3, and power it up.
Use ssh to connect to NanoPi NEO, Nanopi NEO2, ZeroPi or Raspberry Pi 3: login/password: root/root
http://bz31.tuxfamily.org/dokuwiki/doku.php