mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Holger Schurig <holgerschurig@gmail.com>
To: barebox@lists.infradead.org
Subject: Confusion about memory layout
Date: Tue, 8 Apr 2014 08:51:45 +0200	[thread overview]
Message-ID: <CAOpc7mEpS4sSB0f8uYhJZDRVyJFL8BYWccBOPsN-N82Jc6iB1w@mail.gmail.com> (raw)

Hi,

I'm trying to get barebox running via usb-download. Unfortunately, the
verify step failed (see log below). This made me think about my memory
layout, but I'm a bit helpless here.

If I look at arch/arm/mach-imx/Kconfig, I see that several i.MX boards
define different CONFIG_ARCH_TEXT_BASE. Why?

default 0x4fc00000 if MACH_MX6Q_ARM2
default 0x4fc00000 if MACH_SABRELITE
... some other also, but look at this:
default 0x17800000 if MACH_SABRESD

And why specify most x4fc0_0000 ?  Doesn't the physical memory map of
DDR3 start at x1000_0000 or 0x8000_0000, depending on mapping ?


Similarly: the "loadaddr" statement in various *.imxcfg files are also
different:

loadaddr 0x00907000
loadaddr 0x10000000
loadaddr 0x20000000

I'd have expected that all will be loaded at 0x1000_0000, the start of DDR RAM?



That made me think about my memory map is the "00000400:" vs.
"10000400:" prefix in the following compare:

barebox/scripts/imx/imx-usb-loader -c -v barebox/barebox.imx
found i.MX6q USB device [15a2:0054]
main dcd length 308
sub dcd length 304
loading binary file(barebox/barebox.imx) to 10000000, skip=0x0,
fsize=249800 type=170...
binary file successfully loaded
verifying file...
!!!!mismatch
00000400: 402000d1 10001000 00000000 00000000  00000000 10000400
00000000 00000000
10000400: 400000d1 10000000 00000000 00000000  00040000 10001000
00ff0000 00000000

00000420: 10000000 0003d000 00000000 400803d2  040403cc 68400c02
ffffffff 6c400c02
10000420: 10200000 00030400 00000000 40080000  040003cc 6840d000
ff00ffff 6c4003d2

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

             reply	other threads:[~2014-04-08  6:52 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-04-08  6:51 Holger Schurig [this message]
2014-04-08 20:02 ` Sascha Hauer

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=CAOpc7mEpS4sSB0f8uYhJZDRVyJFL8BYWccBOPsN-N82Jc6iB1w@mail.gmail.com \
    --to=holgerschurig@gmail.com \
    --cc=barebox@lists.infradead.org \
    /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