jetson-flash icon indicating copy to clipboard operation
jetson-flash copied to clipboard

L4T archive caching doesn't work in docker container

Open eshcheglov opened this issue 1 year ago • 0 comments

Hi there

Issue: flasher download l4t archive from nVidia servers every launch during one session

Steps to reproduce:

  1. Build docker image (docker compose up)
  2. Connect to docker container (docker exec -it)
  3. Start flashing ( ./bin/cmd.js -f....)
  4. Cancel flashing in process (Press Ctrl+C) or receive an flashing error
  5. 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

eshcheglov avatar May 19 '23 12:05 eshcheglov