jetson-flash
jetson-flash copied to clipboard
L4T archive caching doesn't work in docker container
Hi there
Issue: flasher download l4t archive from nVidia servers every launch during one session
Steps to reproduce:
- Build docker image (docker compose up)
- Connect to docker container (docker exec -it)
- Start flashing ( ./bin/cmd.js -f....)
- Cancel flashing in process (Press Ctrl+C) or receive an flashing error
- Restart flashing
Expected result: flasher use cached l4t archive Actual result: flasher download l4t archive from nVidia servers again
Example logs:
# ./bin/cmd.js -f /data/images/balena-cloud-xaviers-jetson-xavier-nx-devkit-emmc-2.107.10-v14.4.4.img -m jetson-xavier-nx-devkit-emmc
Consistency check done for /tmp/39/Linux_for_Tegra
Saved in /tmp/39
Successfully generated hash
Checking resin cache
<..............................>
^CTraceback (most recent call last):
File "./tegraflash.py", line 1296, in <module>
tegraflash_run_commands()
File "./tegraflash.py", line 1155, in tegraflash_run_commands
interpreter.onecmd(command)
File "/usr/lib/python3.8/cmd.py", line 217, in onecmd
return func(arg)
File "./tegraflash.py", line 785, in do_dump
tegraflash_dump(exports, args)
File "/tmp/Linux_for_Tegra/bootloader/tegraflash_internal.py", line 1375, in tegraflash_dump
tegraflash_dumpeeprom(args, dump_args[1:])
File "/tmp/Linux_for_Tegra/bootloader/tegraflash_internal.py", line 1453, in tegraflash_dumpeeprom
run_command(command)
File "/tmp/Linux_for_Tegra/bootloader/tegraflash_internal.py", line 202, in run_command
log = print_process(process, enable_print)
File "/tmp/Linux_for_Tegra/bootloader/tegraflash_internal.py", line 161, in print_process
output = process.stdout.read(1)
KeyboardInterrupt
# ./bin/cmd.js -f /data/images/balena-cloud-xaviers-jetson-xavier-nx-devkit-emmc-2.107.10-v14.4.4.img -m jetson-xavier-nx-devkit-emmc
Consistency check done for /tmp/147/Linux_for_Tegra
| Downloading and extracting https://developer.nvidia.com/embedded/l4t/r32_release_v7.2/t186/jetson_linux_r32.7.2_aarch64.tbz2