README.m54418twr 8.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244
  1. Freescale MCF54418TWR ColdFire Development Board
  2. ================================================
  3. TsiChung Liew(Tsi-Chung.Liew@freescale.com)
  4. Created Mar 22, 2012
  5. ===========================================
  6. Changed files:
  7. ==============
  8. - board/freescale/m54418twr/m54418twr.c Dram setup
  9. - board/freescale/m54418twr/Makefile Makefile
  10. - board/freescale/m54418twr/config.mk config make
  11. - board/freescale/m54418twr/u-boot.lds Linker description
  12. - arch/m68k/cpu/mcf5445x/cpu.c cpu specific code
  13. - arch/m68k/cpu/mcf5445x/cpu_init.c Flexbus ChipSelect, Mux pins setup, icache and RTC extra regs
  14. - arch/m68k/cpu/mcf5445x/interrupts.c cpu specific interrupt support
  15. - arch/m68k/cpu/mcf5445x/speed.c system, pci, flexbus, and cpu clock
  16. - arch/m68k/cpu/mcf5445x/Makefile Makefile
  17. - arch/m68k/cpu/mcf5445x/config.mk config make
  18. - arch/m68k/cpu/mcf5445x/start.S start up assembly code
  19. - doc/README.m54418twr This readme file
  20. - drivers/net/mcffec.c ColdFire common FEC driver
  21. - drivers/net/mcfmii.c ColdFire common MII driver
  22. - drivers/serial/mcfuart.c ColdFire common UART driver
  23. - arch/m68k/include/asm/bitops.h Bit operation function export
  24. - arch/m68k/include/asm/byteorder.h Byte order functions
  25. - arch/m68k/include/asm/fec.h FEC structure and definition
  26. - arch/m68k/include/asm/global_data.h Global data structure
  27. - arch/m68k/include/asm/immap.h ColdFire specific header file and driver macros
  28. - arch/m68k/include/asm/immap_5441x.h mcf5441x specific header file
  29. - arch/m68k/include/asm/io.h io functions
  30. - arch/m68k/include/asm/m5441x.h mcf5441x specific header file
  31. - arch/m68k/include/asm/posix_types.h Posix
  32. - arch/m68k/include/asm/processor.h header file
  33. - arch/m68k/include/asm/ptrace.h Exception structure
  34. - arch/m68k/include/asm/rtc.h Realtime clock header file
  35. - arch/m68k/include/asm/string.h String function export
  36. - arch/m68k/include/asm/timer.h Timer structure and definition
  37. - arch/m68k/include/asm/types.h Data types definition
  38. - arch/m68k/include/asm/uart.h Uart structure and definition
  39. - arch/m68k/include/asm/u-boot.h u-boot structure
  40. - include/configs/M54418TWR.h Board specific configuration file
  41. - arch/m68k/lib/board.c board init function
  42. - arch/m68k/lib/cache.c
  43. - arch/m68k/lib/interrupts.c Coldfire common interrupt functions
  44. - arch/m68k/lib/time.c Timer functions (Dma timer and PIT)
  45. - arch/m68k/lib/traps.c Exception init code
  46. 1 MCF5441x specific Options/Settings
  47. ====================================
  48. 1.1 pre-loader is no longer suppoer in thie coldfire family
  49. 1.2 Configuration settings for M54418TWR Development Board
  50. CONFIG_MCF5441x -- define for all MCF5441x CPUs
  51. CONFIG_M54418 -- define for all Freescale MCF54418 CPUs
  52. CONFIG_M54418TWR -- define for M54418TWR board
  53. CONFIG_MCFUART -- define to use common CF Uart driver
  54. CONFIG_SYS_UART_PORT -- define UART port number, start with 0, 1 and 2
  55. CONFIG_BAUDRATE -- define UART baudrate
  56. CONFIG_MCFFEC -- define to use common CF FEC driver
  57. CONFIG_MII -- enable to use MII driver
  58. CONFIG_SYS_DISCOVER_PHY -- enable PHY discovery
  59. CONFIG_SYS_RX_ETH_BUFFER -- Set FEC Receive buffer
  60. CONFIG_SYS_FAULT_ECHO_LINK_DOWN --
  61. CONFIG_SYS_FEC0_PINMUX -- Set FEC0 Pin configuration
  62. CONFIG_SYS_FEC1_PINMUX -- Set FEC1 Pin configuration
  63. CONFIG_SYS_FEC0_MIIBASE -- Set FEC0 MII base register
  64. CONFIG_SYS_FEC1_MIIBASE -- Set FEC0 MII base register
  65. MCFFEC_TOUT_LOOP -- set FEC timeout loop
  66. CONFIG_HAS_ETH1 -- define to enable second FEC in u-boot
  67. CONFIG_MCFTMR -- define to use DMA timer
  68. CONFIG_SYS_IMMR -- define for MBAR offset
  69. CONFIG_EXTRA_CLOCK -- Enable extra clock such as vco, flexbus, pci, etc
  70. CONFIG_SYS_MBAR -- define MBAR offset
  71. CONFIG_MONITOR_IS_IN_RAM -- Not support
  72. CONFIG_SYS_INIT_RAM_ADDR -- defines the base address of the MCF54455 internal SRAM
  73. CONFIG_SYS_CSn_BASE -- defines the Chip Select Base register
  74. CONFIG_SYS_CSn_MASK -- defines the Chip Select Mask register
  75. CONFIG_SYS_CSn_CTRL -- defines the Chip Select Control register
  76. CONFIG_SYS_SDRAM_BASE -- defines the DRAM Base
  77. 2. MEMORY MAP UNDER U-BOOT AND LINUX KERNEL
  78. ===========================================
  79. 2.1. System memory map:
  80. MRAM: 0x00000000-0x0003FFFF (256KB)
  81. DDR: 0x40000000-0x47FFFFFF (128MB)
  82. SRAM: 0x80000000-0x8000FFFF (64KB)
  83. IP: 0xE0000000-0xFFFFFFFF (512MB)
  84. 3. COMPILATION
  85. ==============
  86. 3.1 To create U-Boot the gcc-4.x compiler set (ColdFire ELF version)
  87. from codesourcery.com was used. Download it from:
  88. http://www.codesourcery.com/gnu_toolchains/coldfire/download.html
  89. 3.2 Compilation
  90. export CROSS_COMPILE=cross-compile-prefix
  91. cd u-boot
  92. make distclean
  93. make M54418TWR_config, or - default to spi serial flash boot, 50Mhz input clock
  94. make M54418TWR_nand_mii_config, or - default to nand flash boot, mii mode, 25Mhz input clock
  95. make M54418TWR_nand_rmii_config, or - default to nand flash boot, rmii mode, 50Mhz input clock
  96. make M54418TWR_nand_rmii_lowfreq_config, or - default to nand flash boot, rmii mode, 50Mhz input clock
  97. make M54418TWR_serial_mii_config, or - default to spi serial flash boot, 25Mhz input clock
  98. make M54418TWR_serial_rmii_config, or - default to spi serial flash boot, 50Mhz input clock
  99. make
  100. 4. SCREEN DUMP
  101. ==============
  102. 4.1 M54418TWR Development board
  103. Boot from NAND flash (NOTE: May not show exactly the same)
  104. U-Boot 2012.10-00209-g12ae1d8-dirty (Oct 18 2012 - 15:54:54)
  105. CPU: Freescale MCF54418 (Mask:a3 Version:1)
  106. CPU CLK 250 MHz BUS CLK 125 MHz FLB CLK 125 MHz
  107. INP CLK 50 MHz VCO CLK 500 MHz
  108. Board: Freescale MCF54418 Tower System
  109. SPI: ready
  110. DRAM: 128 MiB
  111. NAND: 256 MiB
  112. In: serial
  113. Out: serial
  114. Err: serial
  115. Net: FEC0, FEC1
  116. -> pri
  117. baudrate=115200
  118. bootargs=root=/dev/mtdblock2 rw rootfstype=jffs2 mtdparts=NAND:1M(u-boot)ro,7M(k
  119. ernel)ro,-(jffs2) console=ttyS0,115200
  120. bootdelay=2
  121. eth1addr=00:e0:0c:bc:e5:61
  122. ethact=FEC0
  123. ethaddr=00:e0:0c:bc:e5:60
  124. fileaddr=40010000
  125. filesize=27354
  126. gatewayip=192.168.1.1
  127. hostname=M54418TWR
  128. inpclk=50000000
  129. ipaddr=192.168.1.2
  130. load=tftp ${loadaddr} ${u-boot};
  131. loadaddr=0x40010000
  132. mem=129024k
  133. netdev=eth0
  134. netmask=255.255.255.0
  135. prog=nand device 0;nand erase 0 40000;nb_update ${loadaddr} ${filesize};save
  136. serverip=192.168.1.1
  137. stderr=serial
  138. stdin=serial
  139. stdout=serial
  140. u-boot=u-boot.bin
  141. upd=run load; run prog
  142. Environment size: 653/131068 bytes
  143. -> bdinfo
  144. memstart = 0x40000000
  145. memsize = 0x08000000
  146. flashstart = 0x00000000
  147. flashsize = 0x00000000
  148. flashoffset = 0x00000000
  149. sramstart = 0x80000000
  150. sramsize = 0x00010000
  151. mbar = 0xFC000000
  152. cpufreq = 250 MHz
  153. busfreq = 125 MHz
  154. flbfreq = 125 MHz
  155. inpfreq = 50 MHz
  156. vcofreq = 500 MHz
  157. ethaddr = 00:e0:0c:bc:e5:60
  158. eth1addr = 00:e0:0c:bc:e5:61
  159. ip_addr = 192.168.1.2
  160. baudrate = 115200 bps
  161. -> help
  162. ? - alias for 'help'
  163. base - print or set address offset
  164. bdinfo - print Board Info structure
  165. boot - boot default, i.e., run 'bootcmd'
  166. bootd - boot default, i.e., run 'bootcmd'
  167. bootelf - Boot from an ELF image in memory
  168. bootm - boot application image from memory
  169. bootp - boot image via network using BOOTP/TFTP protocol
  170. bootvx - Boot vxWorks from an ELF image
  171. cmp - memory compare
  172. coninfo - print console devices and information
  173. cp - memory copy
  174. crc32 - checksum calculation
  175. dcache - enable or disable data cache
  176. dhcp - boot image via network using DHCP/TFTP protocol
  177. echo - echo args to console
  178. editenv - edit environment variable
  179. env - environment handling commands
  180. exit - exit script
  181. false - do nothing, unsuccessfully
  182. go - start application at address 'addr'
  183. help - print command description/usage
  184. icache - enable or disable instruction cache
  185. iminfo - print header information for application image
  186. imxtract- extract a part of a multi-image
  187. itest - return true/false on integer compare
  188. loop - infinite loop on address range
  189. md - memory display
  190. mdio - MDIO utility commands
  191. mii - MII utility commands
  192. mm - memory modify (auto-incrementing address)
  193. mtest - simple RAM read/write test
  194. mw - memory write (fill)
  195. nand - NAND sub-system
  196. nb_update- Nand boot update program
  197. nboot - boot from NAND device
  198. nfs - boot image via network using NFS protocol
  199. nm - memory modify (constant address)
  200. ping - send ICMP ECHO_REQUEST to network host
  201. printenv- print environment variables
  202. reginfo - print register information
  203. reset - Perform RESET of the CPU
  204. run - run commands in an environment variable
  205. saveenv - save environment variables to persistent storage
  206. setenv - set environment variables
  207. sf - SPI flash sub-system
  208. showvar - print local hushshell variables
  209. sleep - delay execution for some time
  210. source - run script from memory
  211. sspi - SPI utility command
  212. test - minimal test like /bin/sh
  213. tftpboot- boot image via network using TFTP protocol
  214. true - do nothing, successfully
  215. version - print monitor, compiler and linker version