A simple sound card based on PWM for i.mx6x processors

I want to use MQS for Colibri on Linux.Sio I need to add sound Driver to Kernel.How to do this???

Hi @vit1234

For MQS you will need the following kernel config and the following patch for devicetree.

Best regards, Jaski

Hello @jaski.tx
Thank you for your response.
So sir can you please provide the step wise solution??


So first of all you need to get a copy of a regular Bsp Image for Colibri iMX6ULL which you can extract to usb key or sd card.
Then you need to compile a custom kernel and devicetree. Once you replaced the kernel and the devicetree with the custom one, you can flash the new image to the module using Toradex Easy Installer.

Best regards,

As per your guidance In the process of building a Kernel, how to enable “ARCH_MXC [=y]” using make menuconfig.
We want to enable it at
→ Device Drivers
→ Sound card support (SOUND [=y])
→ Advanced Linux Sound Architecture (SND [=y])
→ Generic sound devices (SND_DRIVERS [=y])

And @jaski.tx sir do we really need to enable this driver???

you need to enable all the drivers which are written in .config file I shared with you.

@jaski.tx sir we don’t have this line in “imx6ull-colibri.dtsi”

@@ -101,8 +101,39 @@
 		clocks = <&clks IMX6UL_CLK_ENET2_REF_125M>;
 		startup-delay-us = <150000>;

Please guide us…

Which kernel branch ( git branch ) are you using?

You just need to add the additional lines marked with a + sign to the to the devicetree. The +sign should not be added to the .dtsi file.

Alternatively you can apply the file I shared with you also as a git patch as described here.

Best regards,

@jaski.tx sir this git branch we are using

  • toradex_4.9-1.0.x-imx

@jaski.tx sir we have imx6ull-colibri.dtsi file so do we need to convert it to .dtb or can we directly compile it ??
Because on compiling .dtsi file we are getting message as
" make: Nothing to be done for ‘imx6ull-colibri.dtsi’. "
However we made the changes in .dtsi file as per your guidance…

yes, you need to compile the devicetree with the command make imx6ull-colibri-eval-v3.dtb.

@jaski.tx Sir. Thank you for your response.
We have a basic doubt that we made the necessary changes in imx6ull-colibri.dtsi file but why are we compiling the imx6ull-colibri-eval-v3.dtb file .

.dtsi files are source files and .dtb files are the binary files you will get after compilation as explained here.

Best regards,

We are unable to compile this file . when we do make imx6ull-colibri.dtsi we get error as " make: Nothing to be done for ‘imx6ull-colibri.dtsi’." Here is the attachment of modified .dtsi file

link text

You don’t have to make .dtsi but .dtb as explained already above.