dear nxp
For example,
I have modified as below
imx-android-14.0.0_2.2.0/android_build/vendor/nxp-opensource/kernel_imx$ vi arch/arm64/kernel/setup.c +97
pr_info("BCooting Linux on ...
then, executed below
./imx-make.sh kernel
./imx-make.sh bootimage
fastboot flash boot_a boot.img
But BCooting did not be presented at booting.
How do I apply kernel modifications?
Thanks in advanced
Solved! Go to Solution.
Hi @bryan_hong
The modifications in your code is in boot.img. it is under folder
/imx-android-14.0.0_2.2.0/android_build/out/target/product/evk_8mn
boot.img is a composite image, which includes the AOSP generic Kernel image and boot parameters.
The boot.img is from google, you can not change it. By default, fastboot only program the default image from google.
Regards
Daniel
dear Dhaval_Shiroya
First, thanks for your comments.
I have changes `arch/arm64/kernel/setup.c` and arch/arm64/boot/dts/freescale/imx8mn-evk.dts as below.
pr_info("BBBCooting Linux
model = "N_NXP i.MX8MNano EVK board";
then,
Compile kernel, dtb and flash as below.
rm -rf out
./imx-make.sh kernel
./imx-make.sh dtboimage
adb reboot bootloader
fastboot flash boot boot.img
fastboot flash dtbo_a dtbo-imx8mn.img
then
adb logcat -b all | grep -i "N_NXP"
01-01 00:00:00.000 0 0 I Machine model: N_NXP i.MX8MNano EVK board
but
adb logcat -b all | grep -i "BBBCooting" <- it can't be founded
so, In summary
It seems that Google's boot.img not being modified.
Thanks,
Bryan
thanks for your comments.
Could you share a document on how to modify kernels other than GKI? For example, is there a document on how to modify the source code for the vendor_boot.img?
Hi @bryan_hong
The modifications in your code is in boot.img. it is under folder
/imx-android-14.0.0_2.2.0/android_build/out/target/product/evk_8mn
boot.img is a composite image, which includes the AOSP generic Kernel image and boot parameters.
The boot.img is from google, you can not change it. By default, fastboot only program the default image from google.
Regards
Daniel
Hello,
Yes, it is possible to modify the kernel, and the changes are reflected in the boot.img.
After building, the boot.img file can be found in the following directory:
/imx-android-14.0.0_2.2.0/android_build/out/target/product/evk_8mn/boot.img
The boot.img is a composite image that includes the kernel and boot parameters. When you rebuild the kernel source code your changes are incorporated into this image.
Your modification "BCooting Linux on ..." should now appear in the logs if all the steps are followed correctly.