README.omap730p2 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. u-boot for the TI OMAP730 Perseus2
  2. Dave Peverley, MPC-Data Limited
  3. http://www.mpc-data.co.uk
  4. Overview :
  5. As the OMAP730 is similar to the OMAP1610 in many ways, this port was based
  6. on the u-boot port to the OMAP1610 Innovator. Supported features are :
  7. - Serial terminal support
  8. - Onboard NOR Flash
  9. - Ethernet via the seperate debug board
  10. - Tested on Rev4 and Rev5 boards
  11. It has also been tested to work correctly when built with a 'standard' GCC
  12. 3.2.1 cross-compiler as well as Montavista Linux CEE 3.1's toolchain.
  13. Hardware Configuration :
  14. The main dips on the P2 board should be set to 2,3,7 and 9 on with all
  15. others off. On the debug board, dips 1 and 7 should be on with the rest off.
  16. The serial console has been set up to run from the DB9 connector on the
  17. P2 board at 115200 baud, 8 data bits, no stop bits, 1 parity bit.
  18. It should be noted that the P2 board has NOR flash that is addressable via
  19. either CS0 or CS3. This mode can be changed via DIP9 on the P2 board.
  20. Installing u-boot for the P2 :
  21. You can simply build u-boot for the Perseus by following the instructions
  22. in the main readme file. The target configuration is "omap730p2_config".
  23. Once u-boot has been built, you should strip the executable so it can be
  24. loaded via CCS (which cant cope with the symbols in the ELF binary) :
  25. $ cp u-boot u-boot.out
  26. $ arm-linux-strip u-boot.out
  27. The method we've used for installing u-boot the first time on a P2 is
  28. as follows :
  29. 1) Configure TI Code Composer Studio to connect to the P2 board via JTAG
  30. as described in the Users Guide.
  31. 2) Set up the P2 to boot from CS3, and connect with CCS. Reset the CPU
  32. and run the "init_mmu" GEL script.
  33. 3) Use the "Load Program" option to send the u-boot.out file to the P2 and
  34. run.
  35. At this point, u-boot should run and you will see the boot menu on your
  36. serial terminal. You can then load the u-boot image to memory :
  37. # loadb 0x10000000
  38. Send the "u-boot.bin" binary via the serial using Kermit. Once loaded
  39. you can self-flash u-boot :
  40. # protect off 1:0
  41. # erase 1:0
  42. # cp.b 0x10000000 0x0 0x20000
  43. You should now be able to reset the board and run u-boot from flash.
  44. Alternative flash option :
  45. Sometimes, if you've been silly, you can get the board into a state where
  46. whats in flash has upset the board so much that you can no longer connect
  47. to the P2 via JTAG. However, you can set DIP9 to off to swap the boot mode
  48. of the P2 so that you boot from RAM instead of NOR flash. This moves NOR
  49. flash up to 0x0C000000. You can build a special version of u-boot to
  50. utilise this by the following config :
  51. $ make omap730p2_cs0boot_config
  52. If you load this up via CCS it will detect flash at its alternate location
  53. and allow you to programme your u-boot image (which, remember must be built
  54. for CS3 boot!) Once you do this, you can revert to CS3 boot and it will work
  55. fine again.
  56. Errata :
  57. 1) It's been observed that sometimes the tftp transfer of kernels to the
  58. board can have checksum errors or stall. This appears to be an issue
  59. with the lan91c96.c driver, and can normally be worked around by
  60. resetting the board and trying again.