Tool/software: Linux
Hello,
I have an AM5718 custom board similar to AM57xx-EVM and I'm trying to provide a mass storage device to a host linux machine over the USB2 port, configured as device.
In addition, I need to enable both rndis and ecm (ethernet over usb) using the same physical USB connection.
The mass storage device works fine if I enable it by itself or if I enable either of the ethernet over usb interfaces, but it does not work if enable both rndis and ecm. On the host machine the USB mass storage is detected, but the device /dev/sdX is not present. I attached log files from the host machine for both the failing and passing cases.
I also attached the script for setting up libcomposite and the drive image I'm using for testing. To make the mass storage device work properly it's enough to comment out one of the ln commands enabling the ethernet over usb interfaces:
#ln -s functions/ecm.usb0 configs/c.1/
I tested this with the rootfs image included in SDK 05.02.00.10 (tisdk-rootfs-image-am57xx-evm.tar.xz) with a modified bootloader and device tree to match my board configuration.
I also tried the BeagleBone X15 with the latest debian image and the problem happens there as well so I don't think it's limited to my hardware. The functionality (rndis + ecm + mass storage) works fine on the BeagleBone Black with its latest debian image, though.
Do you have any advice on how to proceed on this?
--Tavi0726.files.tar.gz