sysinfo: fix device status report
The OTP word read was incorrect. HW_OCOTP_CFG5 corresponds to bank 0 word 6. https://jira.digi.com/browse/ADK4A-1129 Signed-off-by: Diaz de Grenu, Jose <Jose.DiazdeGrenu@digi.com>
This commit is contained in:
parent
32a234b0d1
commit
e0b7905d67
|
|
@ -215,7 +215,7 @@ make_report(){
|
||||||
echo "--------------------------------------"
|
echo "--------------------------------------"
|
||||||
echo ""
|
echo ""
|
||||||
|
|
||||||
if [ "$(($(cat /sys/fsl_otp/HW_OCOTP_LOCK) & 2))" != "0" ]; then
|
if [ "$(($(cat /sys/fsl_otp/HW_OCOTP_CFG5) & 2))" != "0" ]; then
|
||||||
echo "Device status: [CLOSED]"
|
echo "Device status: [CLOSED]"
|
||||||
else
|
else
|
||||||
echo "Device status: [OPEN]"
|
echo "Device status: [OPEN]"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue