public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: "Matthias Weißer" <m.weisser.m@googlemail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] testing u-boot on virtual environment
Date: Fri, 23 Dec 2011 16:03:10 +0100	[thread overview]
Message-ID: <4EF4982E.9030908@googlemail.com> (raw)
In-Reply-To: <CAG1KTJdVFD5ObWHxeRotcrn88crAsxM98FTd+3o07Rd2ivR2pA@mail.gmail.com>

Hi ?rico

Am 23.12.2011 14:19, schrieb ?rico Porto:
> Thanks!
> 
> Tried to do some memory display commands but got instant segmentation
> fault, and tried to run it as root - but then some bad things
> happened, so now I know no one should run it as root.
> 
> I wanted to tryout a memory test algorithm I developed, but it seem
> u-boot runs with no ram access. If I could findout the ram address
> where it is located, I think then the 8MB it says it has wouldn't give
> me segmentation fault...

You could try to change the address passed to the mmap in
os.c: 92  void *os_malloc(size_t length) from NULL to something known.
0x20000000 worked well for me when I added the RAM simulation. The
approach of a fixed RAM address was nacked for mainline but for tests I
still use this approach.

Matthias

      parent reply	other threads:[~2011-12-23 15:03 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-12-23 12:46 [U-Boot] testing u-boot on virtual environment Érico Porto
2011-12-23 12:57 ` Graeme Russ
2011-12-23 13:19   ` Érico Porto
2011-12-23 13:53     ` Érico Porto
2011-12-23 14:00       ` Érico Porto
2011-12-23 14:03         ` Érico Porto
2011-12-23 15:03           ` Albert ARIBAUD
2011-12-24  6:03       ` Simon Glass
2011-12-24 10:00         ` Albert ARIBAUD
2011-12-24 10:58           ` Matthias Weißer
2011-12-24 20:06             ` Érico Porto
2011-12-23 15:03     ` Matthias Weißer [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4EF4982E.9030908@googlemail.com \
    --to=m.weisser.m@googlemail.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox