README 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229
  1. Freescale MCF52277EVB ColdFire Development Board
  2. ================================================
  3. TsiChung Liew(Tsi-Chung.Liew@freescale.com)
  4. Created Jan 8, 2008
  5. ===========================================
  6. Changed files:
  7. ==============
  8. - board/freescale/m52277evb/m52277evb.c Dram setup
  9. - board/freescale/m52277evb/Makefile Makefile
  10. - board/freescale/m52277evb/config.mk config make
  11. - board/freescale/m52277evb/u-boot.lds Linker description
  12. - arch/m68k/cpu/mcf5227x/cpu.c cpu specific code
  13. - arch/m68k/cpu/mcf5227x/cpu_init.c FBCS, Mux pins, icache and RTC extra regs
  14. - arch/m68k/cpu/mcf5227x/interrupts.c cpu specific interrupt support
  15. - arch/m68k/cpu/mcf5227x/speed.c system, flexbus, and cpu clock
  16. - arch/m68k/cpu/mcf5227x/Makefile Makefile
  17. - arch/m68k/cpu/mcf5227x/config.mk config make
  18. - arch/m68k/cpu/mcf5227x/start.S start up assembly code
  19. - doc/README.m52277evb This readme file
  20. - drivers/serial/mcfuart.c ColdFire common UART driver
  21. - drivers/rtc/mcfrtc.c Realtime clock Driver
  22. - include/asm-m68k/bitops.h Bit operation function export
  23. - include/asm-m68k/byteorder.h Byte order functions
  24. - include/asm-m68k/crossbar.h CrossBar structure and definition
  25. - include/asm-m68k/dspi.h DSPI structure and definition
  26. - include/asm-m68k/edma.h eDMA structure and definition
  27. - include/asm-m68k/flexbus.h FlexBus structure and definition
  28. - include/asm-m68k/fsl_i2c.h I2C structure and definition
  29. - include/asm-m68k/global_data.h Global data structure
  30. - include/asm-m68k/immap.h ColdFire specific header file and driver macros
  31. - include/asm-m68k/immap_5227x.h mcf5227x specific header file
  32. - include/asm-m68k/io.h io functions
  33. - include/asm-m68k/lcd.h LCD structure and definition
  34. - include/asm-m68k/m5227x.h mcf5227x specific header file
  35. - include/asm-m68k/posix_types.h Posix
  36. - include/asm-m68k/processor.h header file
  37. - include/asm-m68k/ptrace.h Exception structure
  38. - include/asm-m68k/rtc.h Realtime clock header file
  39. - include/asm-m68k/ssi.h SSI structure and definition
  40. - include/asm-m68k/string.h String function export
  41. - include/asm-m68k/timer.h Timer structure and definition
  42. - include/asm-m68k/types.h Data types definition
  43. - include/asm-m68k/uart.h Uart structure and definition
  44. - include/asm-m68k/u-boot.h U-Boot structure
  45. - include/configs/M52277EVB.h Board specific configuration file
  46. - arch/m68k/lib/board.c board init function
  47. - arch/m68k/lib/cache.c
  48. - arch/m68k/lib/interrupts Coldfire common interrupt functions
  49. - arch/m68k/lib/m68k_linux.c
  50. - arch/m68k/lib/time.c Timer functions (Dma timer and PIT)
  51. - arch/m68k/lib/traps.c Exception init code
  52. 1 MCF52277 specific Options/Settings
  53. ====================================
  54. 1.1 pre-loader is no longer suppoer in this coldfire family
  55. 1.2 Configuration settings for M52277EVB Development Board
  56. CONFIG_MCF5227x -- define for all MCF5227x CPUs
  57. CONFIG_M52277 -- define for all Freescale MCF52277 CPUs
  58. CONFIG_MCFUART -- define to use common CF Uart driver
  59. CONFIG_SYS_UART_PORT -- define UART port number, start with 0, 1 and 2
  60. CONFIG_BAUDRATE -- define UART baudrate
  61. CONFIG_MCFRTC -- define to use common CF RTC driver
  62. CONFIG_SYS_MCFRTC_BASE -- provide base address for RTC in immap.h
  63. CONFIG_SYS_RTC_OSCILLATOR -- define RTC clock frequency
  64. RTC_DEBUG -- define to show RTC debug message
  65. CONFIG_CMD_DATE -- enable to use date feature in U-Boot
  66. CONFIG_MCFTMR -- define to use DMA timer
  67. CONFIG_MCFPIT -- define to use PIT timer
  68. CONFIG_SYS_I2C_FSL -- define to use FSL common I2C driver
  69. CONFIG_SYS_I2C_SOFT -- define for I2C bit-banged
  70. CONFIG_SYS_I2C_SPEED -- define for I2C speed
  71. CONFIG_SYS_I2C_SLAVE -- define for I2C slave address
  72. CONFIG_SYS_I2C_OFFSET -- define for I2C base address offset
  73. CONFIG_SYS_IMMR -- define for MBAR offset
  74. CONFIG_SYS_MBAR -- define MBAR offset
  75. CONFIG_MONITOR_IS_IN_RAM -- Not support
  76. CONFIG_SYS_INIT_RAM_ADDR -- defines the base address of the MCF52277 internal SRAM
  77. CONFIG_SYS_CSn_BASE -- defines the Chip Select Base register
  78. CONFIG_SYS_CSn_MASK -- defines the Chip Select Mask register
  79. CONFIG_SYS_CSn_CTRL -- defines the Chip Select Control register
  80. CONFIG_SYS_SDRAM_BASE -- defines the DRAM Base
  81. CONFIG_LCD and CONFIG_CMD_USB are not supported in this current U-Boot,
  82. update will be provided at later time
  83. 2. MEMORY MAP UNDER U-BOOT AND LINUX KERNEL
  84. ===========================================
  85. 2.1. System memory map:
  86. Flash: 0x00000000-0x3FFFFFFF (1024MB)
  87. DDR: 0x40000000-0x7FFFFFFF (1024MB)
  88. SRAM: 0x80000000-0x8FFFFFFF (256MB)
  89. IP: 0xF0000000-0xFFFFFFFF (256MB)
  90. 2.2. For the initial bringup, we adopted a consistent memory scheme between U-Boot and
  91. linux kernel, you can customize it based on your system requirements:
  92. Flash0: 0x00000000-0x00FFFFFF (16MB)
  93. DDR: 0x40000000-0x4FFFFFFF (64MB)
  94. SRAM: 0x80000000-0x80007FFF (32KB)
  95. IP: 0xFC000000-0xFC0FFFFF (64KB)
  96. 3. COMPILATION
  97. ==============
  98. 3.1 To create U-Boot the gcc-4.1-xx compiler set (ColdFire ELF or
  99. uClinux version) from codesourcery.com was used. Download it from:
  100. http://www.codesourcery.com/gnu_toolchains/coldfire/download.html
  101. 3.2 Compilation
  102. export CROSS_COMPILE=cross-compile-prefix
  103. cd u-boot-1.x.x
  104. make distclean
  105. make M52277EVB_config
  106. make
  107. 4. SCREEN DUMP
  108. ==============
  109. 4.1 M52277EVB Development board
  110. (NOTE: May not show exactly the same)
  111. U-Boot 1.3.1 (Jan 8 2008 - 12:44:08)
  112. CPU: Freescale MCF52277 (Mask:6c Version:0)
  113. CPU CLK 160 Mhz BUS CLK 80 Mhz FLB CLK 80 MHZ
  114. INP CLK 16 Mhz VCO CLK 480 Mhz
  115. Board: Freescale 52277 EVB
  116. I2C: ready
  117. DRAM: 64 MB
  118. FLASH: 16 MB
  119. In: serial
  120. Out: serial
  121. Err: serial
  122. -> print
  123. baudrate=115200
  124. hostname=M52277EVB
  125. inpclk=16000000
  126. loadaddr=(0x40000000 + 0x10000)
  127. load=tftp ${loadaddr) ${u-boot}
  128. upd=run load; run prog
  129. prog=prot off 0 3ffff;era 0 3ffff;cp.b ${loadaddr} 0 ${filesize};save
  130. u-boot=u-boot.bin
  131. stdin=serial
  132. stdout=serial
  133. stderr=serial
  134. mem=65024k
  135. Environment size: 280/32764 bytes
  136. -> bdinfo
  137. memstart = 0x40000000
  138. memsize = 0x04000000
  139. flashstart = 0x00000000
  140. flashsize = 0x01000000
  141. flashoffset = 0x00000000
  142. sramstart = 0x80000000
  143. sramsize = 0x00008000
  144. mbar = 0xFC000000
  145. busfreq = 80 MHz
  146. flbfreq = 80 Mhz
  147. inpfreq = 16 Mhz
  148. vcofreq = 480 Mhz
  149. baudrate = 115200 bps
  150. ->
  151. -> help
  152. ? - alias for 'help'
  153. base - print or set address offset
  154. bdinfo - print Board Info structure
  155. boot - boot default, i.e., run 'bootcmd'
  156. bootd - boot default, i.e., run 'bootcmd'
  157. bootelf - Boot from an ELF image in memory
  158. bootm - boot application image from memory
  159. bootp - boot image via network using BootP/TFTP protocol
  160. bootvx - Boot vxWorks from an ELF image
  161. cmp - memory compare
  162. coninfo - print console devices and information
  163. cp - memory copy
  164. crc32 - checksum calculation
  165. date - get/set/reset date & time
  166. dcache - enable or disable data cache
  167. echo - echo args to console
  168. erase - erase FLASH memory
  169. flinfo - print FLASH memory information
  170. go - start application at address 'addr'
  171. help - print online help
  172. i2c - I2C sub-system
  173. icache - enable or disable instruction cache
  174. iminfo - print header information for application image
  175. imls - list all images found in flash
  176. itest - return true/false on integer compare
  177. loadb - load binary file over serial line (kermit mode)
  178. loads - load S-Record file over serial line
  179. loady - load binary file over serial line (ymodem mode)
  180. loop - infinite loop on address range
  181. ls - list files in a directory (default /)
  182. md - memory display
  183. mm - memory modify (auto-incrementing)
  184. mtest - simple RAM test
  185. mw - memory write (fill)
  186. nm - memory modify (constant address)
  187. ping - send ICMP ECHO_REQUEST to network host
  188. printenv- print environment variables
  189. protect - enable or disable FLASH write protection
  190. reset - Perform RESET of the CPU
  191. run - run commands in an environment variable
  192. saveenv - save environment variables to persistent storage
  193. setenv - set environment variables
  194. sleep - delay execution for some time
  195. source - run script from memory
  196. version - print monitor version
  197. ->