Error in flashing PX2 AutoCruise

I use sdkmanager to flash PX2 AutoCruise.

The error message is shown below:

Flash AutoCruise Device with Single Guest Linux : stty: /dev/ttyUSB1
08:56:20 ERROR : Flash AutoCruise Device with Single Guest Linux : : Permission denied
08:56:20 ERROR : Flash AutoCruise Device with Single Guest Linux : ./pdk_flash.sh: line 171: /dev/ttyUSB1: Permission denied
08:56:20 ERROR : Flash AutoCruise Device with Single Guest Linux : ./pdk_flash.sh: line 172: /dev/ttyUSB1: Permission denied

Dear gaohua,

According to the logs, you need sudo permission to access /dev/ttyUSB1
I don’t know what part of this error was caused by the contents you uploaded.
Could you please let us know more detail?

I meet the same problem.

And I known this step need sudo permission to access /dev/ttyUSB1,but when i click the RETRY button in the SDK Manager page,a dialog pops up:Enter your password to perform administrative tasks, i entered the password and click ok button. this problem appears again.

Dear zhuweisheng,

There are two things.

  1. ./pdk_flash.sh need to run with sudo permission.
  2. sdkmanager need to run without sudo permission.

If you want to flash the board using sdkmanager, please don’t use sudo permission. Thanks.

I tried sudo chmod 777 /dev/ttyUSB1. The permission issue was solved.

Thank you SteveNV and gaohua.
I tried again, but flash failed again.The error log show below, what’s the trouble? thank you.

14:17:07 INFO : Flash AutoCruise Device with Single Guest Linux : zhuwsh
14:17:07 INFO : Flash AutoCruise Device with Single Guest Linux : 15236
14:17:07 INFO : Flash AutoCruise Device with Single Guest Linux : 0
14:17:07 INFO : Flash AutoCruise Device with Single Guest Linux : /bin/bash: /opt/nvidia/sdkmanager/resources/app.asar.unpacked/output/installUtils/NV_DRIVE_LINUX_BUNDLE/common/_installer/exit.code: Permission denied
14:17:07 INFO : Flash AutoCruise Device with Single Guest Linux : /bin/bash: /opt/nvidia/sdkmanager/resources/app.asar.unpacked/output/installUtils/NV_DRIVE_LINUX_BUNDLE/common/_installer/exit.code: Permission denied
14:17:07 INFO : Flash AutoCruise Device with Single Guest Linux : InstallUtil returns: exit status 2
14:17:07 ERROR : Flash AutoCruise Device with Single Guest Linux : command terminated with error
14:17:07 ERROR : Flash AutoCruise Device with Single Guest Linux : install 'Flash AutoCruise Device with Single Guest Linux' failure, command < cd '/home/zhuwsh/nvidia/nvidia_sdk/DRIVE/Linux/5.0.10.3/OS' ; /opt/nvidia/sdkmanager/resources/app.asar.unpacked/output/installUtils/adapter -a='install' -b='NV_DRIVE_LINUX_BUNDLE' -c='eyJpZCI6Ik5WX0ZMQVNIX0FVVE9DUlVJU0VfREVWSUNFX1dJVEhfU0lOR0xFX0dVRVNUX0xJTlVYX0NPTVAiLCJuYW1lIjoiRmxhc2ggQXV0b0NydWlzZSBEZXZpY2Ugd2l0aCBTaW5nbGUgR3Vlc3QgTGludXgiLCJkZXNjcmlwdGlvbiI6IkZsYXNoIEF1dG9DcnVpc2UgRGV2aWNlIHdpdGggU2luZ2xlIEd1ZXN0IExpbnV4LiIsImlzVmlzaWJsZSI6dHJ1ZSwibGljZW5zZUlkIjoiTlZfRFJJVkVfU0xBX09DVDIwMTciLCJpc0RldGVjdGFibGVJbnN0YWxsIjpmYWxzZSwiaXNJbnN0YWxsUGF0aEN1c3RvbWl6YWJsZSI6dHJ1ZSwidmVyc2lvbiI6IjUuMC4xMC4zIiwib3BlcmF0aW5nU3lzdGVtcyI6WyJ1YnVudHUxNDA0IiwidWJ1bnR1MTYwNCJdLCJpbnN0YWxsU2l6ZU1CIjo0MTYwLCJkb3dubG9hZEZpbGVzIjpbXSwidGFyZ2V0SWRzIjpbIlBYMl9BVVRPQ1JVSVNFIl0sImRlcGVuZGVuY2llcyI6W3siaWQiOiJOVl9HTlVfVE9PTENIQUlOU19DT01QIiwib3BlcmF0b3IiOiI9PSIsInZlciI6IjUuMC4xMC4zIn0seyJpZCI6Ik5WX0RSSVZFX0ZPVU5EQVRJT05fUEFDS0FHRVNfU0RLX0NPTVAiLCJvcGVyYXRvciI6Ij09IiwidmVyIjoiNS4wLjEwLjMifSx7ImlkIjoiTlZfRFJJVkVfRk9VTkRBVElPTl9PU1NfQ09NUCIsIm9wZXJhdG9yIjoiPT0iLCJ2ZXIiOiI1LjAuMTAuMyJ9LHsiaWQiOiJOVl9PU1NfQU5EX05WX1BBQ0tBR0VTX1NES19DT01QIiwib3BlcmF0b3IiOiI9PSIsInZlciI6IjUuMC4xMC4zIn0seyJpZCI6Ik5WX0RQWF9QQUNLQUdFU19DT01QIiwib3BlcmF0b3IiOiI9PSIsInZlciI6IjUuMC4xMC4zIn0seyJpZCI6Ik5WX0FVUklYX1VQREFURVJfQ09NUCIsIm9wZXJhdG9yIjoiPT0iLCJ2ZXIiOiI1LjAuMTAuMyJ9LHsiaWQiOiJOVl9EUFhfUEFUQ0hfQ09NUCIsIm9wZXJhdG9yIjoiPT0iLCJ2ZXIiOiI1LjAuMTAuMyJ9XSwiZXh0ZXJuYWxfZGVwZW5kZW5jaWVzIjpbXSwicGFyZW50SUQiOiJOVl9EUklWRV9GTEFTSF9UQVJHRVRfR1JPVVAiLCJhY3Rpb24iOjEsImRvd25sb2FkRXJyb3JzIjpbXSwiZXhlYyI6Ii9ob21lL3podXdzaC9Eb3dubG9hZHMvbnZpZGlhL3Nka21fZG93bmxvYWRzIiwiaW5zdGFsbFBhdGgiOiIvaG9tZS96aHV3c2gvbnZpZGlhL252aWRpYV9zZGsvRFJJVkUvTGludXgvNS4wLjEwLjMvT1MiLCJ0aW1lb3V0Q0IiOm51bGwsIndhaXRpbmdTdGF0dXMiOmZhbHNlfQ==' -i='NV_FLASH_AUTOCRUISE_DEVICE_WITH_SINGLE_GUEST_LINUX_COMP' -v='5.0.10.3' -l='/home/zhuwsh/nvidia/nvidia_sdk/DRIVE/Linux/5.0.10.3/OS' -L='/home/zhuwsh/.nvsdkm/logs/DRIVE/Linux/5.0.10.3/OS' -p='22544' -u='/opt/nvidia/sdkmanager/resources/app.asar.unpacked/output/installUtils/NV_DRIVE_LINUX_BUNDLE/common/_installer/InstallUtil' -t='PX2_AUTOCRUISE' -x='SDK' -e='/home/zhuwsh/Downloads/nvidia/sdkm_downloads' > terminated with error

Dear zhuweisheng,

I can still find “Permission denied” comment in above log.
It looks like permission issue.

14:17:07 INFO : Flash AutoCruise Device with Single Guest Linux : /bin/bash: /opt/nvidia/sdkmanager/resources/app.asar.unpacked/output/installUtils/NV_DRIVE_LINUX_BUNDLE/common/_installer/exit.code: Permission denied
14:17:07 INFO : Flash AutoCruise Device with Single Guest Linux : /bin/bash: /opt/nvidia/sdkmanager/resources/app.asar.unpacked/output/installUtils/NV_DRIVE_LINUX_BUNDLE/common/_installer/exit.code: Permission denied

Dear SteveNV,
Thank you for your reply.I found this “Permission denied” yet, but there is no exit.code tile in the path, and I don’t know why?

zhuwsh@zhuwsh-TM1705:/opt/nvidia/sdkmanager/resources/app.asar.unpacked/output/installUtils/NV_DRIVE_LINUX_BUNDLE/common/_installer$ ll
total 2516
drwxr-xr-x 2 root root    4096 4月  30 14:27 ./
drwxr-xr-x 3 root root    4096 4月  30 14:27 ../
-r-xr-xr-x 1 root root     882 11月 23 14:17 configure_target_eth0_driveinstall.sh*
-r-xr-xr-x 1 root root    1014 11月 23 14:17 configure_target_eth1_driveinstall.sh*
-r--r--r-- 1 root root    1033 11月 23 14:17 configure_target_no_eth_driveinstall.sh
-r-xr-xr-x 1 root root     622 11月 23 14:17 configure_target_usb0_driveinstall.sh*
-rwxr-xr-x 1 root root 2494196 11月 23 14:17 InstallUtil*
-r--r--r-- 1 root root     576 11月 23 14:17 reboot_tegras.sh
-r-xr-xr-x 1 root root     424 11月 23 14:17 run_once_target_driveinstall_4.0.sh*
-r-xr-xr-x 1 root root    1486 11月 23 14:17 run_once_target_driveinstall_4.1.sh*
-r-xr-xr-x 1 root root    1486 11月 23 14:17 run_once_target_driveinstall.sh*
-r--r--r-- 1 root root     431 11月 23 14:17 tegra_a_ddpx_recovery_off.sh
-r--r--r-- 1 root root     487 11月 23 14:17 tegra_a_ddpx_recovery_on.sh
-r--r--r-- 1 root root     429 11月 23 14:17 tegra_a_recovery_off.sh
-r--r--r-- 1 root root     483 11月 23 14:17 tegra_a_recovery_on.sh
-r--r--r-- 1 root root     426 11月 23 14:17 tegra_autocruise_recovery_off.sh
-r--r--r-- 1 root root     479 11月 23 14:17 tegra_autocruise_recovery_on.sh
-r--r--r-- 1 root root     431 11月 23 14:17 tegra_b_ddpx_recovery_off.sh
-r--r--r-- 1 root root     486 11月 23 14:17 tegra_b_ddpx_recovery_on.sh
-r--r--r-- 1 root root     429 11月 23 14:17 tegra_b_recovery_off.sh
-r--r--r-- 1 root root     483 11月 23 14:17 tegra_b_recovery_on.sh

Dear zhuweisheng,

Could you please upload the full logs available at below locations for your topic?
~/.nvsdkm/sdkm.log
~/.nvsdkm/logs