2021-11-10 12:56 AM
Hi Community,
I am building android image of STM32MP157C-EV1.
I have got incompatible error when I have built as following commands.
commans:
$ repo init -u https://github.com/STMicroelectronics/android-manifest -b refs/tags/st-android-11.0.0-2021-08-31 -m stm32mp1droid.xml
$ repo sync
$ source ./build/envsetup.sh
$ lunch aosp_eval-user
$ make -j
error:
checkvintf E 11-10 15:16:51 206 206 check_vintf.cpp:554] files are incompatible: Runtime info and framework compatibility matrix are incompatible: No compatible kernel requirement found (kernel FCM version = 5).
checkvintf E 11-10 15:16:51 206 206 check_vintf.cpp:554] For kernel requirements at matrix level 5, For config CONFIG_DEBUG_FS, value = y but required n
checkvintf E 11-10 15:16:51 206 206 check_vintf.cpp:554] : Success
Obviously these files are mismatch.
out/target/product/eval/system/etc/vintf/compatibility_matrix.5.xml
1557: <config>
1558: <key>CONFIG_DEBUG_FS</key>
1559: <value type="tristate">n</value>
1560: </config>
out/target/product/eval/obj/PACKAGING/check_vintf_all_intermediates/kernel_configs.txt
5548: CONFIG_DEBUG_FS=y
Which file should I change to fix this issue?
Or, is it better to fix it in another way?
As a side note, I have built successfully by chaning kernel_configs.txt.
Thanks & Regards,
Hiromichi,
Solved! Go to Solution.
2021-11-22 12:30 AM
Hi Hiromichi,
As mentioned in the wiki page https://wiki.st.com/stm32mpu-ecosystem-v2/wiki/How_to_build_STM32MPU_distribution_for_Android#Generating_the_image, it's required in case of user build to re-build the kernel. For that purpose, you have to execute the following commands in your build environment (after the lunch aosp_eval-user, but beore the make -j) :
$ load_kernel
$ build_kernel -i
Regards
Nicolas
2021-11-22 12:30 AM
Hi Hiromichi,
As mentioned in the wiki page https://wiki.st.com/stm32mpu-ecosystem-v2/wiki/How_to_build_STM32MPU_distribution_for_Android#Generating_the_image, it's required in case of user build to re-build the kernel. For that purpose, you have to execute the following commands in your build environment (after the lunch aosp_eval-user, but beore the make -j) :
$ load_kernel
$ build_kernel -i
Regards
Nicolas
2021-11-22 12:57 AM
Hi Nicolas,
Thank you very much for your kind instruction.
I'm sorry I didn't understand the wiki page properly.
I will try again according to your instruction.
Regards
Hiromichi
2021-11-29 08:27 PM
I have finished to build successfully.
I had to do the setup described on the following site for the kernel building.
https://wiki.st.com/stm32mpu-ecosystem-v2/wiki/PC_prerequisites