Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

AR9271 Raspberry Pi 2B

3 views
Skip to first unread message

John Wick

unread,
Jan 7, 2024, 3:40:03 AMJan 7
to

Dear Developers,

An AR9271 Wi-Fi USB dongle doesn't work neither with firmware-ath9k-htc
nor firmware-atheros on Raspberry Pi 2B:

> 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 ab...@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

unread,
Jan 7, 2024, 1:20:04 PMJan 7
to
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
(amac...@debian.org)

John Wick

unread,
Jan 9, 2024, 6:10:03 AMJan 9
to
Dear Developers,

This is the config.txt of RaspiOS:

> # 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

Uwe Kleine-König

unread,
Jan 9, 2024, 7:50:04 AMJan 9
to
Hello John,

On 07.01.24 09:08, John Wick wrote:
> An AR9271 Wi-Fi USB dongle doesn't work neither with firmware-ath9k-htc
> nor firmware-atheros on Raspberry Pi 2B:
>
> [...]
Which driver is used on RaspiOS? Does the dongle work on Debian machines?

Best regards
Uwe
OpenPGP_signature.asc

John Wick

unread,
Jan 9, 2024, 10:00:04 AMJan 9
to
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.

This is from /bootfs/overlays/README of RaspiOS:
> 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

Could it be due to this line from the log?:

>> 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
0 new messages