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 _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot