From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matthias Weisser Date: Mon, 23 Apr 2012 19:49:06 +0200 Subject: [U-Boot] Sandbox question In-Reply-To: <20120423173947.A7816200261@gemini.denx.de> References: <20120423064108.CEC51200261@gemini.denx.de> <201204231141.16575.vapier@gentoo.org> <4F959235.1070106@arcor.de> <20120423173947.A7816200261@gemini.denx.de> Message-ID: <4F959612.7040903@arcor.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Am 23.04.2012 19:39, schrieb Wolfgang Denk: >> I suggested another solution: >> http://patchwork.ozlabs.org/patch/123074/ >> >> This has the disadvantage, as discussed in the thread, that the address >> passed to mmap is not guaranteed to be returned. > > I don't see why this would be needed. Because you will have the same address for "physical memory" in all instances of sandbox u-boot. This could simplify test scripts a bit. Imagine testing tftp downloads to memory where DRAM bank-> start is different for every program run. This was a PITA for me while testing the tap ethernet simulation for sandbox. And that is why I came up with the patch. Or is there something like $(ramstart) in u-boot? -- Matthias