README.uniphier 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178
  1. U-Boot for UniPhier SoC family
  2. ==============================
  3. Recommended toolchains
  4. ----------------------
  5. The UniPhir platform is well tested with Linaro toolchanis.
  6. You can download pre-built toolchains from:
  7. http://www.linaro.org/downloads/
  8. Compile the source
  9. ------------------
  10. sLD3 reference board:
  11. $ make uniphier_sld3_defconfig
  12. $ make CROSS_COMPILE=arm-linux-gnueabihf-
  13. LD4 reference board:
  14. $ make uniphier_ld4_sld8_defconfig
  15. $ make CROSS_COMPILE=arm-linux-gnueabihf-
  16. sLD8 reference board:
  17. $ make uniphier_ld4_sld8_defconfig
  18. $ make CROSS_COMPILE=arm-linux-gnueabihf- DEVICE_TREE=uniphier-sld8-ref
  19. Pro4 reference board:
  20. $ make uniphier_pro4_defconfig
  21. $ make CROSS_COMPILE=arm-linux-gnueabihf-
  22. Pro4 Ace board:
  23. $ make uniphier_pro4_defconfig
  24. $ make CROSS_COMPILE=arm-linux-gnueabihf- DEVICE_TREE=uniphier-pro4-ace
  25. Pro4 Sanji board:
  26. $ make uniphier_pro4_defconfig
  27. $ make CROSS_COMPILE=arm-linux-gnueabihf- DEVICE_TREE=uniphier-pro4-sanji
  28. Pro5 4KBOX Board:
  29. $ make uniphier_pxs2_ld6b_defconfig
  30. $ make CROSS_COMPILE=arm-linux-gnueabihf- DEVICE_TREE=uniphier-pro5-4kbox
  31. PXs2 Gentil board:
  32. $ make uniphier_pxs2_ld6b_defconfig
  33. $ make CROSS_COMPILE=arm-linux-gnueabihf- DEVICE_TREE=uniphier-pxs2-gentil
  34. PXs2 Vodka board:
  35. $ make uniphier_pxs2_ld6b_defconfig
  36. $ make CROSS_COMPILE=arm-linux-gnueabihf-
  37. LD6b reference board:
  38. $ make uniphier_pxs2_ld6b_defconfig
  39. $ make CROSS_COMPILE=arm-linux-gnueabihf- DEVICE_TREE=uniphier-ld6b-ref
  40. LD11 reference board:
  41. $ make uniphier_ld11_defconfig
  42. $ make CROSS_COMPILE=aarch64-linux-gnu-
  43. LD20 reference board:
  44. $ make uniphier_ld20_defconfig
  45. $ make CROSS_COMPILE=aarch64-linux-gnu-
  46. You may wish to change the "CROSS_COMPILE=..." to use your favorite compiler.
  47. Burn U-Boot images to NAND
  48. --------------------------
  49. Write the following to the NAND device:
  50. - spl/u-boot-spl.bin at the offset address 0x00000000
  51. - u-boot.bin at the offset address 0x00010000
  52. or
  53. - u-boot-with-spl.bin at the offset address 0x00000000
  54. If a TFTP server is available, the images can be easily updated.
  55. Just copy the u-boot-spl.bin and u-boot.bin to the TFTP public directory,
  56. and then run the following command at the U-Boot command line:
  57. => run nandupdate
  58. Burn U-Boot images to eMMC
  59. --------------------------
  60. Write the following to the Boot partition 1 of the eMMC device:
  61. - spl/u-boot-spl.bin at the offset address 0x00000000
  62. - u-boot.bin at the offset address 0x00010000
  63. or
  64. - u-boot-with-spl.bin at the offset address 0x00000000
  65. If a TFTP server is available, the images can be easily updated.
  66. Just copy the u-boot-spl.bin and u-boot.bin to the TFTP public directory,
  67. and then run the following command at the U-Boot command line:
  68. => run emmcupdate
  69. UniPhier specific commands
  70. --------------------------
  71. - pinmon (enabled by CONFIG_CMD_PINMON)
  72. shows the boot mode pins that has been latched at the power-on reset
  73. - ddrphy (enabled by CONFIG_CMD_DDRPHY_DUMP)
  74. shows the DDR PHY parameters set by the PHY training
  75. - ddrmphy (enabled by CONFIG_CMD_DDRMPHY_DUMP)
  76. shows the DDR Multi PHY parameters set by the PHY training
  77. Supported devices
  78. -----------------
  79. - UART (on-chip)
  80. - NAND
  81. - SD/eMMC
  82. - USB 2.0 (EHCI)
  83. - USB 3.0 (xHCI)
  84. - GPIO
  85. - LAN (on-board SMSC9118)
  86. - I2C
  87. - EEPROM (connected to the on-board I2C bus)
  88. - Support card (SRAM, NOR flash, some peripherals)
  89. Micro Support Card
  90. ------------------
  91. The recommended bit switch settings are as follows:
  92. SW2 OFF(1)/ON(0) Description
  93. ------------------------------------------
  94. bit 1 <---- BKSZ[0]
  95. bit 2 ----> BKSZ[1]
  96. bit 3 <---- SoC Bus Width 16/32
  97. bit 4 <---- SERIAL_SEL[0]
  98. bit 5 ----> SERIAL_SEL[1]
  99. bit 6 ----> BOOTSWAP_EN
  100. bit 7 <---- CS1/CS5
  101. bit 8 <---- SOC_SERIAL_DISABLE
  102. SW8 OFF(1)/ON(0) Description
  103. ------------------------------------------
  104. bit 1 <---- CS1_SPLIT
  105. bit 2 <---- CASE9_ON
  106. bit 3 <---- CASE10_ON
  107. bit 4 Don't Care Reserve
  108. bit 5 Don't Care Reserve
  109. bit 6 Don't Care Reserve
  110. bit 7 ----> BURST_EN
  111. bit 8 ----> FLASHBUS32_16
  112. The BKSZ[1:0] specifies the address range of memory slot and peripherals
  113. as follows:
  114. BKSZ Description RAM slot Peripherals
  115. --------------------------------------------------------------------
  116. 0b00 15MB RAM / 1MB Peri 00000000-00efffff 00f00000-00ffffff
  117. 0b01 31MB RAM / 1MB Peri 00000000-01efffff 01f00000-01ffffff
  118. 0b10 64MB RAM / 1MB Peri 00000000-03efffff 03f00000-03ffffff
  119. 0b11 127MB RAM / 1MB Peri 00000000-07efffff 07f00000-07ffffff
  120. Set BSKZ[1:0] to 0b01 for U-Boot.
  121. This mode is the most handy because EA[24] is always supported by the save pin
  122. mode of the system bus. On the other hand, EA[25] is not supported for some
  123. newer SoCs. Even if it is, EA[25] is not connected on most of the boards.
  124. --
  125. Masahiro Yamada <yamada.masahiro@socionext.com>
  126. Oct. 2016