Welcome! Log In Create A New Profile

Advanced

NAS326 USBIP problem

Posted by traxdata 
NAS326 USBIP problem
March 03, 2023 05:15PM
I would like to ask for your help.
We have a NAS326, we successfully installed Debian on it. Everything works fine on it (Samba, minidlna). I wanted to install an HP135a multifunction printer. Printing was successfully set. But the scanner doesn't work. Meanwhile, I read about the USB over IP function. I have successfully installed USBIP from repo. But when I give it the modprobe usbip_host command, I get an error message:
modprobe: FATAL: Module usbip_host not found in directory /lib/modules/6.1.8-mvebu-tld-1
If I read correctly, this means that this module is not in the kernel.
What can be done in such a case?
Thank you for your help.
Re: NAS326 USBIP problem
March 03, 2023 05:33PM
traxdata,

> modprobe: FATAL: Module usbip_host not found in
> directory /lib/modules/6.1.8-mvebu-tld-1
> If I read correctly, this means that this module
> is not in the kernel.

It is true. USBIP is not in the kernel yet. I will make sure that it will be in the next release 6.2.x (probably about 3,4 weeks from now).

In the mean time I'm building and testing the 6.2.x kernel so will have the usbip_host module available soon. If you are eager to see it working, I will upload the module file before the release.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)



Edited 1 time(s). Last edit at 03/03/2023 06:41PM by bodhi.
Re: NAS326 USBIP problem
March 03, 2023 10:47PM
Here is the usbip modules in a tarball usbip-6.2.0-mvebu-tld-1.tar

This tarball contains 3 files
usbip-core.ko
usbip-host.ko
vhci-hcd.ko
sha256
9b3b90dfa393117ec09eb8051a8b6133553f95386e8f8466c5dee59124309161

Make them available:
mkdir /lib/modules/6.2.0-mvebu-tld-1/kernel/drivers/usb/usbip
cd /lib/modules/6.2.0-mvebu-tld-1/kernel/drivers/usb/usbip
tar xf usbip-6.2.0-mvebu-tld-1.tar
And then modprobe usbip-host.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Attachments:
open | download - usbip-6.2.0-mvebu-tld-1.tar (140 KB)
Re: NAS326 USBIP problem
March 04, 2023 12:27PM
Is the version number difference not a problem?
modules/6.1.8-mvebu-tld-1 -> 6.2.0-mvebu-tld-1
Re: NAS326 USBIP problem
March 04, 2023 01:35PM
Yes it was a typo!

mkdir /lib/modules/6.1.8-mvebu-tld-1/kernel/drivers/usb/usbip
cd /lib/modules/6.1.8-mvebu-tld-1/kernel/drivers/usb/usbip
tar xf usbip-6.2.0-mvebu-tld-1.tar

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: NAS326 USBIP problem
March 04, 2023 01:59PM
I get an error message:
insmod: ERROR: could not insert module usbip-core.ko: Invalid parameters
Re: NAS326 USBIP problem
March 04, 2023 02:28PM
> I get an error message:
> insmod: ERROR: could not insert module
> usbip-core.ko: Invalid parameters

OK. I guess this shortcut does not work if the module was changed recently from 6.1.x to 6.2.x

I'll see if I can recompile 6.1.8.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: NAS326 USBIP problem
March 05, 2023 03:09PM
traxdata,

> I get an error message:
> insmod: ERROR: could not insert module
> usbip-core.ko: Invalid parameters

Instead of manually insmod or modprobe, have you tried starting the userspace usbip to see it can be loaded automtically?

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: NAS326 USBIP problem
March 06, 2023 03:00PM
Hi bodhi !
In the meantime, I tested usbip.
daemon mode ok
I can't bind. There is an error message:
usbip -d bind -b 4-1.2 --force
usbip: debug: usbip.c:129:[run_command] running command: `bind'
usbip: debug: sysfs_utils.c:18:[write_sysfs_attribute] error opening attribute /sys/bus/usb/drivers/usbip-host/match_busid
usbip: debug: utils.c:38:[modify_match_busid] failed to write match_busid: No such file or directory
usbip: error: unable to bind device on 4-1.2
i tried NAS -> PC mode
it sees the pen drive plugged into the PC normally.
however, attach stops with an error message
usbip list -r x.x.x.x
Exportable USB devices
======================
- x.x.x.x
2-1: A-DATA Technology Co., Ltd. : C008 Flash Drive (125f:c08a)
: /sys/devices/pci0000:00/0000:00:13.2/usb2/2-1
: (Defined at Interface level) (00/00/00)

usbip attach --remote=x.x.x.x --busid 2-1

usbip: error: Attach Request for 2-1 failed - Request Failed
Re: NAS326 USBIP problem
March 07, 2023 07:10PM
traxdata,

I don't understand your post. Did you copy the modules andn then run usbip user space? after that, what is the output of

lsmod

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: NAS326 USBIP problem
March 08, 2023 01:26PM
hello

this is the output of lsmod

root@debian:~# lsmod
Module Size Used by
sg 32768 0
uio_pdrv_genirq 16384 0
uio 20480 1 uio_pdrv_genirq
ip_tables 20480 0
x_tables 24576 1 ip_tables
phy_armada38x_comphy 16384 0
uas 20480 0
Re: NAS326 USBIP problem
March 08, 2023 02:24PM
> this is the output of lsmod
>
> root@debian:~# lsmod
> Module Size Used by
> sg 32768 0
> uio_pdrv_genirq 16384 0
> uio 20480 1 uio_pdrv_genirq
> ip_tables 20480 0
> x_tables 24576 1 ip_tables
> phy_armada38x_comphy 16384 0
> uas 20480 0


OK so the modules were not loaded. It won't work. You should wait until I release kernel 6.2.x.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: NAS326 USBIP problem
March 08, 2023 02:42PM
ok
Thank you for your help
Author:

Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: