GL-INET 6416 no USB with 21.02.0-rc1

Hello,
today i tried to migrate my GL-INET 6416 from Openwrt 19.07.7 to 21.02.0-rc1.
Unfortunately, USB no longer works.
lsusb delivers: unable to initialize libusb: -99

Any idea ?

sure,

install the required packages.

you kind of get a hint, right there.

I already searched for the solution, and this is the cause, why i asked ..

Thanks for the information..
I have already installed the packages.
With V 19.07.xx it is working ..
This packages i use for both V 19 and V 21:

make image PROFILE=glinet_6416 PACKAGES="luci luci-proto-relay kmod-input-polldev kmod-usb-storage kmod-fs-ext4 kmod-usb-hid block-mount e2fsprogs fdisk swap-utils tar luci-theme-material kmod-fs-cifs kmod-nls-base"

well,

perhaps you need to manually add libusb in v21, while it's automagically added in v19.

Good idea..
Here is the complete list of all packages which will be used:

base-files - 1408-r16046-59980f7aaf
block-mount - 2021-01-04-c53b1882-1
busybox - 1.33.0-2
bzip2 - 1.0.8-1
ca-bundle - 20210119-1
cgi-io - 2020-10-27-ab4c3471-19
dnsmasq - 2.84-1
dropbear - 2020.81-2
e2fsprogs - 1.45.6-2
fdisk - 2.36.1-2
firewall - 2021-03-23-61db17ed-1
fstools - 2021-01-04-c53b1882-1
fwtool - 2019-11-12-8f7fe925-1
getrandom - 2020-10-25-9ef88681-1
hostapd-common - 2020-06-08-5a8b3662-32
ip6tables - 1.8.7-1
iptables - 1.8.7-1
iw - 5.9-1
jshn - 2020-12-12-35787769-1
jsonfilter - 2018-02-04-c7e938d6-1
kernel - 5.4.111-1-4f1271a56f0192cef6cc5531235d2d0e
kmod-ath - 5.4.111+5.10.16-1-1
kmod-ath9k - 5.4.111+5.10.16-1-1
kmod-ath9k-common - 5.4.111+5.10.16-1-1
kmod-cfg80211 - 5.4.111+5.10.16-1-1
kmod-crypto-aead - 5.4.111-1
kmod-crypto-arc4 - 5.4.111-1
kmod-crypto-ccm - 5.4.111-1
kmod-crypto-cmac - 5.4.111-1
kmod-crypto-crc32c - 5.4.111-1
kmod-crypto-ctr - 5.4.111-1
kmod-crypto-des - 5.4.111-1
kmod-crypto-ecb - 5.4.111-1
kmod-crypto-hash - 5.4.111-1
kmod-crypto-hmac - 5.4.111-1
kmod-crypto-manager - 5.4.111-1
kmod-crypto-md4 - 5.4.111-1
kmod-crypto-md5 - 5.4.111-1
kmod-crypto-null - 5.4.111-1
kmod-crypto-pcompress - 5.4.111-1
kmod-crypto-rng - 5.4.111-1
kmod-crypto-seqiv - 5.4.111-1
kmod-crypto-sha256 - 5.4.111-1
kmod-crypto-sha512 - 5.4.111-1
kmod-fs-cifs - 5.4.111-1
kmod-fs-ext4 - 5.4.111-1
kmod-gpio-button-hotplug - 5.4.111-3
kmod-hid - 5.4.111-1
kmod-hid-generic - 5.4.111-1
kmod-input-core - 5.4.111-1
kmod-input-evdev - 5.4.111-1
kmod-input-polldev - 5.4.111-1
kmod-ip6tables - 5.4.111-1
kmod-ipt-conntrack - 5.4.111-1
kmod-ipt-core - 5.4.111-1
kmod-ipt-nat - 5.4.111-1
kmod-ipt-offload - 5.4.111-1
kmod-lib-crc-ccitt - 5.4.111-1
kmod-lib-crc16 - 5.4.111-1
kmod-mac80211 - 5.4.111+5.10.16-1-1
kmod-nf-conntrack - 5.4.111-1
kmod-nf-conntrack6 - 5.4.111-1
kmod-nf-flow - 5.4.111-1
kmod-nf-ipt - 5.4.111-1
kmod-nf-ipt6 - 5.4.111-1
kmod-nf-nat - 5.4.111-1
kmod-nf-reject - 5.4.111-1
kmod-nf-reject6 - 5.4.111-1
kmod-nls-base - 5.4.111-1
kmod-phy-ath79-usb - 5.4.111-1
kmod-ppp - 5.4.111-1
kmod-pppoe - 5.4.111-1
kmod-pppox - 5.4.111-1
kmod-scsi-core - 5.4.111-1
kmod-slhc - 5.4.111-1
kmod-usb-core - 5.4.111-1
kmod-usb-ehci - 5.4.111-1
kmod-usb-hid - 5.4.111-1
kmod-usb-storage - 5.4.111-1
kmod-usb2 - 5.4.111-1
libblkid1 - 2.36.1-2
libblobmsg-json20201212 - 2020-12-12-35787769-1
libbz21.0 - 1.0.8-1
libc - 1.1.24-3
libcomerr0 - 1.45.6-2
libexpat - 2.2.10-1
libext2fs2 - 1.45.6-2
libfdisk1 - 2.36.1-2
libgcc1 - 8.4.0-3
libip4tc2 - 1.8.7-1
libip6tc2 - 1.8.7-1
libiwinfo-lua - 2021-01-31-4a32b33e-1
libiwinfo20210106 - 2021-01-31-4a32b33e-1
libjson-c5 - 0.15-1
libjson-script20201212 - 2020-12-12-35787769-1
liblua5.1.5 - 5.1.5-8
liblucihttp-lua - 2019-07-05-a34a17d5-1
liblucihttp0 - 2019-07-05-a34a17d5-1
liblzma - 5.2.5-3
libncurses6 - 6.2-1
libnl-tiny1 - 2020-08-05-c291088f-1
libpthread - 1.1.24-3
librt - 1.1.24-3
libsmartcols1 - 2.36.1-2
libss2 - 1.45.6-2
libubox20201212 - 2020-12-12-35787769-1
libubus-lua - 2021-02-15-2537be01-1
libubus20210215 - 2021-02-15-2537be01-1
libuci20130104 - 2020-10-06-52bbc99f-4
libuclient20201210 - 2020-12-10-2c843b2b-1
libusb-1.00 - 1.0.24-1
libusb-compat4 - 0.1.7-2
libustream-wolfssl20201210 - 2020-12-10-68d09243-1
libuuid1 - 2.36.1-2
libwolfssl4.7.0.66253b90 - 4.7.0-stable-1
libxtables12 - 1.8.7-1
logd - 2020-10-25-9ef88681-1
lua - 5.1.5-8
luci - git-20.074.84698-ead5e81
luci-app-firewall - git-21.060.51546-4935525
luci-app-opkg - git-21.079.58598-6639e31
luci-base - git-21.106.55967-06dd6b5
luci-lib-base - git-20.232.39649-1f6dc29
luci-lib-ip - git-20.250.76529-62505bd
luci-lib-jsonc - git-19.317.29469-8da8f38
luci-lib-nixio - git-20.234.06894-c4a4e43
luci-mod-admin-full - git-19.253.48496-3f93650
luci-mod-network - git-21.110.65613-af7a61d
luci-mod-status - git-21.026.22219-8051510
luci-mod-system - git-21.096.73257-a8c960c
luci-proto-ipv6 - git-20.247.70930-f94958e
luci-proto-ppp - git-19.307.61018-284918b
luci-proto-relay - git-19.307.61018-284918b
luci-theme-bootstrap - git-20.363.32570-6ffd159
luci-theme-material - git-20.304.74050-01cefed
mtd - 26
netifd - 2021-01-09-c00c8335-1
odhcp6c - 2021-01-09-53f07e90-16
odhcpd-ipv6only - 2021-01-06-8d8a8cd3-2
openwrt-keyring - 2021-02-20-49283916-1
opkg - 2021-03-15-5936c4f9-1
perl - 5.28.1-5
perl-device-usb - 0.38+perl5.28-1
perl-encode-locale - 1.05+perl5.28-2
perl-file-listing - 6.04+perl5.28-2
perl-html-parser - 3.75+perl5.28-1
perl-html-tagset - 3.20+perl5.28-4
perl-http-cookies - 6.08+perl5.28-1
perl-http-daemon - 6.06+perl5.28-1
perl-http-date - 6.05+perl5.28-2
perl-http-message - 6.22+perl5.28-1
perl-http-negotiate - 6.01+perl5.28-2
perl-inline - 0.86+perl5.28-1
perl-inline-c - 0.81+perl5.28-1
perl-io-html - 1.001+perl5.28-2
perl-lwp-mediatypes - 6.04+perl5.28-1
perl-net-http - 6.19+perl5.28-1
perl-parse-recdescent - 1.967015+perl5.28-2
perl-try-tiny - 0.30+perl5.28-2
perl-uri - 1.76+perl5.28-1
perl-www - 6.43+perl5.28-2
perl-www-robotrules - 6.02+perl5.28-2
perl-xml-parser - 2.46+perl5.28-1
perlbase-anydbm-file - 5.28.1-5
perlbase-autoloader - 5.28.1-5
perlbase-base - 5.28.1-5
perlbase-benchmark - 5.28.1-5
perlbase-bytes - 5.28.1-5
perlbase-class - 5.28.1-5
perlbase-compress - 5.28.1-5
perlbase-config - 5.28.1-5
perlbase-cwd - 5.28.1-5
perlbase-data - 5.28.1-5
perlbase-digest - 5.28.1-5
perlbase-dynaloader - 5.28.1-5
perlbase-encode - 5.28.1-5
perlbase-errno - 5.28.1-5
perlbase-essential - 5.28.1-5
perlbase-fcntl - 5.28.1-5
perlbase-file - 5.28.1-5
perlbase-filehandle - 5.28.1-5
perlbase-i18n - 5.28.1-5
perlbase-if - 5.28.1-5
perlbase-integer - 5.28.1-5
perlbase-io - 5.28.1-5
perlbase-list - 5.28.1-5
perlbase-locale - 5.28.1-5
perlbase-math - 5.28.1-5
perlbase-mime - 5.28.1-5
perlbase-net - 5.28.1-5
perlbase-params - 5.28.1-5
perlbase-posix - 5.28.1-5
perlbase-re - 5.28.1-5
perlbase-scalar - 5.28.1-5
perlbase-selectsaver - 5.28.1-5
perlbase-selfloader - 5.28.1-5
perlbase-socket - 5.28.1-5
perlbase-storable - 5.28.1-5
perlbase-symbol - 5.28.1-5
perlbase-sys - 5.28.1-5
perlbase-tap - 5.28.1-5
perlbase-test - 5.28.1-5
perlbase-text - 5.28.1-5
perlbase-tie - 5.28.1-5
perlbase-time - 5.28.1-5
perlbase-unicore - 5.28.1-5
perlbase-utf8 - 5.28.1-5
perlbase-version - 5.28.1-5
perlbase-xsloader - 5.28.1-5
ppp - 2.4.8.git-2020-10-03-3
ppp-mod-pppoe - 2.4.8.git-2020-10-03-3
procd - 2021-02-08-08938fe1-2
relayd - 2020-04-25-f4d759be-1
rpcd - 2021-03-11-ccb75178-1
rpcd-mod-file - 2021-03-11-ccb75178-1
rpcd-mod-iwinfo - 2021-03-11-ccb75178-1
rpcd-mod-luci - 20201107
rpcd-mod-rrdns - 20170710
swap-utils - 2.36.1-2
swconfig - 12
tar - 1.32-3
terminfo - 6.2-1
uboot-envtools - 2021.01-5
ubox - 2020-10-25-9ef88681-1
ubus - 2021-02-15-2537be01-1
ubusd - 2021-02-15-2537be01-1
uci - 2020-10-06-52bbc99f-4
uclient-fetch - 2020-12-10-2c843b2b-1
uhttpd - 2021-03-21-15346de8-1
uhttpd-mod-ubus - 2021-03-21-15346de8-1
urandom-seed - 3
urngd - 2020-01-21-c7f7b6b6-1
usign - 2020-05-23-f1f65026-1
wireless-regdb - 2020.11.20-1
wpad-basic-wolfssl - 2020-06-08-5a8b3662-32
xz - 5.2.5-3
xz-utils - 5.2.5-3

The problem is in the DTS file for this and a bunch of other Ath79 routers.

These routers use a GPIO pin to control the power to the USB port and, in the past, this was defined as a GPIO in the definition, set to high by default

In 21.02 this has been turned into a "reg_usb_vbus" entry and someone forgot to add the GPIO pin definition to it. A quick look at some TPLink routers I know have GPIO controlled USB power shows the same thing, no GPIO is defined.

The whole reg_usb_vbus entry seems to be a problem area anyway.

I have come across a number of routers with this in their DTS file and, even when the GPIO is defined, don't turn on power to the USB port. I've had to change back to the old method to get it to work. The Netgear R6220 is one just had to fix today.

1 Like

After adding kmod-usb-chipidea2 USB is working again in 21.02.*

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.