From: Wolfgang Denk Date: Tue, 18 Jan 2011 22:28:58 +0100 Subject: [U-Boot] NetRxPackets In-Reply-To: <201101182208.33651.korgull@home.nl> References: <201101180115.25127.korgull@home.nl> <201101182208.33651.korgull@home.nl> Message-ID: <20110118212858.57F0A36C@gemini.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 Marcel, In message <201101182208.33651.korgull@home.nl> you wrote: > > > Anyone have an idea how NetRxPackets is allocated ? > > Nobody ? Well,you're supposed to do some basic code reading yourself. > req->buf = (u8 *) NetRxPackets[0]; > > This is returning an non existing buffer for some reason and I know not much > about the ethernet layer to fix this. But you know how to use the search function in your favorite editor, and tools like for example ctags or grep? Hint: have a look at "net/net.c". And note: as NetRxPackets[] is a static array I can't see how NetRxPackets[0] should be a "non existing buffer". Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de In C we had to code our own bugs, in C++ we can inherit them.