the grammar on uuu

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

the grammar on uuu

Jump to solution
3,396 Views
mm2021
Contributor III

 

Could anybody give some documents about the grammar on uuu?

I know there is a document uuu.pdf, but still cannor find detailed explanation about details.

For example, in uuu.auto:

uuu_version 1.2.39

# What will the "boot" do?
SDP: boot -f imx-boot-imx8mmevk-sd.bin-flash_evk

SDPV: delay 1000

# what is the option "-skipspl" for?

SDPV: write -f imx-boot-imx8mmevk-sd.bin-flash_evk -skipspl
SDPV: jump

FB: ucmd setenv fastboot_dev mmc

#how to print the value of emmc_dev in uuu?

FB: ucmd setenv mmcdev ${emmc_dev}

Thanks!

0 Kudos
Reply
1 Solution
3,319 Views
mm2021
Contributor III

Thanks for the instant reply!

But seems that the flash to sd card script need these two files:
_rootfs.sdcard
_flash.bin

How to use the the two files (in my uuu auto script) to flash into sd card, instead of eMMC?
imx-boot-imx8mmevk-sd.bin-flash_evk
imx-image-multimedia-imx8mmevk.wic

I change like this?

uuu_version 1.2.39

# This command will be run when i.MX6/7 i.MX8MM, i.MX8MQ
SDP: boot -f imx-boot-imx8mmevk-sd.bin-flash_evk

SDPV: delay 1000
SDPV: write -f imx-boot-imx8mmevk-sd.bin-flash_evk -skipspl
SDPV: jump

FB: ucmd setenv fastboot_dev mmc
FB: ucmd setenv mmcdev ${sd_dev}
FB: ucmd mmc dev ${sd_dev}
FB: flash -raw2sparse all imx-image-multimedia-imx8mmevk.wic
FB: flash bootloader imx-boot-imx8mmevk-sd.bin-flash_evk

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

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

FB: done

 

Thanks!

View solution in original post

0 Kudos
Reply
10 Replies
3,336 Views
mm2021
Contributor III

@Zhiming_Liu Thank you very much for your reply, which helps a lot.

Here I still have some questions.

1. "boot -f imx-boot-imx8mmevk-sd.bin-flash_evk " is to load file imx-boot-imx8mmevk-sd.bin-flash_evk to RAM? And

"write -f imx-boot-imx8mmevk-sd.bin-flash_evk -skipspl" is to burn file imx-boot-imx8mmevk-sd.bin-flash_evk into mmc or sd card?

(How to choose mmc or sd card?)

2.

I try to use the following, but I still failed to get the value of emmc_dev:

FB: ucmd printenv emmc_dev
FB: ucmd printenv ${emmc_dev}

Thanks!

0 Kudos
Reply
3,333 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hi

 

Q1:

write -f imx-boot-imx8mmevk-sd.bin-flash_evk -skipspl" is to burn file imx-boot-imx8mmevk-sd.bin-flash_evk into mmc or sd card?

(How to choose mmc or sd card?)

---->Can not choose device in this time.

Real flash happens in :FB: flash bootloader imx-boot-imx8mpevk-sd.bin-flash_evk

Q2:just use FB: ucmd printenv ,don't add other.

FB: ucmd printenv emmc_dev
FB: ucmd printenv ${emmc_dev}

3,325 Views
mm2021
Contributor III

Maybe I should not keep at the printenv cmd. I just want to modify to flash uboot & kernel into sd card instead of eMMC. The following auto file is for eMMC, how to change to sd card?

uuu_version 1.2.39

# This command will be run when i.MX6/7 i.MX8MM, i.MX8MQ
SDP: boot -f imx-boot-imx8mmevk-sd.bin-flash_evk

SDPV: delay 1000
SDPV: write -f imx-boot-imx8mmevk-sd.bin-flash_evk -skipspl
SDPV: jump

FB: ucmd setenv fastboot_dev mmc
FB: ucmd setenv mmcdev ${emmc_dev}
FB: ucmd mmc dev ${emmc_dev}
FB: flash -raw2sparse all imx-image-multimedia-imx8mmevk.wic
FB: flash bootloader imx-boot-imx8mmevk-sd.bin-flash_evk

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

 

0 Kudos
Reply
3,322 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

FB: ucmd setenv fastboot_dev mmc
FB: ucmd setenv mmcdev ${sd_dev}
FB: ucmd mmc dev ${sd_dev}
FB: flash -raw2sparse all _rootfs.sdcard
FB: flash bootloader _flash.bin
FB: done

0 Kudos
Reply
3,320 Views
mm2021
Contributor III

Thanks for the instant reply!

But seems that the flash to sd card script need these two files:
_rootfs.sdcard
_flash.bin

How to use the the two files (in my uuu auto script) to flash into sd card, instead of eMMC?
imx-boot-imx8mmevk-sd.bin-flash_evk
imx-image-multimedia-imx8mmevk.wic

I change like this?

uuu_version 1.2.39

# This command will be run when i.MX6/7 i.MX8MM, i.MX8MQ
SDP: boot -f imx-boot-imx8mmevk-sd.bin-flash_evk

SDPV: delay 1000
SDPV: write -f imx-boot-imx8mmevk-sd.bin-flash_evk -skipspl
SDPV: jump

FB: ucmd setenv fastboot_dev mmc
FB: ucmd setenv mmcdev ${sd_dev}
FB: ucmd mmc dev ${sd_dev}
FB: flash -raw2sparse all imx-image-multimedia-imx8mmevk.wic
FB: flash bootloader imx-boot-imx8mmevk-sd.bin-flash_evk

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

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

FB: done

 

Thanks!

0 Kudos
Reply
3,311 Views
mm2021
Contributor III

Using sd_dev, will flash into sd card;

Using mmc_dev, will flash into eMMC.

Hope it is useful for others.

0 Kudos
Reply
3,307 Views
mm2021
Contributor III

sorry. mmc_dev should be emmc_dev

0 Kudos
Reply
3,314 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hi

 

Yes,just replace the bootloader and image

0 Kudos
Reply
3,330 Views
mm2021
Contributor III

Seems I still cannot get the value from printenv(but return ok, but no value printed). Please check the auto file here:

uuu_version 1.2.39

# This command will be run when i.MX6/7 i.MX8MM, i.MX8MQ
SDP: boot -f imx-boot-imx8mmevk-sd.bin-flash_evk

SDPV: delay 1000
SDPV: write -f imx-boot-imx8mmevk-sd.bin-flash_evk -skipspl
SDPV: jump

FB: ucmd setenv fastboot_dev mmc
FB: ucmd setenv mmcdev ${emmc_dev}

#FB: ucmd printenv emmc_dev
#FB: ucmd printenv ${emmc_dev}
FB: ucmd printenv

FB: ucmd mmc dev ${emmc_dev}
#FB: flash -raw2sparse all imx-image-multimedia-imx8mmevk.wic
#FB: flash bootloader imx-boot-imx8mmevk-sd.bin-flash_evk

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

 

And this is the log I get when I execute "uuu uuu.auto":

uuu (Universal Update Utility) for nxp imx chips -- libuuu_1.4.127-0-g08c58c9

Your console don't support VT mode, fail back to verbose mode
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
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]
SDPU: SPL 0x0525 0xb4a4 [0x9999..0x9999]
SDPU: SPL 0x3016 0x1001 [0x0000..0x04ff]
SDPV: SPL1 0x3016 0x1001 [0x0500..0x9998]
FBK: 0x066f 0x9afe
FBK: 0x066f 0x9bff
FB: 0x0525 0xa4a5
FB: 0x18d1 0x0d02
FB: 0x3016 0x0001
Wait for Known USB Device Appear...
New USB Device Attached at 1:62
1:62>Start Cmd:FB: ucmd setenv fastboot_dev mmc
1:62>Okay (0.004s)
1:62>Start Cmd:FB: ucmd setenv mmcdev ${emmc_dev}
1:62>Okay (0.004s)
1:62>Start Cmd:FB: ucmd printenv
1:62>Okay (0.216s)
1:62>Start Cmd:FB: ucmd mmc dev ${emmc_dev}
1:62>Okay (0.304s)
1:62>Start Cmd:FB: ucmd if env exists emmc_ack; then ; else setenv emmc_ack 0; fi;
1:62>Okay (0.004s)
1:62>Start Cmd:FB: ucmd mmc partconf ${emmc_dev} ${emmc_ack} 1 0
1:62>Okay (0.007s)
1:62>Start Cmd:FB: done
1:62>Okay (0s)
[?25h

Thanks!

0 Kudos
Reply
3,369 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hi

 

# What will the "boot" do?
SDP: boot -f imx-boot-imx8mmevk-sd.bin-flash_evk

----> Boot a uboot image firstly, then we can download uboot/kernel image.Otherwise, we can not update uboot/kernel image.

# what is the option "-skipspl" for?

SDPV: write -f imx-boot-imx8mmevk-sd.bin-flash_evk -skipspl
----->Don't use uboot spl function

FB: ucmd setenv fastboot_dev mmc

#how to print the value of emmc_dev in uuu?

FB: ucmd setenv mmcdev ${emmc_dev}

---->FB:ucmd printenv