[U-Boot] [PATCH 3/7] 83xx/85xx/86xx: Add ECC support
Peter Tyser
ptyser at xes-inc.com
Tue Nov 10 01:32:19 CET 2009
On Tue, 2009-11-10 at 08:25 +0800, Liu Dave-R63238 wrote:
> How to use these command to test the ECC?
> Specially, how to inject multi error in 64bit data bus?
<snip>
> > +U_BOOT_CMD(ecc, 5, 0, do_ecc,
> > + "support for DDR ECC features",
> > + "info - print ECC information\n"
> > +#if (CONFIG_NUM_DDR_CONTROLLERS > 1)
> > + "ecc ctrl [num]\n"
> > + "\t-Set active controller to 'num', or display active
> > controller\n"
> > +#endif
> > + "ecc inject high <mask>\n"
> > + "ecc inject low <mask>\n"
> > + "ecc inject ecc <mask>\n"
> > + "\t- XOR 'mask' with high/low data or ECC\n"
> > + "ecc inject off\n"
> > + "\t- disable error injection\n"
> > +);
Hi Dave,
You can inject data in the upper/lower 32 bit data path, or in the ecc
path using the "ecc inject" command shown above. The inject command
takes a mask that is XORed with the proper data, eg "ecc inject low 0x5"
would result in data bits 0 and 2 always being swapped resulting in
multibit errors.
Or you could ground 2 data pins on the PCB:)
Peter
More information about the U-Boot
mailing list