[SOLVED] Hifi Shield 2 on Odroid C4

Post Reply
dual-o
Posts: 13
Joined: Wed Jul 03, 2019 12:12 am
languages_spoken: english, german
ODROIDs: C2, C4, N2, N2+, H2
Location: Germany
Has thanked: 0
Been thanked: 1 time
Contact:

[SOLVED] Hifi Shield 2 on Odroid C4

Post by dual-o »

Hello,

I started my new mopidy project but failed really fast.
Ffter installing the C4 (latest Ubuntu) I would like to install the Hifi Shield 2.
I go straight forward through the docs https://wiki.odroid.com/accessory/sound ... odroid-c41

my boot.ini:

Code: Select all

ODROIDC4-UBOOT-CONFIG

setenv bootlabel "Hardkernel Ubuntu 20.04"

setenv board "odroidc4"
setenv display_autodetect "true"
setenv hdmimode "1080p60hz"
setenv monitor_onoff "false" # true or false
setenv overscan "100"
setenv sdrmode "auto"
setenv voutmode "hdmi"
setenv disablehpd "false"
setenv cec "true"
setenv disable_vu7 "true"
setenv max_freq_a55 "1908"    # 1.908 GHz, default value
setenv maxcpus "4"
setenv enable_wol "0"

# Set load addresses
setenv dtb_loadaddr "0x10000000"
setenv dtbo_addr_r "0x11000000"
setenv k_addr "0x1100000"
setenv loadaddr "0x1B00000"
setenv initrd_loadaddr "0x3700000"

if test "${variant}" = "hc4"; then
       setenv max_freq_a55 "1800"
fi

load mmc ${devno}:1 ${loadaddr} config.ini \
    && ini generic ${loadaddr}
if test "x${overlay_profile}" != "x"; then
    ini overlay_${overlay_profile} ${loadaddr}
fi

setenv condev "console=ttyS0,115200n8"   # on both


### Normal HDMI Monitors
if test "${display_autodetect}" = "true"; then hdmitx edid; fi
if test "${hdmimode}" = "custombuilt"; then setenv cmode "modeline=${modeline}"; fi
if test "${cec}" = "true"; then setenv cec_enable "hdmitx=cec3f"; fi
if test "${disable_vu7}" = "false"; then setenv hid_quirks "usbhid.quirks=0x0eef:0x0005:0x0004"; fi

# Boot Args
setenv bootargs "root=UUID=e139ce78-9841-40fe-8823-96a304a09859 rootwait rw ${condev} ${amlogic} no_console_suspend fsck.repair=yes net>                                                                                                                                       # Load kernel, dtb and initrd
load mmc ${devno}:1 ${k_addr} Image.gz
load mmc ${devno}:1 ${dtb_loadaddr} amlogic/meson64_odroid${variant}.dtb
load mmc ${devno}:1 ${initrd_loadaddr} uInitrd
fdt addr ${dtb_loadaddr}

if test "x{overlays}" != "x"; then
    fdt resize ${overlay_resize}
    for overlay in ${overlays}; do
        load mmc ${devno}:1 ${dtbo_addr_r} amlogic/overlays/${board}/${overlay}.dtbo \
            && fdt apply ${dtbo_addr_r}
    done
fi

; Device Tree Overlay
overlay_resize=16384
overlay_profile=hifishield2
overlays="spi0 i2c0 i2c1 uart0"

[overlay_custom]
overlays="i2c0 i2c1"

[overlay_hktft32]
overlays="hktft32"

[overlay_hktft35]
overlays="hktft35"

[overlay_hifishield2]
overlays="hifishield2"



# unzip the kernel
unzip ${k_addr} ${loadaddr}

# boot
booti ${loadaddr} ${initrd_loadaddr} ${dtb_loadaddr}
aplay -l

Code: Select all

**** List of PLAYBACK Hardware Devices ****
card 0: ODROIDHDMI [ODROID-HDMI], device 0: SPDIF-dit-hifi dit-hifi-0 []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
root@odroid-audio:~#
any advices how to install?

User avatar
tobetter
Posts: 10043
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: Many
Location: Paju, South Korea
Has thanked: 640 times
Been thanked: 1714 times
Contact:

Re: Hifi Shield 2 on Odroid C4

Post by tobetter »

Your boot.ini is wrong, these lines in your boot.ini must be in config.ini separately.

Code: Select all

; Device Tree Overlay
overlay_resize=16384
overlay_profile=hifishield2
overlays="spi0 i2c0 i2c1 uart0"

[overlay_custom]
overlays="i2c0 i2c1"

[overlay_hktft32]
overlays="hktft32"

[overlay_hktft35]
overlays="hktft35"

[overlay_hifishield2]
overlays="hifishield2"

dual-o
Posts: 13
Joined: Wed Jul 03, 2019 12:12 am
languages_spoken: english, german
ODROIDs: C2, C4, N2, N2+, H2
Location: Germany
Has thanked: 0
Been thanked: 1 time
Contact:

Re: Hifi Shield 2 on Odroid C4

Post by dual-o »

Thanks for the quick reply.
I found the section in the config.ini and it is working.
These users thanked the author dual-o for the post:
tobetter (Wed Apr 28, 2021 10:13 pm)

User avatar
tobetter
Posts: 10043
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: Many
Location: Paju, South Korea
Has thanked: 640 times
Been thanked: 1714 times
Contact:

Re: Hifi Shield 2 on Odroid C4

Post by tobetter »

dual-o wrote:
Wed Apr 28, 2021 7:32 pm
Thanks for the quick reply.
I found the section in the config.ini and it is working.
Glad to know it's working... :)

blackride
Posts: 75
Joined: Thu Feb 11, 2016 2:32 am
languages_spoken: english & russian
ODROIDs: Odroid C2
Has thanked: 0
Been thanked: 0
Contact:

Re: [SOLVED] Hifi Shield 2 on Odroid C4

Post by blackride »

Will it be available soon? Or can we forget about this board?
Oroid C2/LibreELEC 9

User avatar
rooted
Posts: 9506
Joined: Fri Dec 19, 2014 9:12 am
languages_spoken: english
Location: Gulf of Mexico, US
Has thanked: 761 times
Been thanked: 487 times
Contact:

Re: [SOLVED] Hifi Shield 2 on Odroid C4

Post by rooted »

blackride wrote:Will it be available soon? Or can we forget about this board?
If you mean the HiFi Shield I believe it's been depreciated and is no longer available.

User avatar
odroid
Site Admin
Posts: 39247
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean
ODROIDs: ODROID
Has thanked: 2566 times
Been thanked: 1407 times
Contact:

Re: [SOLVED] Hifi Shield 2 on Odroid C4

Post by odroid »

The HiFi Shield 2 discontinued early this year while the HiFi Shield Plus is still available.
https://www.hardkernel.com/shop/hifi-shield-plus/

User avatar
rooted
Posts: 9506
Joined: Fri Dec 19, 2014 9:12 am
languages_spoken: english
Location: Gulf of Mexico, US
Has thanked: 761 times
Been thanked: 487 times
Contact:

Re: [SOLVED] Hifi Shield 2 on Odroid C4

Post by rooted »

odroid wrote:The HiFi Shield 2 discontinued early this year while the HiFi Shield Plus is still available.
https://www.hardkernel.com/shop/hifi-shield-plus/
What is the difference between the 2 and the Plus, only thing that stands out is the HiFi Shield 2 has a bit better SNR?

blackride
Posts: 75
Joined: Thu Feb 11, 2016 2:32 am
languages_spoken: english & russian
ODROIDs: Odroid C2
Has thanked: 0
Been thanked: 0
Contact:

Re: [SOLVED] Hifi Shield 2 on Odroid C4

Post by blackride »

rooted wrote:
Wed Dec 29, 2021 7:45 pm
odroid wrote:The HiFi Shield 2 discontinued early this year while the HiFi Shield Plus is still available.
https://www.hardkernel.com/shop/hifi-shield-plus/
What is the difference between the 2 and the Plus, only thing that stands out is the HiFi Shield 2 has a bit better SNR?
HiFi Shiled 2 has an hardware volume control.
Oroid C2/LibreELEC 9

blackride
Posts: 75
Joined: Thu Feb 11, 2016 2:32 am
languages_spoken: english & russian
ODROIDs: Odroid C2
Has thanked: 0
Been thanked: 0
Contact:

Re: [SOLVED] Hifi Shield 2 on Odroid C4

Post by blackride »

odroid wrote:
Wed Dec 29, 2021 9:38 am
The HiFi Shield 2 discontinued early this year while the HiFi Shield Plus is still available.
https://www.hardkernel.com/shop/hifi-shield-plus/
Can you release HiFi Shiled 2 at the start of the new year?
If not, will there be a HiFi Shiled 3 with hardware volume control in the new year?
Oroid C2/LibreELEC 9

User avatar
rooted
Posts: 9506
Joined: Fri Dec 19, 2014 9:12 am
languages_spoken: english
Location: Gulf of Mexico, US
Has thanked: 761 times
Been thanked: 487 times
Contact:

Re: [SOLVED] Hifi Shield 2 on Odroid C4

Post by rooted »

I'm not up on audio hardware, what difference does this make? I'm guessing it has something to do with the noise floor?

*Edit*
I guess this link explains it, but it seems this may not be an issue.

https://www.hifiberry.com/blog/techtalk ... bad-thing/

User avatar
odroid
Site Admin
Posts: 39247
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean
ODROIDs: ODROID
Has thanked: 2566 times
Been thanked: 1407 times
Contact:

Re: [SOLVED] Hifi Shield 2 on Odroid C4

Post by odroid »

blackride wrote:
Thu Dec 30, 2021 10:37 am
odroid wrote:
Wed Dec 29, 2021 9:38 am
The HiFi Shield 2 discontinued early this year while the HiFi Shield Plus is still available.
https://www.hardkernel.com/shop/hifi-shield-plus/
Can you release HiFi Shiled 2 at the start of the new year?
If not, will there be a HiFi Shiled 3 with hardware volume control in the new year?
We have no plan to make it because demands have been quite low.

blackride
Posts: 75
Joined: Thu Feb 11, 2016 2:32 am
languages_spoken: english & russian
ODROIDs: Odroid C2
Has thanked: 0
Been thanked: 0
Contact:

Re: [SOLVED] Hifi Shield 2 on Odroid C4

Post by blackride »

odroid wrote:
Fri Dec 31, 2021 9:49 am
blackride wrote:
Thu Dec 30, 2021 10:37 am
odroid wrote:
Wed Dec 29, 2021 9:38 am
The HiFi Shield 2 discontinued early this year while the HiFi Shield Plus is still available.
https://www.hardkernel.com/shop/hifi-shield-plus/
Can you release HiFi Shiled 2 at the start of the new year?
If not, will there be a HiFi Shiled 3 with hardware volume control in the new year?
We have no plan to make it because demands have been quite low.
Can a limited batch be made? Because I know many who wanted to buy exactly version 2, but it is no longer on sale.
Oroid C2/LibreELEC 9

blackride
Posts: 75
Joined: Thu Feb 11, 2016 2:32 am
languages_spoken: english & russian
ODROIDs: Odroid C2
Has thanked: 0
Been thanked: 0
Contact:

Re: [SOLVED] Hifi Shield 2 on Odroid C4

Post by blackride »

rooted wrote:
Thu Dec 30, 2021 12:36 pm
I'm not up on audio hardware, what difference does this make? I'm guessing it has something to do with the noise floor?

*Edit*
I guess this link explains it, but it seems this may not be an issue.

https://www.hifiberry.com/blog/techtalk ... bad-thing/
The problem is that you don't get the correct audio signal on output, there will be distortion. Hardware volume control is the right thing in this regard.
Oroid C2/LibreELEC 9

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 2 guests