This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM3358: Arago-base-tisdk-image-am335x-evm

Part Number: AM3358

Hi,

SDK: PROCESSOR-SDK-LINUX-AM335X  06_03_00_106

Customer test two filesystem in SDK. They are arago-base-tisdk-image-am335x-evm and tisdk-rootfs-image-am335x-evm

When using tisdk-rootfs-image-am335x-evm, the serial port will have output information:

root@am335x-evm:~#
root@am335x-evm:~# [ 110.380651] usb 1-1: new high-speed USB device number 3 using musb-hdrc
[ 110.565341] usb 1-1: New USB device found, idVendor=05e3, idProduct=0749, bcdDevice=15.35
[ 110.573752] usb 1-1: New USB device strings: Mfr=3, Product=4, SerialNumber=2
[ 110.584078] usb 1-1: Product: USB3.0 Card Reader
[ 110.588760] usb 1-1: Manufacturer: Generic
[ 110.595708] usb 1-1: SerialNumber: 000000001536
[ 110.609836] usb-storage 1-1:1.0: USB Mass Storage device detected
[ 110.631298] scsi host0: usb-storage 1-1:1.0
[ 111.683025] scsi 0:0:0:0: Direct-Access Generic MassStorageClass 1536 PQ: 0 ANSI: 6
[ 112.026921] sd 0:0:0:0: [sda] 62521344 512-byte logical blocks: (32.0 GB/29.8 GiB)
[ 112.036489] sd 0:0:0:0: [sda] Write Protect is off
[ 112.047287] sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[ 112.070279] sda: sda1
[ 112.086261] sd 0:0:0:0: [sda] Attached SCSI removable disk

But there is no output information with arago-base-tisdk-image-am335x-evm.

Is it due to arago-base-tisdk-image is a barebones images?

 

  • Hello Nancy,

    To confirm, is the USB device working as expected with both filesystems? (in other words, are you just asking about different debug information getting printed to the terminal in different filesystems?)

    If this is just a question about terminal debug output, I would first check the default log level for kernel logs on each filesystem, and then experiment with changing the default log level. There are lots of resources out there about doing that - one potentially useful link is this non-TI webpage Introduction to the Linux Kernel log levels.

    Regards,

    Nick

  • Hi,

    USB not work with arago-base-tisdk-image-am335x-evm, no plug-in information prompt and data cannot be read.

    Below is the log with arago-base-tisdk-image-am335x-evm:

    [ 22.573840] am335x-phy-driver 47401300.usb-phy: using lookup tables for GPIO lookup
    [ 22.573849] am335x-phy-driver 47401300.usb-phy: No GPIO consumer reset found
    [ 22.573858] am335x-phy-driver 47401300.usb-phy: GPIO lookup for consumer vbus-detect
    [ 22.573864] am335x-phy-driver 47401300.usb-phy: using device tree for GPIO lookup
    [ 22.573880] of_get_named_gpiod_flags: can't parse 'vbus-detect-gpios' property of node '/ocp/usb@47400000/usb-phy@47401300[0]'
    [ 22.573894] of_get_named_gpiod_flags: can't parse 'vbus-detect-gpio' property of node '/ocp/usb@47400000/usb-phy@47401300[0]'
    [ 22.573902] am335x-phy-driver 47401300.usb-phy: using lookup tables for GPIO lookup
    [ 22.573909] am335x-phy-driver 47401300.usb-phy: No GPIO consumer vbus-detect found
    [ 22.574034] am335x-phy-driver 47401300.usb-phy: 47401300.usb-phy supply vcc not found, using dummy regulator
    [ 22.645629] input: ti-tsc as /devices/platform/ocp/44e0d000.tscadc/TI-am335x-tsc.0.auto/input/input0
    [ 22.702837] am335x-phy-driver 47401300.usb-phy: Linked as a consumer to regulator.0
    [ 23.108968] usbcore: registered new interface driver usbfs
    [ 23.202916] usbcore: registered new interface driver hub
    [ 23.261219] usbcore: registered new device driver usb
    [ 23.630205] musb-hdrc musb-hdrc.0: MUSB HDRC host driver
    [ 23.730783] musb-hdrc musb-hdrc.0: new USB bus registered, assigned bus number 1
    [ 23.850832] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    [ 23.858133] usb usb1: Product: MUSB HDRC host driver
    [ 23.955401] usb usb1: Manufacturer: Linux 4.19.94-gbe5389fd85 musb-hcd
    [ 24.020327] usb usb1: SerialNumber: musb-hdrc.0
    [ 24.055568] hub 1-0:1.0: USB hub found

    Below is the log with tisdk-rootfs-image-am335x-evm

    root@am335x-evm:~#
    root@am335x-evm:~# [ 110.380651] usb 1-1: new high-speed USB device number 3 using musb-hdrc
    [ 110.565341] usb 1-1: New USB device found, idVendor=05e3, idProduct=0749, bcdDevice=15.35
    [ 110.573752] usb 1-1: New USB device strings: Mfr=3, Product=4, SerialNumber=2
    [ 110.584078] usb 1-1: Product: USB3.0 Card Reader
    [ 110.588760] usb 1-1: Manufacturer: Generic
    [ 110.595708] usb 1-1: SerialNumber: 000000001536
    [ 110.609836] usb-storage 1-1:1.0: USB Mass Storage device detected
    [ 110.631298] scsi host0: usb-storage 1-1:1.0
    [ 111.683025] scsi 0:0:0:0: Direct-Access Generic MassStorageClass 1536 PQ: 0 ANSI: 6
    [ 112.026921] sd 0:0:0:0: [sda] 62521344 512-byte logical blocks: (32.0 GB/29.8 GiB)
    [ 112.036489] sd 0:0:0:0: [sda] Write Protect is off
    [ 112.047287] sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
    [ 112.070279] sda: sda1
    [ 112.086261] sd 0:0:0:0: [sda] Attached SCSI removable disk

    root@am335x-evm:~#



    [ 21.943007] am335x-phy-driver 47401300.usb-phy: GPIO lookup for consumer reset
    [ 21.943026] am335x-phy-driver 47401300.usb-phy: using device tree for GPIO lookup
    [ 21.943062] of_get_named_gpiod_flags: can't parse 'reset-gpios' property of node '/ocp/usb@47400000/usb-phy@47401300[0]'
    [ 21.943080] of_get_named_gpiod_flags: can't parse 'reset-gpio' property of node '/ocp/usb@47400000/usb-phy@47401300[0]'
    [ 21.943091] am335x-phy-driver 47401300.usb-phy: using lookup tables for GPIO lookup
    [ 21.943099] am335x-phy-driver 47401300.usb-phy: No GPIO consumer reset found
    [ 21.943108] am335x-phy-driver 47401300.usb-phy: GPIO lookup for consumer vbus-detect
    [ 21.943114] am335x-phy-driver 47401300.usb-phy: using device tree for GPIO lookup
    [ 21.943130] of_get_named_gpiod_flags: can't parse 'vbus-detect-gpios' property of node '/ocp/usb@47400000/usb-phy@47401300[0]'
    [ 21.943145] of_get_named_gpiod_flags: can't parse 'vbus-detect-gpio' property of node '/ocp/usb@47400000/usb-phy@47401300[0]'
    [ 21.943152] am335x-phy-driver 47401300.usb-phy: using lookup tables for GPIO lookup
    [ 21.943159] am335x-phy-driver 47401300.usb-phy: No GPIO consumer vbus-detect found
    [ 21.943284] am335x-phy-driver 47401300.usb-phy: 47401300.usb-phy supply vcc not found, using dummy regulator
    [ 22.076190] am335x-phy-driver 47401300.usb-phy: Linked as a consumer to regulator.0
    [ 22.178240] musb-hdrc musb-hdrc.0: MUSB HDRC host driver
    [ 22.264409] musb-hdrc musb-hdrc.0: new USB bus registered, assigned bus number 1
    [ 22.384087] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 4.19
    [ 22.472593] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    [ 22.541977] usb usb1: Product: MUSB HDRC host driver
    [ 22.589992] usb usb1: Manufacturer: Linux 4.19.94-gbe5389fd85 musb-hcd
    [ 22.665110] usb usb1: SerialNumber: musb-hdrc.0
    [ 22.713177] hub 1-0:1.0: USB hub found

  • Hello Nancy,

    Got it. I am reassigning this to our USB owner to comment.

    Regards,

    Nick

  • Hi Nancy,

    Is the AM335x USB port in host or otg mode? The mode is defined by dr_mode property in kernel device tree.

    If it is in "otg" mode, please provide the output of the command below for both cases.

    root@am335x-evm:~# cat /sys/class/udc/musb-hdrc.0/uevent

  • Hi,

    Thanks! There is no dr_mode defined in dts. And the usb can work now.

    What does below log mean? Will it affect usage?

    sd 0:0:0:0: [sda] Write Protect is off
    [ 79.861614] sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA

    [ 78.335004] usb 1-1: New USB device found, idVendor=05e3, idProduct=0749, bcdDevice=15.35
    [ 78.343361] usb 1-1: New USB device strings: Mfr=3, Product=4, SerialNumber=2
    [ 78.353520] usb 1-1: Product: USB3.0 Card Reader
    [ 78.358198] usb 1-1: Manufacturer: Generic
    [ 78.365121] usb 1-1: SerialNumber: 000000001536
    [ 78.432026] usb-storage 1-1:1.0: USB Mass Storage device detected
    [ 78.446284] scsi host0: usb-storage 1-1:1.0
    [ 78.457608] usbcore: registered new interface driver usb-storage
    [ 78.476455] usbcore: registered new interface driver uas
    [ 79.522842] scsi 0:0:0:0: Direct-Access Generic MassStorageClass 1536 PQ: 0 ANSI: 6
    [ 79.835726] sd 0:0:0:0: [sda] 62333952 512-byte logical blocks: (31.9 GB/29.7 GiB)
    [ 79.844950] sd 0:0:0:0: [sda] Write Protect is off
    [ 79.861614] sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
    [ 79.885551] sda: sda1
    [ 79.898068] sd 0:0:0:0: [sda] Attached SCSI removable disk

  • Hi Nancy,

    Nancy Wang said:

    What does below log mean? Will it affect usage?

    sd 0:0:0:0: [sda] Write Protect is off
    [ 79.861614] sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA

    it means write cache is disabled, this is to minimize data loss in system power failure.

    DPO and FUA are SCSI parameters, which are typically not applicable to USB thumb drives.