with ENV_IS_NOWHERE disable board cannot boot

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

with ENV_IS_NOWHERE disable board cannot boot

2,011 Views
marekb
Contributor III

Hi, I'm integrating mender to imx93 evk and I'm hitting an issue that when I disable in u-boot CONFIG_ENV_IS_NOWHERE board hangs in SPL when flashing over uuu:

 Trying to boot from BOOTROM

Boot Stage: USB boot

Find img info 0x88000000, size 288

Download 1208320, Total size 1209344

NOTICE: BL31: v2.8(release):automotive-13.0.0_2.1.0-0-g99195a23d

NOTICE: BL31: Built : 11:12:16, Mar 28 2024

 

Any ideas why is this happening? I've tried to debug it but didn't find anything. When flash same image to SD card it boot without an issue. Thanks.

Tags (1)
0 Kudos
Reply
8 Replies

1,656 Views
Wobaffet
Senior Contributor I

Any solution found for this issue? whenever I comment out this CONFIG_ENV_IS_NOWHERE=y, I can't flash our custom board. it just stuck like this "1:6-0F31300007298A0D>Start Cmd:SDPS: boot -scanterm -f tmp/deploy/images/imx8mp-lpddr4-evk/imx-boot-imx8mp-lpddr4-evk-sd.bin-flash_evk -scanlimited 0x800000
100%1:6-0F31300007298A0D>Okay (5.005s)"

This is the command that I use to flash:

wobaffet@wobaffet:~/imx-yocto-bsp/buildwayland$ sudo ../mfgtools/uuu/uuu -V -b emmc_all tmp/deploy/images/imx8mp-lpddr4-evk/imx-boot-imx8mp-lpddr4-evk-sd.bin-flash_evk tmp/deploy/images/imx8mp-lpddr4-evk/imx-image-core-imx8mp-lpddr4-evk-20241102114134.rootfs.wic.zst

Any comments?

Thanks!

Best Regards.

 

0 Kudos
Reply

1,982 Views
AldoG
NXP TechSupport
NXP TechSupport

Hello,

Could you share what are you trying to flash?
Is it Android or Linux?

Also, could you share the tool (UUU) command you have used and the ouput from the tool?

Best regards/Saludos,
Aldo.

0 Kudos
Reply

1,948 Views
marekb
Contributor III

I'm flasing wic image basically which is generated by yocto. uuu command looks like ```uuu -b emmc_all <image_name.sdimg.zstd>

0 Kudos
Reply

1,944 Views
AldoG
NXP TechSupport
NXP TechSupport

Hello,

Thank you for sharing, please share the output of the tool, try running using verbose mode:

uuu -V -b emmc_all <image_name.sdimg.zstd>

And share the output.

Best regards/Saludos,
Aldo.

0 Kudos
Reply

1,930 Views
marekb
Contributor III

Hello,

 

here is output with verbose mode:

sudo ./uuu -b emmc_all core-image-minimal-imx93-11x11-lpddr4x-evk-20241007183238.sdimg.zst 

uuu (Universal Update Utility) for nxp imx chips -- libuuu_1.5.141-0-gde317f5




Success 0    Failure 0                                                                                                                                                                                                                       

                                                                                                                                                                                                                                              

                                                                                                                                                                                                                                              1:3      1/ 1 [=================100%=================] SDPS: boot -scanterm -f core-image-minimal-imx93-11x11-lpddr4x-evk-20241007183238.sdimg.zst/* -scanlimited 0x800000                                                                    

marek@dnb:/data/projects/voipac/images/93-evk$ sudo ./uuu -V -b emmc_all core-image-minimal-imx93-11x11-lpddr4x-evk-20241007183238.sdimg.zst 

uuu (Universal Update Utility) for nxp imx chips -- libuuu_1.5.141-0-gde317f5




Build in config:

Pctl Chip Vid Pid BcdVersion

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

SDPS: MX8QXP 0x1fc9 0x012f [0x0002..0xffff]

SDPS: MX8QM 0x1fc9 0x0129 [0x0002..0xffff]

SDPS: MX8DXL 0x1fc9 0x0147

SDPS: MX28 0x15a2 0x004f

SDPS: MX815 0x1fc9 0x013e

SDPS: MX865 0x1fc9 0x0146

SDPS: MX8ULP 0x1fc9 0x014a

SDPS: MX8ULP 0x1fc9 0x014b

SDPS: MX93 0x1fc9 0x014e

SDPS: MX95 0x1fc9 0x015d

SDP: MX7D 0x15a2 0x0076

SDP: MX6Q 0x15a2 0x0054

SDP: MX6D 0x15a2 0x0061

SDP: MX6SL 0x15a2 0x0063

SDP: MX6SX 0x15a2 0x0071

SDP: MX6UL 0x15a2 0x007d

SDP: MX6ULL 0x15a2 0x0080

SDP: MX6SLL 0x1fc9 0x0128

SDP: MX7ULP 0x1fc9 0x0126

SDP: MXRT106X 0x1fc9 0x0135

SDP: MX8MM 0x1fc9 0x0134

SDP: MX8MQ 0x1fc9 0x012b

SDPU: SPL 0x0525 0xb4a4 [0x0000..0x04ff]

SDPV: SPL1 0x0525 0xb4a4 [0x0500..0x9998]

SDPV: SPL1 0x1fc9 0x0151 [0x0500..0x9998]

SDPU: SPL 0x0525 0xb4a4 [0x9999..0x9999]

SDPU: SPL 0x3016 0x1001 [0x0000..0x04ff]

SDPV: SPL1 0x3016 0x1001 [0x0500..0x9998]

FBK: 0x066f 0x9afe

FBK: 0x066f 0x9bff

FBK: 0x1fc9 0x0153

FB: 0x0525 0xa4a5

FB: 0x18d1 0x0d02

FB: 0x3016 0x0001

FB: 0x1fc9 0x0152

FB: 0x0483 0x0afb




Run built-in script:




uuu_version 1.4.149




# @_flash.bin            | bootloader, which can extract from wic image

# @_image   [_flash.bin] | wic image burn to emmc.







# This command will be run when i.MX6/7 i.MX8MM, i.MX8MQ

SDP: boot -f core-image-minimal-imx93-11x11-lpddr4x-evk-20241007183238.sdimg.zst/* -scanlimited 0x800000




# This command will be run when ROM support stream mode

# i.MX8QXP, i.MX8QM

SDPS: boot -scanterm -f core-image-minimal-imx93-11x11-lpddr4x-evk-20241007183238.sdimg.zst/* -scanlimited 0x800000




# These commands will be run when use SPL and will be skipped if no spl

# SDPU will be deprecated. please use SDPV instead of SDPU

# {

SDPU: delay 1000

SDPU: write -f core-image-minimal-imx93-11x11-lpddr4x-evk-20241007183238.sdimg.zst/* -offset 0x57c00

SDPU: jump -scanlimited 0x800000

# }




# These commands will be run when use SPL and will be skipped if no spl

# if (SPL support SDPV)

# {

SDPV: delay 1000

SDPV: write -f core-image-minimal-imx93-11x11-lpddr4x-evk-20241007183238.sdimg.zst/* -skipspl -scanterm -scanlimited 0x800000

SDPV: jump -scanlimited 0x800000

# }







FB: ucmd setenv fastboot_dev mmc

FB: ucmd setenv mmcdev ${emmc_dev}

FB: ucmd mmc dev ${emmc_dev}

FB: flash -raw2sparse all core-image-minimal-imx93-11x11-lpddr4x-evk-20241007183238.sdimg.zst/*

FB: flash -scanterm -scanlimited 0x800000 bootloader core-image-minimal-imx93-11x11-lpddr4x-evk-20241007183238.sdimg.zst/*

FB: ucmd if env exists emmc_ack; then ; else setenv emmc_ack 0; fi;

FB: ucmd mmc partconf ${emmc_dev} ${emmc_ack} 1 0

FB: done







Wait for Known USB Device Appear...

New USB Device Attached at 1:3

1:3>Start Cmd:SDPS: boot -scanterm -f core-image-minimal-imx93-11x11-lpddr4x-evk-20241007183238.sdimg.zst/* -scanlimited 0x800000

Decompress file:>core-image-minimal-imx93-11x11-lpddr4x-evk-20241007183238.sdimg.zst

100%1:3>Okay (3.015s)

 

0 Kudos
Reply

1,904 Views
AldoG
NXP TechSupport
NXP TechSupport

Hello,

Could you try decompressing the file and using the boot image and rootfs when attempting to flash?

SInce as per the log I cannot see clearly which boot image it is using, as I believe since no error is shown that only SPL is being loaded.

Best regards/Saludos,
Aldo.

0 Kudos
Reply

1,864 Views
marekb
Contributor III

Hi,

 

Can you be please more specific? IIRC sdimg contains boot image which is imx-boot and then rootfs. Is there a way how to flash them individually? Thanks.

0 Kudos
Reply

1,842 Views
AldoG
NXP TechSupport
NXP TechSupport

Hello,

indeed sdimg, should include the boot image packed, what i meant is that you're using the whole package (.zstd) for flashing, the tool is able to handle this, but for debug purpose please try to unpackage the sdimg and the boot image.

After this you may run the tool as usual:
uuu -V -b emmc_all <boot image> <rootfs>.sdimg

Also, please note that UUU needs to load uboot first, then it will flash rootfs and boot image.

Best regards/Saludos,
Aldo.

0 Kudos
Reply