build kernel issue

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

build kernel issue

746 Views
xufreedom
Contributor I

Hello,

I am trying to add some module code in a driver, but it seems a build image did not include my change. Therefore, I tried to add a debug message to see if my change applied.

I tried to add a debug message in selinux_init in vendor/nxp-opensource/kernel_imx/security/selinux/hooks.c as following.

static __init int selinux_init(void)
{

pr_info("SELinux: test Initializing.\n");

However, every time flashed boot image showed SELinux:  Initializing.

On the other hand, I have checked out/target/product/evk_8mq/obj/KERNEL_OBJ/arch/arm64/boot/Image. It included my test code. I also tried to decompress out/target/product/evk_8mq/obj/KERNEL_OBJ/arch/arm64/boot/Image.lz4 and it also included my test code.

I don't know how to check boot.img, thus I'm not sure whether boot.img included my test code or not.

My build environment is ubuntu 22.04

nxp source is imx-android-13.0.0_1.0.0.tar.gz

evb is imx8m evk8mq.

Could anyone help me how to make a correct boot image?

0 Kudos
Reply
1 Reply

737 Views
xufreedom
Contributor I

Just checked Android user guide. Chapter 9.2 mentioned, boot.img is default GKI image. boot-imx.img is built from i.MX kernel tree.

After change boot-imx.img, it is what I expected. Issue resolved.

0 Kudos
Reply