From: Alexander Stein Date: Tue, 1 Jun 2010 13:12:39 +0200 Subject: [U-Boot] Defer net initialization In-Reply-To: <20100601104603.81810AFC6B7@gemini.denx.de> References: <201005311458.18454.alexander.stein@systec-electronic.com> <201006011214.46804.alexander.stein@systec-electronic.com> <20100601104603.81810AFC6B7@gemini.denx.de> Message-ID: <201006011312.39650.alexander.stein@systec-electronic.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Wolfgang, Am Dienstag, 1. Juni 2010 12:46:03 schrieben Sie: > > The problem was a defined CONFIG_RESET_PHY_R. Inside reset_phy > > > > > eth_init(gd->bd); > > > > is called which actually starts the hardwre resulting in timeouts as > > described. According to the comment above this line (seems to be copied > > to every at91 board implementation) this is only needed if linux has a > > NFS root which needs a preinitialized ethernet device. > > I don't know this driver, but I smell that the comment might actually > be wrong or at least misleading - most likely no PHY reset is needed > here but a MAC address needs to be programmed into the controller - > which brings us back to the start of this discussion. [And note that > you still might need this when you want to use the ethernet interface > in Linux]. The PHY is explicitly reset in most *_macb_hw_init() on AT91 baords to (re)set the PHY address by straping pins. I think it is debatable if this is really necessary. The MAC is actually written into hardware in macb_init and afterwards the PHY is initialized in macb_phy_init. So a eth_init seem to be a must from board setup. The not set MAC is currently (accidently) bypassed in our rootfs as we call > /sbin/ifconfig eth0 hw ether ${MACADDR} where ${MACADDR} is set by 'fw_printenv ethaddr' Best regards Alexander