C2 with hifi-shield on Armbian 24.2.1 installation issue

Post Reply
User avatar
3MF
Posts: 5
Joined: Sat Apr 20, 2024 4:42 am
languages_spoken: German
ODROIDs: C2, N2+
Has thanked: 0
Been thanked: 0
Contact:

C2 with hifi-shield on Armbian 24.2.1 installation issue

Post by 3MF »

Hello community,
searched trough the board and the web, but did not find solution.
I'm doing a build with C2 and hifishield2. C2 works fine for my needs with Armbian.
Few days ago got my hifi-shield and tried to install, but had no luck.
Problem is that modprobe doesn't find modules.

Tried with instructions of this:
https://odroid.com/dokuwiki/doku.php?id ... fi-shield2
and this:
viewtopic.php?f=118&t=24415 (page dietpi... no longer exists :shock: )

Found out, that in the Armbian kernel (same with ubuntu) some required modules are stored in (kernel is example)
/lib/modules/5.15.0-105-generic/kernel/sound/soc/codecs

"snd-soc-pcm512x"
"snd-soc-pcm512x-i2c"

But I get:
"modprobe: FATAL: Module snd_soc_pcm512x not found in directory /lib/modules/>>Nr of kernel<<"

And where do I get modules:
"aml_i2c"
and
"snd-soc-odroid-dac2"


Grateful for any suggestions
3MF from Germany

User avatar
mad_ady
Posts: 12034
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4 (HC1, HC2), C1+, C2, C4 (HC4), N1, N2, N2L, H2, H3+, Go, Go Advance, M1, M1S
Location: Bucharest, Romania
Has thanked: 663 times
Been thanked: 1298 times
Contact:

Re: C2 with hifi-shield on Armbian 24.2.1 installation issue

Post by mad_ady »

The odroid module, at least, is not part of the mainline kernel used by armbian. You'll likely need to revert to a hardkernel image, not sure if there are any mainline modules that can help.

User avatar
3MF
Posts: 5
Joined: Sat Apr 20, 2024 4:42 am
languages_spoken: German
ODROIDs: C2, N2+
Has thanked: 0
Been thanked: 0
Contact:

Re: C2 with hifi-shield on Armbian 24.2.1 installation issue

Post by 3MF »

Hello mad_ady,
thanks for reply!
I will give it a try to load hardkernel os and search around there for the modules. Could you offer me a link to get quick to the list of images?
No option to get modules for shield2 seperatly?

Regards 3MF

User avatar
mad_ady
Posts: 12034
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4 (HC1, HC2), C1+, C2, C4 (HC4), N1, N2, N2L, H2, H3+, Go, Go Advance, M1, M1S
Location: Bucharest, Romania
Has thanked: 663 times
Been thanked: 1298 times
Contact:

Re: C2 with hifi-shield on Armbian 24.2.1 installation issue

Post by mad_ady »

Try these: https://wiki.odroid.com/odroid-c2/os_im ... ntu/ubuntu

The source code for the modules is available in hardkernel git, but the challenge is porting it from kernel 3.16 to 5.x or 6.x.

User avatar
3MF
Posts: 5
Joined: Sat Apr 20, 2024 4:42 am
languages_spoken: German
ODROIDs: C2, N2+
Has thanked: 0
Been thanked: 0
Contact:

Re: C2 with hifi-shield on Armbian 24.2.1 installation issue

Post by 3MF »

Thank You, best Tipp I can get so far, I guess.
If there's any success, I will report ; )

User avatar
3MF
Posts: 5
Joined: Sat Apr 20, 2024 4:42 am
languages_spoken: German
ODROIDs: C2, N2+
Has thanked: 0
Been thanked: 0
Contact:

Re: C2 with hifi-shield on Armbian 24.2.1 installation issue

Post by 3MF »

I found modules for the Shield+ here:
https://github.com/3isenHeiM/HiFi-Shiel ... pcm5102.ko
Is it possible to upload them into my Armbian System (sorry, I'm Newbie with that stuff)?

User avatar
mad_ady
Posts: 12034
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4 (HC1, HC2), C1+, C2, C4 (HC4), N1, N2, N2L, H2, H3+, Go, Go Advance, M1, M1S
Location: Bucharest, Romania
Has thanked: 663 times
Been thanked: 1298 times
Contact:

Re: C2 with hifi-shield on Armbian 24.2.1 installation issue

Post by mad_ady »

No, those modules are built for kernel 3.14. Your Armbian loads 5.x. In linux the modules (.ko files) need to match the kernel version for the kernel to load them. They are usually built together with the kernel, from source.

User avatar
3MF
Posts: 5
Joined: Sat Apr 20, 2024 4:42 am
languages_spoken: German
ODROIDs: C2, N2+
Has thanked: 0
Been thanked: 0
Contact:

Re: C2 with hifi-shield on Armbian 24.2.1 installation issue

Post by 3MF »

Ok, presumed that. So I will look around, if any solution finds me ; )

User avatar
joerg
Posts: 2085
Joined: Tue Apr 01, 2014 2:14 am
languages_spoken: german, english, español
ODROIDs: C1, C1+, C2, N1, N2, C4
Location: Germany
Has thanked: 214 times
Been thanked: 482 times
Contact:

Re: C2 with hifi-shield on Armbian 24.2.1 installation issue

Post by joerg »

Here user rezzonics was able to port i2s audio to kernel 5.6. So it seems that it is possible, with some effort: viewtopic.php?t=41200

Post Reply

Return to “I2S Devices (HiFi Shield DAC and Stereo Boom Bonnet Kit)”

Who is online

Users browsing this forum: No registered users and 1 guest