README.sbc8349 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. U-Boot for Wind River SBC834x Boards
  2. ====================================
  3. The Wind River SBC834x board is a 6U form factor (not CPCI) reference
  4. design that uses the MPC8347E or MPC8349E processor. U-Boot support
  5. for this board is heavily based on the existing U-Boot support for
  6. Freescale MPC8349 reference boards.
  7. Support has been primarily tested on the SBC8349 version of the board,
  8. although earlier versions were also tested on the SBC8347. The primary
  9. difference in the two is the level of PCI functionality.
  10. http://www.windriver.com/products/OCD/SBC8347E_49E/
  11. Flash Details:
  12. ==============
  13. The flash type is intel 28F640Jx (4096x16) [one device]. Base address
  14. is 0xFF80_0000 which is also where the Hardware Reset Configuration
  15. Word (HRCW) is stored. Caution should be used to not reset the
  16. board without having a valid HRCW in place (i.e. erased flash) as
  17. then a Wind River ICE will be required to restore the HRCW and flash
  18. image.
  19. Restoring a corrupted or missing flash image:
  20. =============================================
  21. Note that U-boot versions up to and including 2009.06 had essentially
  22. two copies of u-boot in flash; one at the very beginning, which set
  23. the HRCW, and one at the very end, which was the image that was run.
  24. As of this point in time, the two have been combined into just one
  25. at the beginning of flash, which provides both the HRCW, and the image
  26. that is executed. This frees up the remainder of flash for other uses.
  27. Use of the u-boot command "fli" will indicate what parts are in use.
  28. Details for storing U-boot to flash using a Wind River ICE can be found
  29. on page 19 of the board manual (request ERG-00328-001). The following
  30. is a summary of that information:
  31. - Connect ICE and establish connection to it from WorkBench/OCD.
  32. - Ensure you have background mode (BKM) in the OCD terminal window.
  33. - Select the appropriate flash type (listed above)
  34. - Prepare a u-boot image by using the Wind River Convert utility;
  35. by using "Convert and Add file" on the ELF file from your build.
  36. Convert from FF80_0000 to FFFF_FFFF (or to FF83_FFFF if you are
  37. trying to preserve your old environment settings and user flash).
  38. - Set the start address of the erase/flash process to FF80_0000
  39. - Set the target RAM required to 64kB.
  40. - Select sectors for erasing (see note on enviroment below)
  41. - Select Erase and Reprogram.
  42. Note that some versions of the register files used with Workbench
  43. would zero some TSEC registers, which inhibits ethernet operation
  44. by u-boot when this register file is played to the target. Using
  45. "INN" in the OCD terminal window instead of "IN" before the "GO"
  46. will not play the register file, and allow u-boot to use the TSEC
  47. interface while executed from the ICE "GO" command.
  48. Alternatively, you can locate the register file which will be named
  49. WRS_SBC8349_PCT00328001.reg or similar) and "REM" out all the lines
  50. beginning with "SCGA TSEC1" and "SCGA TSEC2". This allows you to
  51. use all the remaining register file content.
  52. If you wish to preserve your prior U-Boot environment settings,
  53. then convert (and erase to) 0xFF83FFFF instead of 0xFFFFFFFF.
  54. The size for converting (and erasing) must be at least as large
  55. as u-boot.bin.
  56. Updating U-Boot with U-Boot:
  57. ============================
  58. This procedure is very similar to other boards that have u-boot installed.
  59. Assuming that the network has been configured, and that the new u-boot.bin
  60. has been copied to the TFTP server, the commands are:
  61. tftp 200000 u-boot.bin
  62. protect off all
  63. erase ff800000 ff83ffff
  64. cp.b 200000 ff800000 40000
  65. protect on all
  66. You may wish to do a "md ff800000 20" operation as a prefix and postfix
  67. to the above steps to inspect/compare the HRCW before/after as an extra
  68. safety check before resetting the board upon completion of the reflash.
  69. PCI:
  70. ====
  71. This board and U-Boot have been tested with PCI built in, on a SBC8349
  72. and confirmed that the "pci" command showed the intel e1000 that was
  73. present in the PCI slot. Note that if a 33MHz 32bit card is inserted
  74. in the slot, then the whole board will clock down to a 33MHz base
  75. clock instead of the default 66MHz. This will change the baud clocks
  76. and mess up your serial console output. If you want to use a 33MHz PCI
  77. card, then you should build a U-Boot with #undef PCI_66M in the
  78. include/configs/sbc8349.h and store this to flash prior to powering down
  79. the board and inserting the 33MHz PCI card.
  80. By default PCI support is disabled to better support very early
  81. revision MPC834x chips with possible PCI issues. Also PCI support is
  82. untested on the sbc8347 variants at this point in time.
  83. Paul Gortmaker, 01/2007