Volumio 2 on Rock64

Volumio portings supported by community members

Ads helps Volumio remain Free and Open Source. Please consider donating to help us continue to serve you.

Volumio 2 on Rock64

Postby dishins » Tue Oct 02 2018 14:44

Hi, im trying to use my PIFI Digi DAC+ with Rock64 but its not working, the DAC lights come up but not sound unfortunately, any tips on how can i make this DAC working with volumio on rock64?

Also im trying to use a LCD 16X2 I2C and it seems that I2C interface is not enabled, when i try to enable it via dts overlay the output is:

Code: Select all
enable_dtoverlay i2c0 i2c@ff150000 okay
bash: enable_dtoverlay: command not found


ps: I tested the both the LCD screen and DAC with a Raspberry Pi 2 with Volumio and it work fine.
User avatar
dishins
Sunday DIYer
Sunday DIYer
 
Posts: 14
Joined: Thu Mar 29 2018 02:31

Ads helps Volumio remain Free and Open Source. Please consider donating to help us continue to serve you.


Volumio 2 on Rock64

Postby gkkpch » Tue Oct 02 2018 22:44

PI and rock64 DAC compatibility is limited to the old PI HATs.
They will fit on what Pine calls the PI-P5+ connector on the rock64 board, that is where the i2s pins are located, not on the 40-pin connector.
Don’t ask me why they designed it like that, but this is the reason why your PIFI won’t work.

How did you expect DT overlay to work? Please explain. I2C is supported, but not via DT overlays as I do not support its configuration and have no plans. Perhaps you mixed it up with the way Armbian configures it. We don’t use Armbian other than u-boot.
For connecting LCDs I have to refer to the rock64 forum, you might find useful information there.
Volumio OS Developer

You like my work? Then what about buying me a beer :)
User avatar
gkkpch
Moderator
 
Posts: 1619
Joined: Mon Dec 29 2014 22:38
Location: Bodensee, Switzerland


Volumio 2 on Rock64

Postby dishins » Tue Oct 02 2018 23:19

gkkpch wrote:PI and rock64 DAC compatibility is limited to the old PI HATs.
They will fit on what Pine calls the PI-P5+ connector on the rock64 board, that is where the i2s pins are located, not on the 40-pin connector.
Don’t ask me why they designed it like that, but this is the reason why your PIFI won’t work.

How did you expect DT overlay to work? Please explain. I2C is supported, but not via DT overlays as I do not support its configuration and have no plans. Perhaps you mixed it up with the way Armbian configures it. We don’t use Armbian other than u-boot.
For connecting LCDs I have to refer to the rock64 forum, you might find useful information there.


Thank you for the info, i guess my PIFI is a not go then :|

Can you tell me if this DAC will work with rock64?
https://www.ebay.com/itm/HIFI-DAC-Audio ... SwaK1bSe6G

Also, i was expecting to use the LCD the same way i do with Raspberry pi, with Python libraries, i first get the address with: sudo i2cdetect -y 1, get the adress, point inside my scripts and iḿ done, however, with rock64 i am not able to get a valid address for my LCD screen with i2cdetect command.
User avatar
dishins
Sunday DIYer
Sunday DIYer
 
Posts: 14
Joined: Thu Mar 29 2018 02:31


Volumio 2 on Rock64

Postby gkkpch » Wed Oct 03 2018 18:34

Hi,
All devices linked to gpio pins seem to have been disabled in the last rock64 community kernel I used.
Unlike the initial kernel I started with last year, this also includes i2c unfortunately, but does not count for i2s.
This obviously happened at the same time when DT overlay was introduced.

3 Things need to be done before you can use it:
- recompile the kernel to enable access to the device tree config filesystem
- add the ‘enable_dtoverlay‘ script, so i2c can be switched on/off on-the-fly using the config filesystem
- changes to the Volumio build scripts to activate these changes.

Technically the DAC you mentioned should work, it has the right connector, so attaches correctly to the i2s pins.
Question though: how are you going to reach the i2c pins when the DAC HAT is to be used at the same time?
Volumio OS Developer

You like my work? Then what about buying me a beer :)
User avatar
gkkpch
Moderator
 
Posts: 1619
Joined: Mon Dec 29 2014 22:38
Location: Bodensee, Switzerland


Volumio 2 on Rock64

Postby dishins » Wed Oct 03 2018 21:39

Thanks for the info, since rock64 is the only board i have laying around that technically works with Volumio i though i could buy the DAC i pointed to you and then sell the one i have that wont work, that would be cheaper than buying another Raspberry Pi, all those things are a bit expensive in my country so i gotta make the right move. However, i think i dont have the knowledge to recompile the kernel to enable the overlays unfortunately.

I mounted the board in a case in a way that i solder the wires that goes to the LCD screen from the bottom of the board, while the DAC sits on the top, that way i can use both ;)

Thanks again for the attention.
User avatar
dishins
Sunday DIYer
Sunday DIYer
 
Posts: 14
Joined: Thu Mar 29 2018 02:31


Volumio 2 on Rock64

Postby gkkpch » Wed Oct 03 2018 22:17

Sorry, nobody expects you to do this ;)
It is something I added to my todo list for the next release.
Unfortunately, this will not happen anytime soon :roll:

The DAC should be OK though, but you will have to test it yourself.
Volumio OS Developer

You like my work? Then what about buying me a beer :)
User avatar
gkkpch
Moderator
 
Posts: 1619
Joined: Mon Dec 29 2014 22:38
Location: Bodensee, Switzerland


Volumio 2 on Rock64

Postby dishins » Wed Oct 03 2018 22:27

Good to hear it will be in the next release :)

I just ordered the DAC, that will take maybe a couple months to arrive so time is not the problem, i`ll be happy to test everything when is ready.

As soon as the DAC arrives i report back here, maybe it can help other people.

Thanks.
User avatar
dishins
Sunday DIYer
Sunday DIYer
 
Posts: 14
Joined: Thu Mar 29 2018 02:31


Volumio 2 on Rock64

Postby gkkpch » Wed Oct 03 2018 23:27

Noted :D
Volumio OS Developer

You like my work? Then what about buying me a beer :)
User avatar
gkkpch
Moderator
 
Posts: 1619
Joined: Mon Dec 29 2014 22:38
Location: Bodensee, Switzerland


Volumio 2 on Rock64

Postby dishins » Tue Nov 27 2018 22:39

Hello, reporting back here

The DAC i ordered worked like a charm!

Looking forward for the next update, hopefully with dt_overlay scripts enabled :D

Thanks
User avatar
dishins
Sunday DIYer
Sunday DIYer
 
Posts: 14
Joined: Thu Mar 29 2018 02:31


Volumio 2 on Rock64

Postby gkkpch » Tue Nov 27 2018 23:32

yep, i’m back adding my bits.
I already added dtoverlay support to the kernel, added the dtoverlay enable/disable script and for i2c this seems to work OK.
Hope to finish this the next few days and report back.
Volumio OS Developer

You like my work? Then what about buying me a beer :)
User avatar
gkkpch
Moderator
 
Posts: 1619
Joined: Mon Dec 29 2014 22:38
Location: Bodensee, Switzerland

PreviousNext

Return to Community portings

Who is online

Users browsing this forum: No registered users and 1 guest