Unable to flash 6.0.8 using NGC docker using flash.py

Please provide the following info (tick the boxes after creating this topic):
Software Version
DRIVE OS 6.0.8.1
DRIVE OS 6.0.6
DRIVE OS 6.0.5
DRIVE OS 6.0.4 (rev. 1)
DRIVE OS 6.0.4 SDK
other

Target Operating System
Linux
QNX
other

Hardware Platform
DRIVE AGX Orin Developer Kit (940-63710-0010-300)
DRIVE AGX Orin Developer Kit (940-63710-0010-200)
DRIVE AGX Orin Developer Kit (940-63710-0010-100)
DRIVE AGX Orin Developer Kit (940-63710-0010-D00)
DRIVE AGX Orin Developer Kit (940-63710-0010-C00)
DRIVE AGX Orin Developer Kit (not sure its number)
other

SDK Manager Version
1.9.3.10904
other

Host Machine Version
native Ubuntu Linux 20.04 Host installed with SDK Manager
native Ubuntu Linux 20.04 Host installed with DRIVE OS Docker Containers
native Ubuntu Linux 18.04 Host installed with DRIVE OS Docker Containers
other

I have Drive Orin with 6.0.6 installed using SDK Manager.
Now I am trying to install 6.0.8.1-0006 using NGC Docker container with the command
./flash.py /dev/ttyACM1 p3710.

I get the following error. Also please Note I was able to flash first time a week back properly. But getting error now

root@6.0.8.1-0006-build-linux-sdk:/drive# ./flash.py /dev/ttyACM1 p3710
Traceback (most recent call last):
File “./flash.py”, line 23, in
Path(log_file).touch()
File “/usr/lib/python3.8/pathlib.py”, line 1278, in touch
fd = self._raw_open(flags, mode)
File “/usr/lib/python3.8/pathlib.py”, line 1087, in _raw_open
return self._accessor.open(self, flags, mode)
FileNotFoundError: [Errno 2] No such file or directory: ‘/drive_flashing/log_m6k83clsxdyi2bp9gjhfrv1tnwa450o7.txt’

Dear @arkos,
Were you able to flash 6.0.8.1 using same docker/same host/same command? Please double check

  1. you are able to access aurix console using minicom -D /dev/ttyACM1 ? Also check tegra can be accessed via minicom.
  2. Please double check if target and host connected properly. Please share lsusb output on host to confirm if the target is in normal mode(not recovery)

Hi @SivaRamaKrishnaNV Were you able to flash 6.0.8.1 using same docker/same host/same command? Please double check
→ yes we are using same docker same host.

  1. you are able to access aurix console using minicom -D /dev/ttyACM1 ? Also check tegra can be accessed via minicom.


    image

  2. Please double check if target and host connected properly. Please share lsusb output on host to confirm if the target is in normal mode(not recovery)
    lsusb
    Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
    Bus 003 Device 004: ID 13d3:5415 IMC Networks Integrated Camera
    Bus 003 Device 003: ID 06cb:00bd Synaptics, Inc.
    Bus 003 Device 006: ID 0955:7045 NVIDIA Corp. Tegra On-Platform Operator
    Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
    Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

I still get below in the docker.
root@6.0.8.1-0006-build-linux-sdk:/drive# ./flash.py /dev/ttyACM1 p3710
Traceback (most recent call last):
File “./flash.py”, line 23, in
Path(log_file).touch()
File “/usr/lib/python3.8/pathlib.py”, line 1278, in touch
fd = self._raw_open(flags, mode)
File “/usr/lib/python3.8/pathlib.py”, line 1087, in _raw_open
return self._accessor.open(self, flags, mode)
FileNotFoundError: [Errno 2] No such file or directory: ‘/drive_flashing/log_dq6civx3m1275lkgyrjfsbnt498aewoz.txt’
root@6.0.8.1-0006-build-linux-sdk:/drive#

Dear @jishnuw ,
Do you have /drive_flashing folder on docker? Did you add -v /drive_flashing:/drive_flashing to your docker run command?

Hi @SivaRamaKrishnaNV

This is what we are running.
sudo docker run -it --privileged --net=host --gpus=all -v /dev/bus/usb:/dev/bus/usb -v /home/jishnu/work/nvidia_orin/DriveOs:/home/nvidia/ nvcr.io/drive/driveos-sdk/drive-agx-orin-linux-aarch64-sdk-build-x86:6.0.8.1-0006

Meanwhile do you want me to try adding a " -v /drive_flashing:/drive_flashing " to the command and try?

To confirm the " first time flash works" I am re cloning the image to see if I can flash then.

Hi @SivaRamaKrishnaNV

With the -v /drive_flashing:/drive_flashing it works. Thanks a lot for the quick help. Sorry we missed this from the page.
Just one more info/observation to add : the usb should be connected before running docker else it doesn’t take latest devices connected.

Thanks again. You may close the ticket.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.