Require updating L4T BSP scripts


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

Traceback (most recent call last):
  File "/home/nut/local_git/bsp_next/bootloader/./", line 1284, in <module>
  File "/home/nut/local_git/bsp_next/bootloader/./", line 1150, in tegraflash_run_commands
  File "/usr/lib/python3.9/", line 217, in onecmd
    return func(arg)
  File "/home/nut/local_git/bsp_next/bootloader/./", line 780, in do_dump
    tegraflash_dump(exports, args)
  File "/home/nut/local_git/bsp_next/bootloader/", line 1246, in tegraflash_dump
    tegraflash_dumpeeprom(args, dump_args[1:])
  File "/home/nut/local_git/bsp_next/bootloader/", line 1300, in tegraflash_dumpeeprom
  File "/home/nut/local_git/bsp_next/bootloader/", line 2350, in tegraflash_boot_mb2_applet
    filename = tegraflash_send_mb2_applet()
  File "/home/nut/local_git/bsp_next/bootloader/", line 2344, in tegraflash_send_mb2_applet
    filename = tegraflas_oem_sign_file(filename, 'PLDT')
  File "/home/nut/local_git/bsp_next/bootloader/", 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/ 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.


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