README.m52277evb 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231
  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_M52277EVB -- define for M52277EVB board
  59. CONFIG_MCFUART -- define to use common CF Uart driver
  60. CONFIG_SYS_UART_PORT -- define UART port number, start with 0, 1 and 2
  61. CONFIG_BAUDRATE -- define UART baudrate
  62. CONFIG_MCFRTC -- define to use common CF RTC driver
  63. CONFIG_SYS_MCFRTC_BASE -- provide base address for RTC in immap.h
  64. CONFIG_SYS_RTC_OSCILLATOR -- define RTC clock frequency
  65. RTC_DEBUG -- define to show RTC debug message
  66. CONFIG_CMD_DATE -- enable to use date feature in u-boot
  67. CONFIG_MCFTMR -- define to use DMA timer
  68. CONFIG_MCFPIT -- define to use PIT timer
  69. CONFIG_FSL_I2C -- define to use FSL common I2C driver
  70. CONFIG_HARD_I2C -- define for I2C hardware support
  71. CONFIG_SOFT_I2C -- define for I2C bit-banged
  72. CONFIG_SYS_I2C_SPEED -- define for I2C speed
  73. CONFIG_SYS_I2C_SLAVE -- define for I2C slave address
  74. CONFIG_SYS_I2C_OFFSET -- define for I2C base address offset
  75. CONFIG_SYS_IMMR -- define for MBAR offset
  76. CONFIG_SYS_MBAR -- define MBAR offset
  77. CONFIG_MONITOR_IS_IN_RAM -- Not support
  78. CONFIG_SYS_INIT_RAM_ADDR -- defines the base address of the MCF52277 internal SRAM
  79. CONFIG_SYS_CSn_BASE -- defines the Chip Select Base register
  80. CONFIG_SYS_CSn_MASK -- defines the Chip Select Mask register
  81. CONFIG_SYS_CSn_CTRL -- defines the Chip Select Control register
  82. CONFIG_SYS_SDRAM_BASE -- defines the DRAM Base
  83. CONFIG_LCD and CONFIG_CMD_USB are not supported in this current u-boot,
  84. update will be provided at later time
  85. 2. MEMORY MAP UNDER U-BOOT AND LINUX KERNEL
  86. ===========================================
  87. 2.1. System memory map:
  88. Flash: 0x00000000-0x3FFFFFFF (1024MB)
  89. DDR: 0x40000000-0x7FFFFFFF (1024MB)
  90. SRAM: 0x80000000-0x8FFFFFFF (256MB)
  91. IP: 0xF0000000-0xFFFFFFFF (256MB)
  92. 2.2. For the initial bringup, we adopted a consistent memory scheme between u-boot and
  93. linux kernel, you can customize it based on your system requirements:
  94. Flash0: 0x00000000-0x00FFFFFF (16MB)
  95. DDR: 0x40000000-0x4FFFFFFF (64MB)
  96. SRAM: 0x80000000-0x80007FFF (32KB)
  97. IP: 0xFC000000-0xFC0FFFFF (64KB)
  98. 3. COMPILATION
  99. ==============
  100. 3.1 To create U-Boot the gcc-4.1-xx compiler set (ColdFire ELF or
  101. uClinux version) from codesourcery.com was used. Download it from:
  102. http://www.codesourcery.com/gnu_toolchains/coldfire/download.html
  103. 3.2 Compilation
  104. export CROSS_COMPILE=cross-compile-prefix
  105. cd u-boot-1.x.x
  106. make distclean
  107. make M52277EVB_config
  108. make
  109. 4. SCREEN DUMP
  110. ==============
  111. 4.1 M52277EVB Development board
  112. (NOTE: May not show exactly the same)
  113. U-Boot 1.3.1 (Jan 8 2008 - 12:44:08)
  114. CPU: Freescale MCF52277 (Mask:6c Version:0)
  115. CPU CLK 160 Mhz BUS CLK 80 Mhz FLB CLK 80 MHZ
  116. INP CLK 16 Mhz VCO CLK 480 Mhz
  117. Board: Freescale 52277 EVB
  118. I2C: ready
  119. DRAM: 64 MB
  120. FLASH: 16 MB
  121. In: serial
  122. Out: serial
  123. Err: serial
  124. -> print
  125. baudrate=115200
  126. hostname=M52277EVB
  127. inpclk=16000000
  128. loadaddr=(0x40000000 + 0x10000)
  129. load=tftp ${loadaddr) ${u-boot}
  130. upd=run load; run prog
  131. prog=prot off 0 3ffff;era 0 3ffff;cp.b ${loadaddr} 0 ${filesize};save
  132. u-boot=u-boot.bin
  133. stdin=serial
  134. stdout=serial
  135. stderr=serial
  136. mem=65024k
  137. Environment size: 280/32764 bytes
  138. -> bdinfo
  139. memstart = 0x40000000
  140. memsize = 0x04000000
  141. flashstart = 0x00000000
  142. flashsize = 0x01000000
  143. flashoffset = 0x00000000
  144. sramstart = 0x80000000
  145. sramsize = 0x00008000
  146. mbar = 0xFC000000
  147. busfreq = 80 MHz
  148. flbfreq = 80 Mhz
  149. inpfreq = 16 Mhz
  150. vcofreq = 480 Mhz
  151. baudrate = 115200 bps
  152. ->
  153. -> help
  154. ? - alias for 'help'
  155. base - print or set address offset
  156. bdinfo - print Board Info structure
  157. boot - boot default, i.e., run 'bootcmd'
  158. bootd - boot default, i.e., run 'bootcmd'
  159. bootelf - Boot from an ELF image in memory
  160. bootm - boot application image from memory
  161. bootp - boot image via network using BootP/TFTP protocol
  162. bootvx - Boot vxWorks from an ELF image
  163. cmp - memory compare
  164. coninfo - print console devices and information
  165. cp - memory copy
  166. crc32 - checksum calculation
  167. date - get/set/reset date & time
  168. dcache - enable or disable data cache
  169. echo - echo args to console
  170. erase - erase FLASH memory
  171. flinfo - print FLASH memory information
  172. go - start application at address 'addr'
  173. help - print online help
  174. i2c - I2C sub-system
  175. icache - enable or disable instruction cache
  176. iminfo - print header information for application image
  177. imls - list all images found in flash
  178. itest - return true/false on integer compare
  179. loadb - load binary file over serial line (kermit mode)
  180. loads - load S-Record file over serial line
  181. loady - load binary file over serial line (ymodem mode)
  182. loop - infinite loop on address range
  183. ls - list files in a directory (default /)
  184. md - memory display
  185. mm - memory modify (auto-incrementing)
  186. mtest - simple RAM test
  187. mw - memory write (fill)
  188. nm - memory modify (constant address)
  189. ping - send ICMP ECHO_REQUEST to network host
  190. printenv- print environment variables
  191. protect - enable or disable FLASH write protection
  192. reset - Perform RESET of the CPU
  193. run - run commands in an environment variable
  194. saveenv - save environment variables to persistent storage
  195. setenv - set environment variables
  196. sleep - delay execution for some time
  197. source - run script from memory
  198. version - print monitor version
  199. ->