Kconfig 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. menu "DFU support"
  2. config DFU
  3. bool
  4. imply DFU_OVER_USB if USB_GADGET
  5. config DFU_OVER_USB
  6. bool
  7. select HASH
  8. depends on USB_GADGET
  9. config DFU_OVER_TFTP
  10. bool
  11. depends on NET
  12. if DFU
  13. config DFU_WRITE_ALT
  14. bool
  15. config DFU_TFTP
  16. bool "DFU via TFTP"
  17. depends on NETDEVICES
  18. select UPDATE_COMMON
  19. select DFU_OVER_TFTP
  20. help
  21. This option allows performing update of DFU-managed medium with data
  22. sent via TFTP boot.
  23. Detailed description of this feature can be found at ./doc/README.dfutftp
  24. config DFU_TIMEOUT
  25. bool "Timeout waiting for DFU"
  26. help
  27. This option adds an optional timeout parameter for DFU which, if set,
  28. will cause DFU to only wait for that many seconds before exiting.
  29. config DFU_MMC
  30. bool "MMC back end for DFU"
  31. depends on MMC
  32. help
  33. This option enables using DFU to read and write to MMC based storage.
  34. config DFU_MTD
  35. bool "MTD back end for DFU"
  36. depends on DM_MTD
  37. help
  38. This option enables using DFU to read and write to on any MTD device.
  39. config DFU_NAND
  40. bool "NAND back end for DFU"
  41. depends on CMD_MTDPARTS
  42. depends on MTD_RAW_NAND
  43. help
  44. This option enables using DFU to read and write to NAND based
  45. storage.
  46. config DFU_NAND_TRIMFFS
  47. bool "Skip empty pages when flashing UBI images to NAND"
  48. depends on DFU_NAND
  49. help
  50. When flashing UBI images to NAND, enable the DROP_FFS flag to drop
  51. trailing all-0xff pages.
  52. config DFU_RAM
  53. bool "RAM back end for DFU"
  54. help
  55. This option enables using DFU to read and write RAM on the target.
  56. config DFU_SF
  57. bool "SPI flash back end for DFU"
  58. depends on SPI_FLASH || DM_SPI_FLASH
  59. help
  60. This option enables using DFU to read and write to SPI flash based
  61. storage.
  62. config DFU_SF_PART
  63. bool "MTD partition support for SPI flash back end"
  64. depends on DFU_SF && CMD_MTDPARTS
  65. default y
  66. help
  67. This option enables the support of "part" and "partubi" target in
  68. SPI flash DFU back end.
  69. config DFU_VIRT
  70. bool "VIRTUAL flash back end for DFU"
  71. help
  72. This option enables using DFU to read and write to VIRTUAL device
  73. used at board level to manage specific behavior
  74. (OTP update for example).
  75. config SET_DFU_ALT_INFO
  76. bool "Dynamic set of DFU alternate information"
  77. help
  78. This option allows to call the function set_dfu_alt_info to
  79. dynamically build dfu_alt_info in board.
  80. config SYS_DFU_DATA_BUF_SIZE
  81. hex "Size of buffer to be allocated for transfer to raw storage device"
  82. default 0x800000
  83. help
  84. DFU transfer uses a buffer before writing data to the
  85. raw storage device. This value can be used for setting the
  86. size of this buffer. The size of the buffer is also configurable
  87. through the "dfu_bufsiz" environment variable. If both are
  88. given the size of the buffer is set to "dfu_bufsize".
  89. config SYS_DFU_MAX_FILE_SIZE
  90. hex "Size of the buffer to be allocated for transferring files"
  91. default SYS_DFU_DATA_BUF_SIZE
  92. help
  93. When updating files rather than the raw storage device,
  94. we use a static buffer to copy the file into and then write
  95. the buffer once we've been given the whole file. Define
  96. this to the maximum filesize (in bytes) for the buffer.
  97. If undefined it defaults to the CONFIG_SYS_DFU_DATA_BUF_SIZE.
  98. config DFU_NAME_MAX_SIZE
  99. int "Size of the name to be added in dfu entity"
  100. default 32
  101. depends on DFU
  102. help
  103. This value is used to maximum size. If name is longer than default size,
  104. we need to change the proper maximum size.
  105. endif
  106. endmenu