Skip to content
This repository has been archived by the owner on Aug 5, 2022. It is now read-only.

DFU issues #3

Closed
agherzan opened this issue Apr 19, 2016 · 5 comments
Closed

DFU issues #3

agherzan opened this issue Apr 19, 2016 · 5 comments

Comments

@agherzan
Copy link

agherzan commented Apr 19, 2016

U-Boot 2015.10

When trying to open a dfu connection I get:

=> dfu 0 mmc 0
ERROR: Memory layout (mmc) not supported!

at drivers/dfu/dfu_mmc.c:389/dfu_fill_entity_mmc()
ERROR: DFU entities configuration failed!

at drivers/dfu/dfu.c:81/dfu_init_env_entities()
dfu - Device Firmware Upgrade

Usage:
dfu <USB_controller> <interface> <dev> [list|timeout]
  - device firmware upgrade via <USB_controller>
    on device <dev>, attached to interface
    <interface>
    [list] - list available alt settings
    [timeout] - specify inactivity timeout in sec, doesn't work whit list

Any hints on how to fix this?

@agherzan
Copy link
Author

This is because there is no such type as mmc anymore in this uboot version. It was changed to raw in http://lists.denx.de/pipermail/u-boot/2014-January/170563.html .

@PieterGit
Copy link

with 2017rc1 I get the same error with dfu 0 mmc 0 . With dfu 0 raw 0 i also get errors:

=> dfu 0 raw 0
dfu_fill_entity: Device raw not (yet) supported!
ERROR: DFU entities configuration failed!

at drivers/dfu/dfu.c:70/dfu_init_env_entities()
dfu - Device Firmware Upgrade

Usage:
dfu <USB_controller> <interface> <dev> [list]
  - device firmware upgrade via <USB_controller>
    on device <dev>, attached to interface
    <interface>
    [list] - list available alt settings

I can't reflash my edison with another u-boot or image, because dfu-utils timeouts

Now waiting for dfu device 8087:0a99
Please plug and reboot the board
Timed out while waiting for dfu device 8087:0a99

Can somebody help me how to get this dfu stuff resolved?
Thanks in advance

@andy-shev
Copy link

andy-shev commented Jan 24, 2017

@PieterGit

You need to change mmc word (note that mmcpart word is left untouched) to raw word in description of partitions. It's done, for example, in do_dfu_alt_info_mmc environment variable.

Command is kept the same:
dfu 0 mmc 0

@bradjc
Copy link

bradjc commented May 3, 2017

To change mmc to raw, I ran:

setenv dfu_alt_info "ifwi${hardware_id} raw 0 8192 rawpart 1;ifwib${hardware_id} raw 0 8192 rawpart 2;u-boot0 part 0 1;u-boot-env0 part 0 2;u-boot1 part 0 3;u-boot-env1 part 0 4;boot part 0 7;rootfs part 0 8;update part 0 9;home part 0 10;vmlinuz fat 0 7;initrd fat 0 7"
setenv do_dfu_alt_info_ifwi 'setenv dfu_alt_info "ifwi${hardware_id} raw 0 8192 rawpart 1;ifwib${hardware_id} raw 0 8192 rawpart 2"'
setenv do_dfu_alt_info_mmc 'setenv dfu_alt_info "ifwi${hardware_id} raw 0 8192 rawpart 1;ifwib${hardware_id} raw 0 8192 rawpart 2;u-boot0 part 0 1;u-boot-env0 part 0 2;u-boot1 part 0 3;u-boot-env1 part 0 4;boot part 0 7;rootfs part 0 8;update part 0 9;home part 0 10;vmlinuz fat 0 7;initrd fat 0 7"'

after stopping autoboot in u-boot. Then

saveenv

stores them so they persist.

@andy-shev
Copy link

@bradjc
There is no rawpart keyword in DFU if I remember correctly. You need to use mmcpart instead. I have updated above comment to accent on this.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants