diyAudio

diyAudio (https://www.diyaudio.com/forums/index.php)
-   Twisted Pear (https://www.diyaudio.com/forums/twisted-pear/)
-   -   Support for Botic Linux driver (https://www.diyaudio.com/forums/twisted-pear/258254-support-botic-linux-driver.html)

twluke 14th May 2015 03:17 PM

Quote:

Originally Posted by twluke (https://www.diyaudio.com/forums/twisted-pear/258254-support-botic-linux-driver-post4325413.html#post4325413)
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

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.

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/*
Also, for setting of /etc/fstab, you might try those options.

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
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.

ichiban 14th May 2015 03:35 PM

Quote:

Originally Posted by twluke (https://www.diyaudio.com/forums/twisted-pear/258254-support-botic-linux-driver-post4325820.html#post4325820)
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

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.

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/*
Also, for setting of /etc/fstab, you might try those options.

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
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.


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.

Duffy Moon 14th May 2015 04:00 PM

It is for the battery - indirectly. I guess it conveys power to/from the battery.

ichiban 14th May 2015 04:06 PM

Quote:

Originally Posted by Duffy Moon (https://www.diyaudio.com/forums/twisted-pear/258254-support-botic-linux-driver-post4325860.html#post4325860)
It is for the battery - indirectly. I guess it conveys power to/from the battery.

Thanks!

twluke 14th May 2015 04:11 PM

Quote:

Originally Posted by ichiban (https://www.diyaudio.com/forums/twisted-pear/258254-support-botic-linux-driver-post4325835.html#post4325835)
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:
Quote:

chmod 777 /data/remote
chmod 777 /data/remote/*
chown -R mpd.root /data/remote
chown -R mpd.root /data/remote/*
I hope this will work.

BTW, J1 issue is not related to your current problem. Soldering 4 pins can be done anytime later.

ichiban 14th May 2015 04:23 PM

Quote:

Originally Posted by twluke (https://www.diyaudio.com/forums/twisted-pear/258254-support-botic-linux-driver-post4325874.html#post4325874)
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

twluke 14th May 2015 04:31 PM

Quote:

Originally Posted by ichiban (https://www.diyaudio.com/forums/twisted-pear/258254-support-botic-linux-driver-post4325886.html#post4325886)
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.

Duffy Moon 14th May 2015 04:45 PM

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

ichiban 14th May 2015 05:06 PM

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

miero 14th May 2015 05:09 PM

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


All times are GMT. The time now is 04:01 PM.


Search Engine Optimisation provided by DragonByte SEO (Pro) - vBulletin Mods & Addons Copyright © 2020 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 17.65%
vBulletin Optimisation provided by vB Optimise (Pro) - vBulletin Mods & Addons Copyright © 2020 DragonByte Technologies Ltd.
Copyright ©1999-2020 diyAudio

Wiki