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