Closed CookiePLMonster closed 4 months ago
Looks like some work for @hedger )
There are 2 sides of the problem here. First, ufbt implementation is lacking "ARGS" commandline parameter definition. Easily fixable.
However, after introducing that parameter, there's a second issue, caused by hacky way of environment construction in ufbt. I'm looking for better solutions than the current one - and any of them will include a new release to ufbt Python package.
@CookiePLMonster
Could you please check if recent fixes solve the issue for you?
python3 -m pip install --upgrade --pre ufbt
ufbt update -b hedger/ufbt-args
ufbt devboard_flash ARGS="-c dev"
ufbt devboard_flash ARGS="-c dev"
The issue seems resolved:
ufbt devboard_flash ARGS="-c dev"
scons: Entering directory `H:\dev\flipper-zero\.ufbt\current\scripts\ufbt'
fbt: warning: App folder 'C:\Users\Adrian': missing manifest (application.fam)
LoadAppManifest, line 130, in file "H:\dev\flipper-zero\.ufbt\current\scripts\fbt_tools\fbt_apps.py"
python H:\dev\flipper-zero\.ufbt\current\scripts/wifi_board.py -c dev
2024-07-09 17:54:05,011 [INFO] Trying to find WiFi board using VID:PID
2024-07-09 17:54:05,014 [INFO] Downloading https://update.flipperzero.one/blackmagic-firmware/directory.json
2024-07-09 17:54:05,175 [INFO] Using channel 'development'
2024-07-09 17:54:05,176 [INFO] Using version '9447ee92'
Nice ;-)
Describe the bug.
As described in the title -
./fbt devboard_flash ARGS="-c dev"
flashes adevelopment
version of the firmware, whileufbt devboard_flash ARGS="-c dev"
stays withrelease
. It would seem that with uFBT,ARGS
are passed toufbt
and notscripts/wifi_board.py
. See the logs below for more information.According to
ufbt --help
,ARGS=""
should work with uFBT too.Reproduction
./fbt devboard_flash ARGS="-c dev"
. Notice[INFO] Using channel 'development'
in the logs.ufbt devboard_flash ARGS="-c dev"
. Notice in the logs:Target
No response
Logs
Anything else?
No response