X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=doc%2FREADME.uniphier;h=f21c9d09ce3ee72570d7d7c8796372b333ea4a30;hb=19d1f1a2f3ccfbf85125150f7876ce22714b38bd;hp=49045a02188aa214bf1bcd555747e5bc28f92733;hpb=0badc648dcb0d0e10db959ffe8ab1b1e156b3724;p=platform%2Fkernel%2Fu-boot.git diff --git a/doc/README.uniphier b/doc/README.uniphier index 49045a0..f21c9d0 100644 --- a/doc/README.uniphier +++ b/doc/README.uniphier @@ -2,112 +2,109 @@ U-Boot for UniPhier SoC family ============================== -Tested toolchains ------------------ - - (a) Ubuntu packages (CROSS_COMPILE=arm-linux-gnueabi-) - - If you are building U-Boot on Ubuntu, its standard package is recommended. - You can install it as follows: - - $ sudo apt-get install gcc-arm-linux-gnueabi- - - (b) Linaro compilers (CROSS_COMPILE=arm-linux-gnueabihf-) +Recommended toolchains +---------------------- - You can download pre-built toolchains from: +The UniPhier platform is well tested with Linaro toolchains. +You can download pre-built toolchains from: http://www.linaro.org/downloads/ - (c) kernel.org compilers (CROSS_COMPILE=arm-unknown-linux-gnueabi-) - - You can download pre-built toolchains from: - - ftp://www.kernel.org/pub/tools/crosstool/files/bin/ - Compile the source ------------------ -PH1-sLD3 reference board: - $ make uniphier_sld3_defconfig - $ make CROSS_COMPILE=arm-linux-gnueabi- +The source can be configured and built with the following commands: -PH1-LD4 reference board: - $ make uniphier_ld4_sld8_defconfig - $ make CROSS_COMPILE=arm-linux-gnueabi- + $ make + $ make CROSS_COMPILE= DEVICE_TREE= -PH1-sLD8 reference board: - $ make uniphier_ld4_sld8_defconfig - $ make CROSS_COMPILE=arm-linux-gnueabi- DEVICE_TREE=uniphier-ph1-sld8-ref +The recommended is `arm-linux-gnueabihf-` for 32bit SoCs, +`aarch64-linux-gnu-` for 64bit SoCs, but you may wish to change it to use your +favorite compiler. -PH1-Pro4 reference board: - $ make uniphier_pro4_defconfig - $ make CROSS_COMPILE=arm-linux-gnueabi- +The following tables show and for each board. -PH1-Pro4 Ace board: - $ make uniphier_pro4_defconfig - $ make CROSS_COMPILE=arm-linux-gnueabi- DEVICE_TREE=uniphier-ph1-pro4-ace +32bit SoC boards: -PH1-Pro4 Sanji board: - $ make uniphier_pro4_defconfig - $ make CROSS_COMPILE=arm-linux-gnueabi- DEVICE_TREE=uniphier-ph1-pro4-sanji + Board | | +---------------|------------------------------|------------------------------ +sLD3 reference | uniphier_sld3_defconfig | uniphier-sld3-ref (default) +LD4 reference | uniphier_ld4_sld8_defconfig | uniphier-ld4-ref (default) +sld8 reference | uniphier_ld4_sld8_defconfig | uniphier-sld8-def +Pro4 reference | uniphier_pro4_defconfig | uniphier-pro4-ref (default) +Pro4 Ace | uniphier_pro4_defconfig | uniphier-pro4-ace +Pro4 Sanji | uniphier_pro4_defconfig | uniphier-pro4-sanji +Pro5 4KBOX | uniphier_pxs2_ld6b_defconfig | uniphier-pro5-4kbox +PXs2 Gentil | uniphier_pxs2_ld6b_defconfig | uniphier-pxs2-gentil +PXs2 Vodka | uniphier_pxs2_ld6b_defconfig | uniphier-pxs2-vodka (default) +LD6b reference | uniphier_pxs2_ld6b_defconfig | uniphier-ld6b-ref -PH1-Pro5 4KBOX Board: - $ make uniphier_pxs2_ld6b_defconfig - $ make CROSS_COMPILE=arm-linux-gnueabi- DEVICE_TREE=uniphier-ph1-pro5-4kbox +64bit SoC boards: -ProXstream2 Gentil board: - $ make uniphier_pxs2_ld6b_defconfig - $ make CROSS_COMPILE=arm-linux-gnueabi- DEVICE_TREE=uniphier-proxstream2-gentil + Board | | +---------------|-----------------------|---------------------------- +LD11 reference | uniphier_v8_defconfig | uniphier-ld11-ref +LD11 Global | uniphier_v8_defconfig | uniphier-ld11-global +LD20 reference | uniphier_v8_defconfig | uniphier-ld20-ref (default) +LD20 Global | uniphier_v8_defconfig | uniphier-ld20-global + +For example, to compile the source for PXs2 Vodka board, run the following: -ProXstream2 Vodka board: $ make uniphier_pxs2_ld6b_defconfig - $ make CROSS_COMPILE=arm-linux-gnueabi- + $ make CROSS_COMPILE=arm-linux-gnueabihf- DEVICE_TREE=uniphier-pxs2-vodka + +The device tree marked as (default) can be omitted. `uniphier-pxs2-vodka` is +the default device tree for the configuration `uniphier_pxs2_ld6b_defconfig`, +so the following gives the same result. -PH1-LD6b reference board: $ make uniphier_pxs2_ld6b_defconfig - $ make CROSS_COMPILE=arm-linux-gnueabi- DEVICE_TREE=uniphier-ph1-ld6b-ref + $ make CROSS_COMPILE=arm-linux-gnueabihf- -You may wish to change the "CROSS_COMPILE=arm-linux-gnueabi-" -to use your favorite compiler. +Booting 32bit SoC boards +------------------------ -Burn U-Boot images to NAND --------------------------- +The build command will generate the following: +- u-boot.bin +- spl/u-boot.bin -Write the following to the NAND device: +U-Boot can boot UniPhier 32bit SoC boards by itself. Flash the generated images +to the storage device (NAND or eMMC) on your board. - spl/u-boot-spl.bin at the offset address 0x00000000 - - u-boot.bin at the offset address 0x00010000 + - u-boot.bin at the offset address 0x00020000 -or +The `u-boot-with-spl.bin` is the concatenation of the two (with appropriate +padding), so you can also do: - u-boot-with-spl.bin at the offset address 0x00000000 If a TFTP server is available, the images can be easily updated. Just copy the u-boot-spl.bin and u-boot.bin to the TFTP public directory, -and then run the following command at the U-Boot command line: +and run the following command at the U-Boot command line: - => run nandupdate +To update the images in NAND: + => run nandupdate -Burn U-Boot images to eMMC --------------------------- +To update the images in eMMC: -Write the following to the Boot partition 1 of the eMMC device: + => run emmcupdate - - spl/u-boot-spl.bin at the offset address 0x00000000 - - u-boot.bin at the offset address 0x00010000 -or +Booting 64bit SoC boards +------------------------ - - u-boot-with-spl.bin at the offset address 0x00000000 +The build command will generate the following: +- u-boot.bin -If a TFTP server is available, the images can be easily updated. -Just copy the u-boot-spl.bin and u-boot.bin to the TFTP public directory, -and then run the following command at the U-Boot command line: +However, U-Boot is not the first stage loader for UniPhier 64bit SoC boards. +U-Boot serves as a non-secure boot loader loaded by [ARM Trusted Firmware], +so you need to provide the `u-boot.bin` to the build command of ARM Trusted +Firmware. - => run emmcupdate +[ARM Trusted Firmware]: https://github.com/ARM-software/arm-trusted-firmware UniPhier specific commands @@ -119,6 +116,9 @@ UniPhier specific commands - ddrphy (enabled by CONFIG_CMD_DDRPHY_DUMP) shows the DDR PHY parameters set by the PHY training + - ddrmphy (enabled by CONFIG_CMD_DDRMPHY_DUMP) + shows the DDR Multi PHY parameters set by the PHY training + Supported devices ----------------- @@ -179,4 +179,4 @@ newer SoCs. Even if it is, EA[25] is not connected on most of the boards. -- Masahiro Yamada -Feb. 2016 +Jul. 2017