Wind River Support Network

HomeDefectsLIN5-17894
Fixed

LIN5-17894 : On p2020 board, sometimes, kernel will hang when do `ifconfig down` in init script

Created: Jan 23, 2014    Updated: Dec 19, 2017
Resolved Date: Jan 23, 2014
Previous ID: LIN4-30991
Found In Version: 5.0.1
Fix Version: 5.0.1.12
Severity: Standard
Applicable for: Wind River Linux 5
Component/s: BSP

Description

Sometimes, kernel will hang and not any output when booting.

After investigation, it always hang when run `ifconfig ethx down` command, in P2020's init script(rc.sysinit), it will ifconfig up and then ifconfig down to all ethx.

If we did not run `ifconfig ethx down`, and do it after system finish init, this issue will disppear.

I doubt it have relation with p2020's cpu errta eTSEC-A002, and we have integrate a fix on this issue(56c7e6539643d94a76a5836031916fd5367644f8), so send them a patch like:
/**************************************************/
diff --git a/drivers/net/gianfar.c b/drivers/net/gianfar.c
index 096d6f8..7477664 100644
--- a/drivers/net/gianfar.c
+++ b/drivers/net/gianfar.c
@@ -1132,6 +1132,10 @@ static void gfar_detect_errata(struct gfar_private *priv)
                        (pvr == 0x80861010 && (mod & 0xfff9) == 0x80c0))
                priv->errata |= GFAR_ERRATA_A002;
 
+       /* P2020*/
+       if (pvr == 0x80211051)
+               priv->errata |= GFAR_ERRATA_A002;
+

/**************************************************/

This issue will disppear.
Here need to check with you if this modification is acceptable

Workaround

do not run `ifconfig ethx down` in rc.sysinit script, run it later instead will let this issue disappear.

Steps to Reproduce

Hard to reproduce on our side, it only can be met on customer side.

Other Downloads


Live chat
Online