From: Alexander Stein Date: Tue, 1 Jun 2010 16:55:13 +0200 Subject: [U-Boot] Defer net initialization In-Reply-To: References: <201005311458.18454.alexander.stein@systec-electronic.com> <201006011214.46804.alexander.stein@systec-electronic.com> Message-ID: <201006011655.14024.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 Ho Ben, Am Dienstag, 1. Juni 2010 16:46:48 schrieb Ben Warren: > > This macb driver is fine so far. eth_initialize doesn't startup the > > hardware > > e.g. checking for link etc. > > 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. > > But as we have a jffs2 rootfs this could be ignored. > > Yes, you've found the root cause. Some (maybe all) AT91 boards call call > eth_init() during their initialization, which can take time. My > understanding is that this was done to ensure a programmed MAC address. > > I added code recently to always program MAC addresses, hoping that we could > then get rid of all these calls. I encourage you to either try to make the > changes yourself, or I can build you an untested patch to try. I would try your patch if you send it to me (and the list maybe too). Best regards Alexander