Jump to content
IGNORED

Article: Geek Speak: How To Build A BeagleBone Black MPD Music Server


Recommended Posts

Hello. I have run into an issue when following Chris' instructions. Upon reaching the point of install when I type "mount -a", I get a response back from the BBB that says "mount point cifs does not exist". Then, the BBB returns to "root@arm:~#". Everything to this point seems to track correctly. What am I doing wrong? Thanks. JCR

Link to comment
Hello. I have run into an issue when following Chris' instructions. Upon reaching the point of install when I type "mount -a", I get a response back from the BBB that says "mount point cifs does not exist". Then, the BBB returns to "root@arm:~#". Everything to this point seems to track correctly. What am I doing wrong? Thanks. JCR

 

Let me add a bit more information, even though I don't understand all of this. My NAS is a Thecus N700. Its local IP address on my network at home is 192.168.0.50. AFP, NFS, UPnP and FTP support are disabled. Media server is disabled. Samba service is enabled. The preferred share folder is //N7700/Media. My music is stored under various subfolders, and sub-subfolders, of the Media folder.

 

So, I am wondering if by following Chris' instructions, am I pointing to a non-existent locale for my music and that's why I get the mount point cifs does not exist error message? And, if so, what do I need to try to correct this? Thanks. JCR

Link to comment
Let me add a bit more information, even though I don't understand all of this. My NAS is a Thecus N700. Its local IP address on my network at home is 192.168.0.50. AFP, NFS, UPnP and FTP support are disabled. Media server is disabled. Samba service is enabled. The preferred share folder is //N7700/Media. My music is stored under various subfolders, and sub-subfolders, of the Media folder.

 

So, I am wondering if by following Chris' instructions, am I pointing to a non-existent locale for my music and that's why I get the mount point cifs does not exist error message? And, if so, what do I need to try to correct this? Thanks. JCR

 

What is the exact line you have in your /etc/fstab file to mount the disk? On Linux you need to create the directory for the mount point, such as '/media/n7700' with a 'mkdir /media/n7700' command and then make sure you use the same name in the /etc/fstab line.

System (i): Stack Audio Link > 2Qute+MCRU psu; Gyrodec/SME V/Hana SL/EAT E-Glo Petit/Magnum Dynalab FT101A) > PrimaLuna Evo 100 amp > Klipsch RP-600M/REL T5x subs

System (ii): Allo USB Signature > Bel Canto uLink+AQVOX psu > Chord Hugo > APPJ EL34 > Tandy LX5/REL Tzero v3 subs

System (iii) KEF LS50W/KEF R400b subs

 

Link to comment
What is the exact line you have in your /etc/fstab file to mount the disk? On Linux you need to create the directory for the mount point, such as '/media/n7700' with a 'mkdir /media/n7700' command and then make sure you use the same name in the /etc/fstab line.

 

Ahem. Remedial reading lesson required on my part. I didn't create a new mkdir as you describe above (I'm using the /mnt/music folder on the BBB as Chris instructs), but did now put the right address, 192.168.0.50/Media (experimenting suggests I don't need to reference the N7700 in the address, since the 192.168.0.50 represents that), in the /etc/fstab line to link my NAS to the BBB's /mnt/music folder. I also failed to put a space in that line between my address and /mnt/music folder reference in the same line. Once correcting both of these and when running mount -a, I get no error message! I believe that NCMPC is now doing the database update, as it showed it was connected to the localhost and when hitting Control U, it stated that it was doing the update. I'm doing this remotely from my office, so I will have to run MPaD to see if it all works when I get home this evening. Thanks for setting me on straight, Richard. JCR

Link to comment
Ahem. Remedial reading lesson required on my part. I didn't create a new mkdir as you describe above (I'm using the /mnt/music folder on the BBB as Chris instructs), but did now put the right address, 192.168.0.50/Media (experimenting suggests I don't need to reference the N7700 in the address, since the 192.168.0.50 represents that), in the /etc/fstab line to link my NAS to the BBB's /mnt/music folder. I also failed to put a space in that line between my address and /mnt/music folder reference in the same line. Once correcting both of these and when running mount -a, I get no error message! I believe that NCMPC is now doing the database update, as it showed it was connected to the localhost and when hitting Control U, it stated that it was doing the update. I'm doing this remotely from my office, so I will have to run MPaD to see if it all works when I get home this evening. Thanks for setting me on straight, Richard. JCR

 

Well, Richard (and others here), I am not quite there yet. When I opened MPaD and manually configured for my BBB, MPaD populated, sloppily, with some of the music stored on my NAS. It didn't seem to search all the way through the various subfolders and what it picked out seemed somewhat random. However, selecting an album or a track didn't get anything to play.

 

My /etc/fstab reads like this:

 

//192.168.0.50/Media /mnt/music cifs defaults,username=admin,password=admin 0 0

 

192.168.0.50 is the local address of my NAS, and Media is the main share folder.

 

Before trying further to get anything to play, I decided to try to narrow what part of the NAS that the NCMPC database would search through, so I changed the first part of the /etc/fstab line to read "//192.168.0.50/Media/Music" where "Music" is the desired music subfolder for the NCMPC to scan and serve up. Once doing that, and running an update on the NCMPC database, mPad is now devoid of any content, even though it appears to be connected per the configured players dropdown. Returning to the original /etc/fstab and running update still leaves me with a MPaD showing no artists, albums, songs or other content. So, what am I doing wrong?

 

Separately, does the USB port of the BBB power a DAC? I have mine plugged into an HRT Music Streamer II and nothing is lighting up on the DAC. Perhaps this is because no music is streaming out of the BBB, but I thought I'd see a power light on the DAC.

 

Thanks in advance for all thoughts. JCR

Link to comment
I’m very excited about this project. Two questions:

Is a NAS necessary or can I just link to my music library on my Windows 7 desktop?

If I use an Airport Express to access the BeagleBone is the configuration different?

 

You can access the music library on your Windows 7 desktop as long as you export it as an SMB CIFS share. Then follow the instructions in the article for defining an entry in your /etc/fstab file on the BeagleBone.

 

I'm not sure how Airport Express fits in - as long as you are using it as a WiFi router, the BeagleBone will just be another device on your local network.

System (i): Stack Audio Link > 2Qute+MCRU psu; Gyrodec/SME V/Hana SL/EAT E-Glo Petit/Magnum Dynalab FT101A) > PrimaLuna Evo 100 amp > Klipsch RP-600M/REL T5x subs

System (ii): Allo USB Signature > Bel Canto uLink+AQVOX psu > Chord Hugo > APPJ EL34 > Tandy LX5/REL Tzero v3 subs

System (iii) KEF LS50W/KEF R400b subs

 

Link to comment
Well, Richard (and others here), I am not quite there yet. When I opened MPaD and manually configured for my BBB, MPaD populated, sloppily, with some of the music stored on my NAS. It didn't seem to search all the way through the various subfolders and what it picked out seemed somewhat random. However, selecting an album or a track didn't get anything to play.

 

My /etc/fstab reads like this:

 

//192.168.0.50/Media /mnt/music cifs defaults,username=admin,password=admin 0 0

 

192.168.0.50 is the local address of my NAS, and Media is the main share folder.

 

Before trying further to get anything to play, I decided to try to narrow what part of the NAS that the NCMPC database would search through, so I changed the first part of the /etc/fstab line to read "//192.168.0.50/Media/Music" where "Music" is the desired music subfolder for the NCMPC to scan and serve up. Once doing that, and running an update on the NCMPC database, mPad is now devoid of any content, even though it appears to be connected per the configured players dropdown. Returning to the original /etc/fstab and running update still leaves me with a MPaD showing no artists, albums, songs or other content. So, what am I doing wrong?

 

Separately, does the USB port of the BBB power a DAC? I have mine plugged into an HRT Music Streamer II and nothing is lighting up on the DAC. Perhaps this is because no music is streaming out of the BBB, but I thought I'd see a power light on the DAC.

 

Thanks in advance for all thoughts. JCR

 

I would ssh onto the BeagleBone and see if you can see all the music tracks you expect under /mnt/music. There could be a permissions problem where some of the tracks don't have the correct permissions perhaps.

 

Look in /var/log/mpd/mpd.log and see if there are any errors about MPD trying to read the missing music tracks. You can look at the log file while the database is being built with a 'tail -f /var/log/mpd/mpd.log' command and it will show new logging info as it arrives.

 

I have had problems with the ffmpeg library not correctly reading the metadata for some of my AIFF files. I fixed that by building the latest version of the library as opposed to the standard package in Debian Wheezy, but that might be quite hard to do if you are not a programmer.

System (i): Stack Audio Link > 2Qute+MCRU psu; Gyrodec/SME V/Hana SL/EAT E-Glo Petit/Magnum Dynalab FT101A) > PrimaLuna Evo 100 amp > Klipsch RP-600M/REL T5x subs

System (ii): Allo USB Signature > Bel Canto uLink+AQVOX psu > Chord Hugo > APPJ EL34 > Tandy LX5/REL Tzero v3 subs

System (iii) KEF LS50W/KEF R400b subs

 

Link to comment
I would ssh onto the BeagleBone and see if you can see all the music tracks you expect under /mnt/music. There could be a permissions problem where some of the tracks don't have the correct permissions perhaps.

 

Look in /var/log/mpd/mpd.log and see if there are any errors about MPD trying to read the missing music tracks. You can look at the log file while the database is being built with a 'tail -f /var/log/mpd/mpd.log' command and it will show new logging info as it arrives.

 

I have had problems with the ffmpeg library not correctly reading the metadata for some of my AIFF files. I fixed that by building the latest version of the library as opposed to the standard package in Debian Wheezy, but that might be quite hard to do if you are not a programmer.

 

Richard, thank you for the continued dialogue. I went back to the original 192.168.0.50/Media folder and after a full day of indexing, it does appear that most everything is now appearing in the directories -- including the various subfolders under Browse. So, now I can pull up an album, with artwork, but when I play, it just stays in pause -- and selecting the play button doesn't get it to play. See attached photo (if I attached it correctly).

 

I ran the /var/log... as you noted and this is what I get:

 

root@arm:~# tail -f /var/log/mpd/mpd.log

ALSA lib pcm_hw.c:1401:(_snd_pcm_hw_open) Invalid value for card

Jan 04 13:56 : output: Failed to open "BBB Music Player" [alsa]: Failed to opeALSA device "hw:1,0": No such file or directory

ALSA lib pcm_hw.c:1401:(_snd_pcm_hw_open) Invalid value for card

Jan 04 15:24 : output: Failed to open "BBB Music Player" [alsa]: Failed to opeALSA device "hw:1,0": No such file or directory

Jan 04 15:24 : player_thread: problems opening audio device while playing "Mus/New folder (110)/2496/Rolling Stones - Stripped (1995) [flac] {UK 2 LP-Set; Hes}/C4 - Angie.flac"

ALSA lib pcm_hw.c:1401:(_snd_pcm_hw_open) Invalid value for card

Jan 04 15:24 : output: Failed to open "BBB Music Player" [alsa]: Failed to opeALSA device "hw:1,0": No such file or directory

ALSA lib pcm_hw.c:1401:(_snd_pcm_hw_open) Invalid value for card

Jan 04 15:28 : output: Failed to open "BBB Music Player" [alsa]: Failed to opeALSA device "hw:1,0": No such file or directory

Jan 04 15:28 : player_thread: problems opening audio device while playing "Mus/New folder (110)/2496/Rolling Stones - Stripped (1995) [flac] {UK 2 LP-Set; Hes}/A2 - Like a Rolling Stone.flac"

 

The Stones album is what is currently up on the screen on my iPad in MPaD and is the current album that won't play.

 

So near, yet so far. More help needed.

 

I also continue to note that no power light comes on the USB-attached DAC, so I am wondering if others are getting the requisite power out of the BBB.

 

JCR

photo.jpg

Link to comment
Richard, thank you for the continued dialogue. I went back to the original 192.168.0.50/Media folder and after a full day of indexing, it does appear that most everything is now appearing in the directories -- including the various subfolders under Browse. So, now I can pull up an album, with artwork, but when I play, it just stays in pause -- and selecting the play button doesn't get it to play. See attached photo (if I attached it correctly).

 

I ran the /var/log... as you noted and this is what I get:

 

root@arm:~# tail -f /var/log/mpd/mpd.log

ALSA lib pcm_hw.c:1401:(_snd_pcm_hw_open) Invalid value for card

Jan 04 13:56 : output: Failed to open "BBB Music Player" [alsa]: Failed to opeALSA device "hw:1,0": No such file or directory

ALSA lib pcm_hw.c:1401:(_snd_pcm_hw_open) Invalid value for card

Jan 04 15:24 : output: Failed to open "BBB Music Player" [alsa]: Failed to opeALSA device "hw:1,0": No such file or directory

Jan 04 15:24 : player_thread: problems opening audio device while playing "Mus/New folder (110)/2496/Rolling Stones - Stripped (1995) [flac] {UK 2 LP-Set; Hes}/C4 - Angie.flac"

ALSA lib pcm_hw.c:1401:(_snd_pcm_hw_open) Invalid value for card

Jan 04 15:24 : output: Failed to open "BBB Music Player" [alsa]: Failed to opeALSA device "hw:1,0": No such file or directory

ALSA lib pcm_hw.c:1401:(_snd_pcm_hw_open) Invalid value for card

Jan 04 15:28 : output: Failed to open "BBB Music Player" [alsa]: Failed to opeALSA device "hw:1,0": No such file or directory

Jan 04 15:28 : player_thread: problems opening audio device while playing "Mus/New folder (110)/2496/Rolling Stones - Stripped (1995) [flac] {UK 2 LP-Set; Hes}/A2 - Like a Rolling Stone.flac"

 

The Stones album is what is currently up on the screen on my iPad in MPaD and is the current album that won't play.

 

So near, yet so far. More help needed.

 

I also continue to note that no power light comes on the USB-attached DAC, so I am wondering if others are getting the requisite power out of the BBB.

 

JCR

 

I did a search for the player_thread: problems opening audio device while playing error message. Perhaps this is what my problem is, but I don't know if I should follow these commands. Sound Device Permission Problems - Music Player Daemon Community Wiki

 

JCR

Link to comment

jrobbins50,

 

A few posts back, silverarrows was experiencing a similar issue to you. Chris's steps helped the Beaglebone to recognize the DAC again:

 

Shut it down, pull the power, connect the Bridge, reconnect the power. Should work fine.

 

Id run the command "aplay -l" to make sure the device is visible.

 

The HRT in your situation, instead of the Bridge.

 

What's the power rating of your Power Supply?

Link to comment

 

Separately, does the USB port of the BBB power a DAC? I have mine plugged into an HRT Music Streamer II and nothing is lighting up on the DAC. Perhaps this is because no music is streaming out of the BBB, but I thought I'd see a power light on the DAC.

 

Thanks in advance for all thoughts. JCR

 

No, you need to use a 5 volt power supply deliverying at least 1 amp (500 mA for the BeagleBone, 500 mA for a USB peripheral) connected to the round socket, not the micro USB socket. This would explain why your HRT isn't getting powered up I think.

System (i): Stack Audio Link > 2Qute+MCRU psu; Gyrodec/SME V/Hana SL/EAT E-Glo Petit/Magnum Dynalab FT101A) > PrimaLuna Evo 100 amp > Klipsch RP-600M/REL T5x subs

System (ii): Allo USB Signature > Bel Canto uLink+AQVOX psu > Chord Hugo > APPJ EL34 > Tandy LX5/REL Tzero v3 subs

System (iii) KEF LS50W/KEF R400b subs

 

Link to comment
jrobbins50,

 

A few posts back, silverarrows was experiencing a similar issue to you. Chris's steps helped the Beaglebone to recognize the DAC again:

 

 

 

The HRT in your situation, instead of the Bridge.

 

What's the power rating of your Power Supply?

 

So near, yet so far.

 

Unplugged the BBB and replugged it in. Power light came on the HRT. The supply is 5V 2A (the one recommended by Chris), so it should have worked to power both the BBB and the HRT, and it now seemingly does. Got back into Putty and ran the aplay -1 command. It shows card 0 as the BBB and card 1 as the Music Streamer II USB Audio. Obviously, that is all working correctly.

 

Grabbed my iPad and pulled up MPaD. It shows it is connected to the BBB. Entries are there under album, artist, song. However, all previous entries under Browse are now gone. Must have something to do with having pulled the power. Picked a variety of songs to play -- and they don't. Nothing happens. I've now selected the "update database" choice in the MPaD, which I assume is the same as having done ctrl-U in Putty. Browse is starting to re-populate. But, selecting a song doesn't move it into the Now Playing area of the MPaD screen, nor does the Nothing Playing notation change.

 

As I say, so near, yet so far. Next ideas, crew?

 

Edit update: as new songs begin to repopulate in Browse, I can play them! Sounds is now coming through the HRT into a Little Dot MKII headphone amp with AKG K701 headphones! This must be an issue that the local cache became corrupt after the power unplug. I have selected the clear local cache option in MPaD and it is repopulating everything and I can play songs as repopulated. I bet that eight hours from now, everything will be re-indexed and functioning.

 

A different issue now. Frankly, the sound is somewhat distorted as the volume level on a recording rises. It almost sounds as though I am overdriving the headphone amp from the HRT. Perhaps the volume level inside of MPD is too high? The volume bar on MPaD is disabled, so I assume there is some adjustment to be made within Putty to cure this? How do I adjust this? Thanks. JCR

Link to comment
Here is a link to the available images

 

Index of /deb/flasher/wheezy

 

Thanks for the link.

BBB (hopefully) configured correctly and ncmpc is indexing media on the NAS.

MPaD installed but cannot see BBB on the network.

 

Couple questions:

1. How will I know when the media indexing is completed?

2. When configuring connection to MPD in MPad, Server= My.NAS.Address, password=root...is that correct?

 

Thanks

Link to comment
Thanks for the link.

BBB (hopefully) configured correctly and ncmpc is indexing media on the NAS.

MPaD installed but cannot see BBB on the network.

 

Couple questions:

1. How will I know when the media indexing is completed?

2. When configuring connection to MPD in MPad, Server= My.NAS.Address, password=root...is that correct?

 

Thanks

In ncmpc there will be a little letter U in the upper right when the database is updating.

 

You shouldn't need a username and password to connect mpad to the BBB.

Founder of Audiophile Style | My Audio Systems AudiophileStyleStickerWhite2.0.png AudiophileStyleStickerWhite7.1.4.png

Link to comment
In ncmpc there will be a little letter U in the upper right when the database is updating.

 

You shouldn't need a username and password to connect mpad to the BBB.

 

Dont see a U on the ncmpc page, and there are no tracks listed. No error message either

Checked the log on my NAS and cant see any entries confirming that the BBB is connecting correctly

Any suggestions on how to proceed?

Link to comment
Dont see a U on the ncmpc page, and there are no tracks listed. No error message either

Checked the log on my NAS and cant see any entries confirming that the BBB is connecting correctly

Any suggestions on how to proceed?

Type the word mount at the command line and see if your NAS is listed as being mounted.

 

Make sure you pressed ctrl and U to update via ncmpc.

 

See if you can browse the NAS by switching directories to /mnt/music. Use cd /mnt/music then type ls and hit enter to list everything.

 

also try typing service mpd restart and see if you get any errors.

Founder of Audiophile Style | My Audio Systems AudiophileStyleStickerWhite2.0.png AudiophileStyleStickerWhite7.1.4.png

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...