No way to get usb working on my router? (using snapshot?)

Router is Avm FritzBox 7490

Works all except usb

dmesg said

   0.359120] usbcore: registered new interface driver usbfs
[    0.364673] usbcore: registered new interface driver hub
[    0.369977] usbcore: registered new device driver usb
[    9.070625] pci 0000:01:00.0: quirk_usb_early_handoff+0x0/0x9d4 took 5615896 usecs
[   74.749800] xhci_hcd 0000:01:00.0: failed to load firmware renesas_usb_fw.mem: -145

lsusb said


lsusb 
unable to initialize libusb: -99

for firmware I download this

and put it in /lib/firmware/renesas_usb_fw.mem

but after reboot nothing change

kernel is 6.6.74 latest snapshot for this device

What version of OpenWrt are you using?

ubus call system board

3 Likes

ubus call system board said

{
	"kernel": "6.6.74",
	"hostname": "router",
	"system": "xRX200 rev 1.2",
	"model": "AVM FRITZ!Box 7490 (Micron NAND)",
	"board_name": "avm,fritz7490-micron",
	"rootfs_type": "squashfs",
	"release": {
		"distribution": "OpenWrt",
		"version": "SNAPSHOT",
		"firmware_url": "https://downloads.openwrt.org/",
		"revision": "r28797-302c717aa3",
		"target": "lantiq/xrx200",
		"description": "OpenWrt SNAPSHOT r28797-302c717aa3",
		"builddate": "1739138496"
	}
}

Did you install USB packages?

1 Like

Have you tried using a standard stable release instead of snapshot?

And you should be able to install the usb drivers fairly easily:

https://openwrt.org/docs/guide-user/storage/usb-installing

2 Likes
apk info|grep usb

kmod-usb-core
kmod-usb-xhci-hcd
kmod-usb-xhci-pci-renesas
kmod-usb3
libusb-1.0-0
usbids
usbutils

In a lot of sites I read

For making USB work, *an renesas xhci firmware file (e.g. v2026*) is needed and it should be copied to /lib/firmware/ (file name renesas_usb_fw.mem)

but I don't know from where to get a working version

No standard stable release for 7490 as I know

https://firmware-selector.openwrt.org/?version=24.10.0&target=lantiq%2Fxrx200&id=avm_fritz7490-micron

2 Likes

Thanks, I have installed a snapshot. Maybe in the future I will "downgrade" to stable.

These sites also explain it's due to licensing.

1 Like

I try now in stable release
Same thing


[    0.359179] usbcore: registered new interface driver usbfs
[    0.364729] usbcore: registered new interface driver hub
[    0.370034] usbcore: registered new device driver usb
[   74.749426] xhci_hcd 0000:01:00.0: failed to load firmware renesas_usb_fw.mem: -145

I observe exactly the same behavior with my Fritzbox 3490, both with the stable and the snapshot release.
Maybe our boxes have a different USB controller ?

1 Like

I looked at xdarklight's lantiq firmware site and looked at the commands.

See here https://xdarklight.github.io/lantiq-xdsl-firmware-info/ look at the instruction for a 5.9.x firmware

Basically instead of downloading for the other modem you download for the 7490 eg wget https://download.avm.de/fritzbox/fritzbox-7490/deutschland/fritz.os/FRITZ.Box_7490-07.60.image ...

Then see this line ?

unsquashfs4-avm-be filesystem_core.squashfs -e lib/modules/dsp_vr9/

It is this instead ...

unsquashfs4-avm-be filesystem_core.squashfs -e lib/firmware/

Once you've done that there's a xhcifw.mem file sitting in there, perhaps you can rename this file and it's the one ? I notice this file is the exact same size as the one linked to above though.

1 Like

Now I have the same file from three sources (github, AVM image and renesas). I renamed the files to renesas_usb_fw.mem and copied them to /lib/firmware.
Anyhow, I get still the same messages:

root@3490-DG:~# logread | grep usb
Mon Feb 24 08:39:41 2025 kern.info kernel: [    0.359079] usbcore: registered new interface driver usbfs
Mon Feb 24 08:39:41 2025 kern.info kernel: [    0.364637] usbcore: registered new interface driver hub
Mon Feb 24 08:39:41 2025 kern.info kernel: [    0.369936] usbcore: registered new device driver usb
Mon Feb 24 08:39:41 2025 kern.info kernel: [    9.183500] pci 0000:01:00.0: quirk_usb_early_handoff+0x0/0x9d4 took 5656357 usecs
Mon Feb 24 08:40:15 2025 kern.err kernel: [   74.749475] xhci_hcd 0000:01:00.0: failed to load firmware renesas_usb_fw.mem: -145
root@3490-DG:~# logread | grep xhci
Mon Feb 24 08:40:15 2025 kern.err kernel: [   74.749475] xhci_hcd 0000:01:00.0: failed to load firmware renesas_usb_fw.mem: -145
Mon Feb 24 08:40:15 2025 kern.warn kernel: [   74.755786] xhci_hcd: probe of 0000:01:00.0 failed with error -145
1 Like

Jam it in to the kernel image or something and maybe then it works ?

Openwrt source:
Copy renesas_usb_fw.mem to target/linux/lantiq/files/firmware

Then edit kernel config file:
target/linux/lantiq/xrx200/config-6.6

change:
CONFIG_EXTRA_FIRMWARE="lantiq/xrx200_phy11g_a14.bin lantiq/xrx200_phy11g_a22.bin lantiq/xrx200_phy22f_a14.bin lantiq/xrx200_phy22f_a22.bin"

to:
CONFIG_EXTRA_FIRMWARE="renesas_usb_fw.mem lantiq/xrx200_phy11g_a14.bin lantiq/xrx200_phy11g_a22.bin lantiq/xrx200_phy22f_a14.bin lantiq/xrx200_phy22f_a22.bin"

Then build and I guess if this is the solution (pretty sure it is), then "you gotta build Openwrt yourself" is part of the answer :grinning:

1 Like

I will try in next days

I have download this file but I cannot unsquash it, because is xz compressed, anyone know how to make it?

Don't worry about it, the other file is OK it's just that it's not getting loaded early enough. You need to build openwrt yourself and make those changes with loading the file earlier.

1 Like

I build openwrt as you described and error messages disappeared.

But the ls doesn't show attached devices as expected.

root@3490-DG:~# lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux 6.6.73 xhci-hcd xHCI Host Controller
Bus 001 Device 002: ID 048d:1167 USB007 USB Mass Storage Device
Bus 002 Device 001: ID 1d6b:0003 Linux 6.6.73 xhci-hcd xHCI Host Controller
root@3490-DG:~# ls -al /dev/sd*
ls: /dev/sd*: No such file or directory
root@3490-DG:~# dmesg | grep usb
[    0.365881] usbcore: registered new interface driver usbfs
[    0.371415] usbcore: registered new interface driver hub
[    0.376800] usbcore: registered new device driver usb
[    9.136148] pci 0000:01:00.0: quirk_usb_early_handoff+0x0/0x9a4 took 5652917 usecs
[   11.753335] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[   12.280497] usb 1-1: new high-speed USB device number 2 using xhci_hcd
root@3490-DG:~# dmesg | grep xhc
[   11.699195] xhci_hcd 0000:01:00.0: xHCI Host Controller
[   11.703084] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 1
[   11.715983] xhci_hcd 0000:01:00.0: hcc params 0x014051cf hci version 0x100 quirks 0x0000001100000090
[   11.724530] xhci_hcd 0000:01:00.0: xHCI Host Controller
[   11.729014] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 2
[   11.736413] xhci_hcd 0000:01:00.0: Host supports USB 3.0 SuperSpeed
[   12.280497] usb 1-1: new high-speed USB device number 2 using xhci_hcd
1 Like