Lukasz Majewski | 585a696 | 2015-08-24 00:21:49 +0200 | [diff] [blame] | 1 | menu "DFU support" |
| 2 | |
Marek Vasut | 0f44d33 | 2018-02-16 16:41:17 +0100 | [diff] [blame] | 3 | config DFU |
| 4 | bool |
Marek Vasut | bb4059a | 2018-02-16 16:41:18 +0100 | [diff] [blame] | 5 | imply DFU_OVER_USB if USB_GADGET |
Marek Vasut | 0f44d33 | 2018-02-16 16:41:17 +0100 | [diff] [blame] | 6 | |
Marek Vasut | bb4059a | 2018-02-16 16:41:18 +0100 | [diff] [blame] | 7 | config DFU_OVER_USB |
Tom Rini | 6828e60 | 2016-09-19 13:31:30 -0400 | [diff] [blame] | 8 | bool |
Maxime Ripard | 70c56c1 | 2018-01-16 09:44:13 +0100 | [diff] [blame] | 9 | select HASH |
Marek Vasut | 0f44d33 | 2018-02-16 16:41:17 +0100 | [diff] [blame] | 10 | depends on USB_GADGET |
Tom Rini | 6828e60 | 2016-09-19 13:31:30 -0400 | [diff] [blame] | 11 | |
Marek Vasut | bb4059a | 2018-02-16 16:41:18 +0100 | [diff] [blame] | 12 | config DFU_OVER_TFTP |
Marek Vasut | 0f44d33 | 2018-02-16 16:41:17 +0100 | [diff] [blame] | 13 | bool |
| 14 | depends on NET |
| 15 | |
| 16 | if DFU |
AKASHI Takahiro | 045fd8b | 2020-10-29 13:47:41 +0900 | [diff] [blame] | 17 | config DFU_WRITE_ALT |
| 18 | bool |
AKASHI Takahiro | 045fd8b | 2020-10-29 13:47:41 +0900 | [diff] [blame] | 19 | |
Lukasz Majewski | 585a696 | 2015-08-24 00:21:49 +0200 | [diff] [blame] | 20 | config DFU_TFTP |
| 21 | bool "DFU via TFTP" |
AKASHI Takahiro | 3149e52 | 2020-10-29 13:47:43 +0900 | [diff] [blame] | 22 | select UPDATE_COMMON |
AKASHI Takahiro | c32479d | 2020-11-17 09:27:16 +0900 | [diff] [blame] | 23 | select DFU_OVER_TFTP |
Lukasz Majewski | 585a696 | 2015-08-24 00:21:49 +0200 | [diff] [blame] | 24 | help |
Robert P. J. Day | 1cc0a9f | 2016-05-04 04:47:31 -0400 | [diff] [blame] | 25 | This option allows performing update of DFU-managed medium with data |
| 26 | sent via TFTP boot. |
Lukasz Majewski | 585a696 | 2015-08-24 00:21:49 +0200 | [diff] [blame] | 27 | |
Robert P. J. Day | 1cc0a9f | 2016-05-04 04:47:31 -0400 | [diff] [blame] | 28 | Detailed description of this feature can be found at ./doc/README.dfutftp |
Tom Rini | 6828e60 | 2016-09-19 13:31:30 -0400 | [diff] [blame] | 29 | |
Andy Shevchenko | 98a8f44 | 2019-11-27 18:12:15 +0200 | [diff] [blame] | 30 | config DFU_TIMEOUT |
| 31 | bool "Timeout waiting for DFU" |
| 32 | help |
| 33 | This option adds an optional timeout parameter for DFU which, if set, |
| 34 | will cause DFU to only wait for that many seconds before exiting. |
| 35 | |
Tom Rini | 6828e60 | 2016-09-19 13:31:30 -0400 | [diff] [blame] | 36 | config DFU_MMC |
| 37 | bool "MMC back end for DFU" |
Ashok Reddy Soma | d05e377 | 2023-07-07 02:51:36 -0600 | [diff] [blame] | 38 | depends on MMC |
Tom Rini | 6828e60 | 2016-09-19 13:31:30 -0400 | [diff] [blame] | 39 | help |
| 40 | This option enables using DFU to read and write to MMC based storage. |
| 41 | |
Marek Vasut | 73d18e3 | 2021-10-26 00:37:05 +0200 | [diff] [blame] | 42 | config DFU_MTD |
| 43 | bool "MTD back end for DFU" |
| 44 | depends on DM_MTD |
Marek Vasut | 73d18e3 | 2021-10-26 00:37:05 +0200 | [diff] [blame] | 45 | help |
| 46 | This option enables using DFU to read and write to on any MTD device. |
| 47 | |
Tom Rini | 6828e60 | 2016-09-19 13:31:30 -0400 | [diff] [blame] | 48 | config DFU_NAND |
| 49 | bool "NAND back end for DFU" |
Boris Brezillon | 96c2961 | 2018-11-13 12:43:10 +0100 | [diff] [blame] | 50 | depends on CMD_MTDPARTS |
Miquel Raynal | f3a02d2 | 2019-10-03 19:50:22 +0200 | [diff] [blame] | 51 | depends on MTD_RAW_NAND |
Tom Rini | 6828e60 | 2016-09-19 13:31:30 -0400 | [diff] [blame] | 52 | help |
| 53 | This option enables using DFU to read and write to NAND based |
| 54 | storage. |
| 55 | |
Guillermo RodrÃguez | 13cb7cc | 2019-12-16 16:27:57 +0100 | [diff] [blame] | 56 | config DFU_NAND_TRIMFFS |
| 57 | bool "Skip empty pages when flashing UBI images to NAND" |
| 58 | depends on DFU_NAND |
| 59 | help |
| 60 | When flashing UBI images to NAND, enable the DROP_FFS flag to drop |
| 61 | trailing all-0xff pages. |
| 62 | |
Tom Rini | 6828e60 | 2016-09-19 13:31:30 -0400 | [diff] [blame] | 63 | config DFU_RAM |
| 64 | bool "RAM back end for DFU" |
| 65 | help |
| 66 | This option enables using DFU to read and write RAM on the target. |
| 67 | |
| 68 | config DFU_SF |
| 69 | bool "SPI flash back end for DFU" |
| 70 | help |
| 71 | This option enables using DFU to read and write to SPI flash based |
| 72 | storage. |
| 73 | |
Patrick Delaunay | cb986ba | 2019-10-14 09:28:00 +0200 | [diff] [blame] | 74 | config DFU_SF_PART |
| 75 | bool "MTD partition support for SPI flash back end" |
| 76 | depends on DFU_SF && CMD_MTDPARTS |
| 77 | default y |
| 78 | help |
| 79 | This option enables the support of "part" and "partubi" target in |
| 80 | SPI flash DFU back end. |
| 81 | |
Patrick Delaunay | ec44cac | 2019-10-14 09:28:06 +0200 | [diff] [blame] | 82 | config DFU_VIRT |
| 83 | bool "VIRTUAL flash back end for DFU" |
| 84 | help |
| 85 | This option enables using DFU to read and write to VIRTUAL device |
| 86 | used at board level to manage specific behavior |
| 87 | (OTP update for example). |
| 88 | |
Patrick Delaunay | 8cc2814 | 2020-02-26 10:28:41 +0100 | [diff] [blame] | 89 | config SET_DFU_ALT_INFO |
| 90 | bool "Dynamic set of DFU alternate information" |
| 91 | help |
| 92 | This option allows to call the function set_dfu_alt_info to |
| 93 | dynamically build dfu_alt_info in board. |
Aswath Govindraju | 8e3ea2d | 2021-06-01 16:51:47 +0530 | [diff] [blame] | 94 | |
| 95 | config SYS_DFU_DATA_BUF_SIZE |
| 96 | hex "Size of buffer to be allocated for transfer to raw storage device" |
| 97 | default 0x800000 |
| 98 | help |
| 99 | DFU transfer uses a buffer before writing data to the |
| 100 | raw storage device. This value can be used for setting the |
| 101 | size of this buffer. The size of the buffer is also configurable |
| 102 | through the "dfu_bufsiz" environment variable. If both are |
| 103 | given the size of the buffer is set to "dfu_bufsize". |
| 104 | |
| 105 | config SYS_DFU_MAX_FILE_SIZE |
| 106 | hex "Size of the buffer to be allocated for transferring files" |
| 107 | default SYS_DFU_DATA_BUF_SIZE |
| 108 | help |
| 109 | When updating files rather than the raw storage device, |
| 110 | we use a static buffer to copy the file into and then write |
| 111 | the buffer once we've been given the whole file. Define |
| 112 | this to the maximum filesize (in bytes) for the buffer. |
| 113 | If undefined it defaults to the CONFIG_SYS_DFU_DATA_BUF_SIZE. |
Tom Rini | 6828e60 | 2016-09-19 13:31:30 -0400 | [diff] [blame] | 114 | endif |
Lukasz Majewski | 585a696 | 2015-08-24 00:21:49 +0200 | [diff] [blame] | 115 | endmenu |