Kconfig 3.0 KB

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