Commit 78d4d840 authored by Hugo Grostabussiat's avatar Hugo Grostabussiat
Browse files

Add script to flash boot image to boot1 hwpart

Add the script `flash_bootimg_boot1_librem5-devkit.lst`, which flashes
the full boot image generated by u-boot-builder into the boot1 HW
partition of the eMMC.
parent 1f47cff0
Pipeline #9699 passed with stages
in 3 minutes and 34 seconds
uuu_version 1.0.1
#
# This script flashes the boot image generated by u-boot-builder scripts into
# the boot1 HW partition of the eMMC, which is seen as a separate block device
# by the system.
#
# The full boot image gets generated by the u-boot-builder scripts and includes
# the m4 binary and the imx u-boot. It can be flashed at the original m4
# offset.
#
SDP: boot -f ../files/u-boot-devkit-recovery.imx
# This command will be run when use SPL
SDPU: delay 1000
SDPU: write -f ../files/u-boot-devkit-recovery.imx -offset 0x57c00
SDPU: jump
SDPS: boot -f ../files/u-boot-devkit-recovery.imx
FB: ucmd setenv fastboot_buffer 0x43000000
FB: download -f ../files/devkit-boot.img
# Select the MMC boot1 hwpart and write the boot image there
FB: ucmd mmc dev 0 1
FB: ucmd mmc write 0x43000000 0x4 0x83e
# Configure the eMMC to boot from boot1 where we just wrote the boot image
# Note: this has the side-effect of selecting the user area hwpart for the next
# block I/O accesses.
FB: ucmd mmc partconf 0 0 1 0
FB: Done
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