USB2 not working on Jetson TX2t

I am trying to flash my image into a tx2 board.
Everything works fine, except usb2 not working if i connect something to it during boot time.
Its working only if i connect something to it 15 sec after boot.
What can cause this problem?
The dedicated image was cloned from another tx2 that contains no issue with usb2.
I am flashing from a script called: flash.sh.
I tried with different jetpacks but with no success.
What can cause this usb2 issue?
Usb3 working just fine

Thank you very much for your help

Hello,

Welcome to the NVIDIA Developer forums. This needs to be posted in the Jetson forums for support coverage, I will move it over for you.

Is this NV devkit or custom board?

Devkit. I am getting the infamous message (when flashing): Cannot open usb.
[ 11.5885 ] tegradevflash_v2 --iscpubl
[ 11.5907 ] Cannot Open USB

Needless to say i confirmed that i am in recovery mode.also the flashing processes succedded despite this error.

Hi,

Please dump the serial console log when you hit issue during flash.

I don’t feel your flash failure log has anything to do with your first comment.

For example, if flash has failure, then there won’t be anything called “Usb3 working just fine”.

My point is, flash failure and normal usb usecase are totally not related to each other.

This is the log:
[ 99.995119] edid invalid
[0017.379] E> Blob is not set
[0018.210] I> Welcome to MB2(TBoot-BPMP) Recovery(version: 01.00.160913-t186-M-0 0.00-mobile-bc98f182)
[0018.219] I> bit @ 0xd480000
[0018.222] I> Boot-device: eMMC
[0018.234] I> sdmmc DDR50 mode
[0018.238] I> sdmmc bdev is already initialized
[0018.243] I> pmic: reset reason (nverc) : 0x80
[0018.250] I> Found 16 partitions in SDMMC_BOOT (instance 3)
[0018.257] I> Found 31 partitions in SDMMC_USER (instance 3)
[0018.266] I> Binary(16) of size 533504 is loaded @ 0xd7800000
[0018.274] I> Binary(17) of size 465840 is loaded @ 0xd798e440
[0018.453] I> Copy BTCM section
[0018.457] I> Binary(13) of size 202912 is loaded @ 0x96000000
[0018.464] I> Binary(20) of size 343808 is loaded @ 0x8520f400
[0018.472] I> Binary(14) of size 312752 is loaded @ 0x8530f600
[0018.479] I> TOS boot-params @ 0x85000000
[0018.483] I> TOS params prepared
[0018.487] I> Loading EKS …
[0018.490] I> Binary(15) of size 1040 is loaded @ 0x8590f800
[0018.495] I> EKB detected (length: 0x400) @ 0x8590f800
[0018.500] I> Copied encrypted keys
[0018.504] I> boot profiler @ 0x275844000
[0018.508] I> boot profiler for TOS @ 0x275844000
[0018.513] I> Unhalting SCE
[0018.515] I> Primary Memory Start:80000000 Size:70000000
[0018.521] I> Extended Memory Start:f0110000 Size:1856f0000
[0018.527] I> MB2(TBoot-BPMP) Recovery done

NOTICE: BL31: v1.3(release):a28d87f09
NOTICE: BL31: Built : 16:56:00, Jul 16 2019
ipc-unittest-main: 1519: Welcome to IPC unittest!!!
ipc-unittest-main: 1531: waiting forever
ipc-unittest-srv: 329: Init unittest services!!!
keystore-demo: 141: Hello world from keystore-demo app
keystore-demo: 207: main: EKB contents match expected value
exit called, thread 0xffffffffea87ad58, name trusty_app_2_7d18fc60-e9fc-11e8
platform_bootstrap_epilog: trusty bootstrap complete
[0018.889] I> Welcome to TBoot-CPU Recovery(version: 01.00.160913-t186-M-00.00-m obile-b6c9c72e)
[0018.898] I> gpio framework initialized
[0018.901] I> tegrabl_gpio_driver_register: register ‘nvidia,tegra186-gpio’ driv er
[0018.908] I> tegrabl_gpio_driver_register: register ‘nvidia,tegra186-gpio-aon’ driver
[0018.916] I> tegrabl_tca9539_init: i2c bus: 0, slave addr: 0xee
[0018.925] I> tegrabl_gpio_driver_register: register ‘tca9539_gpio_driver’ drive r
[0018.932] I> tegrabl_tca9539_init: i2c bus: 0, slave addr: 0xe8
[0018.940] I> tegrabl_gpio_driver_register: register ‘tca9539_gpio_driver’ drive r
[0018.948] I> CPU: ARM Cortex A57
[0018.951] I> CPU: MIDR: 0x411fd073, MPIDR: 0x80000100
[0018.956] I> L2 ECC enabled : yes
[0018.959] I> CPU-BL Params @ 0x275800000
[0018.962] I> 0) Base:0x00000000 Size:0x00000000
[0018.967] I> 1) Base:0x277f00000 Size:0x00100000
[0018.971] I> 2) Base:0x277e00000 Size:0x00100000
[0018.976] I> 3) Base:0x277d00000 Size:0x00100000
[0018.980] I> 4) Base:0x277c00000 Size:0x00100000
[0018.985] I> 5) Base:0x277b00000 Size:0x00100000
[0018.990] I> 6) Base:0x277800000 Size:0x00200000
[0018.994] I> 7) Base:0x277400000 Size:0x00400000
[0018.999] I> 8) Base:0x277a00000 Size:0x00100000
[0019.003] I> 9) Base:0x277300000 Size:0x00100000
[0019.008] I> 10) Base:0x276800000 Size:0x00800000
[0019.012] I> 11) Base:0x30000000 Size:0x00040000
[0019.017] I> 12) Base:0xf0000000 Size:0x00100000
[0019.021] I> 13) Base:0x30040000 Size:0x00001000
[0019.025] I> 14) Base:0x30048000 Size:0x00001000
[0019.030] I> 15) Base:0x30049000 Size:0x00001000
[0019.034] I> 16) Base:0x3004a000 Size:0x00001000
[0019.039] I> 17) Base:0x3004b000 Size:0x00001000
[0019.043] I> 18) Base:0x3004c000 Size:0x00001000
[0019.048] I> 19) Base:0x3004d000 Size:0x00001000
[0019.052] I> 20) Base:0x3004e000 Size:0x00001000
[0019.056] I> 21) Base:0x3004f000 Size:0x00001000
[0019.061] I> 22) Base:0x00000000 Size:0x00000000
[0019.065] I> 23) Base:0xf0100000 Size:0x00010000
[0019.070] I> 24) Base:0x00000000 Size:0x00000000
[0019.074] I> 25) Base:0x00000000 Size:0x00000000
[0019.079] I> 26) Base:0x00000000 Size:0x00000000
[0019.083] I> 27) Base:0x00000000 Size:0x00000000
[0019.087] I> 28) Base:0x84400000 Size:0x00400000
[0019.092] I> 29) Base:0x30000000 Size:0x00010000
[0019.096] I> 30) Base:0x278000000 Size:0x08000000
[0019.101] I> 31) Base:0x00000000 Size:0x00000000
[0019.105] I> 32) Base:0x276000000 Size:0x00600000
[0019.110] I> 33) Base:0x80000000 Size:0x70000000
[0019.114] I> 34) Base:0xf0110000 Size:0x1856f0000
[0019.119] I> 35) Base:0x00000000 Size:0x00000000
[0019.123] I> 36) Base:0x00000000 Size:0x00000000
[0019.128] I> 37) Base:0x2772e0000 Size:0x00020000
[0019.132] I> 38) Base:0x84000000 Size:0x00400000
[0019.137] I> 39) Base:0x96000000 Size:0x02000000
[0019.141] I> 40) Base:0x85000000 Size:0x01200000
[0019.145] I> 41) Base:0x275800000 Size:0x00500000
[0019.150] I> 42) Base:0x00000000 Size:0x00000000
[0019.154] I> 43) Base:0x00000000 Size:0x00000000
[0019.159] I> Boot-device: eMMC
[0019.170] I> sdmmc DDR50 mode
[0019.175] I> sdmmc bdev is already initialized
[0019.180] I> Found 16 partitions in SDMMC_BOOT (instance 3)
[0019.186] I> Found 31 partitions in SDMMC_USER (instance 3)
[0019.191] I> bl dtb load address = @0x8520f400
[0019.196] I> Recovery boot_type: 0
[0019.202] I> fixed regulator driver initialized
[0019.243] I> register ‘maxim’ power off handle
[0019.249] I> virtual i2c enabled
[0019.252] I> registered ‘maxim,max77620’ pmic
[0019.257] I> tegrabl_gpio_driver_register: register ‘max77620-gpio’ driver
[0019.263] I> Entering 3p server
[0019.266] I> SUPER SPEED
[0019.797] I> USB configuration success
[0020.313] I> Writing APP partition.

BTW. when booting i get this messages:
[ 11.792277] sdhci-tegra 3440000.sdhci: could not set regulator OCR (-1)
[ 11.825990] vdd-1v8: voltage operation not allowed
[ 11.832086] sdhci-tegra 3440000.sdhci: could not set regulator OCR (-1)
[ 11.858213] vdd-1v8: voltage operation not allowed
[ 11.863122] sdhci-tegra 3440000.sdhci: could not set regulator OCR (-1)
[ 11.872804] vdd-1v8: voltage operation not allowed
[ 11.877713] sdhci-tegra 3440000.sdhci: could not set regulator OCR (-1)
[ 12.017551] vdd-1v8: voltage operation not allowed
[ 12.022407] sdhci-tegra 3440000.sdhci: could not set regulator OCR (-1)
[ 12.026240] vdd-1v8: voltage operation not allowed
[ 12.026248] sdhci-tegra 3440000.sdhci: could not set regulator OCR (-1)
[ 12.028850] vdd-1v8: voltage operation not allowed
[ 12.028856] sdhci-tegra 3440000.sdhci: could not set regulator OCR (-1)
[ 18.337322] Bridge firewalling registered

Your log only shows flash process starts and then the APP partition is under flashed.

I don’t see any error log from this thing you posted.

If you don’t know how to dump correct log, please also tell…

I feel the info you provided totally do not match what you want to ask here…

BTW. when booting i get this messages:
[ 11.792277] sdhci-tegra 3440000.sdhci: could not set regulator OCR (-1)
[ 11.825990] vdd-1v8: voltage operation not allowed
[ 11.832086] sdhci-tegra 3440000.sdhci: could not set regulator OCR (-1)
[ 11.858213] vdd-1v8: voltage operation not allowed
[ 11.863122] sdhci-tegra 3440000.sdhci: could not set regulator OCR (-1)
[ 11.872804] vdd-1v8: voltage operation not allowed
[ 11.877713] sdhci-tegra 3440000.sdhci: could not set regulator OCR (-1)
[ 12.017551] vdd-1v8: voltage operation not allowed
[ 12.022407] sdhci-tegra 3440000.sdhci: could not set regulator OCR (-1)
[ 12.026240] vdd-1v8: voltage operation not allowed
[ 12.026248] sdhci-tegra 3440000.sdhci: could not set regulator OCR (-1)
[ 12.028850] vdd-1v8: voltage operation not allowed
[ 12.028856] sdhci-tegra 3440000.sdhci: could not set regulator OCR (-1)
[ 18.337322] Bridge firewalling registered

This log does not matter either. Not fatal.

Ok. i followed the link that you posted. can you guide me how to dump correct log? as it seems i did not do it correctly

First, clarify what is the exact thing you want to ask.

Do you want me to check your flash problem or you want me to check your usb problem?

I will try to explain again. I can flash the image using the flash.sh script.
But USB2 is not working if I connect something to it during the boot process. If I connect something to USB2 after 15 sec during the boot process then it works

Ok, then this message is dummy and no need to tell it next time. It is just noise.

Please connect your usb device, boot up. After boot up, use the serial console and run command “dmesg > log.txt”.
(This is the scenario which you said you can reproduce issue, right?)

Attache that log.txt file here.

log.txt (60.9 KB)

Yes.
And i believe those lines refer to the proble:
2.138301] usb 1-1: new full-speed USB device number 3 using tegra-xusb
[ 2.138845] usb 1-1: Device not responding to setup address.
[ 2.346805] usb 1-1: Device not responding to setup address.
[ 2.554300] usb 1-1: device not accepting address 3, error -71

You mentioned the issue is related to a cloned image.

Do you mean if you flash it by using default BSP, then you won’t hit this issue?

I am sorry for misunderstood.
I boot up my jetson tx2, plug some dongle to usb2. and then it wont work.
This is my problem.

Ok, then some other questions here

  1. Could you reflash your device with latest BSP but not rel-32.2? This BSP is too old. We don’t actually debug on old BSP.

  2. Why are you using a custom device tree if this is NV devkit?

[ 0.164000] DTS File Name: /home/eli/Downloads/nvidia/l4t_32_2_0/Linux_for_Tegra/sources/kernel/kernel-4.9/arch/arm64/boot/dts/…/…/…/…/…/…/hardware/nvidia/platform/t18x/quill/kernel-dts/tegra186-quill-p3310-1000-c03-00-base.dts

This is what i have been provided.

  1. which rel should i use? any link maybe?
  2. I have been provided with evaluation board and manual. i plug the evb to a pc via usb2. hit recovery mode and flash

The usb2 can only work if i not plug any dongle to it during the initial booting (15 sec ±)

The manual you are referring to is too old.

Use rel-32.7.3 release.

If you don’t know how to flash a board, let sdkmanager help you flash.

Every issue you hit issue could be discussed later after you flash your board with rel-32.7.3.

I downloaded the sdkmanager.
I tried using it and download a clean os. But still usb2 is not working.