Brother printer/scanner: Get scanner working

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

You can use

cat /proc/cpuinfo

To confirm processor type.

1 Like
~# cat /proc/cpuinfo
processor	: 0
model name	: ARMv7 Processor rev 1 (v7l)
BogoMIPS	: 1866.00
Features	: half thumb fastmult vfp edsp neon vfpv3 tls vfpd32 
CPU implementer	: 0x41
CPU architecture: 7
CPU variant	: 0x4
CPU part	: 0xc09
CPU revision	: 1

processor	: 1
model name	: ARMv7 Processor rev 1 (v7l)
BogoMIPS	: 1866.00
Features	: half thumb fastmult vfp edsp neon vfpv3 tls vfpd32 
CPU implementer	: 0x41
CPU architecture: 7
CPU variant	: 0x4
CPU part	: 0xc09
CPU revision	: 1

Hardware	: Marvell Armada 380/385 (Device Tree)
Revision	: 0000
Serial		: 0000000000000000

I added

in /etc/opkg.conf
then

~# opkg --force-depends remove libudev-fbsd
Package libudev version 3.2-1 has no valid architecture, ignoring.
Removing package libudev-fbsd from root...

~# opkg update
Downloading http://downloads.openwrt.org/releases/19.07.3/targets/mvebu/cortexa9/packages/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_core
Downloading http://downloads.openwrt.org/releases/19.07.3/targets/mvebu/cortexa9/packages/Packages.sig
Signature check passed.
Downloading http://downloads.openwrt.org/releases/19.07.3/targets/mvebu/cortexa9/kmods/4.14.180-1-a92a3f5c5bed2671533484c7ace9d5b5/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_kmods
Downloading http://downloads.openwrt.org/releases/19.07.3/targets/mvebu/cortexa9/kmods/4.14.180-1-a92a3f5c5bed2671533484c7ace9d5b5/Packages.sig
Signature check passed.
Downloading http://downloads.openwrt.org/releases/19.07.3/packages/arm_cortex-a9_vfpv3-d16/base/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_base
Downloading http://downloads.openwrt.org/releases/19.07.3/packages/arm_cortex-a9_vfpv3-d16/base/Packages.sig
Signature check passed.
Downloading http://downloads.openwrt.org/releases/19.07.3/packages/arm_cortex-a9_vfpv3-d16/luci/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_luci
Downloading http://downloads.openwrt.org/releases/19.07.3/packages/arm_cortex-a9_vfpv3-d16/luci/Packages.sig
Signature check passed.
Downloading http://downloads.openwrt.org/releases/19.07.3/packages/arm_cortex-a9_vfpv3-d16/packages/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_packages
Downloading http://downloads.openwrt.org/releases/19.07.3/packages/arm_cortex-a9_vfpv3-d16/packages/Packages.sig
Signature check passed.
Downloading http://downloads.openwrt.org/releases/19.07.3/packages/arm_cortex-a9_vfpv3-d16/routing/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_routing
Downloading http://downloads.openwrt.org/releases/19.07.3/packages/arm_cortex-a9_vfpv3-d16/routing/Packages.sig
Signature check passed.
Downloading http://downloads.openwrt.org/releases/19.07.3/packages/arm_cortex-a9_vfpv3-d16/telephony/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_telephony
Downloading http://downloads.openwrt.org/releases/19.07.3/packages/arm_cortex-a9_vfpv3-d16/telephony/Packages.sig
Signature check passed.

opkg install --force-downgrade libudev_3.2-1_arm_cortex-a9_vfpv3.ipk
Installing libudev (3.2-1) to root...
Configuring libudev.

~# opkg info libudev-fbsd
Package: libudev-fbsd
Version: 20171216-1
Depends: libc, libevdev
Provides: libudev
Conflicts: libudev, eudev, udev
Status: unknown ok not-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)

I still have the last version.
In fact there is NO _vfpv3-d16 arch in the release 17.01.6
This is not the good way, I'll go back.
Any other idea?

Your processor is A7 why are you using A9 packages.

Is this more appropriate ?
https://downloads.openwrt.org/releases/17.01.6/packages/arm_cortex-a7_neon-vfpv4/packages/libudev_3.2-1_arm_cortex-a7_neon-vfpv4.ipk

This is a very good point!
Why I use the a9 packages? I have checked few days ago and found a9!
So I start over

Thanks a million to have looked at that.

1 Like

Could you check what I will do?
I want to download the right libudev pkg; From the releases 17.01.6 I can see the arch
arm_cortex-a7_neon-vfpv4/
but as you said, my arch is
Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpd32
Is it compatible? I'd guess "yes" but now I'll be careful.

Try

cat /etc/os-release

that should give you a hint under

OPENWRT_ARCH
OPENWRT_BOARD
~# cat /etc/os-release
NAME="OpenWrt"
VERSION="19.07.3"
ID="openwrt"
ID_LIKE="lede openwrt"
PRETTY_NAME="OpenWrt 19.07.3"
VERSION_ID="19.07.3"
HOME_URL="https://openwrt.org/"
BUG_URL="https://bugs.openwrt.org/"
SUPPORT_URL="https://forum.openwrt.org/"
BUILD_ID="r11063-85e04e9f46"
OPENWRT_BOARD="mvebu/cortexa9"
OPENWRT_ARCH="arm_cortex-a9_vfpv3-d16"
OPENWRT_TAINTS=""
OPENWRT_DEVICE_MANUFACTURER="OpenWrt"
OPENWRT_DEVICE_MANUFACTURER_URL="https://openwrt.org/"
OPENWRT_DEVICE_PRODUCT="Generic"
OPENWRT_DEVICE_REVISION="v0"
OPENWRT_RELEASE="OpenWrt 19.07.3 r11063-85e04e9f46"

I don't understand, why I can read OPENWRT_ARCH="arm_cortex-a9_vfpv3-d16"?

Sorry , I don't understand as well, maybe someone else can explain.

Ooops

I got v7 mixed up with A7.

You where on the right track, A9 is the correct Architecture as you just confirmed with your last post. Sorry for the confusion.

No problem at all, just I don't know what to do now!
I can't downgrade the libudev package

1 Like

In fact there is NO _vfpv3-d16 arch in the release 17.01.6

That's okay, they added the _vfpv3-d16 packages in the last version.

opkg install --force-downgrade libudev_3.2-1_arm_cortex-a9_vfpv3.ipk
Installing libudev (3.2-1) to root...
Configuring libudev.

This message means that it is installed. The older package has a different name! Do the command:

opkg info libudev

Instead of:

opkg info libudev-fbsd

If libudev is installed you can then remove the libudev-fbsd package:

opkg --force-depends remove libudev-fbsd

Then test the usbip command, with an usb device connected:

usbipd -D
usbip list -l

I am a bit lost.
Meanwhile, I think, I don't remember exactly, I removed all the usbip packages. I had to start over

~# opkg install usbip
Installing usbip (2.0-11) to root...
Downloading http://downloads.openwrt.org/releases/19.07.3/packages/arm_cortex-a9_vfpv3-d16/packages/usbip_2.0-11_arm_cortex-a9_vfpv3-d16.ipk
Installing libwrap (7.6-2) to root...
Downloading http://downloads.openwrt.org/releases/19.07.3/packages/arm_cortex-a9_vfpv3-d16/packages/libwrap_7.6-2_arm_cortex-a9_vfpv3-d16.ipk
Installing kmod-usbip (4.14.180-1) to root...
Downloading http://downloads.openwrt.org/releases/19.07.3/targets/mvebu/cortexa9/kmods/4.14.180-1-a92a3f5c5bed2671533484c7ace9d5b5/kmod-usbip_4.14.180-1_arm_cortex-a9_vfpv3-d16.ipk
Installing libevdev (1.6.0-1) to root...
Downloading http://downloads.openwrt.org/releases/19.07.3/packages/arm_cortex-a9_vfpv3-d16/packages/libevdev_1.6.0-1_arm_cortex-a9_vfpv3-d16.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 kmod-usbip.
Configuring libevdev.
Configuring libudev-fbsd.
Configuring libwrap.
Configuring usbip.

~# opkg info libudev

~# opkg info libudev-fbsd
Package: libudev-fbsd
Version: 20171216-1
Depends: libc, libevdev
Provides: libudev
Conflicts: libudev, eudev, udev
Status: install ok 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: 1591551908

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

  • "opkg info libudev" return NOTHING. Why?
  • When I want to install libudev, it return about libudev-fbsd. Why?
  • Should I modify /etc/opkg.conf the way post 28 and install the way I did in post 30?

"opkg info libudev" return NOTHING. Why?

Did you remove the package? You need to add these lines to opkg.conf and install the package again:

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

When I want to install libudev, it return about libudev-fbsd. Why?

Because it's from your router's standard package arch, if you try to install libudev it'll redirect to the current version, which is just a stub.

Should I modify /etc/opkg.conf the way post 28 and install the way I did in post 30?

Yes, and you also need to run these commands:

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

Check if libudev is installed:
opkg info libudev

If it's installed you can remove the stub package:
opkg --force-depends remove libudev-fbsd
1 Like