How to load and install module automatically at kernel bootup in standalone build?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

How to load and install module automatically at kernel bootup in standalone build?

ソリューションへジャンプ
2,401件の閲覧回数
RVT
Contributor I

Hello, NXP experts:

By using demo files (LF_v6.1.1_1.0.0_images_IMX8MPEVK or LF_v5.15.71-2.2.0_images_IMX8MPEVK) from "https://www.nxp.com/design/software/embedded-software/i-mx-software/embedded-linux-for-i-mx-applicat...", all peripherals can be found and loaded properly on i.MX 8M Plus EVK.

For example, WM8960 can be found with demo files.

RVT_0-1684469111192.png

But there is no peripherals found by using the standalone built image with "https://github.com/nxp-imx/linux-imx". The default "imx_v8_defconfig" and "imx8mp-evk.dts" are applied in the build.

For example, no soundcard can be found with standalone built kernel image.

RVT_1-1684469163893.png

 

How can I build the same kernel image as the demo files?

Thanks.

0 件の賞賛
返信
1 解決策
2,291件の閲覧回数
Dhruvit
NXP TechSupport
NXP TechSupport

Hi @RVT,

I hope you are doing well.

Please make sure that snd-soc-fsl-asoc-card.ko module is loaded correctly.

One can try building a linux image using yocto.

Please refer to i.MX Yocto Project User's Guide

One can refer to the below-mentioned documents related to Audio Codec porting.

1. Chapter 7 Audio - i.MX Linux Reference Manual

2. Chapter - 16 Porting Audio Codecs in i.MX Porting Guide

3 . Audio Codec WM8960 Porting Notes

4. WM8960 audio codec

5. Porting custom audio codec in Linux BSP

Thanks & Regards,
Dhruvit Vasavada

元の投稿で解決策を見る

0 件の賞賛
返信
3 返答(返信)
2,360件の閲覧回数
Dhruvit
NXP TechSupport
NXP TechSupport

Hi @RVT,

I hope you are doing well.

One needs to enable menuconfig options in the kernel to load specific modules.

Please refer to 7.1.4.6 Menu Configuration Options in i.MX Linux Reference Manual to enable SoC Audio supports for WM8958, WM8960, and WM8962 CODEC.

One can add module names in /etc/modules-load.d/<module_list>.conf to automatically load kernel modules.

Thanks & Regards,
Dhruvit Vasavada

0 件の賞賛
返信
2,325件の閲覧回数
RVT
Contributor I

Hi Dhruvit,

Attached please find the .config & imx_v8_defconfig files at iMX Linux kernel at https://github.com/nxp-imx/linux-imx.

There is no option for wm8960 as shown in 7.1.4.6.

RVT_2-1685091435048.png

 

RVT_1-1685091211794.png

 

RVT_0-1685090998095.png

I intend to port another codec to EVK platform by following the baseline EVK kernel code. Therefore, I would like to know all know-how in order to let a new codec to work with iMX8MP SAI and audio framework. Firstly, I have to build the same as the demo files. 

Also, can NXP provide something like audio subsystem linux porting guide - user manual?

Thanks.

タグ(1)
0 件の賞賛
返信
2,292件の閲覧回数
Dhruvit
NXP TechSupport
NXP TechSupport

Hi @RVT,

I hope you are doing well.

Please make sure that snd-soc-fsl-asoc-card.ko module is loaded correctly.

One can try building a linux image using yocto.

Please refer to i.MX Yocto Project User's Guide

One can refer to the below-mentioned documents related to Audio Codec porting.

1. Chapter 7 Audio - i.MX Linux Reference Manual

2. Chapter - 16 Porting Audio Codecs in i.MX Porting Guide

3 . Audio Codec WM8960 Porting Notes

4. WM8960 audio codec

5. Porting custom audio codec in Linux BSP

Thanks & Regards,
Dhruvit Vasavada

0 件の賞賛
返信