Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions UPDATE.BAT
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ for /F %%i in ("%FILE%") do @set NAME=%%~nxi
if %NAME%==pluto.dfu goto firmware
if %NAME%==m2k.dfu goto firmware_m2k
if %NAME%==uboot-env.dfu goto ubootenv
if %NAME%==boot.dfu goto boot
goto help

:firmware
Expand All @@ -33,6 +34,10 @@ exit /b 0
"%pInstallDir%\dfu-util.exe" -d 0456:b673,0456:b674 -D %FILE% -a uboot-env.dfu || "%pInstallDir%\dfu-util.exe" -d 0456:b672,0456:b675 -D %FILE% -a uboot-env.dfu
exit /b 0

:boot
"%pInstallDir%\dfu-util.exe" -d 0456:b673,0456:b674 -D %FILE% -a boot.dfu || "%pInstallDir%\dfu-util.exe" -d 0456:b672,0456:b675 -D %FILE% -a boot.dfu
exit /b 0

:help
echo PlutoSDR/M2k DFU update utility
echo Usage: %0 PATH-TO\[pluto^|m2k].dfu
Expand Down