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

mt7915e: probe of 0000:05:00.0 failed with error -5 #799

Closed
trippleflux opened this issue Jul 12, 2023 · 1 comment
Closed

mt7915e: probe of 0000:05:00.0 failed with error -5 #799

trippleflux opened this issue Jul 12, 2023 · 1 comment

Comments

@trippleflux
Copy link

trippleflux commented Jul 12, 2023

Creating a separate new issue decoupling from, for easier to tracking the issue
@csyuanc

Hmm, found out new kind of error on latest OpenWrt latest snapshot self compiled :

[   16.432620] kmodloader: loading kernel modules from /etc/modules.d/*
[   16.452289] Loading modules backported from Linux version v6.1.24-0-g0102425ac76b
[   16.474737] Backport generated by backports.git v5.15.92-1-44-gd6ea70fafd36
[   16.500616] mt7915e 0000:05:00.0: enabling device (0000 -> 0002)
[   16.518762] mt7915e 0000:05:00.0: disabling ASPM L0s L1
[   16.634647] mt7915e 0000:05:00.0: HW/SW Version: 0x8a108a10, Build Time: 20230202144915a

[   16.669923] mt7915e 0000:05:00.0: WM Firmware Version: ____000000, Build Time: 20230202145005
[   16.722784] mt7915e 0000:05:00.0: WA Firmware Version: DEV_000000, Build Time: 20230202143332
[   18.774473] mt7915e 0000:05:00.0: Timeout for initializing firmware
[   18.793348] mt7915e: probe of 0000:05:00.0 failed with error -5

Inside my mediatek firmware dir :

root@Sentinel:/lib/firmware/mediatek# ls -al
total 3692
drwxr-xr-x 2 root root    4096 Jul  6 09:04 .
drwxr-xr-x 8 root root    4096 Jul  6 09:04 ..
-rw-r--r-- 1 root root    3584 Jul  6 09:04 mt7915_eeprom.bin
-rw-r--r-- 1 root root    3584 Jul  6 09:04 mt7915_eeprom_dbdc.bin
-rw-r--r-- 1 root root  144543 Jul  6 09:04 mt7915_rom_patch.bin
-rw-r--r-- 1 root root  116365 Jul  6 09:04 mt7915_wa.bin
-rw-r--r-- 1 root root 1260959 Jul  6 09:04 mt7915_wm.bin
-rw-r--r-- 1 root root    4096 Jul  6 09:04 mt7916_eeprom.bin
-rw-r--r-- 1 root root    8672 Jul  6 09:04 mt7916_rom_patch.bin
-rw-r--r-- 1 root root  507852 Jul  6 09:04 mt7916_wa.bin
-rw-r--r-- 1 root root 1710283 Jul  6 09:04 mt7916_wm.bin

uname -a :

Linux Sentinel 6.1.37 #0 SMP PREEMPT_DYNAMIC Thu Jul  6 02:04:10 2023 x86_64 GNU/Linux

lspci -v :

05:00.0 Network controller: MEDIATEK Corp. Device 7906
        Subsystem: MEDIATEK Corp. Device 7906
        Flags: fast devsel, IRQ 19
        Memory at 6000000000 (64-bit, prefetchable) [size=1M]
        Memory at 50700000 (64-bit, non-prefetchable) [size=32K]
        Memory at 6000100000 (64-bit, prefetchable) [size=4K]
        Capabilities: [80] Express Endpoint, MSI 00
        Capabilities: [e0] MSI: Enable- Count=1/32 Maskable+ 64bit+
        Capabilities: [f8] Power Management version 3

hwinfo :

  pci device: name = 0000:05:00.0
    path = /devices/pci0000:00/0000:00:1c.0/0000:02:00.0/0000:03:07.0/0000:05:00.0
    modalias = "pci:v000014C3d00007906sv000014C3sd00007906bc02sc80i00"
    class = 0x28000
    vendor = 0x14c3
    device = 0x7906
    subvendor = 0x14c3
    subdevice = 0x7906
    irq = 19
    res[0] = 0x6000000000 0x60000fffff 0x14220c
    res[2] = 0x50700000 0x50707fff 0x140204
    res[4] = 0x6000100000 0x6000100fff 0x14220c
    config[64]

36: PCI 500.0: 0280 Network controller
  [Created at pci.386]
  Unique ID: Ddhb.2l6miJlj0V1
  Parent ID: Phdb.PRpwMa6hOY8
  SysFS ID: /devices/pci0000:00/0000:00:1c.0/0000:02:00.0/0000:03:07.0/0000:05:00.0
  SysFS BusID: 0000:05:00.0
  Hardware Class: network
  Model: "MEDIATEK Network controller"
  Vendor: pci 0x14c3 "MEDIATEK Corp."
  Device: pci 0x7906 
  SubVendor: pci 0x14c3 "MEDIATEK Corp."
  SubDevice: pci 0x7906 
  Memory Range: 0x6000000000-0x60000fffff (ro,non-prefetchable)
  Memory Range: 0x50700000-0x50707fff (rw,non-prefetchable)
  Memory Range: 0x6000100000-0x6000100fff (ro,non-prefetchable)
  IRQ: 19 (no events)
  Module Alias: "pci:v000014C3d00007906sv000014C3sd00007906bc02sc80i00"
  Config Status: cfg=new, avail=yes, need=no, active=unknown
  Attached to: #42 (PCI bridge)

Maybe because of applying this PR for latest linux-firmware updates?

@trippleflux
Copy link
Author

Closing this one, as I have been wrongly uploading the firmware files in ASCII/TEXT Mode instead of BINARY mode with my SCP client. No wonder the firmware files got mangled and the mt7915e kernel module not able to load it.

Sorry for this false alarm.

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

No branches or pull requests

1 participant