configure u-boot/imx-boot for flashing to emmc using uuu

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

configure u-boot/imx-boot for flashing to emmc using uuu

2,650 Views
richc128
Contributor III

I have a Boundary Devices i.mx8m mini board. I'm trying to flash the bootloader to emmc. I recognize I should be able to use the following command. I'm not entirely sure what image "bootloader" is supposed to be but I get a file imx-boot-nitrogen8mm-sd.bin-flash_evk in my deploy folder that is 1030716 bytes so I think that's about the right size

uuu -b emmc bootloader

This doesn't work as it just seems to load u-boot then runs the kernel so uuu just hangs.

My question is what do I need to change in the u-boot image so that after the jump it enters fastboot mode rather than just continuing on with the kernel? Below are also the raw commands I've tried, which I think are the same as what the above command essentially does

uuu_version 1.0.1

SDPS: boot -f imx-boot
SDPV: delay 1000
SDPV: write -f imx-boot -offset 0x57c00
SDPV: jump
SDP: boot -f imx-boot

FB: ucmd setenv fastboot_dev mmc
FB: ucmd setenv mmcdev ${emmc_dev}
FB: ucmd mmc dev ${emmc_dev}
FB: flash bootloader imx-boot
FB: ucmd mmc partconf ${emmc_dev} 0 1 0
FB: done
~

0 Kudos
2 Replies

2,566 Views
igorpadykov
NXP Employee
NXP Employee

Hi richardcagley

boundary devices have emmc programming tutorial:

https://boundarydevices.com/yocto-zeus-release-for-i-mx8-platforms/ 

https://boundarydevices.com/programming-emmc-on-i-mx-platforms/ 

https://boundarydevices.com/recovering-i-mx-platforms-using-uuu/ 

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

2,566 Views
richc128
Contributor III

Thank you for the links igor. The methods presented in these links seem to me to be to use uuu to boot into uboot and then to use that to flash emmc. What I'm after is more of a non-interactive method we can use for production. I'd like to to put the board into serial downloader mode and then use uuu to flash emmc directly. 

From what I can tell BD uses mainline u-boot and most other board (Karo, technexion, yours) use uboot-imx. Maybe uboot-imx is needed to use uuu directly to flash emmc? If so I can ask BD if they have any support for uboot-imx. But, if I can use mainline somehow that would be ideal.

0 Kudos