README.srio-boot-corenet 4.7 KB

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