Hello Community,
I am new to Linux and looking for help to make this code work. I have a board and 7 USB ports associated. when I run USB test to read the port that are connected and those that are not connected. When I run this (which is for one single port) is always says the device is mounted even though there is nothing mounted to the ports.
Hoping someone will see what I am doing wrong. Thanks
Hello,
Welcome to the forum ! We hope you enjoy your time here, and find this to be a friendly and helpful place.
To assist you further, it would be very helpful to see the text of what you are typing, and of the results you are getting. Actual copy-and-paste of your terminal session showing the problem, and a description of what you would expect versus what you are actually seeing, would be very useful in helping others see what the problem might be.
So, if you can provide the full actual text of the commands you are running, and the complete output you get back, including any error messages or informational text, we can then try to take things from there. Hope this helps !
Please also post the operating system and version number. Thanks
Thanks very much @drysdalk drysdalk. Yes I am enjoying well my learning time here.
I have a script called usb_test and 7 usb ports plugged to the custom board. when I run that in the terminal, it should tell me whether the usb test pass or not based on devices that were plug in and whether it write and read to it. Below is what I got when all usb ports have a memory stick.
root@apalis-imx8:/opt# ./usb_test
USB Memory Presence & Data Transfer Test (3-2.0 & 1-3.0 Ports)
a83d73f75af5ccde0839bcadb1fc1dff
usbp1
68b329da9893e34099c7d8ad5cb9c940 temp.tmp
a83d73f75af5ccde0839bcadb1fc1dff temp.tmp
usbp2
68b329da9893e34099c7d8ad5cb9c940 temp.tmp
a83d73f75af5ccde0839bcadb1fc1dff temp.tmp
usbp3
68b329da9893e34099c7d8ad5cb9c940 temp.tmp
a83d73f75af5ccde0839bcadb1fc1dff temp.tmp
usbp4
68b329da9893e34099c7d8ad5cb9c940 temp.tmp
a83d73f75af5ccde0839bcadb1fc1dff temp.tmp
usbp5
68b329da9893e34099c7d8ad5cb9c940 temp.tmp
a83d73f75af5ccde0839bcadb1fc1dff temp.tmp
usbp6
68b329da9893e34099c7d8ad5cb9c940 temp.tmp
a83d73f75af5ccde0839bcadb1fc1dff temp.tmp
usbp7
68b329da9893e34099c7d8ad5cb9c940 temp.tmp
a83d73f75af5ccde0839bcadb1fc1dff temp.tmp</>
PASS USB Memory Presence & Data Transfer Test
-------------------------
When I removed for example 3 or all usb devices, I still have the same result. That is what doesn't make sense to me.
Hey hicksd8 . it is a custom board with Apalis -imx8 r.4.77, linux multimedia image. I hope I answer the question .
please, show the contents of the usb_test script , execute
-
cat usb_test, a filename by itself is of no use - we cannot see what is being executed inside the script. -
list and show the output of any files matching
cat /etc/*release -
execute and show the output of
uname -a
please, include the command executed - no additional text is needed.
thks
PS: learn to use markdown tags to separate commands from text, the menu options on the dialog box indicate the function.
@nascadake , supply a url to that custom board , its not something people would be familiar with unless they've specifically developed against it.
i found the following https://developer.toradex.com/hardware/apalis-som-family/modules/apalis-imx8/ , but have no idea if its the same as what you are using.
the more concise information you supply, the better the chances the team can come back with relevant assistance.
tks
Thank you very much munkeHoller. This is very helpful ..... I will get back to you.
Well, there are some steps that you try to fix this issues such as updating the kernel, isuring your hardware cable are ok and apart from this you can also try it after rebooting your system.
Thanks