Unable to generate a new dtb file for IMX8MM Yocto Linux 4.14.98.2.0.0

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Unable to generate a new dtb file for IMX8MM Yocto Linux 4.14.98.2.0.0

1,589 Views
sreedhar_appala
Contributor IV

Hi,

My development hw setup : IMX8M Mini EVK Interfaced to ADAU7002 with PDM MIC (2 Nos)

Yocto Linux BSP 4.14.98.2.0.0

adau7002.c is availlable in the kernel and I built into the kernel.

the machine driver for adau7002 i have created and added to the kernel and built.

 

dts file i have created one, similar to ak5558 enabling the adau7002 and disabling micfil.

I have edited the Makefile in arch/arm64/boot/dts/freescale/Makefile, to add the fsl-imx8mm-evk-adau7002.dtb file.

But when i built the linux-imx module. I am not getting the dtb file generated in the build.

 

Could you please tell me where i am doing wrong. I checked the ubuntu machine for dtc compiler it is available.

But it is not generating the dtb file for the fsl-imx8mm-evk-adau7002.dts ==> fsl-imx8mm-evk-adau7002.dtb

 

Could you please let me know, any other place i need to add any.

 

Thank you, Sreedhar

0 Kudos
3 Replies

1,317 Views
weidong_sun
NXP TechSupport
NXP TechSupport

Hello Sreedhar,

    Below is our last discussion:

For your question, follow these 2 steps, please!
1. Add your new dts file to local Makefile .
2. run "bitbake linux-imx -f -c compile" on command line

Use above method, new .dtb has not been created yet.

Retry this command:

Let me assume your image is : core-image-base

then we can force compiler to re-compile the image.

# bitback core-image-base -f

[comment]

   here core-image-base can be replaced with yours.

Hope above information can help you.

Have a nice day!

BR,

Weidong

0 Kudos

1,317 Views
sreedhar_appala
Contributor IV

Hi,

thank you for the suggestion:

I am working with Yocto Linux BSP 4.14.98.2.0.0.

I edited the Makefile in the arm/arch64/boot/dts/freescale/Makefile

and included my created .dtb file in it.

As mentioned above, i bitbaked using the below command

bitbake fsl-image-validation-imx

 

sdcard image is created but the created dts file dtb is not generated. Could you please tell me any step i am doing wrong / missing.

Thank you, Sreedhar

0 Kudos

1,317 Views
weidong_sun
NXP TechSupport
NXP TechSupport

Hello Sreedhar,

It seems that you should run:bitbake -c deploy

Summarize it:

1. bitbake linux-imx -f -c compile

2. bitbake -c deploy

or you can try this command:

# bitbake -c deploy -f -v linux-imx

try it, please!

Have a nice day!

BR,

Weidong

0 Kudos