[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#635840: TP-Link TL-WN821N v2 doesn't work with kernel 3.0


On Friday 12 August 2011, Ben Hutchings wrote:
> On Mon, 2011-08-01 at 19:36 -0300, Willian Gustavo Veiga wrote:
> > Ben, probably you're right. I've missed some information, sorry about that:
> > 
> > # dmesg
> > [  312.484057] usb 1-5: new high speed USB device number 9 using ehci_hcd
> > [  312.664228] usb 1-5: New USB device found, idVendor=0cf3, idProduct=1002
> > [  312.664233] usb 1-5: New USB device strings: Mfr=16, Product=32, SerialNumber=48
> > [  312.664237] usb 1-5: Product: USB2.0 WLAN
> > [  312.664239] usb 1-5: Manufacturer: ATHER
> > [  312.664241] usb 1-5: SerialNumber: 12345
> > [  312.780058] usb 1-5: reset high speed USB device number 9 using ehci_hcd
> > [  312.954434] usb 1-5: firmware not found.
> This driver requires the wireless controller to run different firmware,
> which must be installed as /lib/firmware/carl9170-1.fw.  That file
> should be included in the firmware-free package, but it isn't yet.  See
> <http://linuxwireless.org/en/users/Drivers/carl9170#Firmware-1>.

Given that the licensing for carl9170fw is a bit special[1] for a 
firmware image targetted at a different architecture and not easy to 
fulfill in a way that avoids wget on the buildds or code duplication,
I've started some preliminary packaging for it at:

Vcs-Svn: svn://svn.berlios.de/fullstory/firmware-carl9170/trunk
Vcs-Browser: http://svn.berlios.de/svnroot/repos/fullstory/firmware-carl9170/trunk/

While this should meet upstream license conditions in wording and 
spirit and may pass ftp-master checking, its strong dependencies
on packaging structures of binutils-source, newlib-source and the 
versioned gcc-$(GCC_VER)-source make it rather fragile and high 
maintenance, not to say downright ugly (looking at the list of 
build-depends). This packaging compiles the sh-2 cross-compiling
environment at build-time, as introducing a newlib based sh-2
cross-compiling toolchain for this single package is hardly a preferred
option for Debian and binutils/ newlib/ gcc maintainers.

Please regard this as an initial attempt to solve this issue and feel
free to re-use this or parts of it at your convenience. While I'd 
volunteer to co-maintain this (or derivatives of this packaging), it
still needs an active Debian uploader due to its rather high 
maintenance requirements (adaptions to future {binutils,newlib}-source
versions or bumping the versioned build-requirements whenever old
gcc-$(GCC_VER)-source versions get removed from the archive).

Warning, system requirements for building this package are quite high:
- ~140 MB build-dependencies
- ~3.4 GB temporary build space
- a good half hour compilation time (mostly spent on the toolchain) on
  fast computers, allowing parallel building through DEBBUILDOPTS helps
+ build-tested on amd64 and kfreebsd-amd64, providing bit-identical 
+ functionality confirmed with 0cf3:9170 Atheros Communications, Inc.
  AR9170 802.11n on kernel 3.0.1.

	Stefan Lippers-Hollmann

[1]	GPL-2: "The source code for a work means the preferred form of the 
	        work for making modifications to it.  For an executable work, 
	        complete source code means all the source code for all modules
	        it contains, plus any associated interface definition files, 
	        plus the scripts used to control compilation and installation 
	        of the executable."

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply to: