mitsy
2006-08-17 15:52:37 UTC
What is the best way to use a value in a memory location in a hush
shell scritpt that gets run with autoscript?
For example, say a CRC value for area 20000000 -- 20001000 is stored
in a flash, at location 12345678. If I wanted to verify a crc against
this value, I'd like to pass the value at address 12345678 as a last
argument.
crc32 -v 20000000 1000 (data @ 12345678)
or is it better to just read the value from flash, store it in a local
variable and use it?
shell scritpt that gets run with autoscript?
For example, say a CRC value for area 20000000 -- 20001000 is stored
in a flash, at location 12345678. If I wanted to verify a crc against
this value, I'd like to pass the value at address 12345678 as a last
argument.
crc32 -v 20000000 1000 (data @ 12345678)
or is it better to just read the value from flash, store it in a local
variable and use it?