We are currently experiencing a very annoying issue with out Apalis IMX8 Ixora Boards.
We’re trying to play video contents from a USB key.
Some contents in 720p, or 1080p.
It appears that after 10, 20 or 30 seconds the playback freezes…but in the console I get the following kernel messages:
[ 683.446009] usb 2-1: reset SuperSpeed Gen 1 USB device number 2 using cdns-usb3
[ 689.131018] cdns-mhdp-imx 56268000.hdmi: 0,ff,ff,ff,ff,ff,ff,0
[ 689.168828] cdns-mhdp-imx 56268000.hdmi: 0,ff,ff,ff,ff,ff,ff,0
[ 689.206120] cdns-mhdp-imx 56268000.hdmi: 0,ff,ff,ff,ff,ff,ff,0
[ 689.605098] [VPU Decoder] firmware version is 1.7.0
[ 824.759283] usb 2-1: reset SuperSpeed Gen 1 USB device number 2 using cdns-usb3
We don’t really understand the messages related to the USB. Is it a hw issue or something that could be adjusted in the Kernel ?
Have you already experienced this issue ?
Could you tell us if the playback works fine if you play the video from eMMC instead of a USB Stick? Does this also happen with other kinds of video formats such as MP4, MPEG, etc., ?
Could you please also send us the output of /etc/os-release ?
The problem occurs whatever the video format (mkv, mp4 etc.)
It doesn’t occur if the media is played from eMMC.
Please find below the os-release:
root@apalis-imx8-06804647:/opt/pga/pgavod/bin# more /etc/os-release
ID=pga-multimedia
NAME="PGA multimedia image based on TDX xwayland"
VERSION="5.4.0-devel-20211007095610+build.0 (dunfell)"
VERSION_ID=5.4.0-devel-20211007095610-build.0
PRETTY_NAME="PGA multimedia image based on TDX xwayland 5.4.0-devel-20211007095610+build.0 (dunfell)"
We’ve just tested with a TDX default reference image.
We exactly have the same issue:
...
[ 682.340799] [VPU Decoder] firmware version is 1.7.0
[ 771.197650] usb 2-1: reset SuperSpeed Gen 1 USB device number 2 using cdns-usb3
[ 873.599345] usb 2-1: reset SuperSpeed Gen 1 USB device number 2 using cdns-usb3
...
And the /etc/os-release:
root@apalis-imx8-06980672:~# cat /etc/os-release
ID=tdx-xwayland
NAME="TDX Wayland with XWayland"
VERSION="5.4.0+build.11 (dunfell)"
VERSION_ID=5.4.0-build.11
PRETTY_NAME="TDX Wayland with XWayland 5.4.0+build.11 (dunfell)"
Please not the playback from eMMC is also working fine.
I am working with Karim and I have done some tests.
If I plug the usb key on X8 USBH4 ( upper ) , it is detected by the kernel as cdns-usb3 (superspeed usb gen 1, aka usb3.0 )
If I plug the usb key on X8 USBO1 ( lower ) , it is detected by the kernel as ci_hdrc ( high-speed usb , aka usb2.0 )
The X7 (USBH3 ) connector is a USB2.0 connector , there is only 4 wires, and the usb key is detected as ci_hdrc as well.
USBH4 :
[ 442.290518] usb 2-1: new SuperSpeed Gen 1 USB device number 2 using cdns-usb3
[ 442.317056] usb-storage 2-1:1.0: USB Mass Storage device detected
[ 442.324109] scsi host1: usb-storage 2-1:1.0
USB01 :
[ 510.159346] usb 3-1: new high-speed USB device number 3 using ci_hdrc
[ 510.322603] usb-storage 3-1:1.0: USB Mass Storage device detected
[ 510.329609] scsi host1: usb-storage 3-1:1.0
USBH3 :
[ 1272.313177] usb 4-1.3: new high-speed USB device number 5 using ci_hdrc
[ 1272.443961] usb-storage 4-1.3:1.0: USB Mass Storage device detected
[ 1272.450837] scsi host2: usb-storage 4-1.3:1.0
If I perform a rsync ( with and without bandwith limitation ) on the USB key USBH4 , it works well :
root@apalis-imx8-06980672:~# rsync -a --progress --bwlimit=8000 /media/sda1/rev_cut.mkv /home/root
sending incremental file list
rev_cut.mkv
1,635,782,831 100% 7.67MB/s 0:03:23 (xfr#1, to-chk=0/1)
root@apalis-imx8-06980672:~# rm rev_cut.mkv
root@apalis-imx8-06980672:~# rsync -a --progress /media/sda1/rev_cut.mkv /home/root
sending incremental file list
rev_cut.mkv
1,635,782,831 100% 45.39MB/s 0:00:34 (xfr#1, to-chk=0/1)
root@apalis-imx8-06980672:~# rm rev_cut.mkv
root@apalis-imx8-06980672:~# rsync -a --progress --bwlimit=1000 /media/sda1/rev_cut.mkv /home/root
sending incremental file list
rev_cut.mkv
1,635,782,831 100% 1000.28kB/s 0:26:36 (xfr#1, to-chk=0/1)
if I do a playback with gstreamer, it fails in USB3.0 mode ( USBH4 ) and doesn’t fail in USB2.0 mode ( USBO1 and USBH3 )
I’ve tried 3 different keys. All of them are usb 3.0 ( for example corsaire slider X1 voyager ), and same result.
In the previous message, the bitrate at full speed is too fast to be only USB 2.0 ( 45MB/sec ).
Also, I’ve tried 3 different couples of ixora + apalis.
Sorry to answer very late, I was working on another urgent project. I am working again on this card … how can I find the full version of the modules and carrier board ?
Is it a label on the card or do I have to launch a software to retrieve version ?
For the moment, I have only one board :
ixora : V1.2A 10852866 on the label ( there is no other label on the card)
apalis IMX8 : Apalis IMX8QM 4GB WB IT V 1.1C 06980672
root@apalis-imx8-06980672:~# gst-discoverer-1.0 /media/sda1/rev_cut.mkv
Analyzing file:///media/sda1/rev_cut.mkv
Stream with high frequencies VQ coding
Stream with high frequencies VQ coding
No accelerated IMDCT transform found
Done discovering file:///media/sda1/rev_cut.mkv
I just tried again using the same BSP version as yours (5.4.0) with some example mp4 video to playback directly from a USB stick and I was able to even reproduce it with audio (via HDMI).
The fact that we are not able to reproduce your problem really makes it hard to help…
Aren´t you able to spot any differences between my setup and yours?
Seems like you tried already several videos (and several formats), USB sticks, Apalis iMX8QM modules, Ixoras…
But we can do other tests:
Does the issue happen if you use a USB 2.0 on any of the USB ports on your Ixora?
Have you tried a newer BSP?
Is it possible that you are using a USB hub? If yes, Could you please try without it?
I was also able to execute the pipeline when connecting the same USB stick to a USB 2 port and also playing the video from eMMC as well.
Linux about USB Stick
When inserted:
[ 6076.454913] scsi 1:0:0:0: Direct-Access SanDisk Ultra 1.00 PQ: 0 ANSI: 6
[ 6076.464100] sd 1:0:0:0: [sda] 30031872 512-byte logical blocks: (15.4 GB/14.3 GiB)
[ 6076.472619] sd 1:0:0:0: [sda] Write Protect is off
[ 6076.477464] sd 1:0:0:0: [sda] Mode Sense: 43 00 00 00
[ 6076.477777] sd 1:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[ 6076.549163] sda: sda1
[ 6076.554358] sd 1:0:0:0: [sda] Attached SCSI removable disk
[ 6076.842143] FAT-fs (sda1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
lsusb information about it
root@apalis-imx8-06980209:~# lsusb
Bus 002 Device 005: ID 0781:558a SanDisk Corp. Ultra
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
Bus 003 Device 003: ID 1286:204e Marvell Semiconductor, Inc.
Bus 003 Device 002: ID 0424:3503 Microchip Technology, Inc. (formerly SMSC)
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
root@apalis-imx8-06980209:~# lsusb -v -s 002:005 | grep -i bcd
can't get debug descriptor: Resource temporarily unavailable
bcdUSB 3.00
bcdDevice 1.00