Open gregokent opened 3 years ago
If the hexdump command succeeds, it'll still end up returning an error as the success case will end up falling through to filesystem_error1: where it gets remapped to SJA1105_ERR_FILESYSTEM before returning. https://github.com/openil/sja1105-tool/blob/085d42c72c4e9508aa7bc9bfbbb5fe41082fcdec/src/tool/staging-area.c#L122-L132
filesystem_error1:
SJA1105_ERR_FILESYSTEM
As a result, the sja1105-init startup script will always find the config to be invalid and create it anew: https://github.com/openil/sja1105-tool/blob/085d42c72c4e9508aa7bc9bfbbb5fe41082fcdec/etc/sja1105-init#L25-L28
sja1105-init
Hi, It looks like you found a bug. Would you mind sending a pull request with a patch? Thanks, Vladimir
If the hexdump command succeeds, it'll still end up returning an error as the success case will end up falling through to
filesystem_error1:
where it gets remapped toSJA1105_ERR_FILESYSTEM
before returning. https://github.com/openil/sja1105-tool/blob/085d42c72c4e9508aa7bc9bfbbb5fe41082fcdec/src/tool/staging-area.c#L122-L132As a result, the
sja1105-init
startup script will always find the config to be invalid and create it anew: https://github.com/openil/sja1105-tool/blob/085d42c72c4e9508aa7bc9bfbbb5fe41082fcdec/etc/sja1105-init#L25-L28