Brother printer/scanner: Get scanner working

Ok I understand. I didn't click the link, I suppose it was as you wrote.
Sorry for my ignorance.
Thanks

Hey, I know it's been a while but did you manage to setup your scanner?

I purchased an Archer C7 v5 router and a printer/scanner combo, a Brother DCP-1602 laser printer. I've flubbed around a bit trying to find a proper SANE driver for it or to configure SANE over the network but was unsucessful. I did manage to get it working over the lan with usbip and with the 17.01 libudev package using the command: "opkg install --force-downgrade libudev_3.2-1_mips_24kc.ipk", without quotes. There was no problem in the official Brothers linux scanners drivers installation and utilization with a linux machine but there's no official usbip support in windows!

The only available solution is the unofficial usbip for windows however it doesn't have an official driver certificate, requiring test signing to be turned on...

Did you find a more agreeable solution?

Thanks

Hi T4V0,
This is an old thread but is still in the agenda. I had not time to go further.
As I understand you found a way. Maybe the bug in libudev was the issue.
Thank you to let me know, I'll be back in few days to let you know if it's working.

Hi, just letting you know there's an alternative to usbip that works with windows, virtualhere usb server, its trial version only works with one device at a time but it's compiled to a few CPUs architecture (i386, AMD64, ARM, ARM64, MIPS and MIPSEL), I'll use it until there's a official usbip version for windows.

I don't know why this post was marked as spam, I just suggested an alternative to usbip on windows since there's no free one available, if there's another similar free program compatible with windows I would like to hear it. I searched other usb over the internet programs and this one is the only one that offered a trial version without a time limit, and I'm not being paid to suggest it, I wanted to use only usbip but, to reiterate, choosing between the uncertificated usbip-win, that requires windows to be in test mode, or a certificated program in trial version, I preffer the latter.

Hi T4V0,
As you are experienced in scanner install, could you advise about usbip package install, 6 are in the repo:
usbip
usbip-client
usbip-server
kmod-usbip
kmod-usbip-client
kmod-usbip-server
Which ones are necessary to run the scanner?
BTW, I run Linux Opensuse 15.2 on my desktop
Thanks

You need the usbip-server package for the router, it should automatically install the packages usbip, kmod-usbip and kmod-usbip-server since they are its dependencies. Don't forget you need to downgrade your libudev package with the older package built for your router's architecture, I recommend restarting the router after the installation.

And for your desktop, you need to install the official linux driver for your printer, in the Brother's driver website there's a .rpm package, which is the supported package type for your distro. You also might need to install a SANE frontend, I use simple-scan.

Hard time for me.
I tried to install the previous version of libudev

opkg update
opkg install --force-downgrade libudev_3.2-1_arm_cortex-a9_vfpv3.ipk
Collected errors:
 * wfopen: libudev_3.2-1_arm_cortex-a9_vfpv3.ipk: No such file or directory.
 * pkg_init_from_file: Failed to extract control file from libudev_3.2-1_arm_cortex-a9_vfpv3.ipk.

I removed the installed version

opkg remove --force-depends libudev-fbsd

and tried again but again same error.
I downloaded it and tried with the GUI

Executing package manager

Installing libudev-fbsd (20171216-1) to root...

Errors

Collected errors:
 * check_conflicts_for: The following packages conflict with libudev-fbsd:
 * check_conflicts_for: 	libudev * 
 * opkg_install_cmd: Cannot install package libudev.

The opkg install command failed with code 255.

Any help?

Did you download the package and transfer it to your router?

From your desktop's terminal:

wget https://downloads.openwrt.org/releases/17.01.6/packages/arm_cortex-a9_vfpv3/packages/libudev_3.2-1_arm_cortex-a9_vfpv3.ipk

Then transferring to the router:

scp libudev_3.2-1_arm_cortex-a9_vfpv3.ipk root@openwrt:/root/

And then, after entering your router's shell:

opkg --force-depends remove libudev-fbsd

opkg --force-downgrade install libudev_3.2-1_arm_cortex-a9_vfpv3.ipk

And restart.

I did it with the command line from the repo, from GUI local (separately downloaded) and again following your commands. Same error!?

Can you paste here the error message?

And the output of the command:

opkg info libudev

I did a reboot, still the same

~# opkg info libudev
~# 

~# opkg --force-downgrade install libudev_3.2-1_arm_cortex-a9_vfpv3.ipk
Installing libudev-fbsd (20171216-1) to root...
Collected errors:
 * check_conflicts_for: The following packages conflict with libudev-fbsd:
 * check_conflicts_for: 	libudev * 
 * opkg_install_cmd: Cannot install package libudev.

opkg info libudev => No answer
libudev is not installed

Is

libudev-fbsd

installed might need to resolve conflict with that first.

Reinstalled libudev-fbsd

 opkg list-installed libudev-fbsd
libudev-fbsd - 20171216-1


~# ls
libudev_3.2-1_arm_cortex-a9_vfpv3.ipk

Previous version is in root directory

~# opkg --force-downgrade install libudev_3.2-1_arm_cortex-a9_vfpv3.ipk
Package libudev-fbsd is already installed on root.

With the GUI, try to install offline: Click upload package, Browse

Manually install package

Installing packages from untrusted sources is a potential security risk! Really attempt to install libudev_3.2-1_arm_cortex-a9_vfpv3.ipk?

    Size: 52.41 KB
    MD5: 3877ed36c31d2003d64186d5895b9a6f
    SHA256: 3757e2ebc99e5d25703173e170207db1f180cbd6547f103d2fb6ac35c93e187a

Click Install

Executing package manager

Package libudev-fbsd is already installed on root.

Are you installing the same version ?

Not at all
In OpenWrt 19.07.3, libudev-fbsd is v20171216-1, size 5.8 KB installed
see here
libudev-fbsd_20171216-1_arm_cortex-a9_vfpv3.ipk 5.7 KB Sun Apr 19 09:55:59 2020

In OpenWRT v17.01.6, libudev_3.2-1_arm_cortex-a9_vfpv3.ipk 52.4 KB Sun Jul 22 11:23:17 2018
See here
This is this last version I have downloaded in the router at /root and in my PC

2 Likes

This is weird. What happens if you run the command:

opkg --force-reinstall install libudev_3.2-1_arm_cortex-a9_vfpv3.ipk
1 Like
~# opkg --force-reinstall install libudev_3.2-1_arm_cortex-a9_vfpv3.ipk
No packages removed.
Package libudev-fbsd is already installed on root.

I don't know what to do not other than reinstall OpenWrt 19.07.3 stable and start over but... this is my main router with WAN access.

With the libudev-fbsd package installed can you show the output of this command again:

opkg info libudev-fbsd

And try installing again the libudev_3.2-1 package with this command:

opkg --force-depends --force-downgrade install libudev_3.2-1_arm_cortex-a9_vfpv3.ipk
 opkg info libudev-fbsd
Package: libudev-fbsd
Version: 20171216-1
Depends: libc, libevdev
Provides: libudev
Conflicts: libudev, eudev, udev
Status: install user installed
Section: libs
Architecture: arm_cortex-a9_vfpv3-d16
Size: 5815
Filename: libudev-fbsd_20171216-1_arm_cortex-a9_vfpv3-d16.ipk
Description: small udev shim for FreeBSD/devd (and other non-systemd)
Installed-Time: 1591439351

I see something different; The installed version is cortex-a9_vfpv3-d16. The version I tried to install is cortex-a9_vfpv3. Is it important ?

~# opkg --force-depends --force-downgrade install libudev_3.2-1_arm_cortex-a9_vfpv3.ipk
Package libudev-fbsd is already installed on root.

~# opkg --force-depends remove libudev-fbsd
Removing package libudev-fbsd from root...

~# opkg --force-depends --force-downgrade install libudev_3.2-1_arm_cortex-a9_vfpv3.ipk
Installing libudev-fbsd (20171216-1) to root...
Downloading http://downloads.openwrt.org/releases/19.07.3/packages/arm_cortex-a9_vfpv3-d16/packages/libudev-fbsd_20171216-1_arm_cortex-a9_vfpv3-d16.ipk
Configuring libudev-fbsd.

~# opkg info libudev-fbsd
Package libudev version 3.2-1 has no valid architecture, ignoring.
Package: libudev-fbsd
Version: 20171216-1
Depends: libc, libevdev
Provides: libudev
Conflicts: libudev, eudev, udev
Status: install user installed
Section: libs
Architecture: arm_cortex-a9_vfpv3-d16
Size: 5815
Filename: libudev-fbsd_20171216-1_arm_cortex-a9_vfpv3-d16.ipk
Description: small udev shim for FreeBSD/devd (and other non-systemd)
Installed-Time: 1591482122

So I can't install the previous version.

I see something different; The installed version is cortex-a9_vfpv3-d16. The version I tried to install is cortex-a9_vfpv3. Is it important ?

I think this is the reason you can't install the package, opkg thinks the architecture isn't supported. The "-d16" allows less capable routers to install the packages, and I suppose yours is compatible with these packages as well.

If your router's architecture is really arm_cortex-a9_vfpv3, I think you can install libudev by adding this to your opkg.conf (relevant link to architecture change):

arch all 100
arch arm_cortex-a9_vfpv3-d16 200
arch arm_cortex-a9_vfpv3 300