Go Back   Home > Forums > > >
Home Forums Rules Articles diyAudio Store Blogs Gallery Wiki Register Donations FAQ Calendar Search Today's Posts Mark Forums Read

Twisted Pear Superior quality electronic kits

Reply
 
Thread Tools Search this Thread
Old 31st May 2016, 01:24 PM   #1681
francolargo is offline francolargo  United States
diyAudio Member
 
Join Date: Mar 2007
Location: Twin Cities, MN
Quote:
Originally Posted by bern View Post
but still no DATA signal on R2, R3 (only on R4, R5)
Maybe there is something wrong with selected:
dai_format=16386
I don't understand syntax of this parameter. It should give right justified data format...
I have not needed to modify dai_format because I use I2S, so I have no experience with this issue. The format seems to be just a digital ID. Have you experimented with format 2?

Regarding the active data lines: Isn't it true that right-justified data, like I2S, uses a L/R clock for interleaving? Hence, four channels of data will fit on two data lines, as you are seeing. I believe R5 and R4 should be the only signal carriers unless you increase the number of channels to 6 or 8, which you can do in ALSA.
  Reply With Quote
Old 31st May 2016, 01:33 PM   #1682
dwjames is offline dwjames  United Kingdom
diyAudio Member
 
dwjames's Avatar
 
Join Date: Jun 2012
Quote:
Originally Posted by francolargo View Post
I have not needed to modify dai_format because I use I2S, so I have no experience with this issue. The format seems to be just a digital ID. Have you experimented with format 2?

Regarding the active data lines: Isn't it true that right-justified data, like I2S, uses a L/R clock for interleaving? Hence, four channels of data will fit on two data lines, as you are seeing. I believe R5 and R4 should be the only signal carriers unless you increase the number of channels to 6 or 8, which you can do in ALSA.
Code:
----------
DAI format
----------

Clock source and polarity for I2S mode is configurable via:
   - kernel option snd_soc_botic.dai_format
   - file /sys/module/snd_soc_botic/parameters/dai_format

Supported values:
    +1 ... I2S mode
    +2 ... Right Justified mode (LSB) -- BUG: does not work in botic4; fixed in botic5
    +3 ... Left Justified mode (MSB)
    +4 ... L data MSB after FRM LRC
    +5 ... L data MSB during FRM LRC

    +0 ... NB_NF: normal BCLK & LRCK
    +512 ... NB_IF: normal BCLK, inverted LRCK
    +768 ... IB_NF: inverted BCLK, normal LRCK
    +1024 ... IB_IF: inverted BCLK & LRCK

    +4096 ... CBM_CFM: DAC is BCLK & LRCK master
    +8192 ... CBS_CFM: DAC is BCLK slave, LRCK master
    +12288 ... CBM_CFS: DAC is BCLK master, LRCK slave
    +16384 ... CBS_CFS: DAC is BCLK & LRCK slave

Default value: I2S + NB_NF + CBS_CFS

Change via file is active on the next playback start.
So in the dai_format parameter for I2S it's 16385 and for right justified is 16386

When I scoped the right justified data last week it certainly looked like it was interleaved and providing both channels in a single data feed
  Reply With Quote
Old 31st May 2016, 01:53 PM   #1683
francolargo is offline francolargo  United States
diyAudio Member
 
Join Date: Mar 2007
Location: Twin Cities, MN
Here is something definitive from an old Wolfson data sheet:

In left justified mode, the MSB is sampled on the first rising edge of BCLK following a LRCLK transition. LRCLK is high during the left data word and low during the right data word.

In right justified mode, the LSB is sampled on the rising edge of BCLK preceding a LRCLK transition. LRCLK is high during the left data word and low during the right data word.

In I2S mode, the MSB is sampled on the second rising edge of BCLK following a LRCLK transition. LRCLK is low during the left data word and high during the right data word.
  Reply With Quote
Old 31st May 2016, 02:13 PM   #1684
twluke is offline twluke  Japan
diyAudio Member
 
Join Date: Nov 2012
Location: Tokyo
Support for Botic Linux driver
Quote:
Originally Posted by miero View Post
I've updated core of boticize scripts for Debian Jessie:
- source code: https://github.com/miero/boticize (check for the instructions)
- download all: https://github.com/miero/boticize/archive/master.zip

If someone will do the clean install of Debian, please test.
Hi, I tried this with clean installation of Jessie but got stuck with errors after 02-install.sh like below:

Code:
root@beaglebone:/usr/src/boticize-master# uname -a
Linux beaglebone 4.5.0-botic7-rc1 #1 PREEMPT Tue May 17 00:51:35 CEST 2016 armv7l GNU/Linux
-snip-
root@beaglebone:/usr/src/boticize-master# bash 02-install.sh
Hit Debian -- Security Information jessie/updates InRelease
Hit Index of / jessie InRelease                                   
Hit Index of / jessie InRelease                                     
Get:1 Debian -- Security Information jessie/updates/main armhf Packages [299 kB]   
Get:2 Index of / jessie/main armhf Packages [469 kB]              
Get:3 Index of / jessie/main armhf Packages [4567 B]                
Get:4 Debian -- Security Information jessie/updates/contrib armhf Packages [994 B] 
Get:5 Debian -- Security Information jessie/updates/non-free armhf Packages [20 B] 
Ign Debian mirrors HTTP redirector jessie InRelease                               
Hit https://deb.nodesource.com jessie InRelease                             
Get:6 https://deb.nodesource.com jessie/main armhf Packages [976 B]            
Hit Debian mirrors HTTP redirector jessie-updates InRelease                       
Hit Debian mirrors HTTP redirector jessie Release.gpg                             
Hit Debian mirrors HTTP redirector jessie Release                                 
Get:7 Debian mirrors HTTP redirector jessie-updates/non-free armhf Packages [450 B]
Get:8 Debian mirrors HTTP redirector jessie-updates/contrib armhf Packages [20 B] 
Get:9 Debian mirrors HTTP redirector jessie/contrib armhf Packages [44.6 kB]      
Get:10 Debian mirrors HTTP redirector jessie/main armhf Packages [8834 kB]        
Get:11 Debian mirrors HTTP redirector jessie-updates/main armhf Packages [9276 B] 
Get:12 Debian mirrors HTTP redirector jessie/non-free armhf Packages [74.5 kB]    
Fetched 9738 kB in 1min 27s (111 kB/s)                                         
Reading package lists... Done
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Version '4.5-botic7-rc1_armhf' for 'linux-libc-dev' was not found
Need your advice miero. TIA
  Reply With Quote
Old 31st May 2016, 02:29 PM   #1685
francolargo is offline francolargo  United States
diyAudio Member
 
Join Date: Mar 2007
Location: Twin Cities, MN
Quote:
Originally Posted by twluke View Post
Hi, I tried this with clean installation of Jessie but got stuck with errors after 02-install.sh like below:
That's the exact same error I got.

For those who want to push the boundaries of Botic, I think Jessie will be preferable to Wheezy. So the effort to make Boticize scripts will be an investment in progress. Many thanks in advance!
  Reply With Quote
Old 31st May 2016, 05:07 PM   #1686
miero is offline miero  Czech Republic
diyAudio Member
 
Join Date: Jun 2011
Location: Prague
Try to remove the linux-libc-dev=... from that script and rerun.

I'm not able to test that in these days.
__________________
BeagleBone Black with I2S, DSD and SPDIF interface (Linux driver)
http://bbb.ieero.com/
  Reply With Quote
Old 31st May 2016, 05:18 PM   #1687
francolargo is offline francolargo  United States
diyAudio Member
 
Join Date: Mar 2007
Location: Twin Cities, MN
Quote:
Originally Posted by miero View Post
Try to remove the linux-libc-dev=... from that script and rerun.

I'm not able to test that in these days.
Will do at some point today...

Meanwhile, I found that the Debian 8.3 version I have been testing (separate from the 'Boticize' experiments) had the CPU frequency governor set to 'on demand'. I edited /etc/init.d/cpufrequtils to 'performance' and now it seems squeezelite is running like it does in Botic5+Debian 7.5. Also the LADSPA filters in ALSA are now consuming the predicted amount of CPU...

If others are curious to learn more, this is the source that I found helpful.
  Reply With Quote
Old 1st June 2016, 03:34 AM   #1688
francolargo is offline francolargo  United States
diyAudio Member
 
Join Date: Mar 2007
Location: Twin Cities, MN
Quote:
Originally Posted by francolargo View Post
Will do at some point today...
I just tested the latest scripts with the one line deleted from 02-install.sh. I think the script is very close, but not quite correct yet. Note PM with screen log.

I only saw three error messages:
Code:
Setting up linux-image-4.5.0-botic7-rc1 (4.5-botic7-rc1) ...
Error! Bad return status for module build on kernel: 4.5.0-botic7-rc1 (armv7l)
Consult /var/lib/dkms/temperature-mod/1.0.1/build/make.log for more information.
Error! Bad return status for module build on kernel: 4.5.0-botic7-rc1 (armv7l)
Consult /var/lib/dkms/debugss-mod/1.3.0/build/make.log for more information.
Error! Bad return status for module build on kernel: 4.5.0-botic7-rc1 (armv7l)
Consult /var/lib/dkms/cmem-mod/4.11.00.00/build/make.log for more information.
I saw these same errors previously when I was experimenting with 8.3. They did not prevent me from using the system.

However, the eventual problem from the first series of boticize scripts remains - the BBB doesn't register with the network after the reboot. Thus, there is no ip address to -ssh or sftp into the system.

I'm happy to test any other ideas...

Frank
  Reply With Quote
Old 1st June 2016, 04:27 AM   #1689
twluke is offline twluke  Japan
diyAudio Member
 
Join Date: Nov 2012
Location: Tokyo
Support for Botic Linux driver
Quote:
Originally Posted by francolargo View Post
However, the eventual problem from the first series of boticize scripts remains - the BBB doesn't register with the network after the reboot. Thus, there is no ip address to -ssh or sftp into the system.

I'm happy to test any other ideas...

Frank
I did experience the same result. Boticization of Jessie appeared successful but after reboot the BBB has lost its way on the network. Maybe I'll try again tonight.
  Reply With Quote
Old 1st June 2016, 07:53 AM   #1690
francolargo is offline francolargo  United States
diyAudio Member
 
Join Date: Mar 2007
Location: Twin Cities, MN
I tried several times to make the boticize scripts work. With Jessie 8.4 there is something in script 02-install.sh that results in the system becoming unaddressable.

To be sure that I'm not doing something systematically wrong, I re-created the basic system config that is playing in the other room. Starting with a fresh image of Debian 8.3:
1. I expanded the uSD card partition ['/opt/scripts/tools/grow_partition.sh']
2. I installed the headers...deb and image-4.5.0...deb from bbb.ieero.com and used 'dpkg -i' first on the headers and then on the image.
3. I changed the /boot/uEnv.txt line to 'dtb=am335x-boneblack-botic.dtb' and rebooted.
4. I can log in and 'aplay -l' lists Botic as the only playback hardware device.

Success. That much works...

Last edited by francolargo; 1st June 2016 at 07:56 AM.
  Reply With Quote

Reply


Support for Botic Linux driverHide this!Advertise here!
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Open baffle with fullrange driver and bass support Godzilla Full Range 5 22nd July 2011 01:32 PM
Low end support for single driver monitors strider75 Multi-Way 97 30th September 2009 03:02 PM
ASIO support (driver) for Labview Aoxomox Digital Line Level 0 3rd May 2009 05:29 PM
Linux/BruteFIR support coming in LspCAD tcpip Multi-Way 18 18th October 2005 03:08 AM
linux badgers Introductions 3 3rd April 2005 03:27 PM


New To Site? Need Help?

All times are GMT. The time now is 10:14 AM.


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