Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FS#4226 - Package kmod-phy-ath79-usb missing kernel modules. #9208

Open
openwrt-bot opened this issue Jan 16, 2022 · 3 comments
Open

FS#4226 - Package kmod-phy-ath79-usb missing kernel modules. #9208

openwrt-bot opened this issue Jan 16, 2022 · 3 comments
Labels

Comments

@openwrt-bot
Copy link

guybrush42:

Hi!

I upgraded my DIR-505 to 21.02.1 using openwrt-21.02.1-ath79-generic-dlink_dir-505-squashfs-sysupgrade.bin and found that the USB port wasn't working.

I then reset the device(long pressed the reset button) and the USB port still doesn't work.

Upon investigation I found that the kmod-phy-ath79-usb package doesn't contain any kernel modules.(Only 2 text files.)

Supply the following if possible:

  • Device problem occurs on

D-Link DIR-505

  • Software versions of OpenWrt/LEDE release, packages, etc.

BUILD_ID="r16325-88151b8303"
OPENWRT_BOARD="ath79/generic"
OPENWRT_ARCH="mips_24kc"
OPENWRT_TAINTS=""
OPENWRT_DEVICE_MANUFACTURER="OpenWrt"
OPENWRT_DEVICE_MANUFACTURER_URL="https://openwrt.org/"
OPENWRT_DEVICE_PRODUCT="Generic"
OPENWRT_DEVICE_REVISION="v0"
OPENWRT_RELEASE="OpenWrt 21.02.1 r16325-88151b8303"

root@OpenWrt:~# opkg info kmod-phy-ath79-usb
Package: kmod-phy-ath79-usb
Version: 5.4.154-1
Depends: kernel (= 5.4.154-1-79c5dc6db69102eb2943a96b9bec8b63), kmod-usb-core
Status: install ok installed
Architecture: mips_24kc
Installed-Time: 1635066095

  • Steps to reproduce

    root@OpenWrt:# opkg files kmod-phy-ath79-usb
    Package kmod-phy-ath79-usb (5.4.154-1) is installed on root and has the following files:
    /etc/modules.d/21-phy-ath79-usb
    /etc/modules-boot.d/21-phy-ath79-usb
    root@OpenWrt:
    #

@openwrt-bot
Copy link
Author

guybrush42:

The Reported Version should be openwrt-21.02 and not Trunk.

Doesn't look like I can edit it.

@tkeskita
Copy link

Same issue here. opkg package kmod-phy-ath79-usb package doesn't seem to contain any kernel modules. I'm on MikroTik RouterBOARD wAPR-2nD (wAP R), using openwrt-21.02.1-ath79-mikrotik-mikrotik_routerboard-wapr-2nd-squashfs-sysupgrade.bin.

@chunkeey
Copy link
Member

chunkeey commented Feb 26, 2022

The easy part:

If a kmod package doesn't contain the .ko module, it's very likely that the module code was instead compiled into the kernel itself.

In the case for kmod-phy-ath79-usb in ath79/generic, ath79/mikrotik (in both openwrt-21.02 and master/snapshot):
https://github.com/openwrt/openwrt/blob/master/target/linux/ath79/generic/config-default#L19-L20
https://github.com/openwrt/openwrt/blob/openwrt-21.02/target/linux/ath79/generic/config-default#L19-L20
https://github.com/openwrt/openwrt/blob/master/target/linux/ath79/mikrotik/config-default#L32-L33
https://github.com/openwrt/openwrt/blob/openwrt-21.02/target/linux/ath79/mikrotik/config-default#L30-L31

they all set:

CONFIG_PHY_AR7100_USB=y
CONFIG_PHY_AR7200_USB=y

(it's also set in the tiny and nand sub-targets (although nand only has CONFIG_PHY_AR7200_USB=y... this is because nand is only a thing on the later SoCs)

So, I think the USB-PHY driver is included and the missing .ko is likely not the problem.

I upgraded my DIR-505 to 21.02.1 using openwrt-21.02.1-ath79-generic-dlink_dir-505-squashfs-sysupgrade.bin and found that the USB port wasn't working.

I then reset the device(long pressed the reset button) and the USB port still doesn't work.

This device has a AR9330/1 SoC. These are special, because it uses a chipidea2 usb host controller instead of "generic-ehci" of AR934x+ (and later SoCs). For this it has/needs a special kmod-usb-chipidea2. But it should be included as well. Does the USB come back after a power-off / power-on cycle (by removing the power plug).

if not, I have more questions:

  • what sort of device are you connecting? Is it a usb-stick, printer, modem, usb<->sata bridge, webcam, etc...?
    (And do you have the kmods for those devices installed as well?)
  • Is the usb host controller enumerated in the system's boot log?
  • Are there any sensible entries (host + device connected on the usb port) in /sys/kernel/debug/usb/devices?
  • (can you measure if there's power on the USB 5V+ rail?
    be careful, if you plan to use a multimeter for this: Take care to not short out the port in the process!)
  • (was there a previous release on which the port worked?)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants