IMX8ulp standalone image

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

IMX8ulp standalone image

609 Views
bajpaia
Contributor I

I want to build a complete standalone bootable image for the i.MX8ULP.
I have already downloaded and built the Linux kernel and U-Boot for the i.MX8ULP.
What additional components do I need, and since the i.MX8ULP has on-board eMMC, how do I flash U-Boot, the kernel, and the root filesystem onto it?

Labels (1)
Tags (1)
0 Kudos
Reply
3 Replies

584 Views
Manuel_Salas
NXP TechSupport
NXP TechSupport

Hello @bajpaia 

I hope you are ding very well.

 

For i.MX 8ULP EVK, to build imx-boot image is recommended use imx-mkimage:

1. Copy u-boot.bin from u-boot/u-boot.bin and u-boot-spl.bin from u-boot/spl/u-bootspl.bin to imx-mkimage/iMX8ULP/.

2. Copy bl31.bin from Arm Trusted firmware (imx-atf) to imx-mkimage/iMX8ULP/.

3. Copy the image of Sentinel firmware container mx8ulpa0-ahab-container.img to imx-mkimage/iMX8ULP/.

4. Copy the image of uPower firmware image upower.bin to imx-mkimage/iMX8ULP/.

5. Copy the Cortex-M33 image m33_image.bin to imx-mkimage/iMX8ULP/.

6. If using OP-TEE, copy tee.bin to imx-mkimage/iMX8ULP/. The bl31.bin copied in Step 2 must be built with OP-TEE SPD enabled.

7. Run make SOC=iMX8ULP flash_singleboot_m33 to generate flash.bin.

 

You can find that information in chapter 4.5.12 How to build U-Boot and Kernel in standalone environment and 4.5.13 How to build imx-boot image by using imx-mkimage of i.MX Linux User's Guide.

 

Also, it is recommended to use the Standalone environment just when you will make modifications to kernel, drivers, etc.

To generate the full image, I recommend t use Yocto environment

 

Best regards,

Salas.

0 Kudos
Reply

569 Views
bajpaia
Contributor I
Yes i have gone through the imx linux user guide but can,t find any link to download all this dependency and what about the kernel and rfs .
0 Kudos
Reply

556 Views
Manuel_Salas
NXP TechSupport
NXP TechSupport

Hello.

Here you have links to the "dependencies": 

U-boot.

mkimage.

ATF.

 

You can find all dependencies in the Release notes, Table 5.

For create the RFS, it is highly recommended to use a Yocto environment.

 

Best regards,

Salas.

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2255295%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EIMX8ulp%20standalone%20image%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2255295%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EI%20want%20to%20build%20a%20complete%20standalone%20bootable%20image%20for%20the%20i.MX8ULP.%3CBR%20%2F%3EI%20have%20already%20downloaded%20and%20built%20the%20Linux%20kernel%20and%20U-Boot%20for%20the%20i.MX8ULP.%3CBR%20%2F%3EWhat%20additional%20components%20do%20I%20need%2C%20and%20since%20the%20i.MX8ULP%20has%20on-board%20eMMC%2C%20how%20do%20I%20flash%20U-Boot%2C%20the%20kernel%2C%20and%20the%20root%20filesystem%20onto%20it%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2255295%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CLINGO-LABEL%3EBoot%20ROM%7CBooting%20%7C%20Flash%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2255698%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20IMX8ulp%20standalone%20image%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2255698%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EYes%20i%20have%20gone%20through%20the%20imx%20linux%20user%20guide%20but%20can%2Ct%20find%20any%20link%20to%20download%20all%20this%20dependency%20and%20what%20about%20the%20kernel%20and%20rfs%20.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2255439%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20IMX8ulp%20standalone%20image%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2255439%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F251301%22%20target%3D%22_blank%22%3E%40bajpaia%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EI%20hope%20you%20are%20ding%20very%20well.%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EFor%20i.MX%208ULP%20EVK%2C%20to%20build%20imx-boot%20image%20is%20recommended%20use%20%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fnxp-imx%2Fimx-mkimage%22%20target%3D%22_self%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Eimx-mkimage%3C%2FA%3E%3A%3C%2FP%3E%0A%3CP%3E1.%20Copy%20u-boot.bin%20from%20u-boot%2Fu-boot.bin%20and%20u-boot-spl.bin%20from%20u-boot%2Fspl%2Fu-bootspl.bin%20to%20imx-mkimage%2FiMX8ULP%2F.%3C%2FP%3E%0A%3CP%3E2.%20Copy%20bl31.bin%20from%20Arm%20Trusted%20firmware%20(imx-atf)%20to%20imx-mkimage%2FiMX8ULP%2F.%3C%2FP%3E%0A%3CP%3E3.%20Copy%20the%20image%20of%20Sentinel%20firmware%20container%20mx8ulpa0-ahab-container.img%20to%20imx-mkimage%2FiMX8ULP%2F.%3C%2FP%3E%0A%3CP%3E4.%20Copy%20the%20image%20of%20uPower%20firmware%20image%20upower.bin%20to%20imx-mkimage%2FiMX8ULP%2F.%3C%2FP%3E%0A%3CP%3E5.%20Copy%20the%20Cortex-M33%20image%20m33_image.bin%20to%20imx-mkimage%2FiMX8ULP%2F.%3C%2FP%3E%0A%3CP%3E6.%20If%20using%20OP-TEE%2C%20copy%20tee.bin%20to%20imx-mkimage%2FiMX8ULP%2F.%20The%20bl31.bin%20copied%20in%20Step%202%20must%20be%20built%20with%20OP-TEE%20SPD%20enabled.%3C%2FP%3E%0A%3CP%3E7.%20Run%20make%20SOC%3DiMX8ULP%20flash_singleboot_m33%20to%20generate%20flash.bin.%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EYou%20can%20find%20that%20information%20in%20chapter%26nbsp%3B4.5.12%20How%20to%20build%20U-Boot%20and%20Kernel%20in%20standalone%20environment%20and%26nbsp%3B4.5.13%20How%20to%20build%20imx-boot%20image%20by%20using%20imx-mkimage%20of%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fwww.nxp.com%2Fdocs%2Fen%2Fuser-guide%2FUG10163.pdf%22%20target%3D%22_self%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ei.MX%20Linux%20User's%20Guide%3C%2FA%3E.%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EAlso%2C%20it%20is%20recommended%20to%20use%20the%20Standalone%20environment%20just%20when%20you%20will%20make%20modifications%20to%20kernel%2C%20drivers%2C%20etc.%3C%2FP%3E%0A%3CP%3ETo%20generate%20the%20full%20image%2C%20I%20recommend%20t%20use%20%3CA%20href%3D%22https%3A%2F%2Fwww.nxp.com%2Fdocs%2Fen%2Fuser-guide%2FUG10164.pdf%22%20target%3D%22_self%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3EYocto%3C%2FA%3E%20environment%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EBest%20regards%2C%3C%2FP%3E%0A%3CP%3ESalas.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2255991%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20IMX8ulp%20standalone%20image%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2255991%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello.%3C%2FP%3E%0A%3CP%3EHere%20you%20have%20links%20to%20the%20%22dependencies%22%3A%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fnxp-imx%2Fuboot-imx%22%20target%3D%22_self%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3EU-boot%3C%2FA%3E.%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fnxp-imx%2Fimx-mkimage%22%20target%3D%22_self%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Emkimage%3C%2FA%3E.%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fnxp-imx%2Fimx-atf%22%20target%3D%22_self%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3EATF%3C%2FA%3E.%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EYou%20can%20find%20all%20dependencies%20in%20the%20%3CA%20href%3D%22https%3A%2F%2Fwww.nxp.com%2Fdocs%2Fen%2Frelease-note%2FRN00210.pdf%22%20target%3D%22_self%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3ERelease%20notes%3C%2FA%3E%2C%20Table%205.%3C%2FP%3E%0A%3CP%3EFor%20create%20the%20RFS%2C%20it%20is%20highly%20recommended%20to%20use%20a%20Yocto%20environment.%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EBest%20regards%2C%3C%2FP%3E%0A%3CP%3ESalas.%3C%2FP%3E%3C%2FLINGO-BODY%3E