When using the command to export the kernel source code, an error message appears.
MACHINE=am62axx-evm detool modify linux-ti-staging

Please help take a look. Or is there any guidance document on how to modify the kernel in the yocto project?
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
When using the command to export the kernel source code, an error message appears.
MACHINE=am62axx-evm detool modify linux-ti-staging

Please help take a look. Or is there any guidance document on how to modify the kernel in the yocto project?
If you look at the red text in your screenshot, bitbake can't find a patch. Provide the patch in the right place (one of your recipes in source/* references it) or remove the SRC_URI that adds it.
This issue seems limited to the linux-ti-staging recipe; other recipes work. I flagged this to the dev team but we don't have a solution for this yet. I suggest you use a different method for kernel development that doesn't use the 'devtool modify' feature.
Regards, Andreas
This has been reported again with another customer, see https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1351405/am625-sdk-09_02_01_09-failed-to-modify-kernel-recipe-using-devtool
Let me follow up with the development team to see if there's perhaps a "quick fix".
Regards, Andreas
I was able to re-create the issue and figure out a workaround, please see this thread here: https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1351405/am625-sdk-09_02_01_09-failed-to-modify-kernel-recipe-using-devtool
Regards, Andreas