README 9.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271
  1. Freescale MCF5475EVB ColdFire Development Board
  2. ================================================
  3. TsiChung Liew(Tsi-Chung.Liew@freescale.com)
  4. Created Jan 08, 2008
  5. ===========================================
  6. Changed files:
  7. ==============
  8. - board/freescale/m547xevb/m547xevb.c Dram setup, IDE pre init, and PCI init
  9. - board/freescale/m547xevb/mii.c MII init
  10. - board/freescale/m547xevb/Makefile Makefile
  11. - board/freescale/m547xevb/config.mk config make
  12. - board/freescale/m547xevb/u-boot.lds Linker description
  13. - arch/m68k/cpu/mcf547x_8x/cpu.c cpu specific code
  14. - arch/m68k/cpu/mcf547x_8x/cpu_init.c Flexbus ChipSelect, Mux pins setup, icache and RTC extra regs
  15. - arch/m68k/cpu/mcf547x_8x/interrupts.c cpu specific interrupt support
  16. - arch/m68k/cpu/mcf547x_8x/slicetimer.c Timer support
  17. - arch/m68k/cpu/mcf547x_8x/speed.c system, pci, flexbus, and cpu clock
  18. - arch/m68k/cpu/mcf547x_8x/Makefile Makefile
  19. - arch/m68k/cpu/mcf547x_8x/config.mk config make
  20. - arch/m68k/cpu/mcf547x_8x/start.S start up assembly code
  21. - board/freescale/m547xevb/README This readme file
  22. - drivers/dma/MCD_dmaApi.c DMA API functions
  23. - drivers/dma/MCD_tasks.c DMA Tasks
  24. - drivers/dma/MCD_tasksInit.c DMA Tasks Init
  25. - drivers/net/fsl_mcdmafec.c ColdFire common DMA FEC driver
  26. - drivers/serial/mcfuart.c ColdFire common UART driver
  27. - include/MCD_dma.h DMA header file
  28. - include/MCD_progCheck.h DMA header file
  29. - include/MCD_tasksInit.h DMA header file
  30. - include/asm-m68k/bitops.h Bit operation function export
  31. - include/asm-m68k/byteorder.h Byte order functions
  32. - include/asm-m68k/errno.h Error Number definition
  33. - include/asm-m68k/fec.h FEC structure and definition
  34. - include/asm-m68k/fsl_i2c.h I2C structure and definition
  35. - include/asm-m68k/fsl_mcddmafec.h DMA FEC structure and definition
  36. - include/asm-m68k/global_data.h Global data structure
  37. - include/asm-m68k/immap.h ColdFire specific header file and driver macros
  38. - include/asm-m68k/immap_547x_8x.h mcf547x_8x specific header file
  39. - include/asm-m68k/io.h io functions
  40. - include/asm-m68k/m547x_8x.h mcf547x_8x specific header file
  41. - include/asm-m68k/posix_types.h Posix
  42. - include/asm-m68k/processor.h header file
  43. - include/asm-m68k/ptrace.h Exception structure
  44. - include/asm-m68k/rtc.h Realtime clock header file
  45. - include/asm-m68k/string.h String function export
  46. - include/asm-m68k/timer.h Timer structure and definition
  47. - include/asm-m68k/types.h Data types definition
  48. - include/asm-m68k/uart.h Uart structure and definition
  49. - include/asm-m68k/u-boot.h U-Boot structure
  50. - include/configs/M5475EVB.h Board specific configuration file
  51. - arch/m68k/lib/board.c board init function
  52. - arch/m68k/lib/cache.c
  53. - arch/m68k/lib/interrupts Coldfire common interrupt functions
  54. - arch/m68k/lib/m68k_linux.c
  55. - arch/m68k/lib/traps.c Exception init code
  56. 1 MCF547x specific Options/Settings
  57. ====================================
  58. 1.1 pre-loader is no longer suppoer in thie coldfire family
  59. 1.2 Configuration settings for M5475EVB Development Board
  60. CONFIG_MCF547x_8x -- define for all MCF547x_8x CPUs
  61. CONFIG_M547x -- define for all Freescale MCF547x CPUs
  62. CONFIG_M5475 -- define for M5475EVB board
  63. CONFIG_MCFUART -- define to use common CF Uart driver
  64. CONFIG_SYS_UART_PORT -- define UART port number, start with 0, 1 and 2
  65. CONFIG_BAUDRATE -- define UART baudrate
  66. CONFIG_FSLDMAFEC -- define to use common dma FEC driver
  67. CONFIG_MII -- enable to use MII driver
  68. CONFIG_CF_DOMII -- enable to use MII feature in cmd_mii.c
  69. CONFIG_SYS_DISCOVER_PHY -- enable PHY discovery
  70. CONFIG_SYS_RX_ETH_BUFFER -- Set FEC Receive buffer
  71. CONFIG_SYS_FAULT_ECHO_LINK_DOWN--
  72. CONFIG_SYS_FEC0_PINMUX -- Set FEC0 Pin configuration
  73. CONFIG_SYS_FEC1_PINMUX -- Set FEC1 Pin configuration
  74. CONFIG_SYS_FEC0_MIIBASE -- Set FEC0 MII base register
  75. CONFIG_SYS_FEC1_MIIBASE -- Set FEC0 MII base register
  76. MCFFEC_TOUT_LOOP -- set FEC timeout loop
  77. CONFIG_HAS_ETH1 -- define to enable second FEC in U-Boot
  78. CONFIG_CMD_USB -- enable USB commands
  79. CONFIG_USB_OHCI_NEW -- enable USB OHCI driver
  80. CONFIG_USB_STORAGE -- enable USB Storage device
  81. CONFIG_DOS_PARTITION -- enable DOS read/write
  82. CONFIG_SLTTMR -- define to use SLT timer
  83. CONFIG_SYS_I2C_FSL -- define to use FSL common I2C driver
  84. CONFIG_SYS_I2C_SOFT -- define for I2C bit-banged
  85. CONFIG_SYS_I2C_SPEED -- define for I2C speed
  86. CONFIG_SYS_I2C_SLAVE -- define for I2C slave address
  87. CONFIG_SYS_I2C_OFFSET -- define for I2C base address offset
  88. CONFIG_SYS_IMMR -- define for MBAR offset
  89. CONFIG_PCI -- define for PCI support
  90. CONFIG_PCI_PNP -- define for Plug n play support
  91. CONFIG_SKIPPCI_HOSTBRIDGE -- SKIP PCI Host bridge
  92. CONFIG_SYS_PCI_MEM_BUS -- PCI memory logical offset
  93. CONFIG_SYS_PCI_MEM_PHYS -- PCI memory physical offset
  94. CONFIG_SYS_PCI_MEM_SIZE -- PCI memory size
  95. CONFIG_SYS_PCI_IO_BUS -- PCI IO logical offset
  96. CONFIG_SYS_PCI_IO_PHYS -- PCI IO physical offset
  97. CONFIG_SYS_PCI_IO_SIZE -- PCI IO size
  98. CONFIG_SYS_PCI_CFG_BUS -- PCI Configuration logical offset
  99. CONFIG_SYS_PCI_CFG_PHYS -- PCI Configuration physical offset
  100. CONFIG_SYS_PCI_CFG_SIZE -- PCI Configuration size
  101. CONFIG_SYS_MBAR -- define MBAR offset
  102. CONFIG_MONITOR_IS_IN_RAM -- Not support
  103. CONFIG_SYS_INIT_RAM_ADDR -- defines the base address of the MCF547x internal SRAM
  104. CONFIG_SYS_CSn_BASE -- defines the Chip Select Base register
  105. CONFIG_SYS_CSn_MASK -- defines the Chip Select Mask register
  106. CONFIG_SYS_CSn_CTRL -- defines the Chip Select Control register
  107. CONFIG_SYS_SDRAM_BASE -- defines the DRAM Base
  108. 2. MEMORY MAP UNDER U-BOOT AND LINUX KERNEL
  109. ===========================================
  110. 2.1. System memory map:
  111. Flash: 0xFF800000-0xFFFFFFFF (8MB)
  112. DDR: 0x00000000-0x3FFFFFFF (1024MB)
  113. SRAM: 0xF2000000-0xF2000FFF (4KB)
  114. PCI: 0x70000000-0x8FFFFFFF (512MB)
  115. IP: 0xF0000000-0xFFFFFFFF (256MB)
  116. 3. COMPILATION
  117. ==============
  118. 3.1 To create U-Boot the gcc-4.x compiler set (ColdFire ELF or uclinux
  119. version) from codesourcery.com was used. Download it from:
  120. http://www.codesourcery.com/gnu_toolchains/coldfire/download.html
  121. 3.2 Compilation
  122. export CROSS_COMPILE=cross-compile-prefix
  123. cd u-boot-1.x.x
  124. make distclean
  125. make M5475AFE_config, or - boot 2MB, RAM 64MB
  126. make M5475BFE_config, or - boot 2MB, code 16MB, RAM 64MB
  127. make M5475CFE_config, or - boot 2MB, code 16MB, Video, USB, RAM 64MB
  128. make M5475DFE_config, or - boot 2MB, USB, RAM 64MB
  129. make M5475EFE_config, or - boot 2MB, Video, USB, RAM 64MB
  130. make M5475FFE_config, or - boot 2MB, code 32MB, Video, USB, RAM 128MB
  131. make M5475GFE_config, or - boot 2MB, RAM 64MB
  132. make
  133. 5. SCREEN DUMP
  134. ==============
  135. 5.1
  136. U-Boot 1.3.1 (Jan 8 2008 - 12:47:44)
  137. CPU: Freescale MCF5475
  138. CPU CLK 266 Mhz BUS CLK 133 Mhz
  139. Board: Freescale FireEngine 5475 EVB
  140. I2C: ready
  141. DRAM: 64 MB
  142. FLASH: 18 MB
  143. In: serial
  144. Out: serial
  145. Err: serial
  146. Net: FEC0, FEC1
  147. -> pri
  148. bootdelay=1
  149. baudrate=115200
  150. ethaddr=00:e0:0c:bc:e5:60
  151. eth1addr=00:e0:0c:bc:e5:61
  152. ipaddr=192.162.1.2
  153. serverip=192.162.1.1
  154. gatewayip=192.162.1.1
  155. netmask=255.255.255.0
  156. hostname=M547xEVB
  157. netdev=eth0
  158. loadaddr=10000
  159. u-boot=u-boot.bin
  160. load=tftp ${loadaddr) ${u-boot}
  161. upd=run load; run prog
  162. prog=prot off bank 1;era ff800000 ff82ffff;cp.b ${loadaddr} ff800000 ${filesize};save
  163. stdin=serial
  164. stdout=serial
  165. stderr=serial
  166. ethact=FEC0
  167. mem=65024k
  168. Environment size: 433/8188 bytes
  169. -> bdin
  170. memstart = 0x00000000
  171. memsize = 0x04000000
  172. flashstart = 0xFF800000
  173. flashsize = 0x01200000
  174. flashoffset = 0x00000000
  175. sramstart = 0xF2000000
  176. sramsize = 0x00001000
  177. mbar = 0xF0000000
  178. busfreq = 133.333 MHz
  179. pcifreq = 0 MHz
  180. ethaddr = 00:E0:0C:BC:E5:60
  181. eth1addr = 00:E0:0C:BC:E5:61
  182. ip_addr = 192.162.1.2
  183. baudrate = 115200 bps
  184. -> ?
  185. ? - alias for 'help'
  186. base - print or set address offset
  187. bdinfo - print Board Info structure
  188. boot - boot default, i.e., run 'bootcmd'
  189. bootd - boot default, i.e., run 'bootcmd'
  190. bootelf - Boot from an ELF image in memory
  191. bootm - boot application image from memory
  192. bootp - boot image via network using BootP/TFTP protocol
  193. bootvx - Boot vxWorks from an ELF image
  194. cmp - memory compare
  195. coninfo - print console devices and information
  196. cp - memory copy
  197. crc32 - checksum calculation
  198. dcache - enable or disable data cache
  199. echo - echo args to console
  200. erase - erase FLASH memory
  201. flinfo - print FLASH memory information
  202. go - start application at address 'addr'
  203. help - print online help
  204. i2c - I2C sub-system
  205. icache - enable or disable instruction cache
  206. iminfo - print header information for application image
  207. imls - list all images found in flash
  208. itest - return true/false on integer compare
  209. loadb - load binary file over serial line (kermit mode)
  210. loads - load S-Record file over serial line
  211. loady - load binary file over serial line (ymodem mode)
  212. loop - infinite loop on address range
  213. md - memory display
  214. mii - MII utility commands
  215. mm - memory modify (auto-incrementing)
  216. mtest - simple RAM test
  217. mw - memory write (fill)
  218. nfs - boot image via network using NFS protocol
  219. nm - memory modify (constant address)
  220. pci - list and access PCI Configuration Space
  221. ping - send ICMP ECHO_REQUEST to network host
  222. printenv- print environment variables
  223. protect - enable or disable FLASH write protection
  224. rarpboot- boot image via network using RARP/TFTP protocol
  225. reset - Perform RESET of the CPU
  226. run - run commands in an environment variable
  227. saveenv - save environment variables to persistent storage
  228. setenv - set environment variables
  229. sleep - delay execution for some time
  230. source - run script from memory
  231. tftpboot- boot image via network using TFTP protocol
  232. usb - USB sub-system
  233. usbboot - boot from USB device
  234. version - print monitor version
  235. -> usb start
  236. (Re)start USB...
  237. USB: OHCI pci controller (1131, 1561) found @(0:17:0)
  238. OHCI regs address 0x80000000
  239. scanning bus for devices... 2 USB Device(s) found
  240. scanning bus for storage devices... 1 Storage Device(s) found
  241. ->