README.ti_qspi_dra_test 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. -------------------------------------------------
  2. Simple steps used to test the QSPI at U-Boot
  3. -------------------------------------------------
  4. For #1, build the patched U-Boot and load MLO/u-boot.img
  5. ----------------------------------
  6. Boot from another medium like MMC
  7. ----------------------------------
  8. U-Boot# mmc dev 0
  9. mmc0 is current device
  10. U-Boot# fatload mmc 0 0x82000000 MLO
  11. reading MLO
  12. 55872 bytes read in 8 ms (6.7 MiB/s)
  13. U-Boot# fatload mmc 0 0x83000000 u-boot.img
  14. reading u-boot.img
  15. 248600 bytes read in 19 ms (12.5 MiB/s)
  16. --------------------------------------------------
  17. Commands to erase/write u-boot/mlo to flash device
  18. --------------------------------------------------
  19. U-Boot# sf probe 0
  20. SF: Detected S25FL256S_64K with page size 256 Bytes, erase size 64 KiB, total 32 MiB, mapped at 5c000000
  21. U-Boot# sf erase 0 0x10000
  22. SF: 65536 bytes @ 0x0 Erased: OK
  23. U-Boot# sf erase 0x20000 0x10000
  24. SF: 65536 bytes @ 0x20000 Erased: OK
  25. U-Boot# sf erase 0x30000 0x10000
  26. SF: 65536 bytes @ 0x30000 Erased: OK
  27. U-Boot# sf erase 0x40000 0x10000
  28. SF: 65536 bytes @ 0x40000 Erased: OK
  29. U-Boot# sf erase 0x50000 0x10000
  30. SF: 65536 bytes @ 0x50000 Erased: OK
  31. U-Boot# sf erase 0x60000 0x10000
  32. SF: 65536 bytes @ 0x60000 Erased: OK
  33. U-Boot# sf write 82000000 0 0x10000
  34. SF: 65536 bytes @ 0x0 Written: OK
  35. U-Boot# sf write 83000000 0x20000 0x60000
  36. SF: 393216 bytes @ 0x20000 Written: OK
  37. For #2, set sysboot to QSPI-1 boot mode(SYSBOOT[5:0] = 100110) and power
  38. on. ROM should find the GP header at offset 0 and load/execute SPL. SPL
  39. then detects that ROM was in QSPI-1 mode (boot code 10) and attempts to
  40. find a U-Boot image header at offset 0x20000 (set in the config file)
  41. and proceeds to load that image using the U-Boot image payload offset/size
  42. from the header. It will then start U-Boot.