Liu Gang | b452693 | 2012-03-08 00:33:16 +0000 | [diff] [blame] | 1 | ------------------------------ |
| 2 | SRIO Boot on Corenet Platforms |
| 3 | ------------------------------ |
| 4 | |
| 5 | For some PowerPC processors with SRIO interface, boot location can be configured |
| 6 | to SRIO by RCW. The processor booting from SRIO can do without flash for u-boot |
| 7 | image, ucode and ENV. All the images can be fetched from another processor's |
| 8 | memory space by SRIO link connected between them. |
| 9 | |
| 10 | This document describes the processes based on an example implemented on P4080DS |
| 11 | platforms and a RCW example with boot from SRIO configuration. |
| 12 | |
| 13 | Environment of the SRIO boot: |
| 14 | a) Master and slave can be SOCs in one board or SOCs in separate boards. |
| 15 | b) They are connected with SRIO links, whether 1x or 4x, and directly or |
| 16 | through switch system. |
| 17 | c) Only Master has NorFlash for booting, and all the Master's and Slave's |
| 18 | U-Boot images, UCodes will be stored in this flash. |
| 19 | d) Slave has its own EEPROM for RCW and PBI. |
| 20 | e) Slave's RCW should configure the SerDes for SRIO boot port, set the boot |
Liu Gang | 718a761 | 2012-08-09 05:09:58 +0000 | [diff] [blame] | 21 | location to SRIO, and holdoff all the cores. |
Liu Gang | b452693 | 2012-03-08 00:33:16 +0000 | [diff] [blame] | 22 | |
| 23 | ---------- ----------- ----------- |
| 24 | | | | | | | |
| 25 | | | | | | | |
| 26 | | NorFlash|<----->| Master | SRIO | Slave |<---->[EEPROM] |
| 27 | | | | |<===========>| | |
| 28 | | | | | | | |
| 29 | ---------- ----------- ----------- |
| 30 | |
| 31 | The example based on P4080DS platform: |
| 32 | Two P4080DS platforms can be used to implement the boot from SRIO. Their SRIO |
Liu Gang | 718a761 | 2012-08-09 05:09:58 +0000 | [diff] [blame] | 33 | ports 1 will be connected directly and will be used for the boot from SRIO. |
Liu Gang | b452693 | 2012-03-08 00:33:16 +0000 | [diff] [blame] | 34 | |
Liu Gang | 718a761 | 2012-08-09 05:09:58 +0000 | [diff] [blame] | 35 | 1. Slave's RCW example for boot from SRIO port 1 and all cores in holdoff. |
Liu Gang | b452693 | 2012-03-08 00:33:16 +0000 | [diff] [blame] | 36 | 00000000: aa55 aa55 010e 0100 0c58 0000 0000 0000 |
| 37 | 00000010: 1818 1818 0000 8888 7440 4000 0000 2000 |
Liu Gang | b452693 | 2012-03-08 00:33:16 +0000 | [diff] [blame] | 38 | 00000020: f440 0000 0100 0000 0000 0000 0000 0000 |
| 39 | 00000030: 0000 0000 0083 0000 0000 0000 0000 0000 |
| 40 | 00000040: 0000 0000 0000 0000 0813 8040 063c 778f |
| 41 | |
Liu Gang | 718a761 | 2012-08-09 05:09:58 +0000 | [diff] [blame] | 42 | 2. Sequence in Step by Step. |
| 43 | a) Update RCW for slave with boot from SRIO port 1 configuration. |
Liu Gang | b452693 | 2012-03-08 00:33:16 +0000 | [diff] [blame] | 44 | b) Program slave's U-Boot image, UCode, and ENV parameters into master's |
| 45 | NorFlash. |
Liu Gang | 718a761 | 2012-08-09 05:09:58 +0000 | [diff] [blame] | 46 | c) Set environment variable "bootmaster" to "SRIO1" and save environment |
| 47 | for master. |
| 48 | setenv bootmaster SRIO1 |
| 49 | saveenv |
| 50 | d) Restart up master and it will boot up normally from its NorFlash. |
Liu Gang | b452693 | 2012-03-08 00:33:16 +0000 | [diff] [blame] | 51 | Then, it will finish necessary configurations for slave's boot from |
Liu Gang | 718a761 | 2012-08-09 05:09:58 +0000 | [diff] [blame] | 52 | SRIO port 1. |
| 53 | e) Master will set inbound SRIO windows covered slave's U-Boot image stored |
Liu Gang | b452693 | 2012-03-08 00:33:16 +0000 | [diff] [blame] | 54 | in master's NorFlash. |
Liu Gang | 718a761 | 2012-08-09 05:09:58 +0000 | [diff] [blame] | 55 | f) Master will set an inbound SRIO window covered slave's UCode and ENV |
| 56 | stored in master's NorFlash. |
| 57 | g) Master will set outbound SRIO windows in order to configure slave's |
| 58 | registers for the core's releasing. |
| 59 | h) Since all cores of slave in holdoff, slave should be powered on before all |
| 60 | the above master's steps, and wait to be released by master. In the |
| 61 | startup phase of the slave from SRIO, it will finish some necessary |
| 62 | configurations. |
Liu Gang | b452693 | 2012-03-08 00:33:16 +0000 | [diff] [blame] | 63 | i) Slave will set a specific TLB entry for the boot process. |
Liu Gang | 718a761 | 2012-08-09 05:09:58 +0000 | [diff] [blame] | 64 | j) Slave will set a LAW entry with the TargetID SRIO port 1 for the boot. |
Liu Gang | b452693 | 2012-03-08 00:33:16 +0000 | [diff] [blame] | 65 | k) Slave will set a specific TLB entry in order to fetch UCode and ENV |
| 66 | from master. |
Liu Gang | 718a761 | 2012-08-09 05:09:58 +0000 | [diff] [blame] | 67 | l) Slave will set a LAW entry with the TargetID SRIO port 1 for UCode and ENV. |
Liu Gang | b452693 | 2012-03-08 00:33:16 +0000 | [diff] [blame] | 68 | |
| 69 | How to use this feature: |
Liu Gang | 718a761 | 2012-08-09 05:09:58 +0000 | [diff] [blame] | 70 | To use this feature, you need to focus those points. |
Liu Gang | b452693 | 2012-03-08 00:33:16 +0000 | [diff] [blame] | 71 | |
| 72 | 1. Slave's RCW with SRIO boot configurations, and all cores in holdoff |
Liu Gang | 718a761 | 2012-08-09 05:09:58 +0000 | [diff] [blame] | 73 | configurations. |
Liu Gang | b452693 | 2012-03-08 00:33:16 +0000 | [diff] [blame] | 74 | Please refer to the examples given above. |
| 75 | |
| 76 | 2. U-Boot image's compilation. |
Liu Gang | 718a761 | 2012-08-09 05:09:58 +0000 | [diff] [blame] | 77 | For master, U-Boot image should be generated normally. |
Liu Gang | b452693 | 2012-03-08 00:33:16 +0000 | [diff] [blame] | 78 | |
| 79 | For example, master U-Boot image used on P4080DS should be compiled with |
| 80 | |
Liu Gang | 718a761 | 2012-08-09 05:09:58 +0000 | [diff] [blame] | 81 | make P4080DS_config. |
Liu Gang | b452693 | 2012-03-08 00:33:16 +0000 | [diff] [blame] | 82 | |
| 83 | For slave, U-Boot image should be generated specifically by |
| 84 | |
| 85 | make xxxx_SRIOBOOT_SLAVE_config. |
| 86 | |
| 87 | For example, slave U-Boot image used on P4080DS should be compiled with |
| 88 | |
| 89 | make P4080DS_SRIOBOOT_SLAVE_config. |
| 90 | |
| 91 | 3. Necessary modifications based on a specific environment. |
Liu Gang | 718a761 | 2012-08-09 05:09:58 +0000 | [diff] [blame] | 92 | For a specific environment, the addresses of the slave's U-Boot image, |
| 93 | UCode, ENV stored in master's NorFlash, and any other configurations |
| 94 | can be modified in the file: |
Liu Gang | b452693 | 2012-03-08 00:33:16 +0000 | [diff] [blame] | 95 | include/configs/corenet_ds.h. |
Liu Gang | 718a761 | 2012-08-09 05:09:58 +0000 | [diff] [blame] | 96 | |
| 97 | 4. Set and save the environment variable "bootmaster" with "SRIO1" or "SRIO2" |
| 98 | for master, and then restart it in order to perform the role as a master |
| 99 | for boot from SRIO. |