¿ªÔÆÌåÓý

ctrl + shift + ? for shortcuts
© 2025 Groups.io

Updating firmware from linux #linux


 

Chuck,

it's most certainly possible to update nanoVNA firmware under Linux. There's a *description* at /g/nanovna-users/files/Nano%20VNA%20Saver/nanoVNA-H4%20software%20support%20under%20Ubuntu.pdf.

The listing from *dfu-util* is roughly correct. I've only got an H4 to hand, which offers slightly different results:

~$ dfu-util -l
dfu-util 0.9

Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc.
Copyright 2010-2016 Tormod Volden and Stefan Schmidt
This program is Free Software and has ABSOLUTELY NO WARRANTY
Please report bugs to

Found DFU: [0483:df11] ver=2200, devnum=16, cfg=1, intf=0,
path="3-4.1.2", alt=1, name="@Option Bytes? /0x1FFFF800/01*016 e",
serial="205230502031"
Found DFU: [0483:df11] ver=2200, devnum=16, cfg=1, intf=0,
path="3-4.1.2", alt=0, name="@Internal Flash
/0x08000000/128*0002Kg", serial="205230502031"
The two entries refer to two different memory areas. It's likely that there was an issue with the command incantation. The *.dfu* file is to be preferred for the simpler command line necessary (less likelihood of a mistake.)

HTH, 73, Stay Safe,

Robin, G8DQX


On 27/06/2022 21:18, Chuck Miller wrote:
Trying to update the firmware on my NanoVNA-H from linux got the DFU file but keep getting error
dfu-util: More than one DFU capable USB device found! Try `--list' and specify the serial number or disconnect all but one device

dfu-util -l
dfu-util 0.9

Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc.
Copyright 2010-2016 Tormod Volden and Stefan Schmidt
This program is Free Software and has ABSOLUTELY NO WARRANTY
Please report bugs to

Found DFU: [0483:df11] ver=2200, devnum=10, cfg=1, intf=0, path="1-10", alt=1, name="@Option Bytes /0x1FFFF800/01*016 e", serial="FFFFFFFEFFFF"
Found DFU: [0483:df11] ver=2200, devnum=10, cfg=1, intf=0, path="1-10", alt=0, name="@Internal Flash /0x08000000/064*0002Kg", serial="FFFFFFFEFFFF"

all the instructions are for Windows and maybe Mac. Can't be done from Linux?
Chuck




 

I use the ST Micro Cube programmer, and the .bin images from Huygen native on Linux and it works fine. (Search the group - I posted a full "HowTo" procedure a month or so ago). Considering that ST has dropped the DFU based tool in favor of Cube, seems to be a logical direction in which to make a move . . .

And likely the instructions you found are for the ST DFU tool, and not the open source tool that you are trying to use. (Having said that, I'm pretty sure that "dfu-util" will work, I just never bothered with it, since ST supports Cube on Linux . . .)

- Tim

On June 27, 2022 3:18:09 PM CDT, Chuck Miller <cwmiller20@...> wrote:
Trying to update the firmware on my NanoVNA-H from linux got the DFU file but keep getting error
dfu-util: More than one DFU capable USB device found! Try `--list' and specify the serial number or disconnect all but one device

dfu-util -l
dfu-util 0.9

Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc.
Copyright 2010-2016 Tormod Volden and Stefan Schmidt
This program is Free Software and has ABSOLUTELY NO WARRANTY
Please report bugs to

Found DFU: [0483:df11] ver=2200, devnum=10, cfg=1, intf=0, path="1-10", alt=1, name="@Option Bytes /0x1FFFF800/01*016 e", serial="FFFFFFFEFFFF"
Found DFU: [0483:df11] ver=2200, devnum=10, cfg=1, intf=0, path="1-10", alt=0, name="@Internal Flash /0x08000000/064*0002Kg", serial="FFFFFFFEFFFF"

all the instructions are for Windows and maybe Mac. Can't be done from Linux?
Chuck




--
Sent from my Android device with K-9 Mail. Please excuse my brevity.


 

Trust me, *dfu-util* *does* work! (The ST Cube seemed rather overkill for very occasional firmware updates!)

73, YMMV, your approach is just as valid as mine,

Robin, G8DQX

On 27/06/2022 21:54, Tim Dawson wrote:
And likely the instructions you found are for the ST DFU tool, and not the open source tool that you are trying to use. (Having said that, I'm pretty sure that "dfu-util" will work, I just never bothered with it, since ST supports Cube on Linux . . .)


 

Yeah I finally got it, I had to add the alt=0 to the command line, and then everything was fine. Now updated to version 1.1, just have to figure out everything that changed and how to use it.

73, Chuck
N0NC


Bob Snyder
 

On 6/27/22 13:54, Tim Dawson wrote:
I use the ST Micro Cube programmer, and the .bin images from Huygen native on Linux and it works fine. (Search the group - I posted a full "HowTo" procedure a month or so ago).
Tim,

Could you point to this post containing the howto? I don't see anything from you in this group regarding the cube software.

Bob


 

I honestly don't know where it landed, and had asked if someone could put it on one of the pages so that it could be easily found, but I guess that didn't happen . . . I'll repost when I get back to my computer, and (hopefully) it can be put somewhere more easily findable . . .

On June 27, 2022 5:54:12 PM CDT, Bob Snyder <bob@...> wrote:
On 6/27/22 13:54, Tim Dawson wrote:
I use the ST Micro Cube programmer, and the .bin images from Huygen native on Linux and it works fine. (Search the group - I posted a full "HowTo" procedure a month or so ago).
Tim,

Could you point to this post containing the howto? I don't see anything from you in this group regarding the cube software.

Bob





--
Sent from my Android device with K-9 Mail. Please excuse my brevity.


 

Ditto for me as well.
Thanks

Fred - n4cla

On Mon, Jun 27, 2022, 18:54 Bob Snyder <bob@...> wrote:

On 6/27/22 13:54, Tim Dawson wrote:
I use the ST Micro Cube programmer, and the .bin images from Huygen
native on Linux and it works fine. (Search the group - I posted a full
"HowTo" procedure a month or so ago).

Tim,

Could you point to this post containing the howto? I don't see anything
from you in this group regarding the cube software.

Bob







 

Do what the error message says, disconnect any other device and
update with: dfu-util -a 0 -D firmware.dfu

On Mon, 27 Jun 2022 at 22:18, Chuck Miller <cwmiller20@...> wrote:

Trying to update the firmware on my NanoVNA-H from linux got the DFU file
but keep getting error
dfu-util: More than one DFU capable USB device found! Try `--list' and
specify the serial number or disconnect all but one device

dfu-util -l
dfu-util 0.9

Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc.
Copyright 2010-2016 Tormod Volden and Stefan Schmidt
This program is Free Software and has ABSOLUTELY NO WARRANTY
Please report bugs to

Found DFU: [0483:df11] ver=2200, devnum=10, cfg=1, intf=0, path="1-10",
alt=1, name="@Option Bytes /0x1FFFF800/01*016 e", serial="FFFFFFFEFFFF"
Found DFU: [0483:df11] ver=2200, devnum=10, cfg=1, intf=0, path="1-10",
alt=0, name="@Internal Flash /0x08000000/064*0002Kg", serial="FFFFFFFEFFFF"

all the instructions are for Windows and maybe Mac. Can't be done from
Linux?
Chuck






 

Dragan, The problem was that both enteries were different memory areas of the same device, so if I removed one, I removed both. The dfu-util -a 0 -D firmware.dfu worked after I figured out I was missing the -a 0 part.

Thanks, Chuck
N0NC


 

?

On Tue, 28 Jun 2022 at 18:15, Chuck Miller <cwmiller20@...> wrote:

Dragan, The problem was that both enteries were different memory areas of
the same device, so if I removed one, I removed both. The dfu-util -a 0 -D
firmware.dfu worked after I figured out I was missing the -a 0 part.

Thanks, Chuck
N0NC