compulab-yokneam / meta-bsp-imx9

0 stars 1 forks source link

Unable to flash image built from imx-6.1.55-2.2.0.xml using uuu tool #5

Open hieuleinsentecs opened 3 weeks ago

hieuleinsentecs commented 3 weeks ago

Hello,

I am using Ubuntu 22.04 (Preferred for Mickledore) docker file Linux 21e10893a4a6 6.5.0-41-generic #41~22.04.2-Ubuntu SMP PREEMPT_DYNAMIC Mon Jun 3 11:32:55 UTC 2 x86_64 x86_64 x86_64 GNU/Linux from https://github.com/compulab-yokneam/yocker

Manifest is from https://github.com/compulab-yokneam/meta-bsp-imx9/tree/mickledore-6.1.55-2.0

When I tried to flash a newly-built image I got a following error (I was able to re-flash the imaged built from Kirkstone)

uuu -v -b emmc_all imx-image-full-ucm-imx93-20241101054713.rootfs.wic
uuu (Universal Update Utility) for nxp imx chips -- libuuu_1.5.21-0-g1f42172

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
    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 imx-image-full-ucm-imx93-20241101054713.rootfs.wic -scanlimited 0x800000

# This command will be run when ROM support stream mode
# i.MX8QXP, i.MX8QM
SDPS: boot -scanterm -f imx-image-full-ucm-imx93-20241101054713.rootfs.wic -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 imx-image-full-ucm-imx93-20241101054713.rootfs.wic -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 imx-image-full-ucm-imx93-20241101054713.rootfs.wic -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 imx-image-full-ucm-imx93-20241101054713.rootfs.wic
FB: flash -scanterm -scanlimited 0x800000 bootloader imx-image-full-ucm-imx93-20241101054713.rootfs.wic
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:101
1:101>Start Cmd:SDPS: boot -scanterm -f imx-image-full-ucm-imx93-20241101054713.rootfs.wic -scanlimited 0x800000
3%1:101>Fail HID(W):LIBUSB_ERROR_IO(0.036s)
vraevsky commented 3 weeks ago

Hello,

Please try flashing the imx-boot-taged file only using this command: sudo uuu -v -d -b emmc /path/to/imx-boot-taged

hieuleinsentecs commented 3 weeks ago

Thank for the quick response. I will try it tomorrow. Btw, in case if it works, which uuu command I should use to flash linux-kernel + new rootfs?

vraevsky commented 3 weeks ago

sudo uuu -v -b emmc_all /path/to/imx-boot-taged /path/to/imx-image-full-ucm-imx93-20241101054713.rootfs.wic