Discussion:
AR9271 Raspberry Pi 2B
(too old to reply)
John Wick
2024-01-07 08:40:01 UTC
Permalink
Dear Developers,

An AR9271 Wi-Fi USB dongle doesn't work neither with firmware-ath9k-htc
Dec 30 17:56:42 rpi2-20230102 kernel: [ 51.636643] usb 1-1.4: new high-speed USB device number 6 using dwc2
Dec 30 17:56:42 rpi2-20230102 kernel: [ 51.762353] usb 1-1.4: New USB device found, idVendor=0cf3, idProduct=9271, bcdDevice= 1.08
Dec 30 17:56:42 rpi2-20230102 kernel: [ 51.771002] usb 1-1.4: New USB device strings: Mfr=16, Product=32, SerialNumber=48
Dec 30 17:56:42 rpi2-20230102 kernel: [ 51.778842] usb 1-1.4: Product: USB2.0 WLAN
Dec 30 17:56:42 rpi2-20230102 kernel: [ 51.783282] usb 1-1.4: Manufacturer: ATHEROS
Dec 30 17:56:42 rpi2-20230102 kernel: [ 51.787781] usb 1-1.4: SerialNumber: 12345
Dec 30 17:56:42 rpi2-20230102 kernel: [ 51.793679] usb 1-1.4: ath9k_htc: Firmware ath9k_htc/htc_9271-1.4.0.fw requested
Dec 30 17:56:42 rpi2-20230102 kernel: [ 51.803234] usb 1-1.4: firmware: direct-loading firmware ath9k_htc/htc_9271-1.4.0.fw
Dec 30 17:56:43 rpi2-20230102 kernel: [ 52.106507] usb 1-1.4: ath9k_htc: Transferred FW: ath9k_htc/htc_9271-1.4.0.fw, size: 51008
Dec 30 17:56:43 rpi2-20230102 kernel: [ 52.358507] ath9k_htc 1-1.4:1.0: ath9k_htc: HTC initialized with 33 credits
Dec 30 17:56:43 rpi2-20230102 kernel: [ 52.776650] ath: phy1: Failed to read SREV register
Dec 30 17:56:43 rpi2-20230102 kernel: [ 52.776663] ath: phy1: Could not read hardware revisions
Dec 30 17:56:43 rpi2-20230102 kernel: [ 52.781765] ath: phy1: Unable to initialize hardware; initialization status: -95
Dec 30 17:56:43 rpi2-20230102 kernel: [ 52.794940] ath: phy1: Unable to initialize hardware; initialization status: -95
Dec 30 17:56:43 rpi2-20230102 kernel: [ 52.806278] ath9k_htc: Failed to initialize the device
Dec 30 17:56:43 rpi2-20230102 kernel: [ 52.812834] usb 1-1.4: ath9k_htc: USB layer deinitialized
I have tried the both images:
https://raspi.debian.net/tested/20230102_raspi_2_bullseye.img.xz
https://raspi.debian.net/tested/20231109_raspi_2_bookworm.img.xz

On RaspiOS Bullseye it works.

Kind Regards,
John

-------------------------------------------------
This free account was provided by VFEmail.net - report spam to ***@vfemail.net

ONLY AT VFEmail! - Use our Metadata Mitigator to keep your email out of the NSA's hands!
$24.95 ONETIME Lifetime accounts with Privacy Features!
15GB disk! No bandwidth quotas!
Commercial and Bulk Mail Options!
Andrew M.A. Cater
2024-01-07 18:20:01 UTC
Permalink
Post by John Wick
Dear Developers,
An AR9271 Wi-Fi USB dongle doesn't work neither with firmware-ath9k-htc nor
Dec 30 17:56:42 rpi2-20230102 kernel: [ 51.636643] usb 1-1.4: new high-speed USB device number 6 using dwc2
Dec 30 17:56:42 rpi2-20230102 kernel: [ 51.762353] usb 1-1.4: New USB device found, idVendor=0cf3, idProduct=9271, bcdDevice= 1.08
Dec 30 17:56:42 rpi2-20230102 kernel: [ 51.771002] usb 1-1.4: New USB device strings: Mfr=16, Product=32, SerialNumber=48
Dec 30 17:56:42 rpi2-20230102 kernel: [ 51.778842] usb 1-1.4: Product: USB2.0 WLAN
Dec 30 17:56:42 rpi2-20230102 kernel: [ 51.783282] usb 1-1.4: Manufacturer: ATHEROS
Dec 30 17:56:42 rpi2-20230102 kernel: [ 51.787781] usb 1-1.4: SerialNumber: 12345
Dec 30 17:56:42 rpi2-20230102 kernel: [ 51.793679] usb 1-1.4: ath9k_htc: Firmware ath9k_htc/htc_9271-1.4.0.fw requested
Dec 30 17:56:42 rpi2-20230102 kernel: [ 51.803234] usb 1-1.4: firmware: direct-loading firmware ath9k_htc/htc_9271-1.4.0.fw
Dec 30 17:56:43 rpi2-20230102 kernel: [ 52.106507] usb 1-1.4: ath9k_htc: Transferred FW: ath9k_htc/htc_9271-1.4.0.fw, size: 51008
Dec 30 17:56:43 rpi2-20230102 kernel: [ 52.358507] ath9k_htc 1-1.4:1.0: ath9k_htc: HTC initialized with 33 credits
Dec 30 17:56:43 rpi2-20230102 kernel: [ 52.776650] ath: phy1: Failed to read SREV register
Dec 30 17:56:43 rpi2-20230102 kernel: [ 52.776663] ath: phy1: Could not read hardware revisions
Dec 30 17:56:43 rpi2-20230102 kernel: [ 52.781765] ath: phy1: Unable to initialize hardware; initialization status: -95
Dec 30 17:56:43 rpi2-20230102 kernel: [ 52.794940] ath: phy1: Unable to initialize hardware; initialization status: -95
Dec 30 17:56:43 rpi2-20230102 kernel: [ 52.806278] ath9k_htc: Failed to initialize the device
Dec 30 17:56:43 rpi2-20230102 kernel: [ 52.812834] usb 1-1.4: ath9k_htc: USB layer deinitialized
https://raspi.debian.net/tested/20230102_raspi_2_bullseye.img.xz
https://raspi.debian.net/tested/20231109_raspi_2_bookworm.img.xz
On RaspiOS Bullseye it works.
Kind Regards,
John
RaspiOS is significantly different from Debian, unfortunately.

Is there possibly some device tree overlay in RaspiOS?

Have you tried building the firmware yourself - https://github.com/qca/open-ath9k-htc-firmware?

All the very best, as ever,

Andy
Post by John Wick
-------------------------------------------------
ONLY AT VFEmail! - Use our Metadata Mitigator to keep your email out of the NSA's hands!
$24.95 ONETIME Lifetime accounts with Privacy Features! 15GB disk! No
bandwidth quotas!
Commercial and Bulk Mail Options!
John Wick
2024-01-09 11:10:01 UTC
Permalink
Dear Developers,
# For more options and information see
# http://rpf.io/configtxt
# Some settings may impact device functionality. See link above for details
# uncomment if you get no picture on HDMI for a default "safe" mode
#hdmi_safe=1
# uncomment the following to adjust overscan. Use positive numbers if console
# goes off screen, and negative if there is too much border
#overscan_left=16
#overscan_right=16
#overscan_top=16
#overscan_bottom=16
# uncomment to force a console size. By default it will be display's size minus
# overscan.
#framebuffer_width=1280
#framebuffer_height=720
# uncomment if hdmi display is not detected and composite is being output
#hdmi_force_hotplug=1
# uncomment to force a specific HDMI mode (this will force VGA)
#hdmi_group=1
#hdmi_mode=1
# uncomment to force a HDMI mode rather than DVI. This can make audio work in
# DMT (computer monitor) modes
#hdmi_drive=2
# uncomment to increase signal to HDMI, if you have interference, blanking, or
# no display
#config_hdmi_boost=4
# uncomment for composite PAL
#sdtv_mode=2
#uncomment to overclock the arm. 700 MHz is the default.
#arm_freq=800
# Uncomment some or all of these to enable the optional hardware interfaces
#dtparam=i2c_arm=on
#dtparam=i2s=on
#dtparam=spi=on
# Uncomment this to enable infrared communication.
#dtoverlay=gpio-ir,gpio_pin=17
#dtoverlay=gpio-ir-tx,gpio_pin=18
# Additional overlays and parameters are documented /boot/overlays/README
# Enable audio (loads snd_bcm2835)
dtparam=audio=on
# Automatically load overlays for detected cameras
camera_auto_detect=1
# Automatically load overlays for detected DSI displays
display_auto_detect=1
# Enable DRM VC4 V3D driver
dtoverlay=vc4-kms-v3d
max_framebuffers=2
# Disable compensation for displays with overscan
disable_overscan=1
[cm4]
# Enable host mode on the 2711 built-in XHCI USB controller.
# This line should be removed if the legacy DWC2 controller is required
# (e.g. for USB device mode) or if USB support is not required.
otg_mode=1
[all]
[pi4]
# Run as fast as firmware / board allows
arm_boost=1
[all]
Kind Regards,
John

-------------------------------------------------
This free account was provided by VFEmail.net - report spam to ***@vfemail.net

ONLY AT VFEmail! - Use our Metadata Mitigator to keep your email out of the NSA's hands!
$24.95 ONETIME Lifetime accounts with Privacy Features!
15GB disk! No bandwidth quotas!
Commercial and Bulk Mail Options!
Uwe Kleine-König
2024-01-09 12:50:01 UTC
Permalink
Hello John,
Post by John Wick
An AR9271 Wi-Fi USB dongle doesn't work neither with firmware-ath9k-htc
[...]
https://raspi.debian.net/tested/20230102_raspi_2_bullseye.img.xz
https://raspi.debian.net/tested/20231109_raspi_2_bookworm.img.xz
On RaspiOS Bullseye it works.
Which driver is used on RaspiOS? Does the dongle work on Debian machines?

Best regards
Uwe
John Wick
2024-01-09 15:00:01 UTC
Permalink
Hello Uwe,

The log is from firmware-atheros.

On RaspiOS it works with firmware-ath9k-htc and firmware-atheros.

On Debian amd64 machine it works.
Name: dwc-otg
Info: Selects the dwc_otg USB controller driver which has fiq support. This
is the default on all except the Pi Zero which defaults to dwc2.
Load: dtoverlay=dwc-otg
Params: <None>
Name: dwc2
Info: Selects the dwc2 USB controller driver
Load: dtoverlay=dwc2,<param>=<val>
Params: dr_mode Dual role mode: "host", "peripheral" or "otg"
g-rx-fifo-size Size of rx fifo size in gadget mode
g-np-tx-fifo-size Size of non-periodic tx fifo size in gadget
mode
Dec 30 17:56:42 rpi2-20230102 kernel: [ 51.636643] usb 1-1.4: new high-speed USB device number 6 using dwc2
Best wishes,
John
Hello John,
An AR9271 Wi-Fi USB dongle doesn't work neither with
[...]
https://raspi.debian.net/tested/20230102_raspi_2_bullseye.img.xz
https://raspi.debian.net/tested/20231109_raspi_2_bookworm.img.xz
On RaspiOS Bullseye it works.
Which driver is used on RaspiOS? Does the dongle work on Debian machines?
Best regards
Uwe
-------------------------------------------------
This free account was provided by VFEmail.net - report spam to ***@vfemail.net

ONLY AT VFEmail! - Use our Metadata Mitigator to keep your email out of the NSA's hands!
$24.95 ONETIME Lifetime accounts with Privacy Features!
15GB disk! No bandwidth quotas!
Commercial and Bulk Mail Options!

Loading...