Commit 83bebc27 authored by Hugo Grostabussiat's avatar Hugo Grostabussiat

Set eMMC boot config after flashing image

When flashing a single-file build, configure the eMMC to boot from the
user area, which is where the image was just written.

The eMMC boot configuration could have been changed (e.g. after flashing
a multi-files image), so if it is left untouched after flashing a
single-file image, the system could boot from a hwpart containing a
different U-boot than the one which was just flashed. This commit
prevents that by setting the eMMC to boot from the user area after
flashing a single-file image there.
parent 2b9217a6
Pipeline #15580 passed with stages
in 3 minutes and 36 seconds
......@@ -50,6 +50,8 @@ SDPU: delay 1000
FB: ucmd setenv fastboot_dev mmc
FB: ucmd setenv mmcdev 0
FB: flash -raw2sparse all {image}
# Make the eMMC to boot from the user area
FB: ucmd mmc partconf 0 0 7 0
FB: Done
'''
UUU_SCRIPT_TMPL_MULTI = '''uuu_version 1.0.1
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment