README 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  1. Overview
  2. =========
  3. The P2041 Processor combines four Power Architecture processor cores
  4. with high-performance datapath acceleration architecture(DPAA), CoreNet
  5. fabric infrastructure, as well as network and peripheral bus interfaces
  6. required for networking, telecom/datacom, wireless infrastructure, and
  7. military/aerospace applications.
  8. P2041RDB board is a quad core platform supporting the P2041 processor
  9. of QorIQ DPAA series.
  10. Boot from NOR flash
  11. ===================
  12. 1. Build image
  13. make P2041RDB_config
  14. make all
  15. 2. Program image
  16. => tftp 1000000 u-boot.bin
  17. => protect off all
  18. => erase eff40000 efffffff
  19. => cp.b 1000000 eff40000 c0000
  20. 3. Program RCW
  21. => tftp 1000000 rcw.bin
  22. => protect off all
  23. => erase e8000000 e801ffff
  24. => cp.b 1000000 e8000000 50
  25. 4. Program FMAN Firmware ucode
  26. => tftp 1000000 ucode.bin
  27. => protect off all
  28. => erase eff00000 eff3ffff
  29. => cp.b 1000000 eff00000 2000
  30. 5. Change DIP-switch
  31. SW1[1-5] = 10110
  32. Note: 1 stands for 'on', 0 stands for 'off'
  33. Boot from SDCard
  34. ===================
  35. 1. Build image
  36. make P2041RDB_SDCARD_config
  37. make all
  38. 2. Generate PBL imge
  39. Use PE tool to produce a image used to be programed to
  40. SDCard which contains RCW and U-Boot image.
  41. 3. Program the PBL image to SDCard
  42. => tftp 1000000 pbl_sd.bin
  43. => mmcinfo
  44. => mmc write 1000000 8 672
  45. 4. Program FMAN Firmware ucode
  46. => tftp 1000000 ucode.bin
  47. => mmc write 1000000 690 10
  48. 5. Change DIP-switch
  49. SW1[1-5] = 01100
  50. Note: 1 stands for 'on', 0 stands for 'off'
  51. Boot from SPI flash
  52. ===================
  53. 1. Build image
  54. make P2041RDB_SPIFLASH_config
  55. make all
  56. 2. Generate PBL imge
  57. Use PE tool to produce a image used to be programed to
  58. SPI flash which contains RCW and U-Boot image.
  59. 3. Program the PBL image to SPI flash
  60. => tftp 1000000 pbl_spi.bin
  61. => spi probe 0
  62. => sf erase 0 100000
  63. => sf write 1000000 0 $filesize
  64. 4. Program FMAN Firmware ucode
  65. => tftp 1000000 ucode.bin
  66. => sf erase 110000 10000
  67. => sf write 1000000 110000 $filesize
  68. 5. Change DIP-switch
  69. SW1[1-5] = 10100
  70. Note: 1 stands for 'on', 0 stands for 'off'
  71. Device tree support and how to enable it for different configs
  72. --------------------------------------------------------------
  73. Device tree support is available for p2041rdb for below mentioned boot,
  74. 1. NOR Boot
  75. 2. NAND Boot
  76. 3. SD Boot
  77. 4. SPIFLASH Boot
  78. To enable device tree support for other boot, below configs need to be
  79. enabled in relative defconfig file,
  80. 1. CONFIG_DEFAULT_DEVICE_TREE="p2041rdb" (Change default device tree name if required)
  81. 2. CONFIG_OF_CONTROL
  82. 3. CONFIG_MPC85XX_HAVE_RESET_VECTOR if reset vector is located at
  83. CONFIG_RESET_VECTOR_ADDRESS - 0xffc
  84. If device tree support is enabled in defconfig, use 'u-boot-with-dtb.bin'
  85. instead of u-boot.bin for all boot.
  86. CPLD command
  87. ============
  88. The CPLD is used to control the power sequence and some serdes lane
  89. mux function.
  90. cpld reset - hard reset to default bank
  91. cpld reset altbank - reset to alternate bank
  92. cpld lane_mux <lane> <mux_value> - set multiplexed lane pin
  93. lane 6: 0 -> slot1 (Default)
  94. 1 -> SGMII
  95. lane a: 0 -> slot2 (Default)
  96. 1 -> AURORA
  97. lane c: 0 -> slot2 (Default)
  98. 1 -> SATA0
  99. lane d: 0 -> slot2 (Default)
  100. 1 -> SATA1
  101. Using the Device Tree Source File
  102. =================================
  103. To create the DTB (Device Tree Binary) image file, use a command
  104. similar to this:
  105. dtc -O dtb -b 0 -p 1024 p2041rdb.dts > p2041rdb.dtb
  106. Or use the following command:
  107. {linux-2.6}/make p2041rdb.dtb ARCH=powerpc
  108. then the dtb file will be generated under the following directory:
  109. {linux-2.6}/arch/powerpc/boot/p2041rdb.dtb
  110. Booting Linux
  111. =============
  112. Place a linux uImage in the TFTP disk area.
  113. tftp 1000000 uImage
  114. tftp 2000000 rootfs.ext2.gz.uboot
  115. tftp 3000000 p2041rdb.dtb
  116. bootm 1000000 2000000 3000000