fixed partition switch
This commit is contained in:
parent
35af2c0517
commit
3566ec49fd
@ -30,8 +30,14 @@ if itest *0x103FC -ne *0x10400; then
|
|||||||
mw.b ${addr_boot_partition} ${boot_partition_a}
|
mw.b ${addr_boot_partition} ${boot_partition_a}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
setexpr.b boot_counter *${addr_boot_counter}
|
||||||
|
setexpr.b boot_partition *${addr_boot_partition}
|
||||||
|
echo "> boot counter: ${boot_counter}"
|
||||||
|
echo "> boot partition: ${boot_partition}"
|
||||||
|
|
||||||
# ensure boot partition is valid
|
# ensure boot partition is valid
|
||||||
if itest.b *${addr_boot_partition} -ne ${boot_partition_a} && test.b *${addr_boot_partition} -ne ${boot_partition_b}; then
|
if itest.b *${addr_boot_partition} -ne ${boot_partition_a} && itest.b *${addr_boot_partition} -ne ${boot_partition_b}; then
|
||||||
|
echo "switched to valid partition -> A"
|
||||||
mw.b ${addr_boot_partition} ${boot_partition_a}
|
mw.b ${addr_boot_partition} ${boot_partition_a}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user