README.m54418twr 8.7 KB

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