3) Once I've tested it out, where do I send the archive file with everything necessary to submit the tcz to the repo?Instructions for submitting can be found here:
(admin: you can move this topic if needed as the direction has changed.)Moving to TCE Talk.
tc@box:~$ tce-load -il wifi-rtw88
loading out-of-tree module taints kernel.
rtw88: Unknown symbol ieeee80211_start_tx_ba_cb_irqsafe (err -2)
...
Not sure why I can sometimes edit my previous messages and why sometimes I can't, so I'm just replying to the topic...You have 30 minutes after posting to make changes.
Something else needs to be present before loading that. Try creating a dependency file containing wireless-KERNEL andCode: [Select]tc@box:~$ tce-load -il wifi-rtw88
loading out-of-tree module taints kernel.
rtw88: Unknown symbol ieeee80211_start_tx_ba_cb_irqsafe (err -2)
...
Something else needs to be present before loading that. Try creating a dependency file containing wireless-KERNEL and
firmware-rtlwifi.tcz
tc@box:~$ tce-load -il wifi
libiw.tcz OK
wireless-5.4.3-tinycore64.tcz: OK
wireless_tools.tcz: OK
ncursesw.tcz: OK
platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
platform regulatory.0: Falling back to sysfs fallback for: regulatory.db
readline.tcz: OK
cfg80211: failed to load regulatory.db
rtw_pci 0000:02:00.0: Direct firmware load for rtw88/rtw8822b_fw.bin failed with error -2
rtw_pci 0000:02:00.0: Falling back to sysfs fallback for: rtw88/rtw8822b_fw.bin
rtw_pci 0000:02:00.0: failed to request firmware
rtw_pci 0000:02:00.0: failed to load firmware
rtw_pci 0000:02:00.0: failed to setup chip efuse info
rtw_pci 0000:02:00.0: failed to setup chip information
attr.tcz: OK
rtw_pci: probe of 0000:02:00.0 failed with error -22
The symbol ieee80211_start_tx_ba_cb_irqsafe is provided by mac80211.ko.gz. (there are 3 es in ieee, not 4)Code: [Select]rtw88: Unknown symbol ieeee80211_start_tx_ba_cb_irqsafe (err -2)
firmware-rtlwifi.tcz
wireless-KERNEL.tcz
found here:Error -2 == No such file or directory.Code: [Select]rtw_pci 0000:02:00.0: Direct firmware load for rtw88/rtw8822b_fw.bin failed with error -2
Error -22 == Invalid argument.Code: [Select]rtw_pci: probe of 0000:02:00.0 failed with error -22
$ dmesg
...
platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
platform regulatory.0: Falling back to sysfs fallback for: regulatory.db
cfg80211: failed to load regulatory.db
Intel(R) Wireless WiFi driver for Linux
Copyright(c) 2003- 2015 Intel Corporation
iwlwifi 0000:02:00.0: enabling device (0000 -> 0002)
iwlwifi 0000:02:00.0: Direct firmware load for iwlwifi-7260-17.ucode failed with error -2
iwlwifi 0000:02:00.0: Falling back to sysfs fallback for: iwlwifi-7260-17.ucode
iwlwifi 0000:02:00.0: loaded firmware version 17.459231.0 op_mode iwlmvm
iwlwifi 0000:02:00.0: Detected Intel(R) Dual Band Wireless AC 7260, REV=0x14
i.e. the iwlwifi driver from wireless-KERNEL loads the firmware.> tce-load -il wireless-5.4.3-tinycore64
platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
platform regulatory.0: Falling back to sysfs fallback for: regulatory.db
cfg80211: failed to load regulatory.db
rtw_pci 0000:02:00.0: Direct firmware load for rtw88/rtw8822b_fw.bin failed with error -2
rtw_pci 0000:02:00.0: Falling back to sysfs fallback for: rtw88/rtw8822b_fw.bin
rtw_pci 0000:02:00.0: failed to request firmware
rtw_pci 0000:02:00.0: failed to load firmware
rtw_pci 0000:02:00.0: failed to setup chip efuse info
rtw_pci 0000:02:00.0: failed to setup chip information
rtw_pci: probe of 0000:02:00.0 failed with error -22
> tce-load -il wifi-rtw88
rtw88: loading out-of-tree module taints kernel.
rtw88: Unknown symbol ieee80211_start_tx_ba_cb_irqsafe (err -2)
rtw88: Unknown symbol ieee80211_txq_get_depth (err -2)
...
>tce-load -il wireless-5.4.3-tinycore64
platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
platform regulatory.0: Falling back to sysfs fallback for: regulatory.db
cfg80211: failed to load regulatory.db
rtw_pci 0000:02:00.0: Direct firmware load for rtw88/rtw8822b_fw.bin failed with error -2
rtw_pci 0000:02:00.0: Falling back to sysfs fallback for: rtw88/rtw8822b_fw.bin
rtw_pci 0000:02:00.0: Firmware version 27.2.0, H2C version 13
... This is the dependency file for wireless-rtl8822be-4.19.10-tinycore.tcz created by Juanito:Try it with the dependencies in the order listed. If that doesn't work, you may have to break out your firmware into a separateCode: [Select]firmware-rtlwifi.tcz
...
wireless-KERNEL.tcz
firmware-rtl8822be.tcz
wireless-KERNEL.tcz
From the look of your dmesg output, the kernel believes that the rtw88 driver in wireless-KERNEL is the correct one for your hardware.
rtw8822b_fw.bin is in firmware-rtlwifi
Have you tried loading firmware-rtlwifi then wireless-KERNEL and seeing if things work (all without loading your driver)?
... Yes, that was the first thing I tried, and it still complained about not being able to find rte88/rtl8822be.bin. ...Is that an exact quote? Because firmware-rtlwifi.tcz.list lists the firmware files name as:
/usr/local/lib/firmware/rtlwifi/rtl8822befw.bin
rtw_pci 0000:02:00.0: Direct firmware load for rtw88/rtw8822b_fw.bin failed with error -2
rtw_pci 0000:02:00.0: Falling back to sysfs fallback for: rtw88/rtw8822b_fw.bin
rtw_pci 0000:02:00.0: Firmware version 27.2.0, H2C version 13
..this is what seems to have happened.Hi mrjake2... Yes, that was the first thing I tried, and it still complained about not being able to find rte88/rtl8822be.bin. ...Is that an exact quote? Because firmware-rtlwifi.tcz.list lists the firmware files name as:/usr/local/lib/firmware/rtlwifi/rtl8822befw.bin
Found here:
http://tinycorelinux.net/11.x/x86_64/tcz/firmware-rtlwifi.tcz.list
> tce-load -il firmware-rtlwifi
firmware-rtlwifi.tcz: OK
> tce-load -il wireless-5.4.3-tinycore64
wireless-5.4.3-tinycore64.tcz: OK
...
rtw_pci 0000:02:00.0: Direct firmware load for rtw88/rtw8822b_fw.bin failed . with error -2
rtw_pci 0000:02:00.0: Falling back to sysnfs fallback for: rtw88/rtw8822b_fw.bin
rtw_pci 0000:02:00.0: failed to request firmware
rtw_pci 0000:02:00.0: failed to load firmware
...
Hi mrjake2
According to your dmesg, it's looking for rtw8822b_fw.bin. That file is listed here:
http://tinycorelinux.net/11.x/x86_64/tcz/firmware-rtlwifi.tcz.list
firmware-rtl8822be.tcz
Add a file called:/usr/loca/tce.installed/firmware-rtl8822be
Place the following in that file:#!/bin/sh
udevadm trigger
tce-load -i firmware-rtl8822be.tcz
tce-load -i YourCompiledDriver.tcz
... Then copy your firmware and driver extensions to your tce directory, then reboot and:And then see what dmesg returns.Code: [Select]tce-load -i firmware-rtl8822be.tcz
tce-load -i YourCompiledDriver.tcz
Hi mrjake2... Then copy your firmware and driver extensions to your tce directory, then reboot and:And then see what dmesg returns.Code: [Select]tce-load -i firmware-rtl8822be.tcz
tce-load -i YourCompiledDriver.tcz
[EDIT]: Added missing -i to tce-load command. Rich
Maybe it was listed in your onboot.lst? You did reboot prior to trying to load it, right?
- when I tried to tce-load firmware-rtl8822be, it said "firmware-rtl8822be already installed"! I am quite positive that I had not installed it yet. I even tried to tce-remove it and reload it, but I got the same message.
Hi mrjake2
Maybe it was listed in your onboot.lst? You did reboot prior to trying to load it, right?
... Whenever I rebooted, the script in /usr/local/tce.installed disappeared though, so I needed to recreate it after every reboot. Do I need to do something differently to make sure the script persists between reboots? ...
... Move the firmware from that extension into an extension called:The script is supposed to be part of your firmware-rtl8822be.tcz extension.Code: [Select]firmware-rtl8822be.tcz
Add a file called:Code: [Select]/usr/loca/tce.installed/firmware-rtl8822be
Place the following in that file:Code: [Select]#!/bin/sh
udevadm trigger
The script is supposed to be part of your firmware-rtl8822be.tcz extension.
... Since your module moved from staging in kernel 4.x to being in-tree in 5.x, I'm surprised that the stock version does not work.Looking here:
# CONFIG_RTL8XXXU_UNTESTED is not set
CONFIG_RTW88=m
CONFIG_RTW88_CORE=m
CONFIG_RTW88_PCI=m
CONFIG_RTW88_8822BE=y
CONFIG_RTW88_8822CE=y
# CONFIG_RTW88_DEBUG is not set
# CONFIG_RTW88_DEBUGFS is not set
Looking here:
http://tinycorelinux.net/11.x/x86_64/tcz/wireless-5.4.3-tinycore64.tcz.list
I don't see rtl8822be or any 8822 drivers listed. Or am I misunderstanding something?