Question about MX Processors Knowledge Base

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

Question about MX Processors Knowledge Base

Jump to solution
1,315 Views
jskim169
Contributor II
I have a question about the topic below.
 
I want to build a kernel and then integrate it into the bitbake image, but I wonder what the procedure is.
 

https://community.nxp.com/t5/i-MX-Processors-Knowledge-Base/How-to-compile-Linux-Kernel-Image-and-de...

------------------------------------------------------------------------

8. Compiling the Kernel

Finally, compile the kernel image using:

$ make -j $(nproc) 

 

The resulting kernel image will be located in:

iMX8 and iMX9:

arch/arm64/boot/

 

iMX6 and iMX7:

arch/arm/boot/

 

0 Kudos
Reply
1 Solution
1,240 Views
Rita_Wang
NXP TechSupport
NXP TechSupport

I am a little confused on the situation in your side, are you using the Yocto in your side?

If yes, here you do not need to use the Stand-alone build, just use the Yocto modidy all the code you need to , when finished compile, it will generate the wic.zst file in the /tmp/deploy/images folder. So you do not need to add uboot and kernel build images and kernel modules to the wic.zst file anymore. It is the easist way to do. This is the first method.

If you already generate and download the wic.zst file to your board, here just compile the u-boot and kernel files, you only need to downlaod the u-boot and kernel to your board, no need to download the wic.zst file again. This the second meathod.

So about your questions:

Additionally, I would like to know how to add uboot and kernel build images and kernel modules to the wic.zst file in the /tmp/deploy/images folder that is the yocto build result.

You do not need to do like this.

Any questions contact me freely.

 

View solution in original post

0 Kudos
Reply
6 Replies
1,301 Views
Rita_Wang
NXP TechSupport
NXP TechSupport

Which product are you using? Take our newest BSP as an example you can refer to our i.MX Yocto Project User's Guide.

Any confuse and questions contact me freely

0 Kudos
Reply
1,285 Views
jskim169
Contributor II

I am using FRDM i.MX 93 Development Board.

I am referring to the document https://docs.nxp.com/bundle/UG10195/page/topics/customization.html.

In the next chapter - How to build U-Boot and Kernel in a standalone environment,

1. Generate an SDK that includes the necessary tools, toolchain, and a small rootfs to compile on the host machine.
To generate an SDK from the Yocto Project build environment, run the following command:
$ bitbake core-image-minimal -c populate_sdk
The populate_sdk generates a script file that sets up a standalone environment without Yocto Project.
2. To build on, copy the sh file from the build directory in tmp/deploy/sdk to the host machine and execute the script to install the SDK. The default location is in /opt, but it can be placed anywhere on the host machine.
3. On the host machine, to build U-Boot and Kernel, perform the following steps

I'm curious about the next procedure.
I want to integrate kernel, Uboot image generated by standalone into bitbake image.

 

 

0 Kudos
Reply
1,262 Views
Rita_Wang
NXP TechSupport
NXP TechSupport

Do you have confused on this? What is your questions?

 
 

20250219.png

0 Kudos
Reply
1,249 Views
jskim169
Contributor II

Successfully, the Uboot and kernel build have been completed. And I'm going to include the Uboot image, kernel image, dtb, kernel module results in the yocto wic.

 

I want to integrate the Stand-alone build result into Yocto's official kernel build process.

Additionally, I would like to know how to add uboot and kernel build images and kernel modules to the wic.zst file in the /tmp/deploy/images folder that is the yocto build result.

 

 

0 Kudos
Reply
1,241 Views
Rita_Wang
NXP TechSupport
NXP TechSupport

I am a little confused on the situation in your side, are you using the Yocto in your side?

If yes, here you do not need to use the Stand-alone build, just use the Yocto modidy all the code you need to , when finished compile, it will generate the wic.zst file in the /tmp/deploy/images folder. So you do not need to add uboot and kernel build images and kernel modules to the wic.zst file anymore. It is the easist way to do. This is the first method.

If you already generate and download the wic.zst file to your board, here just compile the u-boot and kernel files, you only need to downlaod the u-boot and kernel to your board, no need to download the wic.zst file again. This the second meathod.

So about your questions:

Additionally, I would like to know how to add uboot and kernel build images and kernel modules to the wic.zst file in the /tmp/deploy/images folder that is the yocto build result.

You do not need to do like this.

Any questions contact me freely.

 

0 Kudos
Reply
1,237 Views
jskim169
Contributor II
Thank you for your answer.
0 Kudos
Reply