So, it appears there is no busy device or resources other than mpd. How do you think, miero?
I checked my working Botic system in the same way.
Code:
root@botic:~# lsof | grep snd
mpd 1194 mpd mem REG 179,2 289448 9583 /usr/lib/arm-linux-gnueabihf/libsndfile.so.1.0.25
mpd 1194 mpd 15u CHR 116,3 0t0 8415 /dev/snd/pcmC0D0p
mpd 1194 1323 mpd mem REG 179,2 289448 9583 /usr/lib/arm-linux-gnueabihf/libsndfile.so.1.0.25
mpd 1194 1323 mpd 15u CHR 116,3 0t0 8415 /dev/snd/pcmC0D0p
mpd 1194 1324 mpd mem REG 179,2 289448 9583 /usr/lib/arm-linux-gnueabihf/libsndfile.so.1.0.25
mpd 1194 1324 mpd 15u CHR 116,3 0t0 8415 /dev/snd/pcmC0D0p
mpd 1194 1325 mpd mem REG 179,2 289448 9583 /usr/lib/arm-linux-gnueabihf/libsndfile.so.1.0.25
mpd 1194 1325 mpd 15u CHR 116,3 0t0 8415 /dev/snd/pcmC0D0p
mpd 1194 1326 mpd mem REG 179,2 289448 9583 /usr/lib/arm-linux-gnueabihf/libsndfile.so.1.0.25
mpd 1194 1326 mpd 15u CHR 116,3 0t0 8415 /dev/snd/pcmC0D0p
Though I'm not sure if incidental alteration of file system permission can cause this error, ichiban, could you show your /data/remote contents by the command below?
Code:
ls -ld /data/remote/*
Code:
//remote_IP_address/top_dir_of_your_music_source /data/remote cifs username=your_name,password=your_password,uid=mpd,file_mode=0777,dir_mode=0777,iocharset=utf8,rsize=16384,wsize=4096,cache=strict,sec=ntlmv2 0 0
Last edited:
I checked my working Botic system in the same way.
Ignoring the rows including CHR, which is basically set for real-time attributes for the process by chrt, I don't see any difference from the ichiban's result: that means your basic setting appears almost correct.Code:root@botic:~# lsof | grep snd mpd 1194 mpd mem REG 179,2 289448 9583 /usr/lib/arm-linux-gnueabihf/libsndfile.so.1.0.25 mpd 1194 mpd 15u CHR 116,3 0t0 8415 /dev/snd/pcmC0D0p mpd 1194 1323 mpd mem REG 179,2 289448 9583 /usr/lib/arm-linux-gnueabihf/libsndfile.so.1.0.25 mpd 1194 1323 mpd 15u CHR 116,3 0t0 8415 /dev/snd/pcmC0D0p mpd 1194 1324 mpd mem REG 179,2 289448 9583 /usr/lib/arm-linux-gnueabihf/libsndfile.so.1.0.25 mpd 1194 1324 mpd 15u CHR 116,3 0t0 8415 /dev/snd/pcmC0D0p mpd 1194 1325 mpd mem REG 179,2 289448 9583 /usr/lib/arm-linux-gnueabihf/libsndfile.so.1.0.25 mpd 1194 1325 mpd 15u CHR 116,3 0t0 8415 /dev/snd/pcmC0D0p mpd 1194 1326 mpd mem REG 179,2 289448 9583 /usr/lib/arm-linux-gnueabihf/libsndfile.so.1.0.25 mpd 1194 1326 mpd 15u CHR 116,3 0t0 8415 /dev/snd/pcmC0D0p
Though I'm not sure if incidental alteration of file system permission can cause this error, ichiban, could you show your /data/remote contents by the command below?
Also, for setting of /etc/fstab, you might try those options.Code:ls -ld /data/remote/*
If things remain unchanged, I'll strongly recommend to go back to the start and try to prepare a bootable Botic SD on linux using such a live CD/USB as miero recommended somewhere before. This will be more efficient than working on Windows. I think you had wasted your time so much enough to learn linux.Code://remote_IP_address/top_dir_of_your_music_source /data/remote cifs username=your_name,password=your_password,uid=mpd,file_mode=0777,dir_mode=0777,iocharset=utf8,rsize=16384,wsize=4096,cache=strict,sec=ntlmv2 0 0
root@botic:~#
root@botic:~# ls -ld /data/remote/*
dr-xr-xr-x 2 root root 0 May 10 18:52 /data/remote/MUSIC_Library_DUBS
dr-xr-xr-x 2 root root 0 May 12 22:08 /data/remote/MUSIC_MY_CDS_DUBBED
root@botic:~# root@botic:~#
I'm waiting for a response on the Hermes-BBB/Botic cape for BeagleBone Black thread regarding the J1 connector to the BBB T5-6-7-8 pins.
I when I assembled the boards I thought the four pin connector was for the battery, for which I'm waiting. But, going back and looking at some pics of other builds I see it's not for the battery. Could this be the source of my problem.
Thanks!It is for the battery - indirectly. I guess it conveys power to/from the battery.
root@botic:~#
root@botic:~# ls -ld /data/remote/*
dr-xr-xr-x 2 root root 0 May 10 18:52 /data/remote/MUSIC_Library_DUBS
dr-xr-xr-x 2 root root 0 May 12 22:08 /data/remote/MUSIC_MY_CDS_DUBBED
root@botic:~# root@botic:~#
Oh well, you have dirs of wrong permission. The dir /data/remote, for exampe, should be like this:
drwxrwxrwx 2 mpd root 0 Jul 6 2014 /data/remote
The owner of /data/remote should be mpd. That is to say, this Mr "root" has been occupying your music source directory, saying to Mr "mpd", "Don't come close to me." That's why Mr "mpd" could not transfer your music source to Hermes-Cronus via Botic BBB.
Well, it's time to change the owner and permission. You might try this one:
I hope this will work.chmod 777 /data/remote
chmod 777 /data/remote/*
chown -R mpd.root /data/remote
chown -R mpd.root /data/remote/*
BTW, J1 issue is not related to your current problem. Soldering 4 pins can be done anytime later.
Oh well, you have dirs of wrong permission. The dir /data/remote, for exampe, should be like this:
drwxrwxrwx 2 mpd root 0 Jul 6 2014 /data/remote
The owner of /data/remote should be mpd. That is to say, this Mr "root" has been occupying your music source directory, saying to Mr "mpd", "Don't come close to me." That's why Mr "mpd" could not transfer your music source to Hermes-Cronus via Botic BBB.
Well, it's time to change the owner and permission. You might try this one:
I hope this will work.
BTW, J1 issue is not related to your current problem. Soldering 4 pins can be done anytime later.
Permission denied on these commands. I'll delete the directory and recreate it.
chown: changing ownership of `/data/remote/MUSIC_MY_CDS_DUBBED/Zoot Sims The Best Of Zoot Sims': Permission denied
root@botic:/#
root@botic:/# ls -ld /data/remote/*
dr-xr-xr-x 2 root root 0 May 10 18:52 /data/remote/MUSIC_Library_DUBS
dr-xr-xr-x 2 root root 0 May 12 22:08 /data/remote/MUSIC_MY_CDS_DUBBED
Permission denied on these commands. I'll delete the directory and recreate it.
chown: changing ownership of `/data/remote/MUSIC_MY_CDS_DUBBED/Zoot Sims The Best Of Zoot Sims': Permission denied
root@botic:/#
root@botic:/# ls -ld /data/remote/*
dr-xr-xr-x 2 root root 0 May 10 18:52 /data/remote/MUSIC_Library_DUBS
dr-xr-xr-x 2 root root 0 May 12 22:08 /data/remote/MUSIC_MY_CDS_DUBBED
Okay, it should be Windows resisting to permission change. Go to the source files on Windows and make them all accessible to guest or whatever it is.
Hope this will work.
I'm wondering how people are playing SACDs. Also, if anyone know a way to get HLS streams working, I'd love to hear it.
This thread may be of interest:
Music Player Daemon • View topic - SACD ISO playback in MPD
This thread may be of interest:
Music Player Daemon • View topic - SACD ISO playback in MPD
Can't get the chmod to take
root@botic:/data#
root@botic:/data# chmod -c 777 remote
mode of `remote' changed from 0755 (rwxr-xr-x) to 0777 (rwxrwxrwx)
root@botic:/data#
root@botic:/data# ls -l
total 8
drwxr-xr-x 2 root root 4096 May 12 22:08 remote
drwxr-xr-x 2 root root 4096 May 13 18:29 tempMUSIC
root@botic:/data# ls -ld
drwxr-xr-x 4 root root 4096 May 14 15:55 .
root@botic:/data# pwd
/data
root@botic:/data# cd remote
root@botic:/data/remote# ls -la
total 8
drwxr-xr-x 2 root root 4096 May 12 22:08 .
drwxr-xr-x 4 root root 4096 May 14 15:55 ..
dr-xr-xr-x 2 root root 0 May 10 18:52 MUSIC_Library_DUBS
dr-xr-xr-x 2 root root 0 May 12 22:08 MUSIC_MY_CDS_DUBBED
root@botic:/data/remote# ls -l *MY*|more
total 51521
drwxr-xr-x 2 root root 0 Dec 17 18:37 Aaron Copland Appalachian Spring Ro
deo Fanfare for the Common Man Atlanta Symphony Louis Lane Telarc CD-80076
root@botic:/data#
root@botic:/data# chmod -c 777 remote
mode of `remote' changed from 0755 (rwxr-xr-x) to 0777 (rwxrwxrwx)
root@botic:/data#
root@botic:/data# ls -l
total 8
drwxr-xr-x 2 root root 4096 May 12 22:08 remote
drwxr-xr-x 2 root root 4096 May 13 18:29 tempMUSIC
root@botic:/data# ls -ld
drwxr-xr-x 4 root root 4096 May 14 15:55 .
root@botic:/data# pwd
/data
root@botic:/data# cd remote
root@botic:/data/remote# ls -la
total 8
drwxr-xr-x 2 root root 4096 May 12 22:08 .
drwxr-xr-x 4 root root 4096 May 14 15:55 ..
dr-xr-xr-x 2 root root 0 May 10 18:52 MUSIC_Library_DUBS
dr-xr-xr-x 2 root root 0 May 12 22:08 MUSIC_MY_CDS_DUBBED
root@botic:/data/remote# ls -l *MY*|more
total 51521
drwxr-xr-x 2 root root 0 Dec 17 18:37 Aaron Copland Appalachian Spring Ro
deo Fanfare for the Common Man Atlanta Symphony Louis Lane Telarc CD-80076
you do not need write access "w" for playing the file...
ichiban, you can try copying any file from remote into /tmp directory and play it there
ichiban, you can try copying any file from remote into /tmp directory and play it there
you do not need write access "w" for playing the file...
ichiban, you can try copying any file from remote into /tmp directory and play it there
That doesn't work. I think twluke is right --
http://www.diyaudio.com/forums/twisted-pear/258254-support-botic-linux-driver-26.html#post4325899
I need to change permissions, maybe owner too?
Altho, tmp does have read permissions for everyone!?
root@botic:/data/remote/MUSIC_MY_CDS_DUBBED# cp Track01.wav /tmp/
root@botic:/data/remote/MUSIC_MY_CDS_DUBBED# cd /tmp
root@botic:/tmp# ls -l
total 51520
-rwxr-xr-x 1 root root 52755804 May 14 16:19 Track01.wav
root@botic:/tmp#
root@botic:/tmp# play /tmp/Track01.wav
/tmp/Track01.wav:
File Size: 52.8M Bit Rate: 1.41M
Encoding: Signed PCM
Channels: 2 @ 16-bit
Samplerate: 44100Hz
Replaygain: off
Duration: 00:04:59.07
In:0.00% 00:00:00.00 [00:04:59.07] Out:0 [ | ] Clip:0 play WARN alsa: Input/output error
play FAIL sox: `default' Device or resource busy: Operation not permitted
Done.
root@botic:/tmp#
Last edited:
Tried again changing permissions on Track01.wav will not play!?
root@botic:/tmp#
root@botic:/tmp# ls -ld /tmp/Tra*
-rwxr-xr-x 1 root root 52755804 May 14 16:19 /tmp/Track01.wav
root@botic:/tmp# chmod -c 777 /tmp/Track01.wav
mode of `/tmp/Track01.wav' changed from 0755 (rwxr-xr-x) to 0777 (rwxrwxrwx)
root@botic:/tmp#
root@botic:/tmp#
root@botic:/tmp# ls -ld /tmp/Tra*
-rwxrwxrwx 1 root root 52755804 May 14 16:19 /tmp/Track01.wav
root@botic:/tmp#
root@botic:/tmp#
root@botic:/tmp#
root@botic:/tmp#
root@botic:/tmp# play /tmp/Track01.wav
/tmp/Track01.wav:
File Size: 52.8M Bit Rate: 1.41M
Encoding: Signed PCM
Channels: 2 @ 16-bit
Samplerate: 44100Hz
Replaygain: off
Duration: 00:04:59.07
In:0.00% 00:00:00.00 [00:04:59.07] Out:0 [ | ] Clip:0 play WARN alsa: Input/output error
play FAIL sox: `default' Device or resource busy: Operation not permitted
Done.
root@botic:/tmp# root@botic:/tmp#
root@botic:/tmp#
root@botic:/tmp# ls -ld /tmp/Tra*
-rwxr-xr-x 1 root root 52755804 May 14 16:19 /tmp/Track01.wav
root@botic:/tmp# chmod -c 777 /tmp/Track01.wav
mode of `/tmp/Track01.wav' changed from 0755 (rwxr-xr-x) to 0777 (rwxrwxrwx)
root@botic:/tmp#
root@botic:/tmp#
root@botic:/tmp# ls -ld /tmp/Tra*
-rwxrwxrwx 1 root root 52755804 May 14 16:19 /tmp/Track01.wav
root@botic:/tmp#
root@botic:/tmp#
root@botic:/tmp#
root@botic:/tmp#
root@botic:/tmp# play /tmp/Track01.wav
/tmp/Track01.wav:
File Size: 52.8M Bit Rate: 1.41M
Encoding: Signed PCM
Channels: 2 @ 16-bit
Samplerate: 44100Hz
Replaygain: off
Duration: 00:04:59.07
In:0.00% 00:00:00.00 [00:04:59.07] Out:0 [ | ] Clip:0 play WARN alsa: Input/output error
play FAIL sox: `default' Device or resource busy: Operation not permitted
Done.
root@botic:/tmp# root@botic:/tmp#
nope, he is not.
busy is the audio device (Botic) not the file which you want to play...
and I really have no idea what could be wrong in your case ....
I'm considering option inspecting it by myself, but you would need to allow me to connect on your BBB. If you agree please write me a PM, I will send you instructions (later).
busy is the audio device (Botic) not the file which you want to play...
and I really have no idea what could be wrong in your case ....
I'm considering option inspecting it by myself, but you would need to allow me to connect on your BBB. If you agree please write me a PM, I will send you instructions (later).
nope, he is not.
busy is the audio device (Botic) not the file which you want to play...
and I really have no idea what could be wrong in your case ....
I'm considering option inspecting it by myself, but you would need to allow me to connect on your BBB. If you agree please write me a PM, I will send you instructions (later).
You are most kind. 🙂 But, first maybe I should see what happens by redoing the flash to basic debian then onto botic v4 ~ v5 ??? Yes?
I need to change permissions, maybe owner too?
Yes, changing owner is the first thing to do. Changing permission is next.
Last edited:
ichiban, please post here output of following command before deleting image:
for i in /sys/module/snd_soc_botic/parameters/*; do echo "* $i"; cat $i; done
I believe there is something misconfigured. It is not issue of permissions as twluke implies, not in this case. 🙂
for i in /sys/module/snd_soc_botic/parameters/*; do echo "* $i"; cat $i; done
I believe there is something misconfigured. It is not issue of permissions as twluke implies, not in this case. 🙂
ichiban, please post here output of following command before deleting image:
for i in /sys/module/snd_soc_botic/parameters/*; do echo "* $i"; cat $i; done
I believe there is something misconfigured. It is not issue of permissions as twluke implies, not in this case. 🙂
root@botic:/#
root@botic:/# for i in /sys/module/snd_soc_botic/parameters/*; do echo "* $i"; cat $i; done
* /sys/module/snd_soc_botic/parameters/blr_ratio
64
* /sys/module/snd_soc_botic/parameters/clk_44k1
22579200
* /sys/module/snd_soc_botic/parameters/clk_48k
24576000
* /sys/module/snd_soc_botic/parameters/dai_format
16385
* /sys/module/snd_soc_botic/parameters/dsd_format_switch
1
* /sys/module/snd_soc_botic/parameters/ext_masterclk
3
* /sys/module/snd_soc_botic/parameters/helper_cmd
* /sys/module/snd_soc_botic/parameters/pinconfig
default
* /sys/module/snd_soc_botic/parameters/serconfig
MMMM
root@botic:/#
Got to this step and cannot recall how I upgraded kernel on SD card to botic5 😕
========== from ieee.com =========
Flashing image on eMMC
The eMMC of BBB can be flashed with this "Botic distribution" using following
steps:
Notice: please upgrade kernel on SD card to botic5 and reboot before flashing
to eMMC
(( backup all important ))
(( boot from SD card ))
root@bbb:~# umount /boot/uboot/
root@bbb:~# /opt/scripts/tools/eMMC/generic-eMMC-flasher-12mb.sh
... (after 5 minutes of copying data)
root@bbb:~# poweroff
((wait until it powers down))
((remove SD card))
((power it on))
========== from ieee.com =========
Flashing image on eMMC
The eMMC of BBB can be flashed with this "Botic distribution" using following
steps:
Notice: please upgrade kernel on SD card to botic5 and reboot before flashing
to eMMC
(( backup all important ))
(( boot from SD card ))
root@bbb:~# umount /boot/uboot/
root@bbb:~# /opt/scripts/tools/eMMC/generic-eMMC-flasher-12mb.sh
... (after 5 minutes of copying data)
root@bbb:~# poweroff
((wait until it powers down))
((remove SD card))
((power it on))
busy is the audio device (Botic) not the file which you want to play...
and I really have no idea what could be wrong in your case ....
I'm considering option inspecting it by myself, but you would need to allow me to connect on your BBB. If you agree please write me a PM, I will send you instructions (later).
Well................
did it all over again from zero to bot-v5, and still have the "play FAIL sox:" error!? 😱😕😡🙄
===================== Putty output================
root@botic:~#
root@botic:~# mount -t cifs //192.168.1.12/M/MUSIC /data/remote -o username=Joe@MSI-PC,password=jam
root@botic:~#
root@botic:~# ls -l /data/remote
total 0
dr-xr-xr-x 2 root root 0 May 10 18:52 MUSIC_Library_DUBS
dr-xr-xr-x 2 root root 0 May 12 22:08 MUSIC_MY_CDS_DUBBED
root@botic:~#
root@botic:~#
root@botic:~#
root@botic:~# cp /data/remote/MUSIC_MY_CDS_DUBBED/Track01.wav /tmp/MUSIC1/
root@botic:~#
root@botic:~#
root@botic:~#
root@botic:~# play /tmp/MUSIC1/Track01.wav
/tmp/MUSIC1/Track01.wav:
File Size: 52.8M Bit Rate: 1.41M
Encoding: Signed PCM
Channels: 2 @ 16-bit
Samplerate: 44100Hz
Replaygain: off
Duration: 00:04:59.07
In:0.00% 00:00:00.00 [00:04:59.07] Out:0 [ | ] Clip:0 play WARN alsa: Input/output error
play FAIL sox: `default' Device or resource busy: Operation not permitted
Done.
root@botic:~# uname -a
Linux botic 4.0.0-botic5 #1 PREEMPT Tue Apr 28 23:42:17 CEST 2015 armv7l GNU/Linux
root@botic:~#
========================end paste=======================
- Home
- More Vendors...
- Twisted Pear
- Support for Botic Linux driver