Hello,
Using the latest linux mips server, and linux arm64 console client, when i attach a device, errors on the client:
<code>
[ 1980.883971] audit: type=1400 audit(1685785173.583:679): avc: denied { ioctl } for pid=4462 comm="vhclientarm64" uid=0 path="/sys/devices/platform/vhci_hcd/attach" dev="sysfs" ino=47587 ioctlcmd=5413 scontext=u:r:recovery:s0 tcontext=u:object_r:sysfs:s0 tclass=file permissive=1
[ 1980.884009] vhci_hcd vhci_hcd: rhport(0) sockfd(13) devid(4) speed(3) speed_str(high-speed)
[ 1980.884194] audit: type=1400 audit(1685785173.583:680): avc: denied { read } for pid=4510 comm="vhci_rx" uid=0 scontext=u:r:kernel:s0 tcontext=u:r:recovery:s0 tclass=unix_stream_socket phttps://github.com/LineageOS/android_kernel_motorola_msm8998ermissive=1
[ 1981.093013] usb 1-1: new high-speed USB device number 2 using vhci_hcd
[ 1981.306339] usb 1-1: new high-speed USB device number 3 using vhci_hcd
[ 1981.413032] usb usb1-port1: attempt power cycle
[ 1981.526342] usb 1-1: new high-speed USB device number 4 using vhci_hcd
[ 1981.653014] msm_dwc3_perf_vote_work: in_perf_mode:0, interrupts in last sample:122
[ 1981.933011] usb 1-1: device not accepting address 4, error -11
[ 1982.039680] usb 1-1: new high-speed USB device number 5 using vhci_hcd
[ 1982.446359] usb 1-1: device not accepting address 5, error -11
[ 1982.446414] usb usb1-port1: unable to enumerate USB device
[ 1982.656345] usb 1-1: new high-speed USB device number 6 using vhci_hcd
[ 1982.869663] usb 1-1: new high-speed USB device number 7 using vhci_hcd
[ 1982.976384] usb usb1-port1: attempt power cycle
[ 1983.089675] usb 1-1: new high-speed USB device number 8 using vhci_hcd
[ 1983.496341] usb 1-1: device not accepting address 8, error -11
[ 1983.603010] usb 1-1: new high-speed USB device number 9 using vhci_hcd
[ 1983.659686] msm_dwc3_perf_vote_work: in_perf_mode:0, interrupts in last sample:89
[ 1984.009664] usb 1-1: device not accepting address 9, error -11
[ 1984.009701] usb usb1-port1: unable to enumerate USB device
[ 1984.219671] usb 1-1: new high-speed USB device number 10 using vhci_hcd
[ 1984.432997] usb 1-1: new high-speed USB device number 11 using vhci_hcd
[ 1984.539700] usb usb1-port1: attempt power cycle
[ 1984.653005] usb 1-1: new high-speed USB device number 12 using vhci_hcd
[ 1985.059675] usb 1-1: device not accepting address 12, error -11
[ 1985.166338] usb 1-1: new high-speed USB device number 13 using vhci_hcd
[ 1985.573013] usb 1-1: device not accepting address 13, error -11
[ 1985.573080] usb usb1-port1: unable to enumerate USB device
[ 1985.666358] msm_dwc3_perf_vote_work: in_perf_mode:0, interrupts in last sample:140
[ 1985.783002] usb 1-1: new high-speed USB device number 14 using vhci_hcd
[ 1985.996351] usb 1-1: new high-speed USB device number 15 using vhci_hcd
[ 1986.103026] usb usb1-port1: attempt power cycle
[ 1986.216341] usb 1-1: new high-speed USB device number 16 using vhci_hcd
[ 1986.623004] usb 1-1: device not accepting address 16, error -11
[ 1986.729671] usb 1-1: new high-speed USB device number 17 using vhci_hcd
[ 1987.136338] usb 1-1: device not accepting address 17, error -11
[ 1987.136387] usb usb1-port1: unable to enumerate USB device
[ 1987.346338] usb 1-1: new high-speed USB device number 18 using vhci_hcd
[ 1987.559661] usb 1-1: new high-speed USB device number 19 using vhci_hcd
[ 1987.666360] usb usb1-port1: attempt power cycle
[ 1987.673143] msm_dwc3_perf_vote_work: in_perf_mode:0, interrupts in last sample:128
[ 1987.779673] usb 1-1: new high-speed USB device number 20 using vhci_hcd
[ 1988.186341] usb 1-1: device not accepting address 20, error -11
[ 1988.293011] usb 1-1: new high-speed USB device number 21 using vhci_hcd
[ 1988.699684] usb 1-1: device not accepting address 21, error -11
[ 1988.699733] usb usb1-port1: unable to enumerate USB device
[ 1988.909672] usb 1-1: new high-speed USB device number 22 using vhci_hcd
[ 1989.123005] usb 1-1: new high-speed USB device number 23 using vhci_hcd
[ 1989.229702] usb usb1-port1: attempt power cycle
[ 1989.343008] usb 1-1: new high-speed USB device number 24 using vhci_hcd
[ 1989.679677] msm_dwc3_perf_vote_work: in_perf_mode:0, interrupts in last sample:233
[ 1989.749673] usb 1-1: device not accepting address 24, error -11
[ 1989.856354] usb 1-1: new high-speed USB device number 25 using vhci_hcd
[ 1990.263011] usb 1-1: device not accepting address 25, error -11
[ 1990.263053] usb usb1-port1: unable to enumerate USB device
[ 1990.473009] usb 1-1: new high-speed USB device number 26 using vhci_hcd
[ 1990.686345] usb 1-1: new high-speed USB device number 27 using vhci_hcd
[ 1990.793046] usb usb1-port1: attempt power cycle
[ 1990.906337] usb 1-1: new high-speed USB device number 28 using vhci_hcd
[ 1991.313004] usb 1-1: device not accepting address 28, error -11
[ 1991.419673] usb 1-1: new high-speed USB device number 29 using vhci_hcd
[ 1991.686327] msm_dwc3_perf_vote_work: in_perf_mode:0, interrupts in last sample:215
[ 1991.826331] usb 1-1: device not accepting address 29, error -11
[ 1991.826383] usb usb1-port1: unable to enumerate USB device
[ 1992.036340] usb 1-1: new high-speed USB device number 30 using vhci_hcd
[ 1992.249659] usb 1-1: new high-speed USB device number 31 using vhci_hcd
[ 1992.356389] usb usb1-port1: attempt power cycle
[ 1992.469679] usb 1-1: new high-speed USB device number 32 using vhci_hcd
[ 1992.876338] usb 1-1: device not accepting address 32, error -11
[ 1992.983011] usb 1-1: new high-speed USB device number 33 using vhci_hcd
[ 1993.389676] usb 1-1: device not accepting address 33, error -11
[ 1993.389738] usb usb1-port1: unable to enumerate USB device
[ 1993.599672] usb 1-1: new high-speed USB device number 34 using vhci_hcd
[ 1993.693001] msm_dwc3_perf_vote_work: in_perf_mode:0, interrupts in last sample:152
[ 1993.813003] usb 1-1: new high-speed USB device number 35 using vhci_hcd
[ 1993.919695] usb usb1-port1: attempt power cycle
[ 1994.033005] usb 1-1: new high-speed USB device number 36 using vhci_hcd
[ 1994.439677] usb 1-1: device not accepting address 36, error -11
[ 1994.546341] usb 1-1: new high-speed USB device number 37 using vhci_hcd
[ 1994.953007] usb 1-1: device not accepting address 37, error -11
[ 1994.953056] usb usb1-port1: unable to enumerate USB device
[ 1995.163002] usb 1-1: new high-speed USB device number 38 using vhci_hcd
[ 1995.376330] usb 1-1: new high-speed USB device number 39 using vhci_hcd
[ 1995.483025] usb usb1-port1: attempt power cycle
[ 1995.596344] usb 1-1: new high-speed USB device number 40 using vhci_hcd
[ 1995.699659] msm_dwc3_perf_vote_work: in_perf_mode:0, interrupts in last sample:201
[ 1996.002996] usb 1-1: device not accepting address 40, error -11
[ 1996.109663] usb 1-1: new high-speed USB device number 41 using vhci_hcd
[ 1996.516336] usb 1-1: device not accepting address 41, error -11
[ 1996.516396] usb usb1-port1: unable to enumerate USB device
[ 1996.726335] usb 1-1: new high-speed USB device number 42 using vhci_hcd
[ 1996.939675] usb 1-1: new high-speed USB device number 43 using vhci_hcd
[ 1997.046365] usb usb1-port1: attempt power cycle
[ 1997.159670] usb 1-1: new high-speed USB device number 44 using vhci_hcd
[ 1997.566341] usb 1-1: device not accepting address 44, error -11
[ 1997.672998] usb 1-1: new high-speed USB device number 45 using vhci_hcd
[ 1997.706343] msm_dwc3_perf_vote_work: in_perf_mode:0, interrupts in last sample:72
[ 1998.079674] usb 1-1: device not accepting address 45, error -11
[ 1998.079722] usb usb1-port1: unable to enumerate USB device
[ 1998.289657] usb 1-1: new high-speed USB device number 46 using vhci_hcd
[ 1998.503004] usb 1-1: new high-speed USB device number 47 using vhci_hcd
[ 1998.609693] usb usb1-port1: attempt power cycle
[ 1998.722994] usb 1-1: new high-speed USB device number 48 using vhci_hcd
[ 1999.129672] usb 1-1: device not accepting address 48, error -11
[ 1999.236339] usb 1-1: new high-speed USB device number 49 using vhci_hcd
[ 1999.642997] usb 1-1: device not accepting address 49, error -11
[ 1999.643063] usb usb1-port1: unable to enumerate USB device
[ 1999.712993] msm_dwc3_perf_vote_work: in_perf_mode:0, interrupts in last sample:158
[ 1999.852987] usb 1-1: new high-speed USB device number 50 using vhci_hcd
[ 2000.066327] usb 1-1: new high-speed USB device number 51 using vhci_hcd
[ 2000.173016] usb usb1-port1: attempt power cycle
[ 2000.286322] usb 1-1: new high-speed USB device number 52 using vhci_hcd
[ 2000.692991] usb 1-1: device not accepting address 52, error -11
[ 2000.799655] usb 1-1: new high-speed USB device number 53 using vhci_hcd
[ 2001.206353] usb 1-1: device not accepting address 53, error -11
[ 2001.206430] usb usb1-port1: unable to enumerate USB device
[ 2001.416336] usb 1-1: new high-speed USB device number 54 using vhci_hcd
[ 2001.629666] usb 1-1: new high-speed USB device number 55 using vhci_hcd
[ 2001.719666] msm_dwc3_perf_vote_work: in_perf_mode:0, interrupts in last sample:75
[ 2001.736361] usb usb1-port1: attempt power cycle
[ 2001.849681] usb 1-1: new high-speed USB device number 56 using vhci_hcd
[ 2002.256344] usb 1-1: device not accepting address 56, error -11
[ 2002.362999] usb 1-1: new high-speed USB device number 57 using vhci_hcd
[ 2002.769672] usb 1-1: device not accepting address 57, error -11
[ 2002.769748] usb usb1-port1: unable to enumerate USB device
[ 2002.979680] usb 1-1: new high-speed USB device number 58 using vhci_hcd
[ 2003.193009] usb 1-1: new high-speed USB device number 59 using vhci_hcd
[ 2003.299753] usb usb1-port1: attempt power cycle
[ 2003.413012] usb 1-1: new high-speed USB device number 60 using vhci_hcd
[ 2003.726340] msm_dwc3_perf_vote_work: in_perf_mode:0, interrupts in last sample:291
[ 2003.819667] usb 1-1: device not accepting address 60, error -11
[ 2003.926336] usb 1-1: new high-speed USB device number 61 using vhci_hcd
[ 2004.332993] usb 1-1: device not accepting address 61, error -11
[ 2004.333040] usb usb1-port1: unable to enumerate USB device
[ 2004.543000] usb 1-1: new high-speed USB device number 62 using vhci_hcd
[ 2004.756342] usb 1-1: new high-speed USB device number 63 using vhci_hcd
[ 2004.863033] usb usb1-port1: attempt power cycle
[ 2004.976335] usb 1-1: new high-speed USB device number 64 using vhci_hcd
[ 2005.383002] usb 1-1: device not accepting address 64, error -11
[ 2005.489667] usb 1-1: new high-speed USB device number 65 using vhci_hcd
[ 2005.733001] msm_dwc3_perf_vote_work: in_perf_mode:0, interrupts in last sample:85
[ 2005.896335] usb 1-1: device not accepting address 65, error -11
[ 2005.896375] usb usb1-port1: unable to enumerate USB device
[ 2006.106342] usb 1-1: new high-speed USB device number 66 using vhci_hcd
[ 2006.319668] usb 1-1: new high-speed USB device number 67 using vhci_hcd
[ 2006.426358] usb usb1-port1: attempt power cycle
[ 2006.539667] usb 1-1: new high-speed USB device number 68 using vhci_hcd
[ 2006.946339] usb 1-1: device not accepting address 68, error -11
[ 2007.053005] usb 1-1: new high-speed USB device number 69 using vhci_hcd
[ 2007.459666] usb 1-1: device not accepting address 69, error -11
[ 2007.459708] usb usb1-port1: unable to enumerate USB device
[ 2007.669675] usb 1-1: new high-speed USB device number 70 using vhci_hcd
[ 2007.739667] msm_dwc3_perf_vote_work: in_perf_mode:0, interrupts in last sample:95
[ 2007.883001] usb 1-1: new high-speed USB device number 71 using vhci_hcd
[ 2007.989689] usb usb1-port1: attempt power cycle
[ 2008.102999] usb 1-1: new high-speed USB device number 72 using vhci_hcd
[ 2008.509669] usb 1-1: device not accepting address 72, error -11
[ 2008.616337] usb 1-1: new high-speed USB device number 73 using vhci_hcd
[ 2009.022999] usb 1-1: device not accepting address 73, error -11
[ 2009.023038] usb usb1-port1: unable to enumerate USB device
[ 2009.233003] usb 1-1: new high-speed USB device number 74 using vhci_hcd
[ 2009.446333] usb 1-1: new high-speed USB device number 75 using vhci_hcd
[ 2009.553023] usb usb1-port1: attempt power cycle
[ 2009.666323] usb 1-1: new high-speed USB device number 76 using vhci_hcd
[ 2009.746338] msm_dwc3_perf_vote_work: in_perf_mode:1, interrupts in last sample:575
[ 2009.746375] msm_dwc3_perf_vote_update: latency updated to: 41
[ 2010.073012] usb 1-1: device not accepting address 76, error -11
[ 2010.179670] usb 1-1: new high-speed USB device number 77 using vhci_hcd
[ 2010.586334] usb 1-1: device not accepting address 77, error -11
[ 2010.586374] usb usb1-port1: unable to enumerate USB device
[ 2010.796331] usb 1-1: new high-speed USB device number 78 using vhci_hcd
[ 2011.009664] usb 1-1: new high-speed USB device number 79 using vhci_hcd
[ 2011.116358] usb usb1-port1: attempt power cycle
[ 2011.229662] usb 1-1: new high-speed USB device number 80 using vhci_hcd
[ 2011.636335] usb 1-1: device not accepting address 80, error -11
[ 2011.743031] usb 1-1: new high-speed USB device number 81 using vhci_hcd
[ 2011.752989] msm_dwc3_perf_vote_work: in_perf_mode:1, interrupts in last sample:1133
[ 2012.149668] usb 1-1: device not accepting address 81, error -11
[ 2012.149724] usb usb1-port1: unable to enumerate USB device
[ 2012.359666] usb 1-1: new high-speed USB device number 82 using vhci_hcd
[ 2012.572992] usb 1-1: new high-speed USB device number 83 using vhci_hcd
[ 2012.679689] usb usb1-port1: attempt power cycle
[ 2012.793012] usb 1-1: new high-speed USB device number 84 using vhci_hcd
[ 2013.199677] usb 1-1: device not accepting address 84, error -11
[ 2013.306338] usb 1-1: new high-speed USB device number 85 using vhci_hcd
[ 2013.713005] usb 1-1: device not accepting address 85, error -11
[ 2013.713081] usb usb1-port1: unable to enumerate USB device
[ 2013.759670] msm_dwc3_perf_vote_work: in_perf_mode:1, interrupts in last sample:1221
[ 2013.922994] usb 1-1: new high-speed USB device number 86 using vhci_hcd
[ 2014.136347] usb 1-1: new high-speed USB device number 87 using vhci_hcd
[ 2014.243025] usb usb1-port1: attempt power cycle
[ 2014.356335] usb 1-1: new high-speed USB device number 88 using vhci_hcd
[ 2014.763002] usb 1-1: device not accepting address 88, error -11
[ 2014.869667] usb 1-1: new high-speed USB device number 89 using vhci_hcd
[ 2015.276333] usb 1-1: device not accepting address 89, error -11
[ 2015.276382] usb usb1-port1: unable to enumerate USB device
[ 2015.486334] usb 1-1: new high-speed USB device number 90 using vhci_hcd
[ 2015.699672] usb 1-1: new high-speed USB device number 91 using vhci_hcd
[ 2015.766321] msm_dwc3_perf_vote_work: in_perf_mode:0, interrupts in last sample:105
[ 2015.766361] msm_dwc3_perf_vote_update: latency updated to: -1
[ 2015.806366] usb usb1-port1: attempt power cycle
[ 2015.919667] usb 1-1: new high-speed USB device number 92 using vhci_hcd
[ 2016.326320] usb 1-1: device not accepting address 92, error -11
[ 2016.432999] usb 1-1: new high-speed USB device number 93 using vhci_hcd
[ 2016.839663] usb 1-1: device not accepting address 93, error -11
[ 2016.839701] usb usb1-port1: unable to enumerate USB device
[ 2017.049655] usb 1-1: new high-speed USB device number 94 using vhci_hcd
[ 2017.262996] usb 1-1: new high-speed USB device number 95 using vhci_hcd
[ 2017.369700] usb usb1-port1: attempt power cycle
[ 2017.483011] usb 1-1: new high-speed USB device number 96 using vhci_hcd
[ 2017.773001] msm_dwc3_perf_vote_work: in_perf_mode:0, interrupts in last sample:45
[ 2017.889666] usb 1-1: device not accepting address 96, error -11
[ 2017.996330] usb 1-1: new high-speed USB device number 97 using vhci_hcd
[ 2018.402988] usb 1-1: device not accepting address 97, error -11
[ 2018.403027] usb usb1-port1: unable to enumerate USB device
[ 2018.613007] usb 1-1: new high-speed USB device number 98 using vhci_hcd
[ 2018.826334] usb 1-1: new high-speed USB device number 99 using vhci_hcd
[ 2018.933027] usb usb1-port1: attempt power cycle
[ 2019.046330] usb 1-1: new high-speed USB device number 100 using vhci_hcd
[ 2019.453000] usb 1-1: device not accepting address 100, error -11
[ 2019.559670] usb 1-1: new high-speed USB device number 101 using vhci_hcd
[ 2019.779667] msm_dwc3_perf_vote_work: in_perf_mode:0, interrupts in last sample:39
[ 2019.966331] usb 1-1: device not accepting address 101, error -11
[ 2019.966381] usb usb1-port1: unable to enumerate USB device
[ 2020.176334] usb 1-1: new high-speed USB device number 102 using vhci_hcd
[ 2020.389654] usb 1-1: new high-speed USB device number 103 using vhci_hcd
[ 2020.496357] usb usb1-port1: attempt power cycle
[ 2020.609665] usb 1-1: new high-speed USB device number 104 using vhci_hcd
[ 2021.016332] usb 1-1: device not accepting address 104, error -11
[ 2021.122999] usb 1-1: new high-speed USB device number 105 using vhci_hcd
[ 2021.529667] usb 1-1: device not accepting address 105, error -11
[ 2021.529704] usb usb1-port1: unable to enumerate USB device
[ 2021.739666] usb 1-1: new high-speed USB device number 106 using vhci_hcd
[ 2021.786333] msm_dwc3_perf_vote_work: in_perf_mode:0, interrupts in last sample:33
[ 2021.952997] usb 1-1: new high-speed USB device number 107 using vhci_hcd
[ 2022.059686] usb usb1-port1: attempt power cycle
[ 2022.172992] usb 1-1: new high-speed USB device number 108 using vhci_hcd
[ 2022.579663] usb 1-1: device not accepting address 108, error -11
[ 2022.686341] usb 1-1: new high-speed USB device number 109 using vhci_hcd
[ 2023.092997] usb 1-1: device not accepting address 109, error -11
[ 2023.093044] usb usb1-port1: unable to enumerate USB device
[ 2023.302999] usb 1-1: new high-speed USB device number 110 using vhci_hcd
[ 2023.516336] usb 1-1: new high-speed USB device number 111 using vhci_hcd
[ 2023.623019] usb usb1-port1: attempt power cycle
[ 2023.736331] usb 1-1: new high-speed USB device number 112 using vhci_hcd
[ 2023.792994] msm_dwc3_perf_vote_work: in_perf_mode:0, interrupts in last sample:27
[ 2024.142986] usb 1-1: device not accepting address 112, error -11
[ 2024.249670] usb 1-1: new high-speed USB device number 113 using vhci_hcd
[ 2024.656346] usb 1-1: device not accepting address 113, error -11
[ 2024.656399] usb usb1-port1: unable to enumerate USB device
[ 2024.866335] usb 1-1: new high-speed USB device number 114 using vhci_hcd
[ 2025.079652] usb 1-1: new high-speed USB device number 115 using vhci_hcd
[ 2025.186358] usb usb1-port1: attempt power cycle
[ 2025.299668] usb 1-1: new high-speed USB device number 116 using vhci_hcd
[ 2025.706378] usb 1-1: device not accepting address 116, error -11
[ 2025.799668] msm_dwc3_perf_vote_work: in_perf_mode:0, interrupts in last sample:175
[ 2025.812997] usb 1-1: new high-speed USB device number 117 using vhci_hcd
[ 2026.219666] usb 1-1: device not accepting address 117, error -11
[ 2026.219718] usb usb1-port1: unable to enumerate USB device
[ 2026.429667] usb 1-1: new high-speed USB device number 118 using vhci_hcd
[ 2026.492898] vhci_hcd: connection closed
[ 2026.493049] vhci_hcd: stop threads
[ 2026.493060] vhci_hcd: release socket
[ 2026.493076] vhci_hcd: disconnect device
[ 2027.806333] msm_dwc3_perf_vote_work: in_perf_mode:0, interrupts in last sample:97
[ 2029.812995] msm_dwc3_perf_vote_work: in_perf_mode:1, interrupts in last sample:809
[ 2029.813034] msm_dwc3_perf_vote_update: latency updated to: 41
</code>
<code>
# uname -a
Linux z3-host 4.4.302-lineageos-g68e4d0bceb99-dirty #3 SMP PREEMPT Thu Jun 1 21:18:08 PDT 2023 aarch64 GNU/Linux
</code>
<code>
# lsmod
Module Size Used by
vhci_hcd 24576 0
usbip_core 20480 1 vhci_hcd
</code>
nothing useful i see in the VHclient logs:
2023-06-03 02:47:37 INFO :Log Started
2023-06-03 02:47:37 INFO :VirtualHere Client 5.5.1 starting (Compiled: May 24 2https://github.com/LineageOS/android_kernel_motorola_msm8998023 21:59:27)
2023-06-03 02:47:38 INFO :Client OS is Linux 4.4.302-lineageos-g68e4d0bceb99-dirty aarch64
2023-06-03 02:47:38 INFO :Using config at /root/.vhui
2023-06-03 02:47:38 INFO :IPC available at /tmp/vhclient
2023-06-03 02:47:38 INFO :Auto-find (Bonjour) on
2023-06-03 02:47:38 INFO :Auto-find (Bonjour SSL) on
2023-06-03 02:47:39 INFO :VirtualHere USB Server Trial Edition (xx.xx.xx.xx:7575)
heres a pastebin of an strace:
https://paste.bingner.com/paste/ah4dj
kernel used (18.1 branch):
https://github.com/LineageOS/android_kernel_motorola_msm8998
.
Your kernel is too old, use something as recent as possible e.g 6.x
Ah i see, as it turns out…
Ah i see, as it turns out this is an Android device and 4.4 is the most recent kernel version
is there a minimum kernel…
is there a minimum kernel version to run the client on android devices? i don't know of too many android devices with 6.x kernels. thanks
.
Its up to the manufacturer of the android device what they put on there but the more recent the better because older kernels have bugs in the usb/ip feature