From: Stefan Roese <sr@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] 405EP U-boot/Linux Question (CFG_OCM_DATA_ADDR)
Date: Thu, 29 Jan 2009 06:02:52 +0100 [thread overview]
Message-ID: <200901290602.52203.sr@denx.de> (raw)
In-Reply-To: <8ff29df80901281332x16bcf71auda95c9f5b7a630e6@mail.gmail.com>
On Wednesday 28 January 2009, Pawel Pastuszak wrote:
> I was wondering if some one could give me an hand with OCM for PPC405EP
>
> So my goal is to Access *CFG_BOOTCOUNT_ADDR *value in Linux based on
> http://www.denx.de/wiki/view/DULG/UBootBootCountLimit
Please note that its CONFIG_SYS_BOOTCOUNT_ADDR now.
> In u-boot it works fine but ... but how to i talk to this memory range in
> linux.
>
> I tried the following but no luck.
> ulong * save_addr = ioremap( (CFG_OCM_DATA_ADDR + CFG_BOOTCOUNT_ADDR),8
> );
>
> if (save_addr[1] != BOOTCOUNT_MAGIC)
> return 0;
> else
> return save_addr[0];
And what's the result of the above code? Do you get an exception? Or some
unreasonable values?
Which kernel version are you using?
Best regards,
Stefan
=====================================================================
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
=====================================================================
prev parent reply other threads:[~2009-01-29 5:02 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-01-28 21:32 [U-Boot] 405EP U-boot/Linux Question (CFG_OCM_DATA_ADDR) Pawel Pastuszak
2009-01-29 5:02 ` Stefan Roese [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=200901290602.52203.sr@denx.de \
--to=sr@denx.de \
--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