doc: uniphier: rework README.uniphier
Rework the readme to reflect the latest boot mechanism on ARMv8 SoCs. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
This commit is contained in:
parent
ee8d037ce7
commit
673ac334fc
@ -5,7 +5,7 @@ U-Boot for UniPhier SoC family
|
|||||||
Recommended toolchains
|
Recommended toolchains
|
||||||
----------------------
|
----------------------
|
||||||
|
|
||||||
The UniPhir platform is well tested with Linaro toolchanis.
|
The UniPhier platform is well tested with Linaro toolchains.
|
||||||
You can download pre-built toolchains from:
|
You can download pre-built toolchains from:
|
||||||
|
|
||||||
http://www.linaro.org/downloads/
|
http://www.linaro.org/downloads/
|
||||||
@ -14,99 +14,99 @@ You can download pre-built toolchains from:
|
|||||||
Compile the source
|
Compile the source
|
||||||
------------------
|
------------------
|
||||||
|
|
||||||
sLD3 reference board:
|
The source can be configured and built with the following commands:
|
||||||
$ make uniphier_sld3_defconfig
|
|
||||||
$ make CROSS_COMPILE=arm-linux-gnueabihf-
|
|
||||||
|
|
||||||
LD4 reference board:
|
$ make <defconfig>
|
||||||
$ make uniphier_ld4_sld8_defconfig
|
$ make CROSS_COMPILE=<toolchain-prefix> DEVICE_TREE=<device-tree>
|
||||||
$ make CROSS_COMPILE=arm-linux-gnueabihf-
|
|
||||||
|
|
||||||
sLD8 reference board:
|
The recommended <toolchain-prefix> is `arm-linux-gnueabihf-` for 32bit SoCs,
|
||||||
$ make uniphier_ld4_sld8_defconfig
|
`aarch64-linux-gnu-` for 64bit SoCs, but you may wish to change it to use your
|
||||||
$ make CROSS_COMPILE=arm-linux-gnueabihf- DEVICE_TREE=uniphier-sld8-ref
|
favorite compiler.
|
||||||
|
|
||||||
Pro4 reference board:
|
The following tables show <defconfig> and <device-tree> for each board.
|
||||||
$ make uniphier_pro4_defconfig
|
|
||||||
$ make CROSS_COMPILE=arm-linux-gnueabihf-
|
|
||||||
|
|
||||||
Pro4 Ace board:
|
32bit SoC boards:
|
||||||
$ make uniphier_pro4_defconfig
|
|
||||||
$ make CROSS_COMPILE=arm-linux-gnueabihf- DEVICE_TREE=uniphier-pro4-ace
|
|
||||||
|
|
||||||
Pro4 Sanji board:
|
Board | <defconfig> | <device-tree>
|
||||||
$ make uniphier_pro4_defconfig
|
---------------|------------------------------|------------------------------
|
||||||
$ make CROSS_COMPILE=arm-linux-gnueabihf- DEVICE_TREE=uniphier-pro4-sanji
|
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
|
||||||
|
|
||||||
|
64bit SoC boards:
|
||||||
|
|
||||||
|
Board | <defconfig> | <device-tree>
|
||||||
|
---------------|-----------------------|----------------------------
|
||||||
|
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:
|
||||||
|
|
||||||
Pro5 4KBOX Board:
|
|
||||||
$ make uniphier_pxs2_ld6b_defconfig
|
$ make uniphier_pxs2_ld6b_defconfig
|
||||||
$ make CROSS_COMPILE=arm-linux-gnueabihf- DEVICE_TREE=uniphier-pro5-4kbox
|
$ make CROSS_COMPILE=arm-linux-gnueabihf- DEVICE_TREE=uniphier-pxs2-vodka
|
||||||
|
|
||||||
PXs2 Gentil board:
|
The device tree marked as (default) can be omitted. `uniphier-pxs2-vodka` is
|
||||||
$ make uniphier_pxs2_ld6b_defconfig
|
the default device tree for the configuration `uniphier_pxs2_ld6b_defconfig`,
|
||||||
$ make CROSS_COMPILE=arm-linux-gnueabihf- DEVICE_TREE=uniphier-pxs2-gentil
|
so the following gives the same result.
|
||||||
|
|
||||||
PXs2 Vodka board:
|
|
||||||
$ make uniphier_pxs2_ld6b_defconfig
|
$ make uniphier_pxs2_ld6b_defconfig
|
||||||
$ make CROSS_COMPILE=arm-linux-gnueabihf-
|
$ make CROSS_COMPILE=arm-linux-gnueabihf-
|
||||||
|
|
||||||
LD6b reference board:
|
|
||||||
$ make uniphier_pxs2_ld6b_defconfig
|
|
||||||
$ make CROSS_COMPILE=arm-linux-gnueabihf- DEVICE_TREE=uniphier-ld6b-ref
|
|
||||||
|
|
||||||
LD11 reference board:
|
Booting 32bit SoC boards
|
||||||
$ make uniphier_v8_defconfig
|
------------------------
|
||||||
$ make CROSS_COMPILE=aarch64-linux-gnu- DEVICE_TREE=uniphier-ld11-ref
|
|
||||||
|
|
||||||
LD20 reference board:
|
The build command will generate the following:
|
||||||
$ make uniphier_v8_defconfig
|
- u-boot.bin
|
||||||
$ make CROSS_COMPILE=aarch64-linux-gnu-
|
- spl/u-boot.bin
|
||||||
|
|
||||||
PXs3 reference board:
|
U-Boot can boot UniPhier 32bit SoC boards by itself. Flash the generated images
|
||||||
$ make uniphier_v8_defconfig
|
to the storage device (NAND or eMMC) on your board.
|
||||||
$ make CROSS_COMPILE=aarch64-linux-gnu- DEVICE_TREE=uniphier-pxs3-ref
|
|
||||||
|
|
||||||
You may wish to change the "CROSS_COMPILE=..." to use your favorite compiler.
|
|
||||||
|
|
||||||
|
|
||||||
Burn U-Boot images to NAND
|
|
||||||
--------------------------
|
|
||||||
|
|
||||||
Write the following to the NAND device:
|
|
||||||
|
|
||||||
- spl/u-boot-spl.bin at the offset address 0x00000000
|
- spl/u-boot-spl.bin at the offset address 0x00000000
|
||||||
- u-boot.bin at the offset address 0x00020000
|
- 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
|
- u-boot-with-spl.bin at the offset address 0x00000000
|
||||||
|
|
||||||
If a TFTP server is available, the images can be easily updated.
|
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,
|
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:
|
||||||
|
|
||||||
|
To update the images in NAND:
|
||||||
|
|
||||||
=> run nandupdate
|
=> run nandupdate
|
||||||
|
|
||||||
|
To update the images in eMMC:
|
||||||
Burn U-Boot images to eMMC
|
|
||||||
--------------------------
|
|
||||||
|
|
||||||
Write the following to the Boot partition 1 of the eMMC device:
|
|
||||||
|
|
||||||
- spl/u-boot-spl.bin at the offset address 0x00000000
|
|
||||||
- u-boot.bin at the offset address 0x00020000
|
|
||||||
|
|
||||||
or
|
|
||||||
|
|
||||||
- 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:
|
|
||||||
|
|
||||||
=> run emmcupdate
|
=> run emmcupdate
|
||||||
|
|
||||||
|
|
||||||
|
Booting 64bit SoC boards
|
||||||
|
------------------------
|
||||||
|
|
||||||
|
The build command will generate the following:
|
||||||
|
- u-boot.bin
|
||||||
|
|
||||||
|
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.
|
||||||
|
|
||||||
|
[ARM Trusted Firmware]: https://github.com/ARM-software/arm-trusted-firmware
|
||||||
|
|
||||||
|
|
||||||
UniPhier specific commands
|
UniPhier specific commands
|
||||||
--------------------------
|
--------------------------
|
||||||
|
|
||||||
@ -179,4 +179,4 @@ newer SoCs. Even if it is, EA[25] is not connected on most of the boards.
|
|||||||
|
|
||||||
--
|
--
|
||||||
Masahiro Yamada <yamada.masahiro@socionext.com>
|
Masahiro Yamada <yamada.masahiro@socionext.com>
|
||||||
Jan. 2017
|
Jul. 2017
|
||||||
|
Loading…
Reference in New Issue
Block a user