From: Wolfgang Denk Date: Mon, 12 Apr 2004 23:55:24 +0200 Subject: [U-Boot-Users] Ethner RxBd init problem In-Reply-To: Your message of "Mon, 12 Apr 2004 14:36:38 PDT." <20040412213638.57633.qmail@web21412.mail.yahoo.com> Message-ID: <20040412215530.05860C109F@atlas.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 Dear Dave, in message <20040412213638.57633.qmail@web21412.mail.yahoo.com> you wrote: > > I have 8260 based board and am using u-boot for that. > I boot kernel from the flash. All works fine however > sometimes Linux Kernel does not boot after > uncompressing, further investigation found that as the > kernel entry point is address 0, and that is also > address of netRxPackets, if a packet is received after You are wrong here. NetRxPackets[] is definitely NOT located at address 0. > the kernel is unzipped by u-boot, ethernet driver > corrupts data at address 0 thinking it as its buffer > pointer. Hence kernel does not boot up in that case. No, no, no. > My first question is that why we dont initialize > netRxPackets in net.c?? (these are only initialized > once a network related operation (like ping) is done). U-Boot uses the network only when a network related operation is in progress, so why should we waste memory for buffers when they are not needed? > Is this the corect behaviour?? has anyone observed > this problem?? This is correct behaviour. It works perfectly find on all boards I was able to test. You are on the wrong track. Best regards, Wolfgang Denk -- Software Engineering: Embedded and Realtime Systems, Embedded Linux Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: wd at denx.de You got to learn three things. What's real, what's not real, and what's the difference." - Terry Pratchett, _Witches Abroad_