Commit 8bdf9d43 authored by Angus Ainslie's avatar Angus Ainslie
Browse files

uuu_scripts: Add scripts to flash and set the boot partitions



The boot partitions are small ( 4MB ) partions that can hold a boot
loader. The eMMC can be setup to boot from the user partition or either
one of the boot partitons. The flash_* scripts will flash u-boot into
the boot partitions and the set_* scripts will select the boot
partition.
Signed-off-by: default avatarAngus Ainslie <angus@akkea.ca>
parent 0d79ae21
uuu_version 1.0.1
# Flash a new uboot and m4.bin located in ../files to the first boot partition
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 mmc dev 0 1
FB: ucmd setenv fastboot_buffer 0x43000000
FB: download -f ../files/u-boot-devkit.imx
FB: ucmd mmc write 0x43000000 0x42 0x800
FB: download -f ../files/m4.bin
FB: ucmd mmc write 0x43000000 0x4 0x10
FB: ucmd mmc partconf 0 0 1 0
FB: Done
uuu_version 1.0.1
# Flash a new uboot and m4.bin located in ../files to the second boot partition
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 mmc dev 0 2
FB: ucmd setenv fastboot_buffer 0x43000000
FB: download -f ../files/u-boot-devkit.imx
FB: ucmd mmc write 0x43000000 0x42 0x800
FB: download -f ../files/m4.bin
FB: ucmd mmc write 0x43000000 0x4 0x10
FB: ucmd mmc partconf 0 0 2 0
FB: Done
......@@ -10,7 +10,7 @@ SDPU: jump
# This command will be run when ROM support stream mode
SDPS: boot -f ../files/u-boot-devkit-recovery.imx
SDPU: delay 1000
#FB: ucmd setenv fastboot_buffer 0x43000000
FB: ucmd mmc dev 0
FB: ucmd setenv fastboot_dev mmc
FB: ucmd setenv mmcdev 0
FB: flash -raw2sparse all ../files/devkit.img
......
uuu_version 1.0.1
# Flash a new uboot and m4.bin located in ../files
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 mmc partconf 0 0 1 0
FB: Done
uuu_version 1.0.1
# Flash a new uboot and m4.bin located in ../files
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 mmc partconf 0 0 2 0
FB: Done
uuu_version 1.0.1
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 mmc partconf 0 0 7 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