README 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  1. File: README.COBRA5272
  2. Author: Florian Schlote for Sentec elektronik (linux@sentec-elektronik.de)
  3. Contents: This is the README of u-boot (Universal bootloader) for our
  4. COBRA5272 board.
  5. Version: v01.00
  6. Date: Tue Mar 30 00:28:33 CEST 2004
  7. License: This document is published under the GNU GPL
  8. ______________________________________________________________________
  9. CHANGES
  10. 040330 v01.00 Creation
  11. ______________________________________________________________________
  12. CONFIGURING
  13. -----------
  14. 1. Modify include/configs/cobra5272.h acc. to your prefs
  15. 2. If necessary, modify board/cobra5272/config.mk (see below)
  16. 3.
  17. > make cobra5272_config
  18. > make
  19. Please refer to u-boot README (general info, u-boot-x-x-x/README),
  20. to u-boot-x-x-x/doc/README.COBRA5272 and
  21. to the comments in u-boot-x-x-x/include/configs/cobra5272.h
  22. Configuring u-boot is done by commenting/uncommenting preprocessor defines.
  23. Default configuration is
  24. FLASH version (for further info see subsection below)
  25. link address 0xffe00000
  26. 16 MB RAM
  27. network enabled
  28. no default IP address for target, host set, no MACaddress set
  29. bootdelay for autoboot 5 sec.
  30. autoboot disabled
  31. #-----------------------------------
  32. # u-boot FLASH version & RAM version
  33. #-----------------------------------
  34. The u-boot bootloader for Coldfire processors can be configured
  35. 1. as a standalone bootloader residing in flash & relocating itself to RAM on
  36. startup automatically => "FLASH version"
  37. 2. as a RAM version which will not load from flash automatically as it needs a
  38. prestage bootloader ("chainloading") & is running only from the RAM address it
  39. is linked to => "RAM version"
  40. This version may be very helpful when installing u-boot for the first time
  41. since it can be used to make available s. th. like a "bootstrap
  42. mechanism".
  43. How to build the different images:
  44. ------------------------------
  45. Flash version
  46. ------------------------------
  47. Compile u-boot
  48. in dir ./u-boot-x-x-x/
  49. please first check:
  50. in ./include/configs/cobra5272.h
  51. CONFIG_MONITOR_IS_IN_RAM has to be undefined, e. g. as follows:
  52. #if 0
  53. #define CONFIG_MONITOR_IS_IN_RAM
  54. /* define if monitor is started from a pre-loader */
  55. #endif
  56. => u-boot as single bootloader starting from flash
  57. in board/cobra5272/config.mk CONFIG_SYS_TEXT_BASE should be
  58. CONFIG_SYS_TEXT_BASE = 0xffe00000
  59. => linking address for u-boot as single bootloader stored in flash
  60. then:
  61. host> make cobra5272_config
  62. rm -f include/config.h include/config.mk
  63. Configuring for cobra5272 board...
  64. host> make
  65. [...]
  66. host> cp u-boot.bin /tftpboot/u-boot_flash.bin
  67. ------------------------------
  68. RAM version
  69. ------------------------------
  70. in dir ./u-boot-x-x-x/
  71. host> make distclean
  72. please modify the settings:
  73. in ./include/configs/cobra5272.h
  74. CONFIG_MONITOR_IS_IN_RAM now has to be defined, e. g. as follows:
  75. #if 1
  76. #define CONFIG_MONITOR_IS_IN_RAM
  77. /*define if monitor is started from a pre-loader */
  78. #endif
  79. => u-boot as RAM version, chainloaded by another bootloader or using bdm cable
  80. in board/cobra5272/config.mk CONFIG_SYS_TEXT_BASE should be
  81. CONFIG_SYS_TEXT_BASE = 0x00020000
  82. => target linking address for RAM
  83. then:
  84. host> make cobra5272_config
  85. rm -f include/config.h include/config.mk
  86. Configuring for cobra5272 board...
  87. host> make
  88. [...]
  89. host> cp u-boot.bin /tftpboot/u-boot_ram.bin
  90. ----
  91. HINT
  92. ----
  93. If the m68k-elf-toolchain & the m68k-bdm-gdb is installed you can run the RAM
  94. version by typing (in dir ./u-boot-x-x-x/)
  95. "board/cobra5272/bdm/load-cobra_uboot" ,
  96. in ./u-boot-x-x-x/ the RAM version u-boot (elf format) has to be available.