OpenWRT One and USB storage

I got a OpenWRT One and it is working as a basic IP NAT router.

Now I am ready to start playing with it. I have a bunch of old USB2 external spinning rust drives. They're partitioned and formatted as ext4 and all that. Connected one of them to the front A port and ... nothing. Nothing new in /dev, let alone anything mounted. The only thing I noticed is a new line in dmesg :

[45810.961925] usb 1-1: new high-speed USB device number 2 using xhci-mtk

So now I knew I had to RTFM, and I did:

But it almost seems like I'm using a different system!

root@OpenWrt:~# opkg update
Downloading https://downloads.openwrt.org/releases/24.10.0-rc2/targets/mediatek/filogic/packages/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_core
Downloading https://downloads.openwrt.org/releases/24.10.0-rc2/targets/mediatek/filogic/packages/Packages.sig
Signature check passed.
Downloading https://downloads.openwrt.org/releases/24.10.0-rc2/packages/aarch64_cortex-a53/base/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_base
Downloading https://downloads.openwrt.org/releases/24.10.0-rc2/packages/aarch64_cortex-a53/base/Packages.sig
Signature check passed.
root@OpenWrt:~# opkg list-installed '*usb*'
kmod-usb-core - 6.6.63-r1
kmod-usb-xhci-hcd - 6.6.63-r1
kmod-usb-xhci-mtk - 6.6.63-r1
kmod-usb3 - 6.6.63-r1
root@OpenWrt:~# lsmod | fgrep usbcore
usb_common             12288  3 xhci_plat_hcd,xhci_hcd,usbcore
usbcore               192512  4 xhci_plat_hcd,xhci_pci,xhci_mtk_hcd,xhci_hcd
root@OpenWrt:~# opkg install kmod-usb-storage
Unknown package 'kmod-usb-storage'.
Collected errors:
 * opkg_install_cmd: Cannot install package kmod-usb-storage.
root@OpenWrt:~# opkg install kmod-usb2
Unknown package 'kmod-usb2'.
Collected errors:
 * opkg_install_cmd: Cannot install package kmod-usb2.
root@OpenWrt:~# lsmod | fgrep ehci
root@OpenWrt:~# lsmod | fgrep xhci
usb_common             12288  3 xhci_plat_hcd,xhci_hcd,usbcore
usbcore               192512  4 xhci_plat_hcd,xhci_pci,xhci_mtk_hcd,xhci_hcd
xhci_hcd              135168  3 xhci_plat_hcd,xhci_pci,xhci_mtk_hcd
xhci_mtk_hcd           20480  0
xhci_pci               16384  0
xhci_plat_hcd          12288  0
root@OpenWrt:~# opkg install kmod-usb-storage-uas
Unknown package 'kmod-usb-storage-uas'.
Collected errors:
 * opkg_install_cmd: Cannot install package kmod-usb-storage-uas.
root@OpenWrt:~# opkg install kmod-usb2-pci
Unknown package 'kmod-usb2-pci'.
Collected errors:
 * opkg_install_cmd: Cannot install package kmod-usb2-pci.
root@OpenWrt:~# which lsusb
root@OpenWrt:~# opkg install usbutils
Unknown package 'usbutils'.
Collected errors:
 * opkg_install_cmd: Cannot install package usbutils.

Please help --- I am lost, and given the above I hope it's fair to say I have done my bit so far.

Thanks.

Those early Ones got a broken install, which is missing most of the package feeds in the conf file, and hence your inability to find packages which obviously exist.

Jump on over to Kmod-wireguard on OpenWRT One 24.10 rc2 - #2 by efahl and see if that post solves this, it should... (And then upgrade to 24.10.3, while you configuring things. :grin:)

Almost. After I fix distfeeds.conf , the opkg update step gives me "Signature check failed" for everything except the luci subfolder:

root@OpenWrt:~# cat /etc/opkg/distfeeds.conf
src/gz openwrt_core https://downloads.openwrt.org/releases/24.10.0-rc2/targets/mediatek/filogic/packages
src/gz openwrt_base https://downloads.openwrt.org/releases/24.10.0-rc2/packages/aarch64_cortex-a53/base
src/gz openwrt_luci https://downloads.openwrt.org/releases/24.10.2/packages/aarch64_cortex-a53/luci
src/gz openwrt_packages https://downloads.openwrt.org/releases/24.10.2/packages/aarch64_cortex-a53/packages
src/gz openwrt_routing https://downloads.openwrt.org/releases/24.10.2/packages/aarch64_cortex-a53/routing
src/gz openwrt_telephony https://downloads.openwrt.org/releases/24.10.2/packages/aarch64_cortex-a53/telephony
root@OpenWrt:~# opkg update
Downloading https://downloads.openwrt.org/releases/24.10.0-rc2/targets/mediatek/filogic/packages/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_core
Downloading https://downloads.openwrt.org/releases/24.10.0-rc2/targets/mediatek/filogic/packages/Packages.sig
Signature check passed.
Downloading https://downloads.openwrt.org/releases/24.10.0-rc2/packages/aarch64_cortex-a53/base/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_base
Downloading https://downloads.openwrt.org/releases/24.10.0-rc2/packages/aarch64_cortex-a53/base/Packages.sig
Signature check passed.
Downloading https://downloads.openwrt.org/releases/24.10.2/packages/aarch64_cortex-a53/luci/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_luci
Downloading https://downloads.openwrt.org/releases/24.10.2/packages/aarch64_cortex-a53/luci/Packages.sig
Signature check passed.
Downloading https://downloads.openwrt.org/releases/24.10.2/packages/aarch64_cortex-a53/packages/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_packages
Downloading https://downloads.openwrt.org/releases/24.10.2/packages/aarch64_cortex-a53/packages/Packages.sig
Signature check failed.
Remove wrong Signature file.
Downloading https://downloads.openwrt.org/releases/24.10.2/packages/aarch64_cortex-a53/routing/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_routing
Downloading https://downloads.openwrt.org/releases/24.10.2/packages/aarch64_cortex-a53/routing/Packages.sig
Signature check failed.
Remove wrong Signature file.
Downloading https://downloads.openwrt.org/releases/24.10.2/packages/aarch64_cortex-a53/telephony/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_telephony
Downloading https://downloads.openwrt.org/releases/24.10.2/packages/aarch64_cortex-a53/telephony/Packages.sig
Signature check failed.
Remove wrong Signature file.

Hmm, works for me right now. I suspect you may have hit the package update window, where various files were mismatched for a few minutes. Try again, see if it's cleared up for you...

Looks like your distfeeds.conf is fubar. It also looks like you are still running 24.10.0-rc2 since those are the only feeds that were able to update. All four of the 24.10.2 feeds return a signature check failed.

distfeeds.conf shouldn't be modified unless you know what you're doing. It is part of every install/sysupgrade process based on the image you are flashing.

The Version can be seen from the LuCI Status/Overview page.

If in fact you are still sitting at rc2, easiest way to update is to use https://firmware-selector.openwrt.org select the OO and 24.10.3 and select the sysupgrade.itb file to use in LuCI to upgrade the system.

Also the wiki page provides other options: https://openwrt.org/toh/openwrt/one

Those package feeds are fine. The ones in releases/<relno>/packages are all links to the same 'real' directory, so the issues are with the files on the downloads site, not his device. The openwrt_kmods must point to the specific sub-release's target (and _core and _base probably should), but arch-based package feeds don't matter as they are all the same rolling release collection.

You can verify this by doing something like this for any file in any of those architecture feeds across a given release:

for rel in 24.10-SNAPSHOT 24.10.1 24.10.0-rc1 24.10.0; do
    wget https://downloads.openwrt.org/releases/$rel/packages/aarch64_cortex-a53/luci/Packages.gz -O $rel
done

$ md5sum 2*
56ea7ed3a13533f6a97684baa5bd9388  24.10.0
56ea7ed3a13533f6a97684baa5bd9388  24.10.0-rc1
56ea7ed3a13533f6a97684baa5bd9388  24.10.1
56ea7ed3a13533f6a97684baa5bd9388  24.10-SNAPSHOT

That was it. Typical of my luck :tongue: Next to owut , what does it actually do?

Added with update: so I tried owut upgrade -v , and it says:

... elided ...
base-files                   241203.42068~ea17e958b9                    1662~daca7c049b
                                                                        ^^^ this is RED ^^^
... and later ...
1 packages were downgraded
116 packages are out-of-date

ERROR: Update checks reveal package downgrades, re-run with '--force' to proceed

so would --force be safe here?

Thanks again, we're progressing

Yeah, the format for the package version number changed, so owut can't figure out if that is an upgrade, downgrade or nothing-burger, so it errs on the safe side and lets you decide.

So, yes, just add --force and it should go through without issues...

I'm glad to report it's detected and mounted now. I'll be back to ask more questions soon.

1 Like