/openbmc/u-boot/drivers/dfu/ |
H A D | dfu.c | 154 ret = dfu->write_medium(dfu, dfu->offset, dfu->i_buf_start, &w_size); in dfu_write_buffer_drain() 159 dfu->i_buf = dfu->i_buf_start; in dfu_write_buffer_drain() 177 dfu->i_buf = dfu->i_buf_start; in dfu_transaction_cleanup() 200 ret = dfu->get_medium_size(dfu, &dfu->r_left); in dfu_transaction_initiate() 220 ret = dfu->flush_medium(dfu); in dfu_flush() 329 dfu->b_left = dfu->i_buf_end - dfu->i_buf_start; in dfu_read_buffer_fill() 333 dfu->b_left = dfu->r_left; in dfu_read_buffer_fill() 334 ret = dfu->read_medium(dfu, dfu->offset, dfu->i_buf, in dfu_read_buffer_fill() 340 dfu->offset += dfu->b_left; in dfu_read_buffer_fill() 341 dfu->r_left -= dfu->b_left; in dfu_read_buffer_fill() [all …]
|
H A D | dfu_mmc.c | 45 dfu->data.mmc.lba_start + dfu->data.mmc.lba_size) { in mmc_block_op() 78 dfu->data.mmc.dev_num, in mmc_block_op() 116 switch (dfu->layout) { in mmc_file_op() 130 dfu->data.mmc.dev, dfu->data.mmc.part); in mmc_file_op() 174 switch (dfu->layout) { in dfu_write_medium_mmc() 210 switch (dfu->layout) { in dfu_get_medium_size_mmc() 212 *size = dfu->data.mmc.lba_size * dfu->data.mmc.lba_blk_size; in dfu_get_medium_size_mmc() 256 switch (dfu->layout) { in dfu_read_medium_mmc() 367 dfu->layout = DFU_FS_FAT; in dfu_fill_entity_mmc() 369 dfu->layout = DFU_FS_EXT4; in dfu_fill_entity_mmc() [all …]
|
H A D | dfu_nand.c | 31 *len = dfu->data.nand.size; in nand_block_op() 35 start = dfu->data.nand.start + offset + dfu->bad_skip; in nand_block_op() 36 lim = dfu->data.nand.start + dfu->data.nand.size - start; in nand_block_op() 104 switch (dfu->layout) { in dfu_write_medium_nand() 128 switch (dfu->layout) { in dfu_read_medium_nand() 146 if (dfu->data.nand.ubi) { in dfu_flush_medium_nand() 158 off = dfu->offset; in dfu_flush_medium_nand() 168 dfu->bad_skip; in dfu_flush_medium_nand() 185 if (dfu->data.nand.ubi) in dfu_polltimeout_nand() 196 dfu->data.nand.ubi = 0; in dfu_fill_entity_nand() [all …]
|
H A D | dfu_sf.c | 16 *size = dfu->data.sf.size; in dfu_get_medium_size_sf() 24 return spi_flash_read(dfu->data.sf.dev, dfu->data.sf.start + offset, in dfu_read_medium_sf() 31 dfu->data.sf.dev->sector_size; in find_sector() 40 find_sector(dfu, dfu->data.sf.start, offset), in dfu_write_medium_sf() 45 ret = spi_flash_write(dfu->data.sf.dev, dfu->data.sf.start + offset, in dfu_write_medium_sf() 65 spi_flash_free(dfu->data.sf.dev); in dfu_free_entity_sf() 124 if (!dfu->data.sf.dev) in dfu_fill_entity_sf() 127 dfu->dev_type = DFU_DEV_SF; in dfu_fill_entity_sf() 128 dfu->max_buf_size = dfu->data.sf.dev->sector_size; in dfu_fill_entity_sf() 132 dfu->layout = DFU_RAW_ADDR; in dfu_fill_entity_sf() [all …]
|
H A D | dfu_ram.c | 19 if (dfu->layout != DFU_RAM_ADDR) { in dfu_transfer_medium_ram() 24 if (offset > dfu->data.ram.size) { in dfu_transfer_medium_ram() 30 memcpy(dfu->data.ram.start + offset, buf, *len); in dfu_transfer_medium_ram() 32 memcpy(buf, dfu->data.ram.start + offset, *len); in dfu_transfer_medium_ram() 45 *size = dfu->data.ram.size; in dfu_get_medium_size_ram() 69 dfu->dev_type = DFU_DEV_RAM; in dfu_fill_entity_ram() 75 dfu->layout = DFU_RAM_ADDR; in dfu_fill_entity_ram() 79 dfu->write_medium = dfu_write_medium_ram; in dfu_fill_entity_ram() 80 dfu->get_medium_size = dfu_get_medium_size_ram; in dfu_fill_entity_ram() 81 dfu->read_medium = dfu_read_medium_ram; in dfu_fill_entity_ram() [all …]
|
H A D | dfu_tftp.c | 17 struct dfu_entity *dfu; in dfu_tftp_write() local 51 dfu = dfu_get_entity(alt_setting_num); in dfu_tftp_write() 52 if (!dfu) { in dfu_tftp_write() 58 ret = dfu_write_from_mem_addr(dfu, (void *)(uintptr_t)addr, len); in dfu_tftp_write()
|
H A D | Makefile | 6 obj-$(CONFIG_$(SPL_)DFU) += dfu.o
|
/openbmc/u-boot/include/ |
H A D | dfu.h | 111 int (*get_medium_size)(struct dfu_entity *dfu, u64 *size); 113 int (*read_medium)(struct dfu_entity *dfu, 116 int (*write_medium)(struct dfu_entity *dfu, 119 int (*flush_medium)(struct dfu_entity *dfu); 120 unsigned int (*poll_timeout)(struct dfu_entity *dfu); 122 void (*free_entity)(struct dfu_entity *dfu); 155 unsigned char *dfu_get_buf(struct dfu_entity *dfu); 184 static inline void dfu_set_defer_flush(struct dfu_entity *dfu) in dfu_set_defer_flush() argument 186 dfu_defer_flush = dfu; in dfu_set_defer_flush() 201 int dfu_write_from_mem_addr(struct dfu_entity *dfu, void *buf, int size); [all …]
|
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-support/dfu-util/ |
H A D | dfu-util-native_0.11.bb | 1 require dfu-util_${PV}.bb 12 install -m 0755 src/dfu-util ${DEPLOYDIR}/dfu-util-${PV} 13 rm -f ${DEPLOYDIR}/dfu-util 14 ln -sf ./dfu-util-${PV} ${DEPLOYDIR}/dfu-util
|
H A D | dfu-util_0.11.bb | 2 HOMEPAGE = "http://dfu-util.sourceforge.net" 8 SRC_URI = "http://dfu-util.sourceforge.net/releases/${BP}.tar.gz"
|
/openbmc/u-boot/board/warp/ |
H A D | README | 8 - dfu-util: http://dfu-util.sourceforge.net/releases/ 40 => dfu 0 mmc 0 44 $ sudo dfu-util -D u-boot.imx -a boot
|
/openbmc/u-boot/board/warp7/ |
H A D | README | 8 - dfu-util: http://dfu-util.sourceforge.net/releases/ (if you are in a 47 => dfu 0 mmc 0 51 $ sudo dfu-util -D u-boot-dtb.imx -a boot
|
/openbmc/u-boot/doc/ |
H A D | README.dfutftp | 42 The "dfu" command has been extended to support transfer via TFTP - one 43 needs to type for example "dfu tftp 0 mmc 0" 55 The "dfu tftp" command can be used in the "preboot" environment variable 84 3. If required, to update firmware on boot, put the "dfu tftp 0 mmc 0" in the 87 4. Inspect "dfu" specific variables: 119 * Extend dfu-util command to support TFTP based transfers
|
H A D | git-mailrc | 107 alias dfu uboot, lukma
|
/openbmc/u-boot/board/technexion/pico-imx7d/ |
H A D | README | 54 Run the DFU agent so we can flash the new images using dfu-util tool: 56 => dfu 0 mmc 0 60 $ sudo dfu-util -D SPL -a spl 62 $ sudo dfu-util -D u-boot.img -a u-boot
|
/openbmc/u-boot/board/bticino/mamoj/ |
H A D | README | 80 => dfu 0 mmc 2 84 # dfu-util -D SPL -a spl 89 => dfu 0 mmc 2 93 # dfu-util -D u-boot-dtb.img -a u-boot
|
/openbmc/u-boot/board/technexion/pico-imx6ul/ |
H A D | README | 8 - dfu-util: http://dfu-util.sourceforge.net/releases/ 53 Run the DFU agent so we can flash the new images using dfu-util tool: 55 => dfu 0 mmc 0 59 $ sudo dfu-util -D SPL -a spl 61 $ sudo dfu-util -D u-boot-dtb.img -a u-boot
|
/openbmc/u-boot/drivers/usb/gadget/ |
H A D | f_dfu.c | 174 static inline int dfu_get_manifest_timeout(struct dfu_entity *dfu) in dfu_get_manifest_timeout() argument 176 return dfu->poll_timeout ? dfu->poll_timeout(dfu) : in dfu_get_manifest_timeout() 184 struct dfu_entity *dfu = dfu_get_entity(f_dfu->altsetting); in handle_getstatus() local 197 dfu_set_poll_timeout(dstat, dfu_get_manifest_timeout(dfu)); in handle_getstatus()
|
/openbmc/u-boot/cmd/ |
H A D | dfu.c | 64 U_BOOT_CMD(dfu, CONFIG_SYS_MAXARGS, 1, do_dfu,
|
H A D | Makefile | 165 obj-$(CONFIG_CMD_DFU) += dfu.o
|
/openbmc/u-boot/drivers/ |
H A D | Makefile | 5 obj-$(CONFIG_$(SPL_TPL_)DFU) += dfu/ 89 obj-y += dfu/
|
H A D | Kconfig | 31 source "drivers/dfu/Kconfig"
|
/openbmc/u-boot/common/ |
H A D | Makefile | 68 obj-$(CONFIG_DFU_OVER_USB) += dfu.o 127 obj-$(CONFIG_DFU_OVER_USB) += dfu.o
|
/openbmc/openbmc/poky/meta/conf/distro/include/ |
H A D | no-static-libs.inc | 19 # libusb1-native is used to build static dfu-util-native
|
/openbmc/u-boot/ |
H A D | MAINTAINERS | 441 T: git git://git.denx.de/u-boot-dfu.git 442 F: cmd/dfu.c 444 F: common/dfu.c 447 F: drivers/dfu/
|