mkimage.1 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. .TH MKIMAGE 1 "2010-05-16"
  2. .SH NAME
  3. mkimage \- Generate image for U-Boot
  4. .SH SYNOPSIS
  5. .B mkimage
  6. .RB [\fIoptions\fP]
  7. .SH "DESCRIPTION"
  8. The
  9. .B mkimage
  10. command is used to create images for use with the U-Boot boot loader.
  11. Thes eimages can contain the linux kernel, device tree blob, root file
  12. system image, firmware images etc., either separate or combined.
  13. .B mkimage
  14. supports two different formats:
  15. The old,
  16. .I legacy image
  17. format concatenates the individual parts (for example, kernel image,
  18. device tree blob and ramdisk image) and adds a 64 bytes header
  19. containing information about target architecture, operating system,
  20. image type, compression method, entry points, time stamp, checksums,
  21. etc.
  22. The new,
  23. .I FIT (Flattened Image Tree) format
  24. allows for more flexibility in handling images of various and also
  25. enhances integrity protection of images with stronger checksums.
  26. .SH "OPTIONS"
  27. .B List image information:
  28. .TP
  29. .BI "\-l [" "uimage file name" "]"
  30. mkimage lists the information contained in the header of an existing U-Boot image.
  31. .P
  32. .B Create old legacy image:
  33. .TP
  34. .BI "\-A [" "architecture" "]"
  35. Set architecture. Pass \-h as the architecture to see the list of supported architectures.
  36. .TP
  37. .BI "\-O [" "os" "]"
  38. Set operating system. bootm command of u-boot changes boot method by os type.
  39. Pass \-h as the OS to see the list of supported OS.
  40. .TP
  41. .BI "\-T [" "image type" "]"
  42. Set image type.
  43. Pass \-h as the image to see the list of supported image type.
  44. .TP
  45. .BI "\-C [" "compression type" "]"
  46. Set compression type.
  47. Pass \-h as the compression to see the list of supported compression type.
  48. .TP
  49. .BI "\-a [" "load addess" "]"
  50. Set load address with a hex number.
  51. .TP
  52. .BI "\-e [" "entry point" "]"
  53. Set entry point with a hex number.
  54. .TP
  55. .BI "\-n [" "image name" "]"
  56. Set image name to 'image name'.
  57. .TP
  58. .BI "\-d [" "image data file" "]"
  59. Use image data from 'image data file'.
  60. .TP
  61. .BI "\-x"
  62. Set XIP (execute in place) flag.
  63. .P
  64. .B Create FIT image:
  65. .TP
  66. .BI "\-D "dtc option"
  67. Provide special options to the device tree compiler that is used to
  68. create the image.
  69. .TP
  70. .BI "\-f "fit-image.its"
  71. Image tree source fine that descbres the structure and contents of the
  72. FIT image.
  73. .SH EXMAPLES
  74. List image information:
  75. .nf
  76. .B mkimage -l uImage
  77. .fi
  78. .P
  79. Create legacy image with compressed PowerPC Linux kernel:
  80. .nf
  81. .B mkimage -A powerpc -O linux -T kernel -C gzip \\\\
  82. .br
  83. .B -a 0 -e 0 -n Linux -d vmlinux.gz uImage
  84. .fi
  85. .P
  86. Create FIT image with compressed PowerPC Linux kernel:
  87. .nf
  88. .B mkimage -f kernel.its kernel.itb
  89. .fi
  90. .SH HOMEPAGE
  91. http://www.denx.de/wiki/U-Boot/WebHome
  92. .PP
  93. .SH AUTHOR
  94. This manual page was written by Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
  95. and Wolfgang Denk <wd@denx.de>