FS#16837 - Add firmware package for ar9170 driver

Attached to Project: Arch Linux
Opened by Martin Dratva (raqua) - Sunday, 25 October 2009, 12:27 GMT
Last edited by Giovanni Scafora (giovanni) - Saturday, 28 November 2009, 10:19 GMT
Task Type Feature Request
Category Kernel
Status Closed
Assigned To Giovanni Scafora (giovanni)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

I have D-Link DWA-160 usb wifi dongle.
This one is supposed to work with ar9170usb driver, that is in kernel 2.6.31.

Everytime I connected it to my PC it froze. Booting computer with it connected results in message like:
Kernel panic - not syncing: stack-protector: Kernel stack is corrupted in: c126de5d
I tried this dongle with latest Ubuntu 9.10 beta and although not flawlessly, it worked.

I found out, that Arch is missing firmaware for this driver. It can be obtained here:
http://wireless.kernel.org/en/users/Drivers/ar9170
After adding this fw to /lib/firmware this dongle works as expected.

I think Arch needs a package to install this using pacman.

This task depends upon

Closed by  Giovanni Scafora (giovanni)
Saturday, 28 November 2009, 10:19 GMT
Reason for closing:  Fixed
Additional comments about closing:  Fixed in ar9170-fw-1.0-2-any
Comment by Thomas Bächler (brain0) - Monday, 26 October 2009, 08:20 GMT
This is a kernel bug. A freeze must never happen, and must not be triggered by a missing firmware file.

Moreover, the kernel26-firmware package only contains the firmware files that are shipped with the kernel source.
Comment by Thomas Bächler (brain0) - Monday, 26 October 2009, 08:21 GMT
Adjusted the title to indicate that this is a request for a new package, not the request for the addition of a file to an existing package.

You should still report the bug upstream, as stated before.
Comment by Martin Dratva (raqua) - Monday, 26 October 2009, 08:49 GMT
Ok, so missing firmware is one problem (should be solved by feature request to make package), but it is also a bug that I get kernel panic because of missing firmware, right?
Comment by Thomas Bächler (brain0) - Monday, 26 October 2009, 14:54 GMT
Yes and yes. Feature request is hereby noted, there a bunch of other firmware packages I should take care of this week.

The panic bug is even critical IMO, a driver must never make the kernel panic.
Comment by Laszlo Papp (djszapi) - Saturday, 07 November 2009, 12:12 GMT
@Martin: in last case make a simply AUR package from it, but if an 'involved' kernel driver can cause such a bug system crash, report it quickly, if it's not reported yet.
Comment by Martin Dratva (raqua) - Saturday, 07 November 2009, 12:14 GMT
I reported that, but I think there should be an arch package for this, as is for other firmware.
Comment by Laszlo Papp (djszapi) - Saturday, 07 November 2009, 12:39 GMT
It's a proof of concept PKGBUILD, feel free to modify for your requirements, the destdir, permissions, hope this helps to start.
   PKGBUILD (0.5 KiB)
Comment by Martin Dratva (raqua) - Friday, 27 November 2009, 17:39 GMT
  • Field changed: Percent Complete (100% → 0%)
I recently removed my manually added firmware files and installed the new package.
It installed file ar9170.fw into /lib/firmware.
But I had also ar9170-1.fw and ar9170-2.fw files before. After inserting wifi dongle into system it crashed again. So these two files are needed as well I guess.
Comment by Giovanni Scafora (giovanni) - Friday, 27 November 2009, 22:00 GMT
Hi Martin, please could you try ar9170-fw-1.0-2-any.pkg.tar.gz from testing?
Let me know.
Comment by Martin Dratva (raqua) - Saturday, 28 November 2009, 10:13 GMT
This one works fine for me. Thanks.

Loading...