Require updating L4T BSP scripts

Hey.

I got some deprecated errors when using flash.sh. It returns as below:

Traceback (most recent call last):
  File "/home/nut/local_git/bsp_next/bootloader/./tegraflash.py", line 1284, in <module>
    tegraflash_run_commands()
  File "/home/nut/local_git/bsp_next/bootloader/./tegraflash.py", line 1150, in tegraflash_run_commands
    interpreter.onecmd(command)
  File "/usr/lib/python3.9/cmd.py", line 217, in onecmd
    return func(arg)
  File "/home/nut/local_git/bsp_next/bootloader/./tegraflash.py", line 780, in do_dump
    tegraflash_dump(exports, args)
  File "/home/nut/local_git/bsp_next/bootloader/tegraflash_internal.py", line 1246, in tegraflash_dump
    tegraflash_dumpeeprom(args, dump_args[1:])
  File "/home/nut/local_git/bsp_next/bootloader/tegraflash_internal.py", line 1300, in tegraflash_dumpeeprom
    tegraflash_boot_mb2_applet()
  File "/home/nut/local_git/bsp_next/bootloader/tegraflash_internal.py", line 2350, in tegraflash_boot_mb2_applet
    filename = tegraflash_send_mb2_applet()
  File "/home/nut/local_git/bsp_next/bootloader/tegraflash_internal.py", line 2344, in tegraflash_send_mb2_applet
    filename = tegraflas_oem_sign_file(filename, 'PLDT')
  File "/home/nut/local_git/bsp_next/bootloader/tegraflash_internal.py", line 2109, in tegraflas_oem_sign_file
    for file_nodes in xml_tree.getiterator('file'):
AttributeError: 'ElementTree' object has no attribute 'getiterator'
Reading board information failed.

I change all getiterator to iter in bootloader/tegraflash_internal.py to fix this error.

The Operating System is Arch Linux, Python version is 3.9.

I did not find where to pull request, hince I post this topic.

Hello,

Thanks for your kind share.
Since the official supported host OS are ubuntu 16.04/18.04, generally other users shall not hit this problem. We will not change this immediately.

1 Like