cancel
Showing results for 
Search instead for 
Did you mean: 

"Not possible to generate the kernel image" error when building dtb binaries of OpenSTDroid kernel

aditya_m
Associate II

I am trying to build the OpenSTDroid kernel, I first acquired the "STM32MPU Distribution Package for Android", Then as mentioned in https://wiki.st.com/stm32mpu/wiki/How_to_build_kernel_for_Android, I loaded the kernel & Then tried to build the dtb binaries using:

build_kernel dtb

And got the following error:

$ build_kernel dtb
[1/1]: Generate dtb binaries
ERROR: Not possible to generate the kernel image

After commenting out the &>${redirect_out} part where make is generating the dtb files, I get the following output:

$ build_kernel dtb
[1/1]: Generate dtb binaries
make[1]: *** No rule to make target 'dtbs'. Stop.
make: *** [Makefile:256: __sub-make] Error 2
ERROR: Not possible to generate the kernel image
3 REPLIES 3

Hi @aditya_m,

 

I would like to cross-check some points with you:

As an alternative to the execution of the “build_kernel dtb” command alone, it might be possible to execute the “build_kernel” command; it might be interesting to verify if the problem also occurs with this command.

 

Hope this information helps.

 

Regards,

JC.

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.
aditya_m
Associate II

Hi, I did setup the VM as required by the PC prerequisites link you mentioned, Including the packages for Android, I did build the OpenSTDroid distribution as mentioned in the article you shared.

Initially I also only execute the "build_kernel", But that resulted in the same issue as well that's why I tried to run "build_kernel dtb".

Hi @aditya_m,

 

Thank you for the information that you shared. On my side, I succeeded in executing both the “build_kernel dtb” command and the “build_kernel” command.

A v5.1.1 release has been delivered quite recently (st-android-13.0.0-2025-11-21 manifest tag): do you use this one or the previous manifest tag (st-android-13.0.0-2024-07-31)?

 

I could suggest that you execute the “build_kernel dtb” command and/or the “build_kernel” command.with the “--verbose” option, and attach the build logs to this topic.

 

Regards,

JC.

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.