• AR9271 Raspberry Pi 2B

    From John Wick@21:1/5 to All on Sun Jan 7 09:40:01 2024
    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 abuse@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!

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Andrew M.A. Cater@21:1/5 to John Wick on Sun Jan 7 19:20:01 2024
    On Sun, Jan 07, 2024 at 11:08:17AM +0300, John Wick wrote:

    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


    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
    (amacater@debian.org)

    -------------------------------------------------
    This free account was provided by VFEmail.net - report spam to abuse@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!


    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From John Wick@21:1/5 to All on Tue Jan 9 12:10:01 2024
    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

    -------------------------------------------------
    This free account was provided by VFEmail.net - report spam to abuse@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!

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From =?UTF-8?Q?Uwe_Kleine-K=C3=B6nig?=@21:1/5 to John Wick on Tue Jan 9 13:50:01 2024
    Copy: debian-arm@lists.debian.org

    This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --------------Mbbl9p0yPQ3gxIBPAhijI8ON
    Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: base64

    SGVsbG8gSm9obiwNCg0KT24gMDcuMDEuMjQgMDk6MDgsIEpvaG4gV2ljayB3cm90ZToNCj4g QW4gQVI5MjcxIFdpLUZpIFVTQiBkb25nbGUgZG9lc24ndCB3b3JrIG5laXRoZXIgd2l0aCBm aXJtd2FyZS1hdGg5ay1odGMgDQo+IG5vciBmaXJtd2FyZS1hdGhlcm9zIG9uIFJhc3BiZXJy eSBQaSAyQjoNCj4gDQogPiBbLi4uXQ0KID4NCj4gSSBoYXZlIHRyaWVkIHRoZSBib3RoIGlt YWdlczoNCj4gaHR0cHM6Ly9yYXNwaS5kZWJpYW4ubmV0L3Rlc3RlZC8yMDIzMDEwMl9yYXNw aV8yX2J1bGxzZXllLmltZy54eg0KPiBodHRwczovL3Jhc3BpLmRlYmlhbi5uZXQvdGVzdGVk LzIwMjMxMTA5X3Jhc3BpXzJfYm9va3dvcm0uaW1nLnh6DQo+IA0KPiBPbiBSYXNwaU9TIEJ1 bGxzZXllIGl0IHdvcmtzLg0KDQpXaGljaCBkcml2ZXIgaXMgdXNlZCBvbiBSYXNwaU9TPyBE b2VzIHRoZSBkb25nbGUgd29yayBvbiBEZWJpYW4gbWFjaGluZXM/DQoNCkJlc3QgcmVnYXJk cw0KVXdlDQo=

    --------------Mbbl9p0yPQ3gxIBPAhijI8ON--

    -----BEGIN PGP SIGNATURE-----

    iQEzBAEBCgAdFiEEP4GsaTp6HlmJrf7Tj4D7WH0S/k4FAmWdPikACgkQj4D7WH0S /k6asgf+M7oWOP4rio3KeuoEqMNfLg4GQgHz8ION85N09m86V4KZe6zJoBZ2ZMG0 wuCmZIzGe0VY83GRAWlMuh5Ib5KWKBW4aUsyC1e9uA2knQdHhH3EEtPkBXK6IiHF eaXXeyJu7RCOBDF31fNx7TbNS3hVsq+J+P4w2so0JWDsFDA89Uh4F8jG9qECtKiN /6baSWezTOFUd1EmlWDR/LsozxF1nMR4S1H2bkvwTCKN1FECGZ6/D1jGL2VLFbSf cknPWlB3qxa7cDcGKRbvBjk5qSxnXlQcrcXr3NP/ubV0G3/IotyCIR6se17isC2G /dop3v4RQ0S7/VEMFWAzi19cOENbvw==
    =jKcR
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From John Wick@21:1/5 to All on Tue Jan 9 16:00:01 2024
    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


    On 1/9/24 15:38, Uwe Kleine-König wrote:
    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:

    [...]

    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.

    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 abuse@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!

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)