mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: "Валерий Ныров" <nvg.dev@gmail.com>
To: barebox@lists.infradead.org
Subject: BeagleBoard-Xm: memtest return error
Date: Wed, 3 Jun 2015 17:08:31 +0300	[thread overview]
Message-ID: <CAKOK1G0iK=kZJPHGV6mtCbwdNpwdZOXEfnCTeozC+8Nkehxe1A@mail.gmail.com> (raw)

Hello everyone! I am a newbie and trying to run the barebox on
BeagleBoard-Xm rev.C with 512MB DDR on board.

To support 512MB I did the following:

1) file: arm/boards/beagle/board.c, func: beagle_mem_init(), change line 85:

beagle_mem_init(void)
{
    //omap_add_ram0(SZ_128M);
    omap_add_ram0(SZ_512M);
}

2) file: arm/boards/beagle/lowlevel.c, func: sdrc_init(), change line 127:

//writel(0x02584099, OMAP3_SDRC_REG(MCFG_0));
writel(0x02590099, OMAP3_SDRC_REG(MCFG_0)); // to add 512MB support on CS0

Then launch barebox and send command - memtest, which return error:
"FAILURE: Address bit stuck high @ 0x90000000: expected 0xaaaaaaaa,
actual 0x7fffffff",
but commands "memset" writes data to the address 0x90000000 correct,
what I did not so?

Best Regards,
Valeriy Nyrov.

Here is the log:

Board: Texas Instruments beagle
netconsole: registered as netconsole-1
i2c-omap i2c-omap30: bus 0 rev4.4 at 100 kHz
ehci ehci0: USB EHCI 1.00
nand: No NAND device found
gpmc_nand gpmc_nand0: probe failed: No such device or address
omap-hsmmc omap3-hsmmc0: registered as omap3-hsmmc0
mci0: detected SD card version 2.0
mci0: registered disk0
malloc space: 0x85e00000 -> 0x87dfffff (size 32 MiB)
environment load /boot/barebox.env: No such file or directory
Maybe you have to create the partition.
running /env/bin/init...
set parameter: No such device
Failed to add partitions
128k(nand0.xload),256k(nand0.barebox)ro,128k(nand0.bareboxenv),128k(nand0.oftree),4M(nand0.kernel),1200

Hit any key to stop autoboot:  1
barebox@Texas Instruments beagle:/ memtest
Start iteration 1 of 1.
Do memtest with caching enabled.
Testing memory space: 0x80000000 -> 0x85dfffff:
Starting data line test.
Check for address bits stuck high.
Check for address bits stuck low or shorted.
Starting integrity check of physicaly ram.
Filling ram with patterns...
        [#################################################################]
Compare written patterns...
        [#################################################################]
Filling ram with inverted pattern and compare it...
        [#################################################################]
done.

Testing memory space: 0x87e48000 -> 0x87ff3fff:
Starting data line test.
Check for address bits stuck high.
Check for address bits stuck low or shorted.
Starting integrity check of physicaly ram.
Filling ram with patterns...
        [#################################################################]
Compare written patterns...
        [#################################################################]
Filling ram with inverted pattern and compare it...
        [#################################################################]
done.

Testing memory space: 0x88000000 -> 0x9fffffff:
Starting data line test.
Check for address bits stuck high.
FAILURE: Address bit stuck high @ 0x90000000: expected 0xaaaaaaaa,
actual 0x7fffffff.
Memtest failed. Error: -5

barebox@Texas Instruments beagle:/ memset -b 0x90000000 0xaa 4
barebox@Texas Instruments beagle:/ md -b 0x90000000
90000000: aa aa aa aa aa aa aa aa aa aa aa aa 00 00 00 00    ................
90000010: aa aa aa aa 00 00 00 00 00 00 00 00 00 00 00 00

barebox@Texas Instruments beagle:/ memset -b 0x90000000 0x55 4
barebox@Texas Instruments beagle:/ md -b 0x90000000
90000000: 55 55 55 55 aa aa aa aa aa aa aa aa 00 00 00 00    UUUU............
90000010: aa aa aa aa 00 00 00 00 00 00 00 00 00 00 00 00    ................

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

             reply	other threads:[~2015-06-03 14:08 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-03 14:08 Валерий Ныров [this message]
2015-06-03 19:42 ` Alexander Aring
2015-06-05  6:11   ` Valeriy Nyrov
2015-06-05 11:28     ` Sascha Hauer
2015-06-05 11:28   ` 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='CAKOK1G0iK=kZJPHGV6mtCbwdNpwdZOXEfnCTeozC+8Nkehxe1A@mail.gmail.com' \
    --to=nvg.dev@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