From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Rini Date: Fri, 20 Dec 2013 08:30:06 -0500 Subject: [U-Boot] [UBOOT][PATCHv2 5/5] doc: SPI: Add qspi test details on AM43xx In-Reply-To: <1387519059-8131-6-git-send-email-sourav.poddar@ti.com> References: <1387519059-8131-1-git-send-email-sourav.poddar@ti.com> <1387519059-8131-6-git-send-email-sourav.poddar@ti.com> Message-ID: <20131220133006.GM420@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Fri, Dec 20, 2013 at 11:27:39AM +0530, Sourav Poddar wrote: > This shows the log obtained while testing qspi on AM437x board. > > Signed-off-by: Sourav Poddar > --- > doc/SPI/README.ti_qspi_am43x_test | 76 +++++++++++++++++++++++++++++++++++++ > 1 files changed, 76 insertions(+), 0 deletions(-) > create mode 100644 doc/SPI/README.ti_qspi_am43x_test > > diff --git a/doc/SPI/README.ti_qspi_am43x_test b/doc/SPI/README.ti_qspi_am43x_test > new file mode 100644 > index 0000000..8fbf10b > --- /dev/null > +++ b/doc/SPI/README.ti_qspi_am43x_test > @@ -0,0 +1,76 @@ > +Testing details- > +---------------- > + > +This doc simply illustrated the testing details of qspi flash > +driver with Macronix M25L51235 flash device. > + > +The test includes > +- probing the flash device > +- erasing the flash device > +- Writing to flash > +- Reading the contents of the flash. > + > +Test Log > +-------- > + > +Hit any key to stop autoboot: 0 > +U-Boot# sf probe 0 > +SF: Detected MX25L51235F with page size 256 Bytes, erase size 64 KiB, total 64 MiB, mapped at 30000000 > +U-Boot# sf erase 0 0x80000 > +SF: 524288 bytes @ 0x0 Erased: OK > +U-Boot# mw 81000000 0xdededede 0x40000 > +U-Boot# sf write 81000000 0 0x40000 > +SF: 262144 bytes @ 0x0 Written: OK > +U-Boot# sf read 82000000 0 0x40000 > +SF: 262144 bytes @ 0x0 Read: OK > +U-Boot# md 0x82000000 ... > +U-Boot# md 0x82010000 .... > +U-Boot# md 0x82030000 .... Note that you should use cmp.b 0x81000000 0x82000000 0x40000 :) Not that you need to change the example here, just FYI. -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: