U-Boot mtest Failure (read/write)

2020-10-20 Thread Embedded Engineer
I am trying to run mtest in U-Boot to verify if my RAM (on-board DDR3
on PowerPC based boards) is working fine. However, mtest is giving
following errors when I run the test:

Hit any key to stop autoboot:  0
=> mtest 0x4 0x4000 0xaabbccdd 0x1
Testing 0004 ... 4000:
Iteration:  1
FAILURE (read/write) @ 0x08d174f4: expected 0x02345d3d, actual 0x02365d3d)

FAILURE (read/write) @ 0x08d1f4ec: expected 0x02347d3b, actual 0x02357d3b)

FAILURE (read/write) @ 0x08d1f4f4: expected 0x02347d3d, actual 0x02367d3d)

FAILURE (read/write) @ 0x08d1f4fc: expected 0x02347d3f, actual 0x02367d3f)

FAILURE (read/write) @ 0x08d274ec: expected 0x02349d3b, actual 0x02359d3b)

FAILURE (read/write) @ 0x08d274fc: expected 0x02349d3f, actual 0x02369d3f)

FAILURE (read/write) @ 0x2ccb62d4: expected 0x0b32d8b5, actual 0x0bb2d8b5)

FAILURE (read/write): @ 0x0822d77c: expected 0xfdf74a20, actual 0xfdf74a60)

FAILURE (read/write): @ 0x08d0f4c4: expected 0xfdcbc2ce, actual 0xfdcac2ce)

FAILURE (read/write): @ 0x08d0f4e4: expected 0xfdcbc2c6, actual 0xfdcac2c6)

FAILURE (read/write): @ 0x08d174c4: expected 0xfdcba2ce, actual 0xfdcaa2ce)

FAILURE (read/write): @ 0x08d1f4cc: expected 0xfdcb82cc, actual 0xfdca82cc)

FAILURE (read/write): @ 0x08d1f4e4: expected 0xfdcb82c6, actual 0xfdca82c6)

FAILURE (read/write): @ 0x08d274e0: expected 0xfdcb62c7, actual 0xfdca62c7)


I have run this test multiple times but the addresses on which errors
occur remains almost the same ( +/- few different addresses). At
first, I thought that reason of such failures can be wrong DDR timing
parameters used for initializing memory controller but what made me
confuse was that the errors occur on same addresses on same board on
multiple retries and reboots.

I have also noticed that the difference between actual and expected
data is always 1-bit e.g. expected 0xfdcba2ce, actual 0xfdcaa2ce.

Can anyone provide some hint what might be the reason or source of error?

P.S: Running mtest on different boards results in same read/write
errors but the failure addresses are different on different boards.


[U-Boot] Unable to compile U-Boot for Tegra K1 with modified SPL_TEXT_BASE

2019-03-06 Thread Embedded Engineer
I am trying to build latest U-Boot for my custom board based on Tegra
TK1. The downstream U-Boot provided by Nvidia builds and works fine on
my board. But when I try to build mainline U-Boot and flash it to my
board using tegra-uboot-flasher scripts, I get no output when I boot
the board.

Then I noticed that the downstream U-Boot has CONFIG_SPL_TEXT_BASE set
to 0x83D88000 while in mainline U-Boot, it is set to 0x80108000. When
I tried to modify this to any value other than 0x80108000, I get
following error while building:

binman: 'I' format requires 0 <= number <= 4294967295

Can someone guide what can I do to remove this error and get the
latest U-Boot working on Tegra K1?
___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot