flexbuild for imx8mpevk: Modifying u-boot and kernel sources

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

flexbuild for imx8mpevk: Modifying u-boot and kernel sources

755 Views
wonkan123
Contributor I

Hello,

I'm struggling to understand the correct workflow for modifying u-boot/kernel using your flexbuild project.


Bord: based on imx8mpevk

flexbuild version: LSDK-25.06_Debian-12_LF-6.6.52

I can build a bootable image by running $bld -m imx8mpevk and the creating the .wic file using flex-installer that is located in the build/images/ directory.

But when I modify u-boot my changes are not included and i can see on the timestamps that it is not re-built properly.

I followed the instructions on:
https://docs.nxp.com/bundle/UG10155/page/topics/how_to_modify_and_recompile_source_code.html

cd components_lsd2506/bsp/uboot
make imx8mp_evk_defconfig
make menuconfig <-- add some change 
make savedefconfig
cp defconfig configs/imx8mp_evk_defconfig
cd -
bld atf -m imx8mpevk -b sd
bld uboot -m imx8mpevk
bld boot -m imx8mpevk

everything compiles without any issues but the u-boot shipped will be the one that i built initially, not the modified version.

 

I also tried running bld clean-bsp before attempting to rebuild uboot but that did not seem to help.

Thankful for any tips/insights!

Best Regards,
Willie

 

 

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

709 Views
yipingwang
NXP TechSupport
NXP TechSupport

Please refer to the following procedure to rebuild u-boot.

cd components_lsd2506/bsp/uboot
make imx8mp_evk_defconfig
make menuconfig <-- add some change 
make savedefconfig
cp defconfig configs/imx8mp_evk_defconfig

make distclean
cd –

bld uboot -m imx8mpevk
bld atf -m imx8mpevk -b sd
bld  bsp -m mx8mpevk

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2324318%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3Eflexbuild%20for%20imx8mpevk%3A%20Modifying%20u-boot%20and%20kernel%20sources%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2324318%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%2C%3C%2FP%3E%3CP%3EI'm%20struggling%20to%20understand%20the%20correct%20workflow%20for%20modifying%20u-boot%2Fkernel%20using%20your%20flexbuild%20project.%3C%2FP%3E%3CP%3E%3CBR%20%2F%3EBord%3A%20based%20on%20imx8mpevk%3C%2FP%3E%3CP%3Eflexbuild%20version%3A%20LSDK-25.06_Debian-12_LF-6.6.52%3C%2FP%3E%3CP%3EI%20can%20build%20a%20bootable%20image%20by%20running%20%24bld%20-m%20imx8mpevk%20and%20the%20creating%20the%20.wic%20file%20using%20flex-installer%20that%20is%20located%20in%20the%20build%2Fimages%2F%20directory.%3CBR%20%2F%3E%3CBR%20%2F%3EBut%20when%20I%20modify%20u-boot%20my%20changes%20are%20not%20included%20and%20i%20can%20see%20on%20the%20timestamps%20that%20it%20is%20not%20re-built%20properly.%3CBR%20%2F%3E%3CBR%20%2F%3EI%20followed%20the%20instructions%20on%3A%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.nxp.com%2Fbundle%2FUG10155%2Fpage%2Ftopics%2Fhow_to_modify_and_recompile_source_code.html%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.nxp.com%2Fbundle%2FUG10155%2Fpage%2Ftopics%2Fhow_to_modify_and_recompile_source_code.html%3C%2FA%3E%3CBR%20%2F%3E%3CBR%20%2F%3Ecd%20components_lsd2506%2Fbsp%2Fuboot%3CBR%20%2F%3Emake%20imx8mp_evk_defconfig%3CBR%20%2F%3Emake%20menuconfig%20%26lt%3B--%20add%20some%20change%26nbsp%3B%3CBR%20%2F%3Emake%20savedefconfig%3CBR%20%2F%3Ecp%20defconfig%20configs%2Fimx8mp_evk_defconfig%3CBR%20%2F%3Ecd%20-%3CBR%20%2F%3Ebld%20atf%20-m%20imx8mpevk%20-b%20sd%3CBR%20%2F%3Ebld%20uboot%20-m%20imx8mpevk%3CBR%20%2F%3Ebld%20boot%20-m%20imx8mpevk%3CBR%20%2F%3E%3CBR%20%2F%3Eeverything%20compiles%20without%20any%20issues%20but%20the%20u-boot%20shipped%20will%20be%20the%20one%20that%20i%20built%20initially%2C%20not%20the%20modified%20version.%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EI%20also%20tried%20running%20bld%20clean-bsp%20before%20attempting%20to%20rebuild%20uboot%20but%20that%20did%20not%20seem%20to%20help.%3CBR%20%2F%3E%3CBR%20%2F%3EThankful%20for%20any%20tips%2Finsights!%3C%2FP%3E%3CP%3EBest%20Regards%2C%3CBR%20%2F%3EWillie%3C%2FP%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2324318%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CLINGO-LABEL%3Ei.MX%208M%20%7C%20i.MX%208M%20Mini%20%7C%20i.MX%208M%20Nano%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2324600%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20flexbuild%20for%20imx8mpevk%3A%20Modifying%20u-boot%20and%20kernel%20sources%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2324600%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EPlease%20refer%20to%20the%20following%20procedure%20to%20rebuild%20u-boot.%3C%2FP%3E%0A%3CP%3Ecd%20components_lsd2506%2Fbsp%2Fuboot%3CBR%20%2F%3Emake%20imx8mp_evk_defconfig%3CBR%20%2F%3Emake%20menuconfig%20%26lt%3B--%20add%20some%20change%26nbsp%3B%3CBR%20%2F%3Emake%20savedefconfig%3CBR%20%2F%3Ecp%20defconfig%20configs%2Fimx8mp_evk_defconfig%3C%2FP%3E%0A%3CP%3Emake%20distclean%3CBR%20%2F%3Ecd%20%E2%80%93%3C%2FP%3E%0A%3CP%3Ebld%20uboot%20-m%20imx8mpevk%3CBR%20%2F%3Ebld%20atf%20-m%20imx8mpevk%20-b%20sd%3CBR%20%2F%3Ebld%20%26nbsp%3Bbsp%20-m%20mx8mpevk%3C%2FP%3E%3C%2FLINGO-BODY%3E