mig  How to install mympd nanopi-neo2
ssl

Easy to Install myMPD on nanopi-neo2


nanopi-neo2  nanopi-neo  

pine64  Raspi2A+


nanopi neo2

Flag Counter

this counter started 12nd June 2023



🇯🇵Japanese


I will basically introduce the method introduced by the Linux Audio Foundation. Anyone can install it by looking at this site. I have broken down and explained on my site
In Nanipi-neo2 or pine64, we introduce the work of making a music server prototype using SPDIF. Only Nanopi-neo2, nanopi-neo, and pine64 are introduced due to the one-board PC I have.
When using Raspberrypi, the operation is slightly different. Also, when building with Raspberrypi, it is necessary to add a hat board. In the case of Raspberrypi SPDIF requires a hat board due to the master clock.
The way the sound is produced is also different from the Nanopi, so I won't introduce it here.detail for ,please see Linux Audio Foundation will you.
Build samba first.
Install mpd and edit mpd.conf to make sure your music server has sound, building mpd comes first. After that, samba will be built. samba may not be enabled on some distributions.
In that case, refer to other external sites and make sure that samba works properly before building the music server.In my case,
I don't use the onboard DAC, I use the SPDIF signal output from the Nanopi-neo2 SBC to enjoy music using an external SPDIF input DAC.
The settings are different when using the onboard DAC or when using a USB DAC. And in the case of USB DAC, you can automatically detect and enjoy music.
Is it possible to do something similar with Raspberrypi? Try it yourself. Since the Raspberrypi does not have a built-in master clock for music playback, an additional board called a hat is required to perform the same operation.
Additional boards are not so expensive, so if you want to do the same operation, you need to buy a hat board.
SPDIF output is described on another page, so please see my site.
Please browse. Not listed on other sites.
Please note that the subject tends to be displayed incorrectly.sometime These music servers require a NAS or host PC that can be shared. NAS can be obtained cheaply, but we recommend using Raspberrypi to install Moodeaudio and keep a simple NAS. Raspberrypi can be the lowest standard Zero or 3A+
It is not used to produce sound, but is equipped with a hard disk and used as a NAS or file server for storing music sources.
The hard disk can store more than tens of thousands of songs. Install and apply the file server. Since nanopi-neo2 is a music server,
It's main role is to pull out the stored music that exists on the LAN.
I think that's enough information for you. We ask for the understanding of each visitor.
1) Install Niginx
2) Install mympd Please install and configure from the Linux Audio Foundation menu. You need to install emacs.


It is very important to add SWAP


One-board PCs do not have a built-in SWAP area, at least in the case of Armbian, so errors may occur during compilation due to the absence of this SWAP area. There is
. In the early compilations of mpd, the application occupied only a small amount of memory, so there is no need to worry, but in the latest compilations of MPD, the application may freeze or
It stops with an error. Errors can be avoided by using the information obtained to save SWAP space. It took half a day to compile.
The compilation will be completed in just a few hours. There are no errors at all. So, we will make money in the SWAP area. external site
There is, so I will link it. I've also saved it so it doesn't get lost. I think this will reduce compilation errors and hurdles.
Compilation speed is several tens or even 100 times faster. Compilation that used to take half a day is now completed in a few hours.

 

hint
Important make sure

On Bullseye Dietpi, I compiled mpd 0.23.9 and the installation was OK, but mympd was not enabled. In this case the source is compiled.
Binary was enabled if #apt-get install mpd. If /run/mpd/socket exists, it's OK, but when compiling the mpd source, there was no /run/mpd/socket and it was not activated.
Created symlink /etc/systemd/system/sockets.target.wants/mpd.socket → /usr/local/lib/systemd/system/mpd.socket.
There was a description that it will be enabled by doing the above, so if you enter # systemctl enable mpd.socket only for the first time
Created symlink /etc/systemd/system/sockets.target.wants/mpd.socket → /usr/local/lib/systemd/system/mpd.socket.
was displayed. There is a "." at the end of this part, so it cannot be activated, and the command "Created symlink" is not Linux, so link as follows
# ln -s /etc/systemd/system/sockets.target.wants/mpd.socket → /usr/local/lib/systemd/system/mpd.socket
Then I got /run/mpd/socket. For now, # reboot
It was OK. Mympd is now enabled on Dietpi Bullseye mpd 0.23.9.
I will write again.
# systemctl enable mpd.socket
This will cause a socket. After installing mpd from source or binary, be sure to check the socket, otherwise it won't work, so create it.

putty

putty on Armbian for Nanopi-neo2



mympd

mympd 10.3.3 by Armbian





Nanopi-neo2 by myMPD 10.3.3




This music server is basically a music server operated from the command line. Since we will use a one-board PC without HDMI output, I will build it remotely using SSH. This requires some knowledge of Linux.
With the ability to edit text from the command line, I don't think you need much Linux knowledge at all. It might be good to build and learn Linux little by little, while learning C++, Python and other languages
It might be good. You can build a music server by manual operation. Once installed, you can use the GUI as well. Volumio2 and Moodeaudio can be installed without knowledge of Linux. and music
You can enjoy it, but I think that such a music server that operates with scripts and commands that operate in the same way is the lowest price music server, but you may need some knowledge of Linux. .
It's not difficult at all, so it's titled "Building a music server that anyone can do".
It's a matter of feeling. There is no OS recommended by the manufacturer for these one-board PCs, but there is a proper OS, although it is a third party. They are Armbian and Dietpi.
Armbian can be thought of as a third party of Raspbian. It is actually a derivative of Debian Linux. Armbian is an OS that can be compiled using U-Boot using these. Use U-Boot yourself
I think it is possible to build a new OS. Please browse Uboot for that. Uboot is introduced below. Traduce by google .Bad english so sorry



How to make sounds


Nanopi-neo2, Nanopi, Pine64, etc. both Armbian and Dietpi produce sound in the same way. Be sure to install Alsa. This is to install without using a dedicated application.
In the case of Dietpi, the method is to install with the command Dietpi-software, but this should only be the lowest-level applications and do not install applications that are likely to conflict.
For example, install samba, mpd, Niginx, etc. with apt install. Compile and install the source and install others with apt-install.
ninja, which is necessary for compiling, is installed by installing pip, but it is included with Jammy, so you can install it with apt install.
meson can be installed with apt install. Ninja can be installed with apt install ninja-build, which is also renamed. mpd is the latest version mpd 0.23.5.
Later versions compile the source, create a binary and install it. Compilation takes a long time at 100MBPS. It takes about a day. Compilation requires optical line.
How to make the most important sound For Armbian under
/boot, edit armbianEnv.txt. For Dietpi and Pine64, there is a text file similar to this file, so edit it.
-------------------------------------------------
verbosity=1
bootlogo=false
console=serial
disp_mode=1920x1080p60
overlay_prefix=sun50i-h5
overlays_prefix=sun50i-h5-nanopi-neo2-spdif
overlays=usbhost1 usbhost2 spdif spdif-out
rootdev=UUID=5dffb9c7-e9b5-4e9d-a4f8-8a600c025387
rootfstype=ext4
usbstoragequirks=0x2537:0x1066:u,0x2537:0x1068:u
-------------------------------------------------- --
Edit this file. i.e. edit the xxxEnv.txt file. Write overlay_prefix and describe the driver name.
The driver has a directory called dtb in this file under /boot. Below that is a directory called allwinner, in which the driver is installed.
Drag the driver into this folder instead of installing it. This music server has his TKZ drivers built into it. For Nanopi-neo2 use this driver
I use it. You can use the included driver, the TKZ driver is a very well made driver with good sound and is very useful. The TKZ driver can be downloaded from my site.
Radio can also download copies of Moodeaudio files as Webradio. Please try. By installing Cantata on the host PC, you can receive internet radio, etc.



How to output SPDIF

This model and Pine64 have SPDIF output from the port. Since there is a port in terms of hardware, attach the Raspberrypi connector. called a header. No special parts
Cut it short to fit the Nanopi. If possible, attach a thin board to the header. Please refer to the circuit diagram and solder the pull-up resistor. Beyond that is the RCA output connector



hardware


schemtic

schmatic diagram for Nanopi-neo2 same as Nanopi-neo


asign

Left side is SPDIF out and right side is power line +5V



inside


SPDIF


Play Test

Play Test by 32bit nanopi-neo music server using Dietpi


using Nanopi-neo 32bit Arm Single board PC and mpd is 0.23.13 self configure from source mpd 0.23.13
mympd is 11.0.3 new version.this picture is play DSD as DoP PCM .sound is very good .stable sound
getting sound from SPDIF out to 24bit 198Khz DAC



Cantata


For Pine 64

It is basically the same as Nanopi-neo2. For pine64, the port is Euler. The way of remodeling is easy, just attach the header like Nanopi-neo2
Install the SPDIF output terminal. I will attach the image. I think no explanation is necessary.



SPDIF


assignment


eular


hardware



Click the link below for the schematic.


Schematic Diagram

How to install mympd and niginx is described in detail in the following Linux Audio Foundation.After installing mpd and confirming that there is sound and samba.
First, install and configure niginx according to the Linux Audio Foundation documentation.
Please install and configure mympd after confirming that niginx is working properly. This will definitely succeed.
detail show at site of Linux Audio Foundation.

A sample of the contents of /etc/nginx/sites-available/default is as follows.


Defaults file for Niginx

There are two types of format


gparted




There are exactly three types of micro SD formats for Linux. Gparted . xparted and the command without X. #parted seems to work.
A Gparted image is shown above. The hard disk of the host PC is also displayed like this. If you do it carelessly, you'll end up formatting your host PC and in trouble.
In that case, turn off the power without confirming. Maybe your PC is broken. Format when sleep deprived, tired or drunk
Please do not do this. I have broken workstations many times. Micro SD may be destroyed by heat etc. Also, because there are so many bad adapters
Avoid reusing and use a new card adapter. If you can't read it, buy a new one.
Next method
# fdisk /dev/mmcblk0
. Since the link is put on how to use it, the link destination is the site of NEC.
fdisk /dev/mmcblk0

Welcome to fdisk (util-linux 2.30.2).
The contents set here are retained only in memory until a write command is executed.
Use caution when using write commands.


Command (help with m):
Here m for help. First, enter "p". These are done from the command line on the terminal.
p shows all status of micro SD. Since it is a micro SD that does not move, delete everything first. " d " deletes everything.
After that, just in case, if you enter "p", it will be a clean micro SD. Since it is not deleted with this
The virtual memory state. In this way, you can partition your hard disk in the same way.
From now on, I will cut the interior sector by sector. Since there is an address and memory capacity, edit it paying attention to it.
Transfer the kernel to the PC with #w and save it. #q exits this fdisk without doing anything.
# If it comes out with w, it will be in the same condition as a new one. If an error is displayed when exiting from fdisk, please restart the host PC.
You will be able to use the micro SD that has been disabled due to the kernel being passed to the micro SD. This is an example.
After that, format as desired with Gparted or format with fdisk.
fdisk /dev/mmcblk0
sudo mkfs -t fat32 /dev/mmxblk0
Please use Gparted for formatting. These operations can also be performed on Live USB Linux, so use a USB memory
I think Linux is a good way to go. A host PC is required, but you can use Linux with Mint on a USB memory.



mympd sometimes doesn't start

Restart mympd from the command line.
systemctl status mympd If you look at
and don't see any errors or anything, but it's not running
Restart s.
$ sudo systemctl restart mympd Try it with
. after that
$ sudo systemctl status mympd If there is no error after entering
, I think it has started.
How did it come to be?
Such a phenomenon occurs when the power is turned off or the LAN cable is suddenly cut off.
Then
$ sudo mympd Please enter
.
root@mizushima4:~# mympd
02:30:50 NOTICE mympd Cache dir: "/var/cache/mympd"
02:30:50 NOTICE mympd Work dir: "/var/lib/mympd"
02:30:50 NOTICE mympd Config dir: "/var/lib/mympd/config"
02:30:50 NOTICE mympd Setting loglevel to NOTICE
02:30:50 NOTICE mympd Starting myMPD 10.3.3
2992be 1 mongoose.c:4186:mg_open_listen bind: 98
2992be 1 mongoose.c:3482:mg_listen Failed: http://0.0.0.0:8080, errno 98
02:30:50 EMERG mympd Can't bind to http://0.0.0.0:8080
Exiting error, thank you for using myMPD
That's OK. I'm getting an error, but it should work now.



restart mympd

mymd is OK after down music server



Update myMPD


mpd

When I browsed, mympd was the latest 11.0.0. So let's get it up to date.
$ sudo mkdir MYMPD Extract the files to MYMPD as
. Please refer to the link below for how to update mympd. Do not use the installation directory. .
Therefore, re-install from MYMPD and overwrite. It is updated without setting anything. Overwriting does not cause any problems.
And now he has his myMPD at 11.0.0 on both Nanopi-neo and nanopi-neo2 servers as well.




Linux Audip

mympd 11.0.0

mympd 11.0.0 on 22nd July 2023



mympd

mympd 11.0.0 by Nanopi-neo2 Armibian jemmy on 22nd July 2023



make sure check version and show
root@nanopi-neo2:~# mympd -v

Usage: mympd [OPTION]...

myMPD 11.0.0
(c) 2018-2023 Juergen Mang
https://github.com/jcorporation/myMPD



norah jones

Play Jazz Vocal DSD as DoP on 18th Aug 2023



I can't compile mpd, and I think it's probably because of the line here. 100MBPS is probably slow, it takes a long time to compile and I get an error that the pipeline is broken
For this reason, I decided to change the OS while reinstalling C++. Armbian Jammy Edge. Dietpi cannot be used due to garbled characters in the mpd file
The Nanopi-neo comes with Bookwarm installed. This is the compiled version of MPD installed. It's mpd 0.23.13.
This Nanopi-neo2 cannot be compiled, so it is the binary version of MPD 0.23.5. That's enough. Compilation is easy with the GIT version, so if the line is an optical line, use GIT
We recommend you install it. Compilation time during installation is reduced. git version mpd is 0.23.4 on 18th Aug 2023


Note:git

git clone https://github.com/MusicPlayerDaemon/MPD
cd MPD
meson . output/release --buildtype=debugoptimized -Db_ndebug=true
ninja -C output/release
before install by git please install ninja-build ,meason and git etc.



mpd

mympd 11.01


mympd 11.0.1

mympd 11.0.1 on 18th Aug


Armbian Jammy Edge


how to

32bit

install inside of small box ,nanopi-neo 32bit CPU



how to use FDisk




Sound Driver and Webradio


Mr. TKZ IPDIF driver

Webradio Station's file


LAF

How to make U-Boot

U-Boot




Last update 7th Mar 2024 in Yachiyo Chiba Japan

Since 4P1L SE Amplifier circuit on 19et May 2014 Sakura Chiba Japan

7th Avenue


Single Ended Amplifier D.I.Y

How to build up Amplifier Single Ended Amplifier 2004-2024