i have a board based on i.MX6Q processor. while testing i got log as shown below.
cat: can't open '/sys/devices/platform/enet.0/net/eth0/operstate': No such file or directory
/root/ethernet.sh: line 9: [: ==: unary operator expected
cat: can't open '/sys/devices/platform/enet.0/net/eth0/operstate': No such file or directory
/root/ethernet.sh: line 9: [: ==: unary operator expected
cat: can't open '/sys/devices/platform/enet.0/net/eth0/operstate': No such file or directory
/root/ethernet.sh: line 9: [: ==: unary operator expected
cat: can't open '/sys/devices/platform/enet.0/net/eth0/operstate': No such file or directory
/root/ethernet.sh: line 9: [: ==: unary operator expected
cat: can't open '/sys/devices/platform/enet.0/net/eth0/operstate': No such file or directory
/root/ethernet.sh: line 9: [: ==: unary operator expected
cat: can't open '/sys/devices/platform/enet.0/net/eth0/operstate': No such file or directory
/root/ethernet.sh: line 9: [: ==: unary operator expected
cat: can't open '/sys/devices/platform/enet.0/net/eth0/operstate': No such file or directory
/root/ethernet.sh: line 9: [: ==: unary operator expected
i suspect issue is related to the ethernet.
Please suggest the solution
Hello vineeth113 754,
This issue seems to be related to the Ethernet driver so I would suggest reviewing the driver implementation.
Are you using the same driver as the i.MX6 SABRE board? It may serve as a starting point but some modifications may be necessary for your custom board.
we observed this issue in 8 boards out of 100.
>>Are you using the same driver as the i.MX6 SABRE board?
Ans: we are using ethernet phy chip from Micrel(KSZ9021RNI).