2015-02-05 05:30:23 +00:00
|
|
|
U-Boot for UniPhier SoC family
|
|
|
|
==============================
|
|
|
|
|
|
|
|
|
2016-10-17 13:20:16 +00:00
|
|
|
Recommended toolchains
|
|
|
|
----------------------
|
2015-02-05 05:30:23 +00:00
|
|
|
|
2016-10-17 13:20:16 +00:00
|
|
|
The UniPhir platform is well tested with Linaro toolchanis.
|
|
|
|
You can download pre-built toolchains from:
|
2015-02-05 05:30:23 +00:00
|
|
|
|
|
|
|
http://www.linaro.org/downloads/
|
|
|
|
|
|
|
|
|
|
|
|
Compile the source
|
|
|
|
------------------
|
|
|
|
|
2016-10-07 07:43:00 +00:00
|
|
|
sLD3 reference board:
|
2015-12-17 09:00:41 +00:00
|
|
|
$ make uniphier_sld3_defconfig
|
2016-10-17 13:20:16 +00:00
|
|
|
$ make CROSS_COMPILE=arm-linux-gnueabihf-
|
2015-02-05 05:30:23 +00:00
|
|
|
|
2016-10-07 07:43:00 +00:00
|
|
|
LD4 reference board:
|
2015-12-17 09:00:39 +00:00
|
|
|
$ make uniphier_ld4_sld8_defconfig
|
2016-10-17 13:20:16 +00:00
|
|
|
$ make CROSS_COMPILE=arm-linux-gnueabihf-
|
2015-02-05 05:30:23 +00:00
|
|
|
|
2016-10-07 07:43:00 +00:00
|
|
|
sLD8 reference board:
|
2015-12-17 09:00:39 +00:00
|
|
|
$ make uniphier_ld4_sld8_defconfig
|
2016-10-17 13:20:16 +00:00
|
|
|
$ make CROSS_COMPILE=arm-linux-gnueabihf- DEVICE_TREE=uniphier-sld8-ref
|
2015-12-17 09:00:39 +00:00
|
|
|
|
2016-10-07 07:43:00 +00:00
|
|
|
Pro4 reference board:
|
2015-12-17 09:00:41 +00:00
|
|
|
$ make uniphier_pro4_defconfig
|
2016-10-17 13:20:16 +00:00
|
|
|
$ make CROSS_COMPILE=arm-linux-gnueabihf-
|
2015-07-21 05:04:22 +00:00
|
|
|
|
2016-10-07 07:43:00 +00:00
|
|
|
Pro4 Ace board:
|
2016-03-01 04:10:37 +00:00
|
|
|
$ make uniphier_pro4_defconfig
|
2016-10-17 13:20:16 +00:00
|
|
|
$ make CROSS_COMPILE=arm-linux-gnueabihf- DEVICE_TREE=uniphier-pro4-ace
|
2016-03-01 04:10:37 +00:00
|
|
|
|
2016-10-07 07:43:00 +00:00
|
|
|
Pro4 Sanji board:
|
2016-03-01 04:10:37 +00:00
|
|
|
$ make uniphier_pro4_defconfig
|
2016-10-17 13:20:16 +00:00
|
|
|
$ make CROSS_COMPILE=arm-linux-gnueabihf- DEVICE_TREE=uniphier-pro4-sanji
|
2016-03-01 04:10:37 +00:00
|
|
|
|
2016-10-07 07:43:00 +00:00
|
|
|
Pro5 4KBOX Board:
|
2016-02-26 09:59:41 +00:00
|
|
|
$ make uniphier_pxs2_ld6b_defconfig
|
2016-10-17 13:20:16 +00:00
|
|
|
$ make CROSS_COMPILE=arm-linux-gnueabihf- DEVICE_TREE=uniphier-pro5-4kbox
|
2015-09-21 15:27:40 +00:00
|
|
|
|
2016-10-07 07:43:00 +00:00
|
|
|
PXs2 Gentil board:
|
2015-12-17 09:00:40 +00:00
|
|
|
$ make uniphier_pxs2_ld6b_defconfig
|
2016-10-17 13:20:16 +00:00
|
|
|
$ make CROSS_COMPILE=arm-linux-gnueabihf- DEVICE_TREE=uniphier-pxs2-gentil
|
2015-09-21 15:27:41 +00:00
|
|
|
|
2016-10-07 07:43:00 +00:00
|
|
|
PXs2 Vodka board:
|
2015-12-17 09:00:40 +00:00
|
|
|
$ make uniphier_pxs2_ld6b_defconfig
|
2016-10-17 13:20:16 +00:00
|
|
|
$ make CROSS_COMPILE=arm-linux-gnueabihf-
|
2015-09-21 15:27:41 +00:00
|
|
|
|
2016-10-07 07:43:00 +00:00
|
|
|
LD6b reference board:
|
2015-12-17 09:00:40 +00:00
|
|
|
$ make uniphier_pxs2_ld6b_defconfig
|
2016-10-17 13:20:16 +00:00
|
|
|
$ make CROSS_COMPILE=arm-linux-gnueabihf- DEVICE_TREE=uniphier-ld6b-ref
|
|
|
|
|
|
|
|
LD11 reference board:
|
|
|
|
$ make uniphier_ld11_defconfig
|
|
|
|
$ make CROSS_COMPILE=aarch64-linux-gnu-
|
2015-12-17 09:00:40 +00:00
|
|
|
|
2016-10-17 13:20:16 +00:00
|
|
|
LD20 reference board:
|
|
|
|
$ make uniphier_ld20_defconfig
|
|
|
|
$ make CROSS_COMPILE=aarch64-linux-gnu-
|
|
|
|
|
|
|
|
You may wish to change the "CROSS_COMPILE=..." to use your favorite compiler.
|
2015-02-05 05:30:23 +00:00
|
|
|
|
|
|
|
|
|
|
|
Burn U-Boot images to NAND
|
|
|
|
--------------------------
|
|
|
|
|
2016-03-22 16:40:05 +00:00
|
|
|
Write the following to the NAND device:
|
|
|
|
|
2016-02-02 03:53:31 +00:00
|
|
|
- spl/u-boot-spl.bin at the offset address 0x00000000
|
2016-03-22 16:40:05 +00:00
|
|
|
- u-boot.bin at the offset address 0x00010000
|
|
|
|
|
|
|
|
or
|
|
|
|
|
|
|
|
- u-boot-with-spl.bin at the offset address 0x00000000
|
2015-02-05 05:30:23 +00:00
|
|
|
|
|
|
|
If a TFTP server is available, the images can be easily updated.
|
2016-03-22 16:40:05 +00:00
|
|
|
Just copy the u-boot-spl.bin and u-boot.bin to the TFTP public directory,
|
2016-03-22 16:40:03 +00:00
|
|
|
and then run the following command at the U-Boot command line:
|
2015-02-05 05:30:23 +00:00
|
|
|
|
|
|
|
=> run nandupdate
|
|
|
|
|
|
|
|
|
2016-02-16 08:08:41 +00:00
|
|
|
Burn U-Boot images to eMMC
|
|
|
|
--------------------------
|
|
|
|
|
2016-03-22 16:40:05 +00:00
|
|
|
Write the following to the Boot partition 1 of the eMMC device:
|
|
|
|
|
2016-02-16 08:08:41 +00:00
|
|
|
- spl/u-boot-spl.bin at the offset address 0x00000000
|
2016-03-22 16:40:05 +00:00
|
|
|
- u-boot.bin at the offset address 0x00010000
|
|
|
|
|
|
|
|
or
|
|
|
|
|
|
|
|
- u-boot-with-spl.bin at the offset address 0x00000000
|
2016-02-16 08:08:41 +00:00
|
|
|
|
|
|
|
If a TFTP server is available, the images can be easily updated.
|
2016-03-22 16:40:05 +00:00
|
|
|
Just copy the u-boot-spl.bin and u-boot.bin to the TFTP public directory,
|
2016-03-22 16:40:03 +00:00
|
|
|
and then run the following command at the U-Boot command line:
|
2016-02-16 08:08:41 +00:00
|
|
|
|
|
|
|
=> run emmcupdate
|
|
|
|
|
|
|
|
|
2015-02-05 05:30:23 +00:00
|
|
|
UniPhier specific commands
|
|
|
|
--------------------------
|
|
|
|
|
|
|
|
- pinmon (enabled by CONFIG_CMD_PINMON)
|
|
|
|
shows the boot mode pins that has been latched at the power-on reset
|
|
|
|
|
|
|
|
- ddrphy (enabled by CONFIG_CMD_DDRPHY_DUMP)
|
|
|
|
shows the DDR PHY parameters set by the PHY training
|
|
|
|
|
2016-10-17 13:20:16 +00:00
|
|
|
- ddrmphy (enabled by CONFIG_CMD_DDRMPHY_DUMP)
|
|
|
|
shows the DDR Multi PHY parameters set by the PHY training
|
|
|
|
|
2015-02-05 05:30:23 +00:00
|
|
|
|
|
|
|
Supported devices
|
|
|
|
-----------------
|
|
|
|
|
|
|
|
- UART (on-chip)
|
|
|
|
- NAND
|
2016-02-18 10:52:48 +00:00
|
|
|
- SD/eMMC
|
2015-02-26 17:27:00 +00:00
|
|
|
- USB 2.0 (EHCI)
|
|
|
|
- USB 3.0 (xHCI)
|
2016-02-16 08:03:48 +00:00
|
|
|
- GPIO
|
2015-02-05 05:30:23 +00:00
|
|
|
- LAN (on-board SMSC9118)
|
|
|
|
- I2C
|
|
|
|
- EEPROM (connected to the on-board I2C bus)
|
|
|
|
- Support card (SRAM, NOR flash, some peripherals)
|
|
|
|
|
|
|
|
|
2015-07-21 05:04:24 +00:00
|
|
|
Micro Support Card
|
|
|
|
------------------
|
|
|
|
|
|
|
|
The recommended bit switch settings are as follows:
|
|
|
|
|
|
|
|
SW2 OFF(1)/ON(0) Description
|
|
|
|
------------------------------------------
|
|
|
|
bit 1 <---- BKSZ[0]
|
|
|
|
bit 2 ----> BKSZ[1]
|
|
|
|
bit 3 <---- SoC Bus Width 16/32
|
|
|
|
bit 4 <---- SERIAL_SEL[0]
|
|
|
|
bit 5 ----> SERIAL_SEL[1]
|
|
|
|
bit 6 ----> BOOTSWAP_EN
|
|
|
|
bit 7 <---- CS1/CS5
|
|
|
|
bit 8 <---- SOC_SERIAL_DISABLE
|
|
|
|
|
|
|
|
SW8 OFF(1)/ON(0) Description
|
|
|
|
------------------------------------------
|
2016-01-08 16:51:16 +00:00
|
|
|
bit 1 <---- CS1_SPLIT
|
2015-07-21 05:04:24 +00:00
|
|
|
bit 2 <---- CASE9_ON
|
|
|
|
bit 3 <---- CASE10_ON
|
|
|
|
bit 4 Don't Care Reserve
|
|
|
|
bit 5 Don't Care Reserve
|
|
|
|
bit 6 Don't Care Reserve
|
|
|
|
bit 7 ----> BURST_EN
|
|
|
|
bit 8 ----> FLASHBUS32_16
|
|
|
|
|
|
|
|
The BKSZ[1:0] specifies the address range of memory slot and peripherals
|
|
|
|
as follows:
|
|
|
|
|
|
|
|
BKSZ Description RAM slot Peripherals
|
|
|
|
--------------------------------------------------------------------
|
2015-09-30 12:15:58 +00:00
|
|
|
0b00 15MB RAM / 1MB Peri 00000000-00efffff 00f00000-00ffffff
|
|
|
|
0b01 31MB RAM / 1MB Peri 00000000-01efffff 01f00000-01ffffff
|
|
|
|
0b10 64MB RAM / 1MB Peri 00000000-03efffff 03f00000-03ffffff
|
|
|
|
0b11 127MB RAM / 1MB Peri 00000000-07efffff 07f00000-07ffffff
|
2015-07-21 05:04:24 +00:00
|
|
|
|
|
|
|
Set BSKZ[1:0] to 0b01 for U-Boot.
|
|
|
|
This mode is the most handy because EA[24] is always supported by the save pin
|
|
|
|
mode of the system bus. On the other hand, EA[25] is not supported for some
|
|
|
|
newer SoCs. Even if it is, EA[25] is not connected on most of the boards.
|
|
|
|
|
2015-02-05 05:30:23 +00:00
|
|
|
--
|
2015-07-21 05:04:24 +00:00
|
|
|
Masahiro Yamada <yamada.masahiro@socionext.com>
|
2016-10-17 13:20:16 +00:00
|
|
|
Oct. 2016
|