Due to high demand expect some shipping delays at this time, orders may not ship for 1-2 business days.
0

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/
Please be positive and constructive with your questions and comments.

Adafruit I2S Stereo Decoder - UDA1334A

by Dallfoll on Sun Oct 17, 2021 4:35 am

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!

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

Re: Adafruit I2S Stereo Decoder - UDA1334A

by mikeysklar on Mon Oct 18, 2021 7:39 pm

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.

mikeysklar
 
Posts: 6184
Joined: Mon Aug 01, 2016 8:10 pm

Re: Adafruit I2S Stereo Decoder - UDA1334A

by Dallfoll on Tue Oct 19, 2021 1:00 am

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.

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

Re: Adafruit I2S Stereo Decoder - UDA1334A

by mikeysklar on Tue Oct 19, 2021 6:49 pm

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 | TOGGLE FULL SIZE
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 | TOGGLE FULL SIZE
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

mikeysklar
 
Posts: 6184
Joined: Mon Aug 01, 2016 8:10 pm

Re: Adafruit I2S Stereo Decoder - UDA1334A

by Dallfoll on Wed Oct 20, 2021 1:15 am

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

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

Re: Adafruit I2S Stereo Decoder - UDA1334A

by mikeysklar on Wed Oct 20, 2021 10:49 am

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.

mikeysklar
 
Posts: 6184
Joined: Mon Aug 01, 2016 8:10 pm

Re: Adafruit I2S Stereo Decoder - UDA1334A

by Dallfoll on Fri Oct 22, 2021 2:45 am

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

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

Re: Adafruit I2S Stereo Decoder - UDA1334A

by mikeysklar on Fri Oct 22, 2021 4:18 pm

You can pull down the script.

Code: Select all | TOGGLE FULL SIZE
wget https://raw.githubusercontent.com/adafruit/Raspberry-Pi-Installer-Scripts/master/i2samp.sh

mikeysklar
 
Posts: 6184
Joined: Mon Aug 01, 2016 8:10 pm

Re: Adafruit I2S Stereo Decoder - UDA1334A

by mikeysklar on Sat Oct 23, 2021 2:28 pm

Okay, let's just pull it down fresh.

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

Code: Select all | TOGGLE FULL SIZE
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.

mikeysklar
 
Posts: 6184
Joined: Mon Aug 01, 2016 8:10 pm

Re: Adafruit I2S Stereo Decoder - UDA1334A

by Dallfoll on Sat Oct 23, 2021 2:30 pm

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.

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

Please be positive and constructive with your questions and comments.