Orange pi zero 2w with dietpi, no sound device

Creating a bug report/issue

I have searched the existing open and closed issues

Required Information

  • DietPi version: 9.8
  • Distro version: bookworm
  • Kernel version: Linux DietPi 6.6.44-current-sunxi64
  • Architecture: arm64
  • SBC model: Orange Pi Zero 2W (aarch64)
  • Power supply used: 2A
  • SD card used: 128GB

Additional Information (if applicable)

I have used WIFI to connect to the Internet
I have used the dietpi Software tool to install the MATE desktop and Firefox web browser
I am able to login with the dietpi user into the MATE desktop
I tried to use: sudo dietpi-config to enable sound unsuccessfully

Steps to reproduce

When I open the Sound applet, I see that there is no sound device
Therefore there is no sound coming out of mi orange pi zero 2w
I have my speakers connected to my monitor

I know the hardware setup works because I do get sound when I use the Orange Pi OS
but I would rather use dietpi

Expected behaviour

should be able to play audio through the HDMI connection into the speakers attached to my monitor

Actual behaviour

no sound

Extra details

  • …

What exactly did you do and did you get any error message or something?

Hi Jappe,

sudo dietpi-config
a menu is shown, select the Audio Options
shows: 
  sound-card : [none-plug]
  auto-conversion: [on]
  dietpi-justboom: launches EQ and MPD audio options menu
  -----------------------------------------------
  disable: disable all audio cababilities

If I select sound-card and then OK, it shows

--- auto detection ---
usb-dac: usb audio dac (any)

I select auto detection and enter, nothing seems to change
select ok, again nothing seems to change

the only way out is to hit cancel

alsa is installed

This user interface is confusing

What do I need to do to enable sound with some shell commands
and how to test?

Thanks a lot!

The sound is broken with the default device tree. I will send a proper one here (heavily influenced by another topic which I will link to). Please remind me!

I the meantime, you can just use zero 3 dtb (fixes HDMI sound and everything seems to work but I won’t vouch for it not breaking anything).

2 Likes

Hello everyone! I have the same problem with my opi zerow2. Sound via HDMI does not work. Did you manage to solve the problem?

Here is the original modified dtb: No sound card detected for Opi zero 2w - #60 by Totof

Will edit this post to send mine

Hello every one , best christmas time to all

For the sound you need to activate it by a static way for the orangepi card
so the modified file with the txt extension , just remve the dot and txt and upload
the file to your sd card in /boot/dtb/allwinner/sun50i-h618-orangepi-zero2w-essai.dtb
with the “sudo cp” command
sun50i-h618-orangepi-zero2w-essai.dtb.txt (39,6 Ko)
when you upload you also edit the dietpienv.txt with “sudo nano /boot/dietpiEnv.txt”
and put a line with fdtfile like this

rootdev=UUID="your sd card"
rootfstype=ext4
# The init system logs to the console defined last.
consoleargs=console=ttyS0,115200 console=tty1
usbstoragequirks=
extraargs=net.ifnames=0
docker_optimizations=off
overlay_path=allwinner
overlay_prefix=sun50i-h616
overlays=
user_overlays=
fdtfile=allwinner/sun50i-h618-orangepi-zero2w-essai.dtb

This dtb file activate the HDMI, Jack audio part, the i2s0 audio part
and also the i2c1

Just reboot and enjoy yor sound

Thanks urostor!

I have used the the orange pi zero 3 installer and now I have the sound device.

Will the orange pi zero 2w download will be updated?

Regards…

The crippled device tree comes pretty much directly from orangepi themselves… It would be best if they fixed it themselves.

1 Like