README 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269
  1. Intro:
  2. ======
  3. The SBC8548 is a stand alone single board computer with a 1GHz
  4. MPC8548 CPU, 8MB boot flash, 64MB user flash and, 256MB DDR2 400MHz
  5. memory. It also has 128MB SDRAM 100MHz LBC memory, with both a PCI-e,
  6. and a PCI-X slot, dual mini-DB9 for UART, and dual RJ-45 for eTSEC
  7. ethernet connections.
  8. U-Boot Configuration:
  9. =====================
  10. The following possible U-Boot configuration targets are available:
  11. 1) sbc8548_config
  12. 2) sbc8548_PCI_33_config
  13. 3) sbc8548_PCI_66_config
  14. 4) sbc8548_PCI_33_PCIE_config
  15. 5) sbc8548_PCI_66_PCIE_config
  16. Generally speaking, most people should choose to use #5. Details
  17. of each choice are listed below.
  18. Choice #1 does not enable CONFIG_PCI, and assumes that the PCI slot
  19. will be left empty (M66EN high), and so the board will operate with
  20. a base clock of 66MHz. Note that you need both PCI enabled in U-Boot
  21. and linux in order to have functional PCI under linux.
  22. The second enables PCI support and builds for a 33MHz clock rate. Note
  23. that if a 33MHz 32bit card is inserted in the slot, then the whole board
  24. will clock down to a 33MHz base clock instead of the default 66MHz. This
  25. will change the baud clocks and mess up your serial console output if you
  26. were previously running at 66MHz. If you want to use a 33MHz PCI card,
  27. then you should build a U-Boot with a _PCI_33_ config and store this
  28. to flash prior to powering down the board and inserting the 33MHz PCI
  29. card. [The above discussion assumes that the SW2[1-4] has not been changed
  30. to reflect a different CCB:SYSCLK ratio]
  31. The third option builds PCI support in, and leaves the clocking at the
  32. default 66MHz. Options four and five are just repeats of option two
  33. and three, but with PCI-e support enabled as well.
  34. PCI output listing with an intel e1000 PCI-x and a Syskonnect SK-9Exx
  35. is shown below for sbc8548_PCI_66_PCIE_config. (Note that PCI-e with
  36. a 33MHz PCI configuration is currently untested.)
  37. => pci 0
  38. Scanning PCI devices on bus 0
  39. BusDevFun VendorId DeviceId Device Class Sub-Class
  40. _____________________________________________________________
  41. 00.00.00 0x1057 0x0012 Processor 0x20
  42. 00.01.00 0x8086 0x1026 Network controller 0x00
  43. => pci 1
  44. Scanning PCI devices on bus 1
  45. BusDevFun VendorId DeviceId Device Class Sub-Class
  46. _____________________________________________________________
  47. 01.00.00 0x1957 0x0012 Processor 0x20
  48. => pci 2
  49. Scanning PCI devices on bus 2
  50. BusDevFun VendorId DeviceId Device Class Sub-Class
  51. _____________________________________________________________
  52. 02.00.00 0x1148 0x9e00 Network controller 0x00
  53. =>
  54. Memory Size and using SPD:
  55. ==========================
  56. The default configuration uses hard coded memory configuration settings
  57. for 256MB of DDR2 @400MHz. It does not by default use the DDR2 SPD
  58. EEPROM data to read what memory is installed.
  59. There is a hardware errata, which causes the older local bus SDRAM
  60. SPD EEPROM to land at the same address as the DDR2 SPD EEPROM, so
  61. that the SPD data can not be read reliably. You can test if your
  62. board has the errata fix by running "i2c probe". If you see 0x53
  63. as a valid device, it has been fixed. If you only see 0x50, 0x51
  64. then your board does not have the fix.
  65. You can also visually inspect the board to see if this hardware
  66. fix has been applied:
  67. 1) Remove R314 (RES-R0174-033, 1K, 0603). R314 is located on
  68. the back of the PCB behind the DDR SDRAM SODIMM connector.
  69. 2) Solder RES-R0174-033 (1K, 0603) resistor from R314 pin 2 pad
  70. to R313 pin 2. Pin 2 for each resistor is the end of the
  71. resistor closest to the CPU.
  72. Boards without the mod will have R314 and R313 in parallel, like "||".
  73. After the mod, they will be touching and form an "L" shape.
  74. If you want to upgrade to larger RAM size, you can simply enable
  75. #define CONFIG_SPD_EEPROM
  76. #define CONFIG_DDR_SPD
  77. in include/configs/sbc8548.h file. (The lines are already there
  78. but listed as #undef).
  79. If you did the i2c test, and your board does not have the errata
  80. fix, then you will have to physically remove the LBC 128MB DIMM
  81. from the board's socket to resolve the above i2c address overlap
  82. issue and allow SPD autodetection of RAM to work.
  83. Updating U-Boot with U-Boot:
  84. ============================
  85. Note that versions of U-Boot up to and including 2009.08 had U-Boot stored
  86. at 0xfff8_0000 -> 0xffff_ffff (512k). Currently it is being stored from
  87. 0xfffa_0000 -> 0xffff_ffff (384k). If you use an old macro/script to
  88. update U-Boot with U-Boot and it uses the old address, you will render
  89. your board inoperable, and you will require JTAG recovery.
  90. The following steps list how to update with the current address:
  91. tftp u-boot.bin
  92. md 200000 10
  93. protect off all
  94. erase fffa0000 ffffffff
  95. cp.b 200000 fffa0000 60000
  96. md fffa0000 10
  97. protect on all
  98. The "md" steps in the above are just a precautionary step that allow
  99. you to confirm the U-Boot version that was downloaded, and then confirm
  100. that it was copied to flash.
  101. The above assumes that you are using the default board settings which
  102. have U-Boot in the 8MB flash, tied to /CS0.
  103. If you are running the default 8MB /CS0 settings but want to store an
  104. image in the SODIMM that is built with CONFIG_SYS_ALT_BOOT enabled,
  105. (as a backup, etc) then the steps will become:
  106. tftp u-boot.bin
  107. md 200000 10
  108. protect off all
  109. era eff00000 efffffff
  110. cp.b 200000 eff00000 100000
  111. md eff00000 10
  112. protect on all
  113. Finally, if you are running the alternate 64MB /CS0 settings and want
  114. to update the in-use U-Boot image, then (again with CONFIG_SYS_ALT_BOOT
  115. enabled) the steps will become:
  116. tftp u-boot.bin
  117. md 200000 10
  118. protect off all
  119. era fff00000 ffffffff
  120. cp.b 200000 fff00000 100000
  121. md fff00000 10
  122. protect on all
  123. Hardware Reference:
  124. ===================
  125. The following contains some summary information on hardware settings
  126. that are relevant to U-Boot, based on the board manual. For the
  127. most up to date and complete details of the board, please request the
  128. reference manual ERG-00327-001.pdf from www.windriver.com
  129. Boot flash:
  130. intel V28F640Jx, 8192x8 (one device) at 0xff80_0000
  131. Sodimm flash:
  132. intel V28F128Jx, 16384x8 (4 devices) at 0xfb80_0000
  133. Note that this address reflects the default setting for
  134. the JTAG debugging tools, but since the alignment is
  135. rather inconvenient, U-Boot puts it at 0xec00_0000.
  136. Jumpers:
  137. Jumper Name ON OFF
  138. ----------------------------------------------------------------
  139. JP12 CS0/CS6 swap see note[*] see note[*]
  140. JP13 SODIMM flash write OK writes disabled
  141. write prot.
  142. JP14 HRESET/TRST joined isolated
  143. JP15 PWR ON when AC pwr use S1 for on/off
  144. JP16 Demo LEDs lit not lit
  145. JP19 PCI mode PCI PCI-X
  146. [*]JP12, when jumpered parallel to the SODIMM, puts the boot flash
  147. onto /CS0 and the SODIMM flash on /CS6 (default). When JP12
  148. is jumpered parallel to the LBC-SDRAM, then /CS0 is for the
  149. SODIMM flash and /CS6 is for the boot flash. Note that in this
  150. alternate setting, you also need to switch SW2.8 to ON.
  151. See the setting CONFIG_SYS_ALT_BOOT if you want to use this setting
  152. and boot U-Boot from the 64MB SODIMM
  153. Switches:
  154. The defaults are marked with a *
  155. Name Desc. ON OFF
  156. ------------------------------------------------------------------
  157. S1 Pwr toggle n/a n/a
  158. SW2.1 CFG_SYS_PLL0 1 0*
  159. SW2.2 CFG_SYS_PLL1 1* 0
  160. SW2.3 CFG_SYS_PLL2 1* 0
  161. SW2.4 CFG_SYS_PLL3 1 0*
  162. SW2.5 CFG_CORE_PLL0 1* 0
  163. SW2.6 CFG_CORE_PLL1 1 0*
  164. SW2.7 CFG_CORE_PLL2 1* 0
  165. SW2.8 CFG_ROM_LOC1 1 0*
  166. SW3.1 CFG_HOST_AGT0 1* 0
  167. SW3.2 CFG_HOST_AGT1 1* 0
  168. SW3.3 CFG_HOST_AGT2 1* 0
  169. SW3.4 CFG_IO_PORTS0 1* 0
  170. SW3.5 CFG_IO_PORTS0 1 0*
  171. SW3.6 CFG_IO_PORTS0 1 0*
  172. SerDes CLK(MHz) SW5.1 SW5.2
  173. ----------------------------------------------
  174. 25 0 0
  175. 100* 1 0
  176. 125 0 1
  177. 200 1 1
  178. SerDes CLK spread SW5.3 SW5.4
  179. ----------------------------------------------
  180. +/- 0.25% 0 0
  181. -0.50% 1 0
  182. -0.75% 0 1
  183. No Spread* 1 1
  184. SW4 settings are readable from the EPLD and are currently not used for
  185. any hardware settings (i.e. user configuration switches).
  186. LEDs:
  187. Name Desc. ON OFF
  188. ------------------------------------------------------------------
  189. D13 PCI/PCI-X PCI-X PCI
  190. D14 3.3V PWR 3.3V no power
  191. D15 SYSCLK 66MHz 33MHz
  192. Default Memory Map:
  193. start end CS<n> width Desc.
  194. ----------------------------------------------------------------------
  195. 0000_0000 0fff_ffff MCS0,1 64 DDR2 (256MB)
  196. f000_0000 f7ff_ffff CS3,4 32 LB SDRAM (128MB)
  197. f800_0000 f8b0_1fff CS5 - EPLD
  198. fb80_0000 ff7f_ffff CS6 32 SODIMM flash (64MB) [*]
  199. ff80_0000 ffff_ffff CS0 8 Boot flash (8MB)
  200. [*] fb80 represents the default programmed by WR JTAG register files,
  201. but U-Boot places the flash at either ec00 or fc00 based on JP12.
  202. The EPLD on CS5 demuxes the following devices at the following offsets:
  203. offset size width device
  204. --------------------------------------------------------
  205. 0 1fff 8 7 segment display LED
  206. 10_0000 1fff 4 user switches
  207. 30_0000 1fff 4 HW Rev. register
  208. b0_0000 1fff 8 8kB EEPROM