11-17-2023, 11:56 AM
Ah okay. Audio is intentionally not enabled OOTB. It is done automatically when you install audio software via dietpi-software, otherwise you need to enable it via dietpi-config and select a sound card there, or install and setup "alsa-utils" (or PulseAudio if preferred) manually.
You can pre-configure the system prior to first boot via dietpi.txt on the FAT setup partition of the image (or directly on the ext4 partition if you flashed via Linux host), after flashing the image. Set AUTO_SETUP_AUTOMATED=1 and add AUTO_SETUP_INSTALL_SOFTWARE_ID=5 there to install ALSA automatically on first boot, which implies having said "default" sound card (hw:0,0) setup automatically.
With extlinux, you cannot really do something in this regards, which is why we did not add it to the FAT setup partition. But probably we can do that as well, in case someone wants to setup custom kernel command-line parameters.
Regarding the Waveshare CM4 baseboard: If an overlay is required, then this should be either part of the default RPi kernel (see /boot/overlays and in case the README file for a list of available ones), or provided by Waveshare. I checked some docs: https://www.waveshare.com/wiki/CM4-IO-BASE-A
They suggest to add dtoverlay=dwc2,dr_mode=host to /boot/config.txt, i.e. using the dwc2 driver instead of dwc_otg, and set it to host mode explicitly. Even if this is not your exact baseboard model, worth to give it a try.
You can pre-configure the system prior to first boot via dietpi.txt on the FAT setup partition of the image (or directly on the ext4 partition if you flashed via Linux host), after flashing the image. Set AUTO_SETUP_AUTOMATED=1 and add AUTO_SETUP_INSTALL_SOFTWARE_ID=5 there to install ALSA automatically on first boot, which implies having said "default" sound card (hw:0,0) setup automatically.
With extlinux, you cannot really do something in this regards, which is why we did not add it to the FAT setup partition. But probably we can do that as well, in case someone wants to setup custom kernel command-line parameters.
Regarding the Waveshare CM4 baseboard: If an overlay is required, then this should be either part of the default RPi kernel (see /boot/overlays and in case the README file for a list of available ones), or provided by Waveshare. I checked some docs: https://www.waveshare.com/wiki/CM4-IO-BASE-A
They suggest to add dtoverlay=dwc2,dr_mode=host to /boot/config.txt, i.e. using the dwc2 driver instead of dwc_otg, and set it to host mode explicitly. Even if this is not your exact baseboard model, worth to give it a try.