PDA

View Full Version : AWUS036NHA on Samsung ARM Chromebook kali



FrayedString
2013-11-15, 02:26
Hello,

I've been fighting with this for a couple days and sadly have met with defeat.

I have a Samsung ARM Chromebook with kali linux booting from an SD card. I am attempting to use my ALFA AWUS036NHA as part of this configuration but am unable thusfar to get the wifi adapter functioning under kali on this device. I am a complete linux novice, but I have given this a pretty fair attempt i think.

Here is what I have so far.

Upon connecting the device to the chromebook, here is the output of dmesg | tail


[ 1623.191131] usb 3-1: new high-speed USB device number 2 using xhci-hcd
[ 1623.216474] usb 3-1: New USB device found, idVendor=0cf3, idProduct=9271
[ 1623.216488] usb 3-1: New USB device strings: Mfr=16, Product=32, SerialNumber=48
[ 1623.216500] usb 3-1: Product: UB91C
[ 1623.216509] usb 3-1: Manufacturer: ATHEROS
[ 1623.216518] usb 3-1: SerialNumber: 12345


Here is what shows up in lsusb


Bus 003 Device 002: ID 0cf3:9271 Atheros Communications, Inc. AR9271 802.11n
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 255 Vendor Specific Class
bDeviceSubClass 255 Vendor Specific Subclass
bDeviceProtocol 255 Vendor Specific Protocol
bMaxPacketSize0 64
idVendor 0x0cf3 Atheros Communications, Inc.
idProduct 0x9271 AR9271 802.11n
bcdDevice 1.08
iManufacturer 16 ATHEROS
iProduct 32 UB91C
iSerial 48 12345
bNumConfigurations 1



I did some googling and found some people's reference to the chromebook kali image not containing the ath9k driver, which this particular adapter needs. I downloaded the latest backports wireless source with intent to build the ath9k driver, unfortunately I run into this.



root@kali:/tmp/backports/backports-3.11.8-1# make defconfig-ath9k
/--------------
| Your kernel headers are incomplete/not installed.
| Please install kernel headers, including a .config
| file or use the KLIB/KLIB_BUILD make variables to
| set the kernel to build against, e.g.
| make KLIB=/lib/modules/3.1.7/
| to compile/install for the installed kernel 3.1.7
| (that isn't currently running.)
\--
make: *** [defconfig-ath9k] Error 1



More googling revealed that typically in a debian/ubuntu derivitive, one can acquire the kernel headers like this:



root@kali:/tmp/backports/backports-3.11.8-1# apt-get install linux-headers-$(uname -r)
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package linux-headers-3.4.0
E: Couldn't find any package by regex 'linux-headers-3.4.0'



So this is where I'm stuck. Apparently I need the kernel headers in order to build the ath9k driver, but I can't seem to find any way to acquire the kernel headers. Can anyone point me in the right direction??

Thanks!!

rsandoval
2013-11-26, 01:48
Modify this file /etc/apt/sources.list and add the following lines :


deb http://http.kali.org/ /kali main contrib non-free
deb http://http.kali.org/ /wheezy main contrib non-free
deb http://http.kali.org/kali kali-dev main contrib non-free
deb http://http.kali.org/kali kali-dev main/debian-installer
deb-src http://http.kali.org/kali kali-dev main contrib non-free
deb http://http.kali.org/kali kali main contrib non-free
deb http://http.kali.org/kali kali main/debian-installer
deb-src http://http.kali.org/kali kali main contrib non-free
deb http://security.kali.org/kali-security kali/updates main contrib non-free
deb-src http://security.kali.org/kali-security kali/updates main contrib non-fr$



Save the changes and then run :
apt-get update
apt-get install build-essential linux-headers-$(uname -r)