From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefano Babic Date: Thu, 20 Mar 2008 14:44:59 +0100 Subject: [U-Boot-Users] very slow netconsole In-Reply-To: <20080320115111.12128.qmail@kasko.it> References: <20080320111738.594AC24A8B@gemini.denx.de> <20080320115111.12128.qmail@kasko.it> Message-ID: <47E26A5B.90708@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Antonello Lombardinilo wrote: > I just now: > - switched to Intel IXDPG425 board (to have a "standard" board reference); > - downloaded and compiled u-Boot 1.3.2 with NetConsole support; > > Even in this scenario the communication is slow ! Take a look at your ethernet driver (I think cpu/ixp/npe.c). The eth_halt and eth_init functions are called before each transfer, even for single character. In npe_halt: debug("%s\n", __FUNCTION__); /* Delay to give time for recovery of mbufs */ for (i = 0; i < 100; i++) { npe_poll(p_npe->eth_id); udelay(100); } The delay seems strictly correlated to the slowness you report. Check the npe_init function, too. If the ethernet is reinitialized after each transfer, the result is a very slow connection. Best regards, Stefano Babic -- ===================================================================== DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-0 Fax: +49-8142-66989-80 Email: office at denx.de =====================================================================