USB device going offline in Edge V

Hello all

  • We are using the Edge V Pro with Ubuntu 20.04 fenix 1.1.1

  • We have a USB device that after few minutes of operation, gets disconnected. No errors in DMESG besides showing it gets disconnected -
    "
    [ 529.087734] usb 3-1: USB disconnect, device number 2
    "

  • We have tried using the same USB device with the same cable on a regular laptop, everything works perfect

  • At some point after plugging out & in the USB device, the USB port stops working completly (!). Does not show a light when the device is connected, and dmesg does not recognize a device is plugged in entirely. the only way to get out of this situation is to physically power cycle it by disconnecting & reconnecting the charger.

  • We are using the Khadas supplied charger

  • We suspect this issue is somehow power related

Have you ever encountered anything like that? any suggestions?

We used the same USB device and the same cable on another Edge V Pro, and everything there works as expected.

How can we find out what was wrong with that other Edge V Pro device? Is there some hardware diagnostics tool? We want a way to find out if there is anything wrong with the HW when we receive it before it goes to production.

Hello @GuyGuy

Can you also chek the board with this image ?

https://dl.khadas.com/products/edge1/firmware/ubuntu/emmc/edge-ubuntu-18.04-lxde-linux-4.4-fenix-1.1.1-220725-emmc.img.xz

@numbqq

We did use official firmware. this is the image we used - http://dl.khadas.com/products/edge1/firmware/ubuntu/generic/edge-ubuntu-20.04-server-linux-5.18-fenix-1.1.1-220725.img.xz

Unfortunately we suspect it is a hardware issue. we tested the same thing on another Edge V Pro board, and everything worked there as expected. How can we test for hardware issues on the board?

You sure you want to use the 5.18 kernel image ? It may have some functions not supported.
We suggest you to use the 4.4 kernel image.

@numbqq
yes, of course, ubuntu 18 kernel 4.4 will be End of Life in 2 months, this is very old already & has security vulnerabilities
What do you mean functions not supported? I thought this is official khadas firmware. What is not supported exactly? do you have documentation showing what are the known problems you have with this firmware?

Hello @GuyGuy

5.x kernel is upstream kernel, some functions are missing, e.g. hardware decoding & encoding,…

This is unfortunate @numbqq

Do you have any plans to fix it and support a modern kernel ?

Dear @numbqq

This seems to be a Hardware problem.

I have done the following steps -

stress-ng: info:  [1227] setting to a 60 second run per stressor
stress-ng: info:  [1227] dispatching hogs: 6 matrix
stress-ng: info:  [1227] stressor       bogo ops real time  usr time  sys time   bogo ops/s     bogo ops/s CPU used per       RSS Max
stress-ng: info:  [1227]                           (secs)    (secs)    (secs)   (real time) (usr+sys time) instance (%)          (KB)
stress-ng: info:  [1227] matrix           116336     60.00    359.14      0.04      1938.93         323.90        99.77          4196
stress-ng: info:  [1227] miscellaneous metrics:
stress-ng: info:  [1227] matrix             20625.53 add matrix ops per sec (geometic mean)
stress-ng: info:  [1227] matrix             57702.53 copy matrix ops per sec (geometic mean)
stress-ng: info:  [1227] matrix             19593.52 div matrix ops per sec (geometic mean)
stress-ng: info:  [1227] matrix             16159.66 frobenius matrix ops per sec (geometic mean)
stress-ng: info:  [1227] matrix             26440.05 hadamard matrix ops per sec (geometic mean)
stress-ng: info:  [1227] matrix             36201.93 identity matrix ops per sec (geometic mean)
stress-ng: info:  [1227] matrix             21632.30 mean matrix ops per sec (geometic mean)
stress-ng: info:  [1227] matrix             40540.63 mult matrix ops per sec (geometic mean)
stress-ng: info:  [1227] matrix             39767.65 negate matrix ops per sec (geometic mean)
stress-ng: info:  [1227] matrix                44.81 prod matrix ops per sec (geometic mean)
stress-ng: info:  [1227] matrix             23006.30 sub matrix ops per sec (geometic mean)
stress-ng: info:  [1227] matrix                45.54 square matrix ops per sec (geometic mean)
stress-ng: info:  [1227] matrix              5108.93 trans matrix ops per sec (geometic mean)
stress-ng: info:  [1227] matrix            133132.38 zero matrix ops per sec (geometic mean)
stress-ng: info:  [1227] matrix:
stress-ng: info:  [1227]          cpu_thermal   56.11 C (329.26 K)
stress-ng: info:  [1227]          gpu_thermal   49.38 C (322.52 K)
stress-ng: info:  [1227] successful run completed in 60.01s (1 min, 0.01 secs)
  • These are the results we are getting on the Bad Edge V Pro device -
stress-ng: info:  [9883] setting to a 60 second run per stressor
stress-ng: info:  [9883] dispatching hogs: 6 matrix

stress-ng: info:  [9883] stressor       bogo ops real time  usr time  sys time   bogo ops/s     bogo ops/s CPU used per       RSS Max
stress-ng: info:  [9883]                           (secs)    (secs)    (secs)   (real time) (usr+sys time) instance (%)          (KB)
stress-ng: info:  [9883] matrix           116852     60.00    358.63      0.08      1947.53         325.75        99.64          4204
stress-ng: info:  [9883] miscellaneous metrics:
stress-ng: info:  [9883] matrix             20357.04 add matrix ops per sec (geometic mean)
stress-ng: info:  [9883] matrix             56925.80 copy matrix ops per sec (geometic mean)
stress-ng: info:  [9883] matrix             19463.29 div matrix ops per sec (geometic mean)
stress-ng: info:  [9883] matrix             16105.96 frobenius matrix ops per sec (geometic mean)
stress-ng: info:  [9883] matrix             26326.73 hadamard matrix ops per sec (geometic mean)
stress-ng: info:  [9883] matrix             36114.32 identity matrix ops per sec (geometic mean)
stress-ng: info:  [9883] matrix             21761.79 mean matrix ops per sec (geometic mean)
stress-ng: info:  [9883] matrix             40331.22 mult matrix ops per sec (geometic mean)
stress-ng: info:  [9883] matrix             40125.84 negate matrix ops per sec (geometic mean)
stress-ng: info:  [9883] matrix                45.18 prod matrix ops per sec (geometic mean)
stress-ng: info:  [9883] matrix             23250.85 sub matrix ops per sec (geometic mean)
stress-ng: info:  [9883] matrix                45.42 square matrix ops per sec (geometic mean)
stress-ng: info:  [9883] matrix              5268.24 trans matrix ops per sec (geometic mean)
stress-ng: info:  [9883] matrix            132024.14 zero matrix ops per sec (geometic mean)
stress-ng: info:  [9883] matrix:
stress-ng: info:  [9883]          cpu_thermal   69.26 C (342.41 K)
stress-ng: info:  [9883]          gpu_thermal   60.62 C (333.77 K)
stress-ng: info:  [9883] successful run completed in 60.02s (1 min, 0.02 secs)
  • As you can see, the Bad device gets much more Hot. On the “Bad” device, we could also hear during the test the Fan working much harder.

Can you please run the same test on your Edge V Pro device and let us know what are the results?

Hello @GuyGuy

You can contact our after sales to return the board.