• Disclaimer: This Vendor's Forum is a paid-for commercial area. Unlike the rest of diyAudio, the Vendor has complete control of what may or may not be posted in this forum. If you wish to discuss technical matters outside the bounds of what is permitted by the Vendor, please use the non-commercial areas of diyAudio to do so.

Support for Botic Linux driver

Member
Joined 2004
Paid Member
Music Directories

root@botic:~# ls -ld /data/remote/MUSIC*
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:~# ls -ld /data/remote
drwxr-xr-x 2 root root 4096 May 12 22:08 /data/remote
root@botic:~# ls -ld /data
drwxr-xr-x 3 root root 4096 May 14 22:13 /data
root@botic:~# ls -ld /
drwxr-xr-x 24 root root 4096 May 14 22:03 /
root@botic:~# root@botic:~#
 
Member
Joined 2004
Paid Member
twluke: no, play does not work well ... errors are reported

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.

copied putty to clipboard then into Notepad++ and did find on munmap


======================================================
select(1, [0], NULL, NULL, {0, 0}) = 0 (Timeout)
gettimeofday({1431646990, 328937}, NULL) = 0
ioctl(5, 0x400c4150, 0xbea858d4) = -1 EIO (Input/output error)
write(2, "play WARN alsa: ", 16play WARN alsa: ) = 16
write(2, "Input/output error", 18Input/output error) = 18
write(2, "\n", 1
) = 1
ioctl(5, 0x4140, 0xb6c93000) = -1 EBUSY (Device or resource busy)
write(2, "play FAIL sox: ", 15play FAIL sox: ) = 15
write(2, "`default' Device or resource bus"..., 58`default' Device or resource busy: Operation not permitted) = 58
write(2, "\n", 1
) = 1
write(2, "Done.\n", 6Done.
) = 6
close(3) = 0
munmap(0xb6f57000, 4096) = 0
ioctl(5, 0x4144, 0xb6c93000) = -1 EIO (Input/output error)
ioctl(5, 0x4143, 0xb6c93000) = 0
ioctl(5, 0x4112, 0x6b67aa00) = 0
close(5) = 0
munmap(0xb64aa000, 135168) = 0
ioctl(0, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig -icanon -echo ...}) = 0
ioctl(0, SNDCTL_TMR_START or TCSETS, {B38400 opost isig icanon echo ...}) = 0
ioctl(0, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) = 0
munmap(0xb64cb000, 45408) = 0
munmap(0xb64fb000, 45328) = 0
munmap(0xb64d7000, 143600) = 0
munmap(0xb6507000, 45408) = 0
munmap(0xb6513000, 45348) = 0
munmap(0xb651f000, 45348) = 0
munmap(0xb652b000, 45408) = 0
munmap(0xb6537000, 45408) = 0
munmap(0xb6803000, 36936) = 0
munmap(0xb680d000, 45408) = 0
munmap(0xb6819000, 36936) = 0
munmap(0xb68ec000, 58292) = 0
munmap(0xb68d1000, 109348) = 0
munmap(0xb68ba000, 91872) = 0
munmap(0xb6849000, 462628) = 0
munmap(0xb6823000, 153032) = 0
munmap(0xb68fb000, 45408) = 0
munmap(0xb6907000, 45408) = 0
munmap(0xb6913000, 37004) = 0
munmap(0xb691d000, 37000) = 0
munmap(0xb6936000, 45284) = 0
munmap(0xb6927000, 57700) = 0
munmap(0xb6942000, 45408) = 0
munmap(0xb6b80000, 45408) = 0
munmap(0xb6b99000, 36964) = 0
munmap(0xb6b8c000, 53196) = 0
munmap(0xb6bba000, 37060) = 0
munmap(0xb6ba3000, 90396) = 0
munmap(0xb6be8000, 41208) = 0
munmap(0xb6bc4000, 143644) = 0
munmap(0xb6c94000, 45260) = 0
exit_group(0) = ?
root@botic:~#
root@botic:~# ##strace play /tmp/MUSIC1/Track01.wav | grep -v munmap | tail -50
 
Member
Joined 2004
Paid Member
I have to say.......

why, even tho /data/remote has my music files mounted, ympd does not show the remote files in the database browser? I suppose it's due to the fact that I mounted the files after bootup and mpd sets up file associations during boot?


Are you kidding, I got out of ympd and tried to umount the music files, & got
umount: /data/remote: device is busy.
(In some cases useful info about processes that use
the device is found by lsof(8) or fuser(1))

,went back into ymp, and lo and behold remote db was there ?????

...and tried playing something, did not work, went back to browse data base in ympd and remote was gone now!!??
 
Last edited:
I have to say.......

why, even tho /data/remote has my music files mounted, ympd does not show the remote files in the database browser? I suppose it's due to the fact that I mounted the files after bootup and mpd sets up file associations during boot?

ympd (y is a traditional abbreviation of 'another yet') is a GUI interface of mpd and the application actually running is mpd. So, even with ympd, your are going to have a owner problem of the music directory, though miero won't accept this assumption ;-).

Anyway did you try chown -R mpd.root /data/remote/* ? chown -R mpd.audio /data/remote/* may be another try.
 
Member
Joined 2004
Paid Member
ympd (y is a traditional abbreviation of 'another yet') is a GUI interface of mpd and the application actually running is mpd. So, even with ympd, your are going to have a owner problem of the music directory, though miero won't accept this assumption ;-).

Anyway did you try chown -R mpd.root /data/remote/* ? chown -R mpd.audio /data/remote/* may be another try.



tried both and get Permission denied on both ..........:(
 
Member
Joined 2004
Paid Member
Shut down and restarted BBB. Got the remote to mount via rc.local on boot up.
So, got a different result it seems, from play.

=====================================================
play /tmp/MUSIC1/Track01.wav
play FAIL formats: can't open output file `default': snd_pcm_open error: Device or resource busy
root@botic:/#
=======================================================
 
Shut down and restarted BBB. Got the remote to mount via rc.local on boot up.
So, got a different result it seems, from play.

=====================================================
play /tmp/MUSIC1/Track01.wav
play FAIL formats: can't open output file `default': snd_pcm_open error: Device or resource busy
root@botic:/#
=======================================================
OK, I reproduced your results with play:
Code:
kramer@beaglebone:~$ play /mnt/music/mp3/Metallica\ -\ Nothing\ Else\ Matters.mp3 

/mnt/music/mp3/Metallica - Nothing Else Matters.mp3:

 File Size: 16.3M     Bit Rate: 320k
  Encoding: MPEG audio    Info: 1999
  Channels: 2 @ 16-bit   Track: 1
Samplerate: 44100Hz      Album: S&M (Disk 2)
Replaygain: off         Artist: Metallica
  Duration: 00:06:47.30  Title: Nothing Else Matters

In:0.00% 00:00:00.00 [00:06:47.30] Out:0     [      |      ]        Clip:0    play WARN alsa: Input/output error
play FAIL sox: `default' Device or resource busy: Operation not permitted
Done.
This happened when my DAC was not powered up. As soon the DAC gets power:
Code:
kramer@beaglebone:~$ play /mnt/music/mp3/Metallica\ -\ Nothing\ Else\ Matters.mp3 

/mnt/music/mp3/Metallica - Nothing Else Matters.mp3:

 File Size: 16.3M     Bit Rate: 320k
  Encoding: MPEG audio    Info: 1999
  Channels: 2 @ 16-bit   Track: 1
Samplerate: 44100Hz      Album: S&M (Disk 2)
Replaygain: off         Artist: Metallica
  Duration: 00:06:47.30  Title: Nothing Else Matters

In:3.51% 00:00:14.30 [00:06:32.99] Out:631k  [     =|=-    ]        Clip:0

I think your issue point to hw issues...