Rock pi 4c plus upper usb 3 port not work

I have bought a few rockpi-4c-plus. In one of those, the upper USB port is not working. I have tried swapping sd-card from another rock-pi-4c-plus but still not working.

I suspect a hardware fault since any software /configuration issue should have been solved by swapping sd card from the working piece, How can I troubleshoot it and is there any to get it working?

Hi,
Is the onboard OTG switch set to the host?

No, it doesn’t have an OTG switch. It’s a 4c plus model.

Please refer to this page for 4C+ OTG switch.

I don’t have the Rock pi 4c plus but I looked to the document.
Is the picture in fllowing link wrong?
https://dl.radxa.com/rockpi4/docs/hw/rockpi4/rockpi4c_plus_product_brief.pdf

yes, it is incorrect, that switch is not there.

it is not working, I get permisssion error. I run the command as sudo user. Also I have tried modifying dtb but no use,

The link that you have sent is working in other rock-pi-4c-plus I have. I have around 10 rockpi-4c-plus. Only one is having this issue, I have also tried using the sd card from anoher working rocpi-4c-plus. But it did not work.

You cannot run sudo echo xx > yy since the redirection to file is handled by bash, which is running as non-privileged user.

You should either sudo -i to run command as root, or sudo tee yy <<< xx so writting to the file is handled by sudo tee.

It was a hardware error. I was using it to operate a device. When i disconnected it from device then started working normally.

Other rockpi-4c-plus is working fine with that device.

I’ll probably check again if something was touching somewhere causing it to malfunction.

It stopped working again on that particular piece only @RadxaYuntian. This time it is not working after having it powered down and then power up again after sometime.

Also when connecting and disconnecting something on that port , there are no messages at all when checked using sudo dmesg.

The hardware switch was removed since the 4C+ should fit some Raspberry Pi 4B cases without the switch exported, we use software Host/Device control instead.

Try to use " sudo sh -c ‘echo xxx >> yyy’ "

It seems to be a hardware issue. As changing the SD card from another working rockpi-4-plus also did not solve the isssue.

what position of the OTG switch ? Low Position or High Position?

There is no hardware OTG switch in this model.

Oh, I don’t know about that, seems like you need to enable it via software configuraton.

Yes, It was enabled and working and then one day it stopped working, and did not even work when I used SD card from another working piece.

I need help with diagnosing the hardware issue and rectifying it.

Did you check your log in /var/log location? may be you can find some hint from the log file.

It is a hardware issue, need help solving the hardware issue.