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#3382 - mikrotik: rb-nor-flash-16M-ac-initramfs-kernel.bin doesn't actually contain ath10k drivers/firmwares #8315

Open
openwrt-bot opened this issue Oct 12, 2020 · 4 comments
Labels
flyspray kernel pull request/issue with Linux kernel related changes release/19.07 pull request/issue targeted (also) for OpenWrt 19.07 release

Comments

@openwrt-bot
Copy link

l29ah:

Booting openwrt-19.07.4-ar71xx-mikrotik-rb-nor-flash-16M-ac-initramfs-kernel.bin via tftp. Relevant dmesg chunk at driver load demonstrating that only 2.4GHz interface is detected:

Tue Sep 8 07:29:00 2020 kern.debug kernel: [ 10.257636] ath: EEPROM regdomain: 0x0
Tue Sep 8 07:29:00 2020 kern.debug kernel: [ 10.257643] ath: EEPROM indicates default country code should be used
Tue Sep 8 07:29:00 2020 kern.debug kernel: [ 10.257646] ath: doing EEPROM country->regdmn map search
Tue Sep 8 07:29:00 2020 kern.debug kernel: [ 10.257659] ath: country maps to regdmn code: 0x3a
Tue Sep 8 07:29:00 2020 kern.debug kernel: [ 10.257663] ath: Country alpha2 being used: US
Tue Sep 8 07:29:00 2020 kern.debug kernel: [ 10.257666] ath: Regpair used: 0x3a
Tue Sep 8 07:29:00 2020 kern.debug kernel: [ 10.274863] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
Tue Sep 8 07:29:00 2020 kern.info kernel: [ 10.276460] ieee80211 phy0: Atheros AR9550 Rev:0 mem=0xb8100000, irq=47

@openwrt-bot
Copy link
Author

l29ah:

Okay, i needed to install ath10k-firmware-qca988x and kmod-ath10k.
It's strange they aren't in by default.

@openwrt-bot
Copy link
Author

l29ah:

Nah, it only brings up b/g mode and whines in the log about other missing blobs:
Tue Oct 13 00:21:12 2020 kern.info kernel: [ 4799.340671] pci 0000:01:00.0: using irq 41 for pin 1
Tue Oct 13 00:21:12 2020 kern.info kernel: [ 4799.347171] ath10k_pci 0000:01:00.0: pci irq legacy oper_irq_mode 1 irq_mode 0 reset_mode 0
Tue Oct 13 00:21:12 2020 kern.warn kernel: [ 4799.628654] ath10k_pci 0000:01:00.0: Direct firmware load for ath10k/pre-cal-pci-0000:01:00.0.bin failed with error -2
Tue Oct 13 00:21:12 2020 kern.warn kernel: [ 4799.639534] ath10k_pci 0000:01:00.0: Falling back to user helper
Tue Oct 13 00:21:12 2020 daemon.err procd: Could not find firmware /lib/firmware/ath10k/pre-cal-pci-0000:01:00.0.bin: No such file or directory
Tue Oct 13 00:21:12 2020 kern.err kernel: [ 4799.716510] firmware ath10k!pre-cal-pci-0000:01:00.0.bin: firmware_loading_store: map pages failed
Tue Oct 13 00:21:12 2020 kern.warn kernel: [ 4799.725978] ath10k_pci 0000:01:00.0: Direct firmware load for ath10k/cal-pci-0000:01:00.0.bin failed with error -2
Tue Oct 13 00:21:12 2020 kern.warn kernel: [ 4799.736515] ath10k_pci 0000:01:00.0: Falling back to user helper
Tue Oct 13 00:21:12 2020 daemon.err procd: failed to write to /sys//devices/pci0000:01/0000:01:00.0/firmware/ath10k!pre-cal-pci-0000:01:00.0.bin/loading: Out of memory
Tue Oct 13 00:21:12 2020 kern.warn kernel: [ 4799.888166] ath10k_pci 0000:01:00.0: Direct firmware load for ath10k/QCA988X/hw2.0/firmware-6.bin failed with error -2
Tue Oct 13 00:21:12 2020 kern.warn kernel: [ 4799.899057] ath10k_pci 0000:01:00.0: Falling back to user helper
Tue Oct 13 00:21:12 2020 daemon.err procd: Could not find firmware /lib/firmware/ath10k/QCA988X/hw2.0/firmware-6.bin: No such file or directory
Tue Oct 13 00:21:12 2020 kern.err kernel: [ 4800.001758] firmware ath10k!QCA988X!hw2.0!firmware-6.bin: firmware_loading_store: map pages failed
Tue Oct 13 00:21:12 2020 kern.info kernel: [ 4800.013162] ath10k_pci 0000:01:00.0: qca988x hw2.0 target 0x4100016c chip_id 0x043202ff sub 0000:0000
Tue Oct 13 00:21:12 2020 kern.info kernel: [ 4800.022573] ath10k_pci 0000:01:00.0: kconfig debug 0 debugfs 1 tracing 0 dfs 1 testmode 1
Tue Oct 13 00:21:12 2020 kern.info kernel: [ 4800.035690] ath10k_pci 0000:01:00.0: firmware ver 10.2.4-1.0-00047 api 5 features no-p2p,raw-mode,mfp,allows-mesh-bcast crc32 35bd9258
Tue Oct 13 00:21:12 2020 daemon.err procd: failed to write to /sys//devices/pci0000:01/0000:01:00.0/firmware/ath10k!QCA988X!hw2.0!firmware-6.bin/loading: Out of memory
Tue Oct 13 00:21:12 2020 kern.warn kernel: [ 4800.131077] ath10k_pci 0000:01:00.0: Direct firmware load for ath10k/QCA988X/hw2.0/board-2.bin failed with error -2
Tue Oct 13 00:21:12 2020 kern.warn kernel: [ 4800.141720] ath10k_pci 0000:01:00.0: Falling back to user helper
Tue Oct 13 00:21:12 2020 daemon.err procd: Could not find firmware /lib/firmware/ath10k/QCA988X/hw2.0/board-2.bin: No such file or directory
Tue Oct 13 00:21:12 2020 daemon.err procd: failed to write to /sys//devices/pci0000:01/0000:01:00.0/firmware/ath10k!QCA988X!hw2.0!board-2.bin/loading: Out of memory
Tue Oct 13 00:21:12 2020 kern.err kernel: [ 4800.227052] firmware ath10k!QCA988X!hw2.0!board-2.bin: firmware_loading_store: map pages failed
Tue Oct 13 00:21:12 2020 kern.info kernel: [ 4800.236401] ath10k_pci 0000:01:00.0: board_file api 1 bmi_id N/A crc32 bebc7c08
Tue Oct 13 00:21:14 2020 kern.info kernel: [ 4801.339500] ath10k_pci 0000:01:00.0: htt-ver 2.1 wmi-op 5 htt-op 2 cal file max-sta 128 raw 0 hwcrypto 1
Tue Oct 13 00:21:14 2020 kern.debug kernel: [ 4801.476547] ath: EEPROM regdomain: 0x0
Tue Oct 13 00:21:14 2020 kern.debug kernel: [ 4801.476555] ath: EEPROM indicates default country code should be used
Tue Oct 13 00:21:14 2020 kern.debug kernel: [ 4801.476559] ath: doing EEPROM country->regdmn map search
Tue Oct 13 00:21:14 2020 kern.debug kernel: [ 4801.476572] ath: country maps to regdmn code: 0x3a
Tue Oct 13 00:21:14 2020 kern.debug kernel: [ 4801.476576] ath: Country alpha2 being used: US
Tue Oct 13 00:21:14 2020 kern.debug kernel: [ 4801.476580] ath: Regpair used: 0x3a

@openwrt-bot
Copy link
Author

l29ah:

rb-nor-flash-16M-ac-initramfs-kernel.bin and rb-nor-flash-16M-initramfs-kernel.bin are identical, this doesn't look right

@openwrt-bot
Copy link
Author

l29ah:

Yeah, the sysupgrade image works correctly.

@aparcar aparcar added release/19.07 pull request/issue targeted (also) for OpenWrt 19.07 release kernel pull request/issue with Linux kernel related changes labels Feb 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
flyspray kernel pull request/issue with Linux kernel related changes release/19.07 pull request/issue targeted (also) for OpenWrt 19.07 release
Projects
None yet
Development

No branches or pull requests

2 participants