README.kwbimage 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. ---------------------------------------------
  2. Kirkwood Boot Image generation using mkimage
  3. ---------------------------------------------
  4. This document describes the U-Boot feature as it
  5. is implemented for the Kirkwood family of SoCs.
  6. The Kirkwood SoC's can boot directly from NAND FLASH,
  7. SPI FLASH, SATA etc. using its internal bootRom support.
  8. for more details refer section 24.2 of Kirkwood functional specifications.
  9. ref: www.marvell.com/products/embedded.../kirkwood/index.jsp
  10. Command syntax:
  11. --------------
  12. ./tools/mkimage -l <kwboot_file>
  13. to list the kwb image file details
  14. ./tools/mkimage -n <board specific configuration file> \
  15. -T kwbimage -a <start address> -e <execution address> \
  16. -d <input_raw_binary> <output_kwboot_file>
  17. for ex.
  18. ./tools/mkimage -n ./board/Marvell/openrd_base/kwbimage.cfg \
  19. -T kwbimage -a 0x00600000 -e 0x00600000 \
  20. -d u-boot.bin u-boot.kwb
  21. kwbimage support available with mkimage utility will generate kirkwood boot
  22. image that can be flashed on the board NAND/SPI flash. The make target
  23. which uses mkimage to produce such an image is "u-boot.kwb". For example:
  24. export KBUILD_OUTPUT=/tmp/build
  25. make distclean
  26. make yourboard_config
  27. make u-boot.kwb
  28. Board specific configuration file specifications:
  29. ------------------------------------------------
  30. 1. This file must present in the $(BOARDDIR). The default name is
  31. kwbimage.cfg. The name can be set as part of the full path
  32. to the file using CONFIG_SYS_KWD_CONFIG (probably in
  33. include/configs/<yourboard>.h). The path should look like:
  34. $(CONFIG_BOARDDIR)/<yourkwbimagename>.cfg
  35. 2. This file can have empty lines and lines starting with "#" as first
  36. character to put comments
  37. 3. This file can have configuration command lines as mentioned below,
  38. any other information in this file is treated as invalid.
  39. Configuration command line syntax:
  40. ---------------------------------
  41. 1. Each command line is must have two strings, first one command or address
  42. and second one data string
  43. 2. Following are the valid command strings and associated data strings:-
  44. Command string data string
  45. -------------- -----------
  46. BOOT_FROM nand/spi/sata
  47. NAND_ECC_MODE default/rs/hamming/disabled
  48. NAND_PAGE_SIZE any uint16_t hex value
  49. SATA_PIO_MODE any uint32_t hex value
  50. DDR_INIT_DELAY any uint32_t hex value
  51. DATA regaddr and regdara hex value
  52. you can have maximum 55 such register programming commands
  53. 3. All commands are optional to program
  54. Typical example of kwimage.cfg file:
  55. -----------------------------------
  56. # Boot Media configurations
  57. BOOT_FROM nand
  58. NAND_ECC_MODE default
  59. NAND_PAGE_SIZE 0x0800
  60. # Configure RGMII-0 interface pad voltage to 1.8V
  61. DATA 0xFFD100e0 0x1b1b1b9b
  62. # DRAM Configuration
  63. DATA 0xFFD01400 0x43000c30
  64. DATA 0xFFD01404 0x37543000
  65. DATA 0xFFD01408 0x22125451
  66. DATA 0xFFD0140C 0x00000a33
  67. DATA 0xFFD01410 0x000000cc
  68. DATA 0xFFD01414 0x00000000
  69. DATA 0xFFD01418 0x00000000
  70. DATA 0xFFD0141C 0x00000C52
  71. DATA 0xFFD01420 0x00000040
  72. DATA 0xFFD01424 0x0000F17F
  73. DATA 0xFFD01428 0x00085520
  74. DATA 0xFFD0147C 0x00008552
  75. DATA 0xFFD01504 0x0FFFFFF1
  76. DATA 0xFFD01508 0x10000000
  77. DATA 0xFFD0150C 0x0FFFFFF5
  78. DATA 0xFFD01514 0x00000000
  79. DATA 0xFFD0151C 0x00000000
  80. DATA 0xFFD01494 0x00030000
  81. DATA 0xFFD01498 0x00000000
  82. DATA 0xFFD0149C 0x0000E803
  83. DATA 0xFFD01480 0x00000001
  84. # End of Header extension
  85. DATA 0x0 0x0
  86. ------------------------------------------------
  87. Author: Prafulla Wadaskar <prafulla@marvell.com>