uuu: fix incorrect command for trustfence update from uuu

The command trustfence update doesn't require the partition argument.

Besides of that, remove extra fi on the cc8m platforms.

Signed-off-by: Francisco Gil <francisco.gilmartinez@digi.com>
This commit is contained in:
Francisco Gil 2024-06-03 09:06:07 +02:00
parent 584b263614
commit ecad5dba32
4 changed files with 13 additions and 14 deletions

View File

@ -68,9 +68,9 @@ part_update()
uuu fb: ucmd setenv fastboot_buffer $initrd_addr uuu fb: ucmd setenv fastboot_buffer $initrd_addr
uuu fb: download -f "${3}" uuu fb: download -f "${3}"
uuu fb: ucmd setenv dek_size $filesize uuu fb: ucmd setenv dek_size $filesize
uuu fb: ucmd trustfence update "${1}" ram \${loadaddr} \${uboot_size} \${initrd_addr} \${dek_size} uuu fb: ucmd trustfence update ram \${loadaddr} \${uboot_size} \${initrd_addr} \${dek_size}
else else
uuu fb: ucmd trustfence update "${1}" ram \${fastboot_buffer} \${fastboot_bytes} uuu fb: ucmd trustfence update ram \${fastboot_buffer} \${fastboot_bytes}
fi fi
else else
if [ "${1}" = "bootloader" ]; then if [ "${1}" = "bootloader" ]; then

View File

@ -68,9 +68,9 @@ part_update()
uuu fb: ucmd setenv fastboot_buffer $initrd_addr uuu fb: ucmd setenv fastboot_buffer $initrd_addr
uuu fb: download -f "${3}" uuu fb: download -f "${3}"
uuu fb: ucmd setenv dek_size $filesize uuu fb: ucmd setenv dek_size $filesize
uuu fb: ucmd trustfence update "${1}" ram \${loadaddr} \${uboot_size} \${initrd_addr} \${dek_size} uuu fb: ucmd trustfence update ram \${loadaddr} \${uboot_size} \${initrd_addr} \${dek_size}
else else
uuu fb: ucmd trustfence update "${1}" ram \${fastboot_buffer} \${fastboot_bytes} uuu fb: ucmd trustfence update ram \${fastboot_buffer} \${fastboot_bytes}
fi fi
else else
if [ "${1}" = "bootloader" ]; then if [ "${1}" = "bootloader" ]; then

View File

@ -64,14 +64,13 @@ part_update()
if [ "${TRUSTFENCE}" = "true" ] && [ "${1}" = "bootloader" ]; then if [ "${TRUSTFENCE}" = "true" ] && [ "${1}" = "bootloader" ]; then
uuu fb: download -f "${2}" uuu fb: download -f "${2}"
if [ -n "${DEK_BLOB_KEY}" ]; then if [ -n "${DEK_BLOB_KEY}" ]; then
uuu fb: ucmd setenv uboot_size $filesize uuu fb: ucmd setenv uboot_size $filesize
uuu fb: ucmd setenv fastboot_buffer $initrd_addr uuu fb: ucmd setenv fastboot_buffer $initrd_addr
uuu fb: download -f "${3}" uuu fb: download -f "${3}"
uuu fb: ucmd setenv dek_size $filesize uuu fb: ucmd setenv dek_size $filesize
uuu fb: ucmd trustfence update "${1}" ram \${loadaddr} \${uboot_size} \${initrd_addr} \${dek_size} uuu fb: ucmd trustfence update ram \${loadaddr} \${uboot_size} \${initrd_addr} \${dek_size}
else else
uuu fb: ucmd trustfence update "${1}" ram \${fastboot_buffer} \${fastboot_bytes} uuu fb: ucmd trustfence update ram \${fastboot_buffer} \${fastboot_bytes}
fi
fi fi
else else
if [ "${1}" = "bootloader" ]; then if [ "${1}" = "bootloader" ]; then

View File

@ -68,9 +68,9 @@ part_update()
uuu fb: ucmd setenv fastboot_buffer $initrd_addr uuu fb: ucmd setenv fastboot_buffer $initrd_addr
uuu fb: download -f "${3}" uuu fb: download -f "${3}"
uuu fb: ucmd setenv dek_size $filesize uuu fb: ucmd setenv dek_size $filesize
uuu fb: ucmd trustfence update "${1}" ram \${loadaddr} \${uboot_size} \${initrd_addr} \${dek_size} uuu fb: ucmd trustfence update ram \${loadaddr} \${uboot_size} \${initrd_addr} \${dek_size}
else else
uuu fb: ucmd trustfence update "${1}" ram \${fastboot_buffer} \${fastboot_bytes} uuu fb: ucmd trustfence update ram \${fastboot_buffer} \${fastboot_bytes}
fi fi
else else
if [ "${1}" = "bootloader" ]; then if [ "${1}" = "bootloader" ]; then