Driver for Audiophonics ESS9038Q2M

General discussion about RuneAudio. Do not post any support or feature requests here.

Re: Driver for Audiophonics ESS9038Q2M

Postby Nocolo » 06 May 2019, 11:28

Following the 2 previous posts, I continued to search and following the advice of a tutorial, I performed the following procedure:
Code: Select all
# cd /usr/lib/modules/4.14.34-1-ARCH/source/
# gunzip -c /proc/config.gz > .config

Then I performed a "make modules_prepare" to generate pre-built kernel (it seems to be needed by modules compilation -> do you confirm ?):
Code: Select all
root@runeaudio(rw):/usr/lib/modules/4.14.34-1-ARCH/source# make modules_prepare
scripts/kconfig/conf  --silentoldconfig Kconfig
  CHK     include/config/kernel.release
  UPD     include/config/kernel.release
  CHK     include/generated/uapi/linux/version.h
  CHK     include/generated/utsrelease.h
  UPD     include/generated/utsrelease.h
  HOSTCC  scripts/basic/bin2c
  CC      kernel/bounds.s
  CHK     include/generated/bounds.h
  UPD     include/generated/bounds.h
  CHK     include/generated/timeconst.h
/bin/sh: bc: command not found
make[1]: *** [Kbuild:43: include/generated/timeconst.h] Error 127
make: *** [Makefile:1085: prepare0] Error 2

And not surprisingly, I have the error: "bc command not found".
I tried to download the bc package by "pacman -Sy bc" but it leads to another error :
Code: Select all
root@runeaudio(rw):/usr/lib/modules/4.14.34-1-ARCH/source# make modules_prepare
  CHK     include/config/kernel.release
  CHK     include/generated/uapi/linux/version.h
  CHK     include/generated/utsrelease.h
  CHK     include/generated/bounds.h
  CHK     include/generated/timeconst.h
bc: error while loading shared libraries: libreadline.so.8: cannot open shared object file: No such file or directory
make[1]: *** [Kbuild:43: include/generated/timeconst.h] Error 127
make: *** [Makefile:1085: prepare0] Error 2


That's where I am ...
Thank you for your help.

Nocolo
Nocolo
 
Posts: 14
Joined: 25 Apr 2019, 19:51

Re: Driver for Audiophonics ESS9038Q2M

Postby janui » 06 May 2019, 13:08

Hi Nocolo,
'libreadline' is part of the 'readline' package. You can upgrade it by running:
Code: Select all
pacman -Sy readline
Upgrading this may break RuneAudio, but I don’t see any other way of progressing.
janui
User avatar
janui
 
Posts: 699
Joined: 20 Dec 2014, 12:55
Location: Ollanda

Re: Driver for Audiophonics ESS9038Q2M

Postby Nocolo » 06 May 2019, 16:03

Hi Janui,

I did an ugly thing but it seems to work :
I duplicate /usr/lib/libreadline.so.7 into /usr/lib/libreadline.so.8
I also modify the source file "i-sabre-q2m.c" :
-> replace "snd_soc_component_read32" by "snd_soc_read" and other minor modifications (I will describe them in another post if I succeed...)
By doing these modifications, I compile and generate the files .ko (i-sabre-codec.ko and i-sabre-q2m.ko) and I generate the .dtbo file (i-sabre-q2m.dtbo).

Big step ahead !!!

A that point, I need to integrate that driver into Runeaudio...
And for that i need your help.

Many thanks

Nocolo
Nocolo
 
Posts: 14
Joined: 25 Apr 2019, 19:51

Re: Driver for Audiophonics ESS9038Q2M

Postby janui » 06 May 2019, 18:48

Hi Nocolo,
That is good news. You should now have a couple of extra files available. Run this to check them:
Code: Select all
find / -name *q2m*
You should see these:
    /boot/overlays/i-sabre-q2m.dtbo
    .../i-sabre-q2m-codec.ko.gz
    .../i-sabre-q2m.ko.gz
If this looks OK, log in with SSH and edit /boot/config.txt:
Code: Select all
nano /boot/config.txt
Look for these lines:
Code: Select all
## RuneAudio I2S-Settings
<something on this line>

# Uncomment to enable the lirc-rpi module
Change it to this:
Code: Select all
## RuneAudio I2S-Settings
dtoverlay=i-sabre-q2m

# Uncomment to enable the lirc-rpi module
Reboot, then select the i-sabre-q2m module in the Audio Output section of the MPD UI. Then test the audio output. You should also check the debug, search for ‘q2m’, you may see some warnings. But the last lines should say that It is ok.
You hardware volume control will not work at this stage, I need some information from you to set this up. Lets first see if it works.
janui
User avatar
janui
 
Posts: 699
Joined: 20 Dec 2014, 12:55
Location: Ollanda

Re: Driver for Audiophonics ESS9038Q2M

Postby Nocolo » 07 May 2019, 00:45

Hi Janui,

I was so happy... maybe a little too fast !
I am able to compile the driver and to compile the device tree with no error and no warning !
I have 3 files:
1) i-sabre-q2m.dtbo that I copy to /boot/overlays/
2) i-sabre-codec.ko that I copy to /lib/modules/4.14.34-1-ARCH/kernel/sound/soc/codecs/
3) i-sabre-q2m.ko that I copy to /lib/modules/4.14.34-1-ARCH/kernel/sound/soc/bcm/

Should I first compress the last 2 files with gzip followed by "depmod -a" ? or should I do the opposite?
I tried both although it seems to me more logical to compress first.
Whatever, "depmod -a" works fine and generates a correct "modules.dep" files with updated dependencies.

BUT when I proceed with "modprobe" for the last 2 files (i tried before and after compression), it gives a "scary" message:
Code: Select all
modprobe: ERROR: could not insert 'i_sabre_q2m': Exec format error
modprobe: ERROR: could not insert 'i_sabre_codec': Exec format error


I checked that "modprob -D" gives good dependencies for both files i-sabre-codec.ko and i-sabre-q2m.ko
Code: Select all
root@runeaudio(rw):~/I-Sabre_9038Q2M-master# modprobe -D i-sabre-codec
insmod /lib/modules/4.14.34-1-ARCH/kernel/sound/core/snd.ko.gz
insmod /lib/modules/4.14.34-1-ARCH/kernel/sound/core/snd-timer.ko.gz
insmod /lib/modules/4.14.34-1-ARCH/kernel/sound/core/snd-pcm.ko.gz
insmod /lib/modules/4.14.34-1-ARCH/kernel/sound/core/snd-pcm-dmaengine.ko.gz
insmod /lib/modules/4.14.34-1-ARCH/kernel/sound/core/snd-compress.ko.gz
insmod /lib/modules/4.14.34-1-ARCH/kernel/sound/soc/snd-soc-core.ko.gz
insmod /lib/modules/4.14.34-1-ARCH/kernel/sound/soc/codecs/i-sabre-codec.ko


And here I'm stuck at the south pass.
I see the summit but I'm still far from it !

No idea of what it could be ?

Thanks for your help !

Nocolo
Nocolo
 
Posts: 14
Joined: 25 Apr 2019, 19:51

Re: Driver for Audiophonics ESS9038Q2M

Postby janui » 07 May 2019, 16:07

Hi Nocolo,
Have you tried using it? Maybe it will just work even if depmod seems to have problems.
janui
User avatar
janui
 
Posts: 699
Joined: 20 Dec 2014, 12:55
Location: Ollanda

Re: Driver for Audiophonics ESS9038Q2M

Postby AlleyCat » 03 Apr 2020, 14:38

Hi there,
I am also looking for a Rune build that supports the AUDIOPHONICS DAC I-Sabre ES9038Q2M board. I am not going to attempt the rebuild or compile drivers. Is there a build of Rune that has these drivers already compiled and ready to use?

Thanks,
Alley Cat
AlleyCat
 
Posts: 14
Joined: 26 Feb 2016, 01:50

Re: Driver for Audiophonics ESS9038Q2M

Postby Nocolo » 25 Apr 2020, 15:17

Hi,
A few months ago I adapted a driver for the Audiophonics board based on ESS9038Q2M component for the Raspdac Mini product. I started from the version 0.5b of Janui and I generated an image which is available on the Audiophonics website :
https://www.audiophonics.fr/fr/blog-diy-audio/23-mise-en-route-raspdac-rasptouch-raspdac-mini-avec-une-image-pre-configuree.html
You may download the image directly from :https://mega.nz/folder/EUpFzKpJ#A2zpokO_CNDIlJhpr4FSUg
Hope it will help.

Nocolo
Nocolo
 
Posts: 14
Joined: 25 Apr 2019, 19:51

support RuneAudio Donate with PayPal

Previous

Return to General discussion

Who is online

Users browsing this forum: No registered users and 3 guests