[SOLVED] Hifi Shield 2 on Odroid C4

Post Reply
dual-o
Posts: 9
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: 7769
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: Many
Location: Paju, South Korea
Has thanked: 428 times
Been thanked: 1197 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: 9
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: 7769
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: Many
Location: Paju, South Korea
Has thanked: 428 times
Been thanked: 1197 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... :)

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