README.uniphier 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  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. You may wish to change the "CROSS_COMPILE=arm-linux-gnueabi-"
  30. to use your favorite compiler.
  31. Burn U-Boot images to NAND
  32. --------------------------
  33. Write two files to the NAND device as follows:
  34. - spl/u-boot-spl-dtb.bin at the offset address 0x00000000
  35. - u-boot-dtb.img at the offset address 0x00010000
  36. If a TFTP server is available, the images can be easily updated.
  37. Just copy the u-boot-spl-dtb.bin and u-boot-dtb.img to the TFTP public
  38. directory, and then run the following command at the U-Boot command line:
  39. => run nandupdate
  40. UniPhier specific commands
  41. --------------------------
  42. - pinmon (enabled by CONFIG_CMD_PINMON)
  43. shows the boot mode pins that has been latched at the power-on reset
  44. - ddrphy (enabled by CONFIG_CMD_DDRPHY_DUMP)
  45. shows the DDR PHY parameters set by the PHY training
  46. Supported devices
  47. -----------------
  48. - UART (on-chip)
  49. - NAND
  50. - USB 2.0 (EHCI)
  51. - USB 3.0 (xHCI)
  52. - LAN (on-board SMSC9118)
  53. - I2C
  54. - EEPROM (connected to the on-board I2C bus)
  55. - Support card (SRAM, NOR flash, some peripherals)
  56. Micro Support Card
  57. ------------------
  58. The recommended bit switch settings are as follows:
  59. SW2 OFF(1)/ON(0) Description
  60. ------------------------------------------
  61. bit 1 <---- BKSZ[0]
  62. bit 2 ----> BKSZ[1]
  63. bit 3 <---- SoC Bus Width 16/32
  64. bit 4 <---- SERIAL_SEL[0]
  65. bit 5 ----> SERIAL_SEL[1]
  66. bit 6 ----> BOOTSWAP_EN
  67. bit 7 <---- CS1/CS5
  68. bit 8 <---- SOC_SERIAL_DISABLE
  69. SW8 OFF(1)/ON(0) Description
  70. ------------------------------------------
  71. bit 1 ----> CS1_SPLIT
  72. bit 2 <---- CASE9_ON
  73. bit 3 <---- CASE10_ON
  74. bit 4 Don't Care Reserve
  75. bit 5 Don't Care Reserve
  76. bit 6 Don't Care Reserve
  77. bit 7 ----> BURST_EN
  78. bit 8 ----> FLASHBUS32_16
  79. The BKSZ[1:0] specifies the address range of memory slot and peripherals
  80. as follows:
  81. BKSZ Description RAM slot Peripherals
  82. --------------------------------------------------------------------
  83. 0b00 15MB RAM / 1MB Peri 00000000-0effffff 0f000000-0fffffff
  84. 0b01 31MB RAM / 1MB Peri 00000000-1effffff 1f000000-1fffffff
  85. 0b10 64MB RAM / 1MB Peri 00000000-3effffff 3f000000-3fffffff
  86. 0b11 127MB RAM / 1MB Peri 00000000-7effffff 7f000000-7fffffff
  87. Set BSKZ[1:0] to 0b01 for U-Boot.
  88. This mode is the most handy because EA[24] is always supported by the save pin
  89. mode of the system bus. On the other hand, EA[25] is not supported for some
  90. newer SoCs. Even if it is, EA[25] is not connected on most of the boards.
  91. --
  92. Masahiro Yamada <yamada.masahiro@socionext.com>
  93. Aug. 2015