What's new

USBIP kernel modules for 386.7_2 RT-AX3000 (usbip.ko usbip_common_mod.ko and vhci-hcd.ko)

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

tooandrew

Occasional Visitor
is there a way to add
usbip.ko
usbip_common_mod.ko
and
vhci-hcd.ko

to the kernel? i found some modules but i couldnt insmod them because i guess they were for a different kernel?
i don't really know much about compiling software, or how to set up the appropriate toolchain or anything like that.

i'd be willing to try to learn but i feel like im more likely to brick my router trying to flash an image i compiled myself than i am to get usbip working.
if someone could shoot me modules compiled for 4.1.52 that would be awesome - if that is even how this works?
 
It would probably help if you describe the solution you're looking for...
 
It would probably help if you describe the solution you're looking for...
the solution im looking for is usb over ip from the router to my windows pc - i have gotten it running on a raspberry pi, and i needed those kernel modules to get it to work.
the versions of the modules that i found are not compatible with the current build.

so, what i want is, ideally, someone to compile those modules for armv71 kernel 4.1.52 so i can use insmod to run them.
or, less ideally, someone to help me compile them myself.

i thought i was pretty clear, i listed kernel modules that i needed - sorry if it wasnt as obvious as i thought.
 
Try Entware.

Code:
# opkg list usbip*
usbip - 1.1.1-15 - USB-over-IP (common)
usbip-client - 1.1.1-15 - USB-over-IP (client)
usbip-server - 1.1.1-15 - USB-over-IP (server)
 
the solution im looking for is usb over ip from the router to my windows pc - i have gotten it running on a raspberry pi, and i needed those kernel modules to get it to work.

You have this running on an RPi - not sure that anything else is needed here...

The Pi is going to offer more SW solutions than AsusWRT is...
 
Try Entware.

Code:
# opkg list usbip*
usbip - 1.1.1-15 - USB-over-IP (common)
usbip-client - 1.1.1-15 - USB-over-IP (client)
usbip-server - 1.1.1-15 - USB-over-IP (server)
i have entware installed and i installed usbip. i can find usbipd in /tmp/mnt/entware/entware/sbin but calling just usbip to mount the usb devices to the network returns -sh: usbip: not found, and usbipd is not helpful without devices to share
 
You have this running on an RPi - not sure that anything else is needed here...

The Pi is going to offer more SW solutions than AsusWRT is...
i understand, but the pi is a mess of cables and asuswrt is running linux too, theres no reason to have an extra thing dangling from the router.
 
Linux thumper 5.15.74 #0 Thu Oct 27 19:14:02 2022 mips GNU/Linux
# opkg list usbip*
usbip - 2.0-15 - USB-over-IP (common)
usbip-client - 2.0-15 - USB-over-IP (client)
usbip-server - 2.0-15 - USB-over-IP (server)
 
Last edited:
root@thumper:~# opkg list usbip*
usbip - 2.0-15 - USB-over-IP (common)
usbip-client - 2.0-15 - USB-over-IP (client)
usbip-server - 2.0-15 - USB-over-IP (server)
yes, i installed usbip and usbip-server but the command usbip returns not found

additionally, running usbipd returns
"
usbipd: error: please load usbip-core.ko and usbip-host.ko!"
 
Did you install usbip-client?


Did you load the modules?
i haven't found the modules anywhere and no, i didnt think i would need client because i am trying to use it as a server. but the client does allow the command to be run, so thanks.

EDIT: ohh, modprobe them
module usbip-host.ko not found in modules.dep im digging around in /lib/modules and not seeing them

usbip: error: could not unbind driver from device on busid 3-1.3:1.0

/sys/kernel/debug/usb/devices says it doesnt have any driver loaded
 
Last edited:
This might get you a bit further down the path...

 
This might get you a bit further down the path...

thank you, but i have the same problem with the debug option
usbip: debug: usbip.c:134:[run_command] running command: `bind'
usbip: debug: usbip_bind.c:162:[unbind_other] 1-1.3:1.0 -> unknown
usbip: debug: utils.c:56:[modify_match_busid] problem getting match_busid attribute: No such file or directory
usbip: error: unable to bind device on 1-1.3
admin@RT-AX3000-D8B8:/tmp/home/root#

additionally the usbipd daemon itself wont start without the modules. im attempting to build from source with the correct kernels now, we'll see how that goes.

i believe the router does have them bound to something as i can find the actual name elsewhere but usbip reports unknown as device name
 
ok... I'm going to assume that the USB device is attached to the router...

with entware - try...

opkg update && opkg install usbutils

this will install lsusb, which is important...

More useful info here...

thank you, i do have usbutils installed
like i said, i can find the names elsewhere (like with lsusb - the devices in question are the valve software watchman dongle.) my running theory is the driver that shares printers has bound them but im not sure how to do anything about that . reading the linked post now - none of the listed modules in step two are available in my repo (which is updated)
admin@RT-AX3000-D8B8:/tmp/home/root# opkg install usbutils
Package usbutils (014-1) installed in root is up to date.
admin@RT-AX3000-D8B8:/tmp/home/root# lsusb
Bus 001 Device 005: ID 0781:55a5 SanDisk Cruzer Snap
Bus 001 Device 004: ID 28de:2101 Valve Software Watchman Dongle
Bus 001 Device 003: ID 28de:2101 Valve Software Watchman Dongle
Bus 004 Device 001: ID 1d6b:0001 Linux 4.1.52 ohci_hcd Generic Platform OHCI controller
Bus 003 Device 001: ID 1d6b:0001 Linux 4.1.52 ohci_hcd Generic Platform OHCI controller
Bus 002 Device 001: ID 1d6b:0002 Linux 4.1.52 ehci_hcd EHCI Host Controller
Bus 001 Device 002: ID 214b:7250 USB2.0 HUB
Bus 001 Device 001: ID 1d6b:0002 Linux 4.1.52 ehci_hcd EHCI Host Controller
looks like i incorrectly configured my build env somehow - build was failing on /scripts/mod/empty.o , file doesnt exist.
 
Last edited:
after a lot of fracking around i finally built it successfully but i have a .w file instead of a .trx . can i extract modules from this?
 
Copy the .ko file from within the build directory, much simpler than unpacking a multi-component image.
 
valve software watchman dongle

IS this the device you are trying to share?

Bus 001 Device 004: ID 28de:2101 Valve Software Watchman Dongle
Bus 001 Device 003: ID 28de:2101 Valve Software Watchman Dongle

It's a multi-function device - see the stackexchange link I mentioned earlier...
 
IS this the device you are trying to share?

Bus 001 Device 004: ID 28de:2101 Valve Software Watchman Dongle
Bus 001 Device 003: ID 28de:2101 Valve Software Watchman Dongle

It's a multi-function device - see the stackexchange link I mentioned earlier...
it is the device i am trying to share. i did see the link.

usbip --debug bind --busid=1-1.3 produces
usbip: debug: usbip.c:134:[run_command] running command: `bind'
usbip: debug: usbip_bind.c:162:[unbind_other] 1-1.3:1.0 -> unknown
usbip: debug: utils.c:65:[modify_match_busid] write "add 1-1.3" to /sys/bus/usb/drivers/usbip-host/match_busid
usbip: debug: usbip_bind.c:101:[bind_usbip] bind driver at 1-1.3:1.0 failed
usbip: error: could not bind device to usbip-host
usbip: debug: utils.c:65:[modify_match_busid] write "del 1-1.3" to /sys/bus/usb/drivers/usbip-host/match_busid

usbip bind --busid=1-1.3:1.0 produces
could not unbind driver from device on busid 1-1.3:1.0

it doesn't work either way.

i did successfully build, include the modules, and flash. now usbipd starts successfully but i still can't mount the device. all the appropriate modules are loaded as far as i can tell

lsmod | grep usb
usbip_host 11999 0
usbip_core 4361 1 usbip_host
usb_storage 40018 2 uas
scsi_mod 132890 5 sr_mod,uas,usb_storage,sg,sd_mod
usbnet 17352 7 cdc_mbim,qmi_wwan,cdc_ncm,rndis_host,cdc_ether,ax88179_178a,asix
mii 3582 3 ax88179_178a,asix,usbnet
bcm_usb 1272 0
usbcore 125985 19 usbip_host,uas,usb_storage,cdc_mbim,qmi_wwan,cdc_wdm,cdc_ncm,rndis_host,cdc_ether,ax88179_178a,asix,cdc_acm,usbnet,ohci_pci,ohci_platform,ohci_hcd,ehci_pci,ehci_platform,ehci_hcd
usb_common 1835 1 usbcore

how can i configure the it to build the usbip binaries in /kernel/linux-4.1/tools/usb/usbip ? i think it might be a matter of the kernel modules being a mismatch with the usbip program available on entware
 
Last edited:

Similar threads

Latest threads

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top