README.uniphier 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. U-Boot for UniPhier SoC family
  2. ==============================
  3. Tested toolchains
  4. -----------------
  5. (a) Ubuntu packages (CROSS_COMPILE=arm-linux-gnueabi-)
  6. If you are building U-Boot on Ubuntu, its standard package is recommended.
  7. You can install it as follows:
  8. $ sudo apt-get install gcc-arm-linux-gnueabi-
  9. (b) Linaro compilers (CROSS_COMPILE=arm-linux-gnueabihf-)
  10. You can download pre-built toolchains from:
  11. http://www.linaro.org/downloads/
  12. (c) kernel.org compilers (CROSS_COMPILE=arm-unknown-linux-gnueabi-)
  13. You can download pre-built toolchains from:
  14. ftp://www.kernel.org/pub/tools/crosstool/files/bin/
  15. Compile the source
  16. ------------------
  17. PH1-sLD3:
  18. $ make ph1_sld3_defconfig
  19. $ make CROSS_COMPILE=arm-linux-gnueabi-
  20. PH1-LD4:
  21. $ make ph1_ld4_defconfig
  22. $ make CROSS_COMPILE=arm-linux-gnueabi-
  23. PH1-Pro4:
  24. $ make ph1_pro4_defconfig
  25. $ make CROSS_COMPILE=arm-linux-gnueabi-
  26. PH1-sLD8:
  27. $ make ph1_sld8_defconfig
  28. $ make CROSS_COMPILE=arm-linux-gnueabi-
  29. PH1-Pro5:
  30. $ make ph1_pro5_defconfig
  31. $ make CROSS_COMPILE=arm-linux-gnueabi-
  32. You may wish to change the "CROSS_COMPILE=arm-linux-gnueabi-"
  33. to use your favorite compiler.
  34. Burn U-Boot images to NAND
  35. --------------------------
  36. Write two files to the NAND device as follows:
  37. - spl/u-boot-spl-dtb.bin at the offset address 0x00000000
  38. - u-boot-dtb.img at the offset address 0x00010000
  39. If a TFTP server is available, the images can be easily updated.
  40. Just copy the u-boot-spl-dtb.bin and u-boot-dtb.img to the TFTP public
  41. directory, and then run the following command at the U-Boot command line:
  42. => run nandupdate
  43. UniPhier specific commands
  44. --------------------------
  45. - pinmon (enabled by CONFIG_CMD_PINMON)
  46. shows the boot mode pins that has been latched at the power-on reset
  47. - ddrphy (enabled by CONFIG_CMD_DDRPHY_DUMP)
  48. shows the DDR PHY parameters set by the PHY training
  49. Supported devices
  50. -----------------
  51. - UART (on-chip)
  52. - NAND
  53. - USB 2.0 (EHCI)
  54. - USB 3.0 (xHCI)
  55. - LAN (on-board SMSC9118)
  56. - I2C
  57. - EEPROM (connected to the on-board I2C bus)
  58. - Support card (SRAM, NOR flash, some peripherals)
  59. Micro Support Card
  60. ------------------
  61. The recommended bit switch settings are as follows:
  62. SW2 OFF(1)/ON(0) Description
  63. ------------------------------------------
  64. bit 1 <---- BKSZ[0]
  65. bit 2 ----> BKSZ[1]
  66. bit 3 <---- SoC Bus Width 16/32
  67. bit 4 <---- SERIAL_SEL[0]
  68. bit 5 ----> SERIAL_SEL[1]
  69. bit 6 ----> BOOTSWAP_EN
  70. bit 7 <---- CS1/CS5
  71. bit 8 <---- SOC_SERIAL_DISABLE
  72. SW8 OFF(1)/ON(0) Description
  73. ------------------------------------------
  74. bit 1 ----> CS1_SPLIT
  75. bit 2 <---- CASE9_ON
  76. bit 3 <---- CASE10_ON
  77. bit 4 Don't Care Reserve
  78. bit 5 Don't Care Reserve
  79. bit 6 Don't Care Reserve
  80. bit 7 ----> BURST_EN
  81. bit 8 ----> FLASHBUS32_16
  82. The BKSZ[1:0] specifies the address range of memory slot and peripherals
  83. as follows:
  84. BKSZ Description RAM slot Peripherals
  85. --------------------------------------------------------------------
  86. 0b00 15MB RAM / 1MB Peri 00000000-0effffff 0f000000-0fffffff
  87. 0b01 31MB RAM / 1MB Peri 00000000-1effffff 1f000000-1fffffff
  88. 0b10 64MB RAM / 1MB Peri 00000000-3effffff 3f000000-3fffffff
  89. 0b11 127MB RAM / 1MB Peri 00000000-7effffff 7f000000-7fffffff
  90. Set BSKZ[1:0] to 0b01 for U-Boot.
  91. This mode is the most handy because EA[24] is always supported by the save pin
  92. mode of the system bus. On the other hand, EA[25] is not supported for some
  93. newer SoCs. Even if it is, EA[25] is not connected on most of the boards.
  94. --
  95. Masahiro Yamada <yamada.masahiro@socionext.com>
  96. Aug. 2015