[imx8qmmek ][uuu] Download .flash_linux_m4 boot loader fail.

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

[imx8qmmek ][uuu] Download .flash_linux_m4 boot loader fail.

Jump to solution
2,167 Views
WolsYang
Contributor IV

Seems like I should not use this ./build_flash_debug.sh output to  pack into flash.bin.

Instead use   “build_debug.sh” and “build_release.sh” . 

====================================

I try to burn flash_linux_m4 to my  imx8qmmek  imx8qxpmek, but uuu getting stock.

Here is my step

 

 

$ bitbake imx-image-full

$ sudo ~/mfgtools/uuu/uuu -b emmc_all imx-boot-imx8qmmek-sd.bin-flash_linux_m4 imx-image-full-imx8qmmek-20220113022912.rootfs.wic.bz2

 

 

then uuu will getting stock at

 

 

uuu (Universal Update Utility) for nxp imx chips -- lib1.4.182-5-g5397913

Success 0 Failure 0


3:4 1/ 1 [=================100%=================] SDPS: boot -scanterm -f imx-boot-imx8qmmek-sd.bin-flash_linux_m4

 

 

But if I download flash_spl, all good but no m4 firmeware : (

sudo ~/mfgtools/uuu/uuu -b emmc_all imx-boot-imx8qmmek-sd.bin-flash_linux_m4 imx-image-full-imx8qmmek-20220113022912.rootfs.wic.bz2

 

 

$ sudo ~/mfgtools/uuu/uuu -b emmc_all imx-boot-imx8qmmek-sd.bin-flash_spl imx-image-full-imx8qmmek-20220113022912.rootfs.wic.bz2

 

 

Is there any thing wrong with my flash_linux_m4 file?

1 Solution
2,113 Views
josephzhou1
Contributor V

that s good after you modified yours commands

 

2 your board is imx8qmmek

your title talking abt imx8qxpmek but in command and demo i saw it is imx8qmmek, please be adv that imx8qmmek  and imx8qxpmek r difference board,  even imx8qxpmek also have some si b0 , si c0 a b a1 b1 a2 b2 and more yah. please clear  esp when u try to do advance config and porting jobs , even theirs port, eth, mem address etc many differences  .

 

please make it clear 1st: which board are you currently using it?

 

 

 

3

i help u compare your bin  and official imx8qmmek linux.m4 ,  see pic, a lots of difference by Beyond Compare App although in bin mode codes.

so confirmed you doing wrong img bin some where 

pls   strictly fellow nxp guides , quick easy and straight forwards not so difficulty u will done it if u fellow up theirs guides strictly.

 

4

if you used  bitbake i  think there already is a -flash-linux- m4 there

if 

u want customize yours self m4, please go to references user guides please

https://community.nxp.com/t5/i-MX-Processors-Knowledge-Base/i-MX8-Boot-process-and-creating-a-bootab...

 

it also have ZIP files inside.

 

5

solved.

thanks you 

Best Regards,
Joseph Zhou Jianhui / Senior Embedded Software Engineer, Singapore

View solution in original post

0 Kudos
Reply
8 Replies
2,114 Views
josephzhou1
Contributor V

that s good after you modified yours commands

 

2 your board is imx8qmmek

your title talking abt imx8qxpmek but in command and demo i saw it is imx8qmmek, please be adv that imx8qmmek  and imx8qxpmek r difference board,  even imx8qxpmek also have some si b0 , si c0 a b a1 b1 a2 b2 and more yah. please clear  esp when u try to do advance config and porting jobs , even theirs port, eth, mem address etc many differences  .

 

please make it clear 1st: which board are you currently using it?

 

 

 

3

i help u compare your bin  and official imx8qmmek linux.m4 ,  see pic, a lots of difference by Beyond Compare App although in bin mode codes.

so confirmed you doing wrong img bin some where 

pls   strictly fellow nxp guides , quick easy and straight forwards not so difficulty u will done it if u fellow up theirs guides strictly.

 

4

if you used  bitbake i  think there already is a -flash-linux- m4 there

if 

u want customize yours self m4, please go to references user guides please

https://community.nxp.com/t5/i-MX-Processors-Knowledge-Base/i-MX8-Boot-process-and-creating-a-bootab...

 

it also have ZIP files inside.

 

5

solved.

thanks you 

Best Regards,
Joseph Zhou Jianhui / Senior Embedded Software Engineer, Singapore
0 Kudos
Reply
2,158 Views
josephzhou1
Contributor V

i saw yours command seems the same :

 

 

 

$ bitbake imx-image-full

$ sudo ~/mfgtools/uuu/uuu -b emmc_all imx-boot-imx8qmmek-sd.bin-flash_linux_m4 imx-image-full-imx8qmmek-20220113022912.rootfs.wic.bz2

then uuu will getting stock at

uuu (Universal Update Utility) for nxp imx chips -- lib1.4.182-5-g5397913

Success 0 Failure 0


3:4 1/ 1 [=================100%=================] SDPS: boot -scanterm -f imx-boot-imx8qmmek-sd.bin-flash_linux_m4

 

But if I download flash_spl, all good but no m4 firmeware : (

$ sudo ~/mfgtools/uuu/uuu -b emmc_all imx-boot-imx8qmmek-sd.bin-flash_linux_m4 imx-image-full-imx8qmmek-20220113022912.rootfs.wic.bz2

Is there any thing wrong with my flash_linux_m4 file?

 

 

2.

try not use uuu.auto , go into that dir, and use this :

$ uuu -b emmc_all imx-boot-imx8qmmek-sd.bin-flash_linux_m4 imx-image-full-imx8qmmek-20220113022912.rootfs.wic

let me know after try, thank you

Best Regards,
Joseph Zhou Jianhui / Senior Embedded Software Engineer, Singapore
0 Kudos
Reply
2,147 Views
WolsYang
Contributor IV

i saw yours command seems the same :

Nah my bad, just input error in my post.

I am doing all the command in build/tmp/deploy/images/imx8qmmek.

Here is my record video, as you can see I try to clean build to fix this,

But another show on bitbake, that why I only try burn bootloader in this  video.

First I burn .flash_spl, then all good and debud console show up.

Second I burn .flash_linux_m4 and that show on what I mean stock : ' (

 

0 Kudos
Reply
2,139 Views
joanxie
NXP TechSupport
NXP TechSupport
0 Kudos
Reply
2,135 Views
WolsYang
Contributor IV

I am following up i.MX Yocto Project User's Guide, Rev. LF5.10.72_2.2.0, 17 December 2021.

So I think BSP version is LF5.10.72_2.2.0, 17

Well,  demo images works fine.

 

sudo ~/mfgtools/uuu/uuu  -b emmc_all ~/Downloads/imx8/imx-boot-imx8qmmek-sd.bin-flash_linux_m4 ~/Downloads/imx8/imx-image-full-imx8qmmek.wic

 

 

I can't understand what wrong with my custom flash_linux_m4 file.

Is there any way I can compare my flash_linux_m4 and demo flash_linux_m4 file?

I had upload my linux_flah_m4 to here.It made by imx-mkimage manually which all the file needed is copy from Yocto.

Tags (1)
0 Kudos
Reply
2,129 Views
joanxie
NXP TechSupport
NXP TechSupport

how did you build the M4 images? what's steps? just bitbake or use imx-mkimage? if you use imx-mkimage, pls send the command to me, let me double check it

0 Kudos
Reply
2,116 Views
WolsYang
Contributor IV

I had try both bitbake and imx-mkimage

For make M4 image , first in MCUexpressoSDK

 

$ cd ~/imx8qmmek-m4/boards/mekmimx8qm/multicore_examples/rpmsg_lite_str_echo_rtos/cm4_core1/armgcc

./build_flash_debug.sh

$ cd ~/imx8qmmek-m4/boards/mekmimx8qm/multicore_examples/rpmsg_lite_str_echo_rtos/cm4_core0/armgcc

./build_flash_debug.sh

 

In bitbake :

         imx-boot_%.bbappend : Replace demo m4 image 

 

do_compile_prepend () { 
        bbwarn "replace origin m4 image" 
        cp ${BSPDIR}/sources/meta-sintrones/recipes-uboot/m4Img/imx-boot/rpmsg_lite_str_echo_rtos_m40.bin ${DEPLOY_DIR_IMAGE}/imx8qm_m4_TCM_power_mode_switch_m40.bin 
}​
bitbake imx-boot -c cleanall

bitbake imx-boot -f

 

In imx-mk-image :

copy all file in /imx-yocto-bsp/build/tmp/deploy/images/imx8qmmek/imx-boot-tools to /imx-mkimage/i.MX8QM/

 

cd ~/imx-mkimage

make SOC=iMX8QM flash_linux_m4

or

make SOC=iMX8QM flash_spl

 

0 Kudos
Reply
2,077 Views
WolsYang
Contributor IV
./build_flash_debug.sh   <<<

Well, I think here is the problem.

I am not sure but seems like I should not use this flash_m4_image to  pack into flash.bin.

Instead use   “build_debug.sh” and “build_release.sh”  to make my own m4_image, right?

0 Kudos
Reply