Blame view
doc/README.uniphier
5.11 KB
7168da163
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
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-) 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 ------------------ |
e90b36862
|
30 31 |
PH1-sLD3 reference board: $ make uniphier_sld3_defconfig |
7168da163
|
32 |
$ make CROSS_COMPILE=arm-linux-gnueabi- |
5fd3f4346
|
33 34 |
PH1-LD4 reference board: $ make uniphier_ld4_sld8_defconfig |
7168da163
|
35 |
$ make CROSS_COMPILE=arm-linux-gnueabi- |
5fd3f4346
|
36 37 38 |
PH1-sLD8 reference board: $ make uniphier_ld4_sld8_defconfig $ make CROSS_COMPILE=arm-linux-gnueabi- DEVICE_TREE=uniphier-ph1-sld8-ref |
e90b36862
|
39 40 |
PH1-Pro4 reference board: $ make uniphier_pro4_defconfig |
3365b4eb5
|
41 |
$ make CROSS_COMPILE=arm-linux-gnueabi- |
c6c7eed74
|
42 43 44 45 46 47 48 |
PH1-Pro4 Ace board: $ make uniphier_pro4_defconfig $ make CROSS_COMPILE=arm-linux-gnueabi- DEVICE_TREE=uniphier-ph1-pro4-ace PH1-Pro4 Sanji board: $ make uniphier_pro4_defconfig $ make CROSS_COMPILE=arm-linux-gnueabi- DEVICE_TREE=uniphier-ph1-pro4-sanji |
e90b36862
|
49 |
PH1-Pro5 4KBOX Board: |
fe7c95ee5
|
50 51 |
$ make uniphier_pxs2_ld6b_defconfig $ make CROSS_COMPILE=arm-linux-gnueabi- DEVICE_TREE=uniphier-ph1-pro5-4kbox |
28f40d4a4
|
52 |
|
1a2645341
|
53 54 55 |
ProXstream2 Gentil board: $ make uniphier_pxs2_ld6b_defconfig $ make CROSS_COMPILE=arm-linux-gnueabi- DEVICE_TREE=uniphier-proxstream2-gentil |
019df879a
|
56 |
|
1a2645341
|
57 58 |
ProXstream2 Vodka board: $ make uniphier_pxs2_ld6b_defconfig |
019df879a
|
59 |
$ make CROSS_COMPILE=arm-linux-gnueabi- |
1a2645341
|
60 61 62 |
PH1-LD6b reference board: $ make uniphier_pxs2_ld6b_defconfig $ make CROSS_COMPILE=arm-linux-gnueabi- DEVICE_TREE=uniphier-ph1-ld6b-ref |
7168da163
|
63 64 65 66 67 68 |
You may wish to change the "CROSS_COMPILE=arm-linux-gnueabi-" to use your favorite compiler. Burn U-Boot images to NAND -------------------------- |
d085ecd61
|
69 |
Write the following to the NAND device: |
3cb9abc9c
|
70 |
- spl/u-boot-spl.bin at the offset address 0x00000000 |
d085ecd61
|
71 72 73 74 75 |
- u-boot.bin at the offset address 0x00010000 or - u-boot-with-spl.bin at the offset address 0x00000000 |
7168da163
|
76 77 |
If a TFTP server is available, the images can be easily updated. |
d085ecd61
|
78 |
Just copy the u-boot-spl.bin and u-boot.bin to the TFTP public directory, |
95a2d438c
|
79 |
and then run the following command at the U-Boot command line: |
7168da163
|
80 81 |
=> run nandupdate |
c231c4367
|
82 83 |
Burn U-Boot images to eMMC -------------------------- |
d085ecd61
|
84 |
Write the following to the Boot partition 1 of the eMMC device: |
c231c4367
|
85 |
- spl/u-boot-spl.bin at the offset address 0x00000000 |
d085ecd61
|
86 87 88 89 90 |
- u-boot.bin at the offset address 0x00010000 or - u-boot-with-spl.bin at the offset address 0x00000000 |
c231c4367
|
91 92 |
If a TFTP server is available, the images can be easily updated. |
d085ecd61
|
93 |
Just copy the u-boot-spl.bin and u-boot.bin to the TFTP public directory, |
95a2d438c
|
94 |
and then run the following command at the U-Boot command line: |
c231c4367
|
95 96 |
=> run emmcupdate |
7168da163
|
97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 |
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 Supported devices ----------------- - UART (on-chip) - NAND |
a111bfbfa
|
112 |
- SD/eMMC |
1e7df7c4e
|
113 114 |
- USB 2.0 (EHCI) - USB 3.0 (xHCI) |
b9a66b63b
|
115 |
- GPIO |
7168da163
|
116 117 118 119 |
- LAN (on-board SMSC9118) - I2C - EEPROM (connected to the on-board I2C bus) - Support card (SRAM, NOR flash, some peripherals) |
62102bee1
|
120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 |
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 ------------------------------------------ |
e69514cc7
|
138 |
bit 1 <---- CS1_SPLIT |
62102bee1
|
139 140 141 142 143 144 145 146 147 148 149 150 151 |
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 -------------------------------------------------------------------- |
c57a9a635
|
152 153 154 155 |
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 |
62102bee1
|
156 157 158 159 160 |
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. |
7168da163
|
161 |
-- |
62102bee1
|
162 |
Masahiro Yamada <yamada.masahiro@socionext.com> |
3cb9abc9c
|
163 |
Feb. 2016 |