firmware installation scripts: correct usage of u-boot variables
Some variables in the script belong to u-boot, not to the shell running the script. Escape those variables so the shell does not expand them. Signed-off-by: Francisco Gil <francisco.gilmartinez@digi.com>
This commit is contained in:
parent
8633a4ed49
commit
0a5274e06f
|
|
@ -64,10 +64,10 @@ 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_FILE}" ]; then
|
if [ -n "${DEK_BLOB_FILE}" ]; 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 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 ram \${fastboot_buffer} \${fastboot_bytes}
|
uuu fb: ucmd trustfence update ram \${fastboot_buffer} \${fastboot_bytes}
|
||||||
|
|
|
||||||
|
|
@ -64,10 +64,10 @@ 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_FILE}" ]; then
|
if [ -n "${DEK_BLOB_FILE}" ]; 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 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 ram \${fastboot_buffer} \${fastboot_bytes}
|
uuu fb: ucmd trustfence update ram \${fastboot_buffer} \${fastboot_bytes}
|
||||||
|
|
|
||||||
|
|
@ -76,10 +76,10 @@ part_update()
|
||||||
uuu fb: download -f "${2}"
|
uuu fb: download -f "${2}"
|
||||||
if [ "${TRUSTFENCE}" = "true" ] && [ "${1}" = "uboot" ]; then
|
if [ "${TRUSTFENCE}" = "true" ] && [ "${1}" = "uboot" ]; then
|
||||||
if [ -n "${DEK_BLOB_FILE}" ]; then
|
if [ -n "${DEK_BLOB_FILE}" ]; 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 "${4}"
|
uuu fb: download -f "${4}"
|
||||||
uuu fb: ucmd setenv dek_size $filesize
|
uuu fb: ucmd setenv dek_size \${filesize}
|
||||||
uuu "fb[-t ${3}]:" ucmd trustfence update ram \${loadaddr} \${uboot_size} \${initrd_addr} \${dek_size}
|
uuu "fb[-t ${3}]:" ucmd trustfence update ram \${loadaddr} \${uboot_size} \${initrd_addr} \${dek_size}
|
||||||
else
|
else
|
||||||
uuu "fb[-t ${3}]:" ucmd trustfence update ram \${fastboot_buffer} \${fastboot_bytes}
|
uuu "fb[-t ${3}]:" ucmd trustfence update ram \${fastboot_buffer} \${fastboot_bytes}
|
||||||
|
|
|
||||||
|
|
@ -64,10 +64,10 @@ 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 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 ram \${fastboot_buffer} \${fastboot_bytes}
|
uuu fb: ucmd trustfence update ram \${fastboot_buffer} \${fastboot_bytes}
|
||||||
|
|
|
||||||
|
|
@ -64,10 +64,10 @@ 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 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 ram \${fastboot_buffer} \${fastboot_bytes}
|
uuu fb: ucmd trustfence update ram \${fastboot_buffer} \${fastboot_bytes}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue