Adafruit I2S Stereo Decoder - UDA1334A

Moderators: adafruit_support_bill, adafruit

Forum rules
Talk about Adafruit Raspberry Pi® accessories! Please do not ask for Linux support, this is for Adafruit products only! For Raspberry Pi help please visit: http://www.raspberrypi.org/phpBB3/
Locked
User avatar
Dallfoll
 
Posts: 5
Joined: Sun Oct 17, 2021 4:25 am

Adafruit I2S Stereo Decoder - UDA1334A

Post by Dallfoll »

Hello,

I bought me the audio HAT mentioned above. I made the hardware wiring to my Raspberry Pi 4 8Gb and followed the instructions given in the tutorial by lady ada (https://learn.adafruit.com/adafruit-i2s ... y-pi-usage).
Then I wrote this line into the terminal on the Raspberry Pi:

curl -sS https://raw.githubusercontent.com/adafr ... /i2samp.sh | bash

But unfortunately I got the following error message:

This hardware is not supported, sorry!
Config files have been left untouched

What can I do now? My system is Raspbian GNU/Linux 10 (buster) aarch6 (I enabled the 64 bit version). Kernel 5.10.63-v8+

Thanks!

User avatar
mikeysklar
 
Posts: 13936
Joined: Mon Aug 01, 2016 8:10 pm

Re: Adafruit I2S Stereo Decoder - UDA1334A

Post by mikeysklar »

Can you load the 32-bit Pi OS release on a different SD card and test with that? I'm not sure about 64-bit support.

User avatar
Dallfoll
 
Posts: 5
Joined: Sun Oct 17, 2021 4:25 am

Re: Adafruit I2S Stereo Decoder - UDA1334A

Post by Dallfoll »

I did this already and 64 bit is the reason the whole thing is not working. It would be interesting to know what exactly prevents the the thing from working properly when I switch over to 64 bit and if it is the same problem with newer HATs working with I2S.

User avatar
mikeysklar
 
Posts: 13936
Joined: Mon Aug 01, 2016 8:10 pm

Re: Adafruit I2S Stereo Decoder - UDA1334A

Post by mikeysklar »

It would be helpful to initially mention that 32-bit worked fine so we know this is a 64-bit specific issue.

The i2samp.sh script has a variable $IS_ARMHF which is failing on your 64-bit system. You can attempt to work around that variable by manually setting it to true or working around the arch_check() function.

Code: Select all

if ! $IS_ARMHF; then
    warning "This hardware is not supported, sorry!"
    warning "Config files have been left untouched"
    newline && exit 1
fi

Code: Select all

arch_check() {
    IS_ARMHF=false
    IS_ARMv6=false

    if uname -m | grep "armv.l" > /dev/null; then
        IS_ARMHF=true
        if uname -m | grep "armv6l" > /dev/null; then
            IS_ARMv6=true
        fi
    fi
}
This is just an experimental suggestion to get passed the current check that is failing. You can also make a request for 64-bit support on the Raspberry Pi Install Script github repo.

https://github.com/adafruit/Raspberry-P ... pts/issues

User avatar
Dallfoll
 
Posts: 5
Joined: Sun Oct 17, 2021 4:25 am

Re: Adafruit I2S Stereo Decoder - UDA1334A

Post by Dallfoll »

Thanks a lot. I’ll try this out. Btw. I didn’t know initially that the problem won’t appear on the 32 bit system. I found this out just before your answer ..

User avatar
mikeysklar
 
Posts: 13936
Joined: Mon Aug 01, 2016 8:10 pm

Re: Adafruit I2S Stereo Decoder - UDA1334A

Post by mikeysklar »

I see. Thank you for the clarification that the 32-bit working system was recently discovered.

Let me know if you have any success hacking the shell script. We can submit this as a patch to the repo if you get it working.

User avatar
Dallfoll
 
Posts: 5
Joined: Sun Oct 17, 2021 4:25 am

Re: Adafruit I2S Stereo Decoder - UDA1334A

Post by Dallfoll »

Unfortunately I can’t find the i2samp.sh file on my system.

User avatar
mikeysklar
 
Posts: 13936
Joined: Mon Aug 01, 2016 8:10 pm

Re: Adafruit I2S Stereo Decoder - UDA1334A

Post by mikeysklar »

You can pull down the script.

Code: Select all

wget https://raw.githubusercontent.com/adafruit/Raspberry-Pi-Installer-Scripts/master/i2samp.sh

User avatar
mikeysklar
 
Posts: 13936
Joined: Mon Aug 01, 2016 8:10 pm

Re: Adafruit I2S Stereo Decoder - UDA1334A

Post by mikeysklar »

Okay, let's just pull it down fresh.

open a terminal window on your Pi and run the following.

Code: Select all

cd Downloads
wget https://raw.githubusercontent.com/adafruit/Raspberry-Pi-Installer-Scripts/master/i2samp.sh
Now you can work from the Downloads folder off your home directory to modify the i2samp.sh script as you like with your favorite editor.

User avatar
Dallfoll
 
Posts: 5
Joined: Sun Oct 17, 2021 4:25 am

Re: Adafruit I2S Stereo Decoder - UDA1334A

Post by Dallfoll »

I installed the script but now the i2s audio device disappeared and I decided to give up. The main reason is that I had a lot of crackling sounds which already were described in the installation guide mentioned above. But all the tweaks which should help in my case didn’t.

Locked
Forum rules
Talk about Adafruit Raspberry Pi® accessories! Please do not ask for Linux support, this is for Adafruit products only! For Raspberry Pi help please visit: http://www.raspberrypi.org/phpBB3/

Return to “Adafruit Raspberry Pi® accessories”