I searched the web the most useful is this forum thread: http://askubuntu.com/questions/10009...-n-usb-adapter
I updated Ubuntu:
Code:
sudo apt-get update && sudo apt-get -y dist-upgrade
I checked if latest kernel headers are installed
Code:
sudo apt-get install linux-headers-$(uname -r)
Already installed.
I checked if dkms is installed:
Code:
sudo apt-get install dkms
Already installed.
Plug in Wifi USB and list the device:
Code:
lsusb | grep Wireless
and output is:
Code:
Bus 002 Device 002: ID 13b1:0039 Linksys AE1200 802.11bgn Wireless Adapter [Broadcom BCM43235]
I searched for the packages:
Code:
apt-cache search ndiswrapper
and out put was:
Code:
ndisgtk - graphical frontend for ndiswrapper (installation of Windows WiFi drivers)
ndiswrapper-common - Common scripts required to use the utilities for ndiswrapper
ndiswrapper-dkms - Source for the ndiswrapper Linux kernel module (DKMS)
ndiswrapper-source - Source for the ndiswrapper Linux kernel module
ndiswrapper-utils-1.9 - Userspace utilities for the ndiswrapper Linux kernel module
I installed packages and no error was returned:
Code:
sudo apt-get install ndiswrapper-common
Code:
sudo apt-get install ndiswrapper-source
Code:
sudo apt-get install ndiswrapper-utils-1.9
Code:
sudo apt-get install ndiswrapper-dkms
Edit: Most probably dkms package did return some error I was just not expecting it and probably not noticing the error returned.
Download Wifi USB driver:
Code:
wget http://downloads.linksys.com/downloads/driver/1224667593495/AE1200xp.zip
I extracted zip file:
Changed directory:
List install file:
Install driver:
Code:
sudo ndiswrapper -i bcmwlhigh5.inf
Got error:
Code:
installing bcmwlhigh5 ...
couldn't find section "Linksys_AE1200.files.NTamd64" -
installation may be incomplete
couldn't find section "Linksys_AE2500.files.NTamd64" -
installation may be incomplete
Opened bcmwlhigh5.inf:
Code:
gedit bcmwlhigh5.inf
and according to the http://askubuntu.com/questions/10009...-n-usb-adapter searched for:
Code:
[Linksys_AE2500.files.NT]
AE2500xp.sys,,,6
Underneath it, add this:
Code:
[Linksys_AE1200.files.NTamd64]
AE1200xp64.sys,,,6
[Linksys_AE2500.files.NTamd64]
AE2500xp64.sys,,,6
and save the file. The problem is Windows XP was very successful in 32-bit version so the driver install files have them, but 64-bit Windows XP never really got pretty much working, so 64-bit settings where left out of inf file.
Checked what is the state of driver:
Code:
sudo ndiswrapper -l
and output is:
Code:
bcmwlhigh5 : invalid driver!
Uninstall invalid driver:
Code:
sudo ndiswrapper -e bcmwlhigh5
Install driver again with repaired inf file.
Code:
sudo ndiswrapper -i bcmwlhigh5.inf
Installed successfully.
Check if driver is installed OK:
Code:
bcmwlhigh5 : driver installed
device (13B1:0039) present
Unplug Wifi USB and plug it again. Now according to forums the blue light on Wifi USB key should turn on, but it doesn't.
I tried to install kernel module:
Several second to wait and not output returned, so probably OK.
Installed module:
Code:
sudo modprobe ndiswrapper
and ouptput:
Code:
modprobe: FATAL: Module ndiswrapper not found.
I looked at /var/crash/ and there is only one file: ndiswrapper-dkms.0.crash
with content:
Code:
ProblemType: Package
DKMSBuildLog:
DKMS make.log for ndiswrapper-1.59 for kernel 4.2.0-30-generic (x86_64)
ned feb 28 12:42:12 CET 2016
make: Entering directory `/usr/src/linux-headers-4.2.0-30-generic'
LD /var/lib/dkms/ndiswrapper/1.59/build/built-in.o
MKEXPORT /var/lib/dkms/ndiswrapper/1.59/build/crt_exports.h
MKEXPORT /var/lib/dkms/ndiswrapper/1.59/build/hal_exports.h
MKEXPORT /var/lib/dkms/ndiswrapper/1.59/build/ndis_exports.h
MKEXPORT /var/lib/dkms/ndiswrapper/1.59/build/ntoskernel_exports.h
MKEXPORT /var/lib/dkms/ndiswrapper/1.59/build/ntoskernel_io_exports.h
MKEXPORT /var/lib/dkms/ndiswrapper/1.59/build/rtl_exports.h
MKEXPORT /var/lib/dkms/ndiswrapper/1.59/build/usb_exports.h
MKSTUBS /var/lib/dkms/ndiswrapper/1.59/build/win2lin_stubs.h
CC [M] /var/lib/dkms/ndiswrapper/1.59/build/crt.o
CC [M] /var/lib/dkms/ndiswrapper/1.59/build/hal.o
CC [M] /var/lib/dkms/ndiswrapper/1.59/build/iw_ndis.o
CC [M] /var/lib/dkms/ndiswrapper/1.59/build/loader.o
/var/lib/dkms/ndiswrapper/1.59/build/loader.c: In function ‘load_sys_files’:
/var/lib/dkms/ndiswrapper/1.59/build/loader.c:157:4: error: implicit declaration of function ‘__vmalloc’ [-Werror=implicit-function-declaration]
__vmalloc(load_driver->sys_files[i].size,
^
/var/lib/dkms/ndiswrapper/1.59/build/loader.c:156:19: warning: assignment makes pointer from integer without a cast [enabled by default]
pe_image->image =
^
/var/lib/dkms/ndiswrapper/1.59/build/loader.c:207:5: error: implicit declaration of function ‘vfree’ [-Werror=implicit-function-declaration]
vfree(driver->pe_images[i].image);
^
/var/lib/dkms/ndiswrapper/1.59/build/loader.c: In function ‘add_bin_file’:
/var/lib/dkms/ndiswrapper/1.59/build/loader.c:298:2: error: implicit declaration of function ‘vmalloc’ [-Werror=implicit-function-declaration]
bin_file->data = vmalloc(driver_file->size);
^
/var/lib/dkms/ndiswrapper/1.59/build/loader.c:298:17: warning: assignment makes pointer from integer without a cast [enabled by default]
bin_file->data = vmalloc(driver_file->size);
^
/var/lib/dkms/ndiswrapper/1.59/build/loader.c: In function ‘wrapper_ioctl’:
/var/lib/dkms/ndiswrapper/1.59/build/loader.c:789:15: warning: assignment makes pointer from integer without a cast [enabled by default]
load_driver = vmalloc(sizeof(*load_driver));
^
/var/lib/dkms/ndiswrapper/1.59/build/loader.c: In function ‘wrapper_ioctl_compat’:
/var/lib/dkms/ndiswrapper/1.59/build/loader.c:884:11: warning: assignment makes pointer from integer without a cast [enabled by default]
kdriver = vmalloc(sizeof(*kdriver));
^
cc1: some warnings being treated as errors
make[1]: *** [/var/lib/dkms/ndiswrapper/1.59/build/loader.o] Error 1
make: *** [_module_/var/lib/dkms/ndiswrapper/1.59/build] Error 2
make: Leaving directory `/usr/src/linux-headers-4.2.0-30-generic'
DKMSKernelVersion: 4.2.0-30-generic
Date: Sun Feb 28 12:42:17 2016
DuplicateSignature: dkms:ndiswrapper-dkms:1.59-2:/var/lib/dkms/ndiswrapper/1.59/build/loader.c:157:4: error: implicit declaration of function ‘__vmalloc’ [-Werror=implicit-function-declaration]
Package: ndiswrapper-dkms 1.59-2
PackageVersion: 1.59-2
SourcePackage: ndiswrapper
Title: ndiswrapper-dkms 1.59-2: ndiswrapper kernel module failed to build
ApportVersion: 2.14.1-0ubuntu3.19
Architecture: amd64
Dependencies:
adduser 3.113+nmu3ubuntu3
apt-utils 1.0.1ubuntu2.11
base-passwd 3.5.33
binutils 2.24-5ubuntu14
busybox-initramfs 1:1.21.0-1ubuntu1
coreutils 8.21-1ubuntu5.3
cpio 2.11+dfsg-1ubuntu1.2
cpp 4:4.8.2-1ubuntu6
cpp-4.8 4.8.4-2ubuntu1~14.04.1
dbus 1.6.18-0ubuntu4.3
debconf 1.5.51ubuntu2
debconf-i18n 1.5.51ubuntu2
debianutils 4.4
dkms 2.2.0.3-1.1ubuntu5.14.04.5
dpkg 1.17.5ubuntu5.5
e2fslibs 1.42.9-3ubuntu1.3
e2fsprogs 1.42.9-3ubuntu1.3
fakeroot 1.20-3ubuntu2
findutils 4.4.2-7
gcc 4:4.8.2-1ubuntu6
gcc-4.8 4.8.4-2ubuntu1~14.04.1
gcc-4.8-base 4.8.4-2ubuntu1~14.04.1
gcc-4.9-base 4.9.3-0ubuntu4
ifupdown 0.7.47.2ubuntu4.3
initramfs-tools 0.103ubuntu4.2
initramfs-tools-bin 0.103ubuntu4.2
initscripts 2.88dsf-41ubuntu6.3
insserv 1.14.0-5ubuntu2
iproute2 3.12.0-2ubuntu1
isc-dhcp-client 4.2.4-7ubuntu12.4
isc-dhcp-common 4.2.4-7ubuntu12.4
klibc-utils 2.0.3-0ubuntu1
kmod 15-0ubuntu6
libacl1 2.2.52-1
libapparmor1 2.8.95~2430-0ubuntu5.3
libapt-inst1.5 1.0.1ubuntu2.11
libapt-pkg4.12 1.0.1ubuntu2.11
libasan0 4.8.4-2ubuntu1~14.04.1
libatomic1 4.8.4-2ubuntu1~14.04.1
libattr1 1:2.4.47-1ubuntu1
libaudit-common 1:2.3.2-2ubuntu1
libaudit1 1:2.3.2-2ubuntu1
libblkid1 2.20.1-5.1ubuntu20.7
libbz2-1.0 1.0.6-5
libc-dev-bin 2.19-0ubuntu6.7
libc6 2.19-0ubuntu6.7
libc6-dev 2.19-0ubuntu6.7
libcap2 1:2.24-0ubuntu2
libcgmanager0 0.24-0ubuntu7.5
libcloog-isl4 0.18.2-1
libcomerr2 1.42.9-3ubuntu1.3
libdb5.3 5.3.28-3ubuntu3
libdbus-1-3 1.6.18-0ubuntu4.3
libdebconfclient0 0.187ubuntu1
libdrm2 2.4.64-1~ubuntu14.04.1
libexpat1 2.1.0-4ubuntu1.1
libfakeroot 1.20-3ubuntu2
libgcc-4.8-dev 4.8.4-2ubuntu1~14.04.1
libgcc1 1:4.9.3-0ubuntu4
libgmp10 2:5.1.3+dfsg-1ubuntu1
libgomp1 4.8.4-2ubuntu1~14.04.1
libgpm2 1.20.4-6.1
libisl10 0.12.2-1
libitm1 4.8.4-2ubuntu1~14.04.1
libjson-c2 0.11-3ubuntu1.2
libjson0 0.11-3ubuntu1.2
libklibc 2.0.3-0ubuntu1
libkmod2 15-0ubuntu6
liblocale-gettext-perl 1.05-7build3
liblzma5 5.1.1alpha+20120614-2ubuntu2
libmount1 2.20.1-5.1ubuntu20.7
libmpc3 1.0.1-1ubuntu1
libmpfr4 3.1.2-1
libncurses5 5.9+20140118-1ubuntu1
libncursesw5 5.9+20140118-1ubuntu1
libnih-dbus1 1.0.3-4ubuntu25
libnih1 1.0.3-4ubuntu25
libpam-modules 1.1.8-1ubuntu2
libpam-modules-bin 1.1.8-1ubuntu2
libpam-runtime 1.1.8-1ubuntu2
libpam-systemd 204-5ubuntu20.18
libpam0g 1.1.8-1ubuntu2
libpcre3 1:8.31-2ubuntu2.1
libplymouth2 0.8.8-0ubuntu17.1
libpng12-0 1.2.50-1ubuntu2.14.04.2
libprocps3 1:3.3.9-1ubuntu2.2
libquadmath0 4.8.4-2ubuntu1~14.04.1
libselinux1 2.2.2-1ubuntu0.1
libsemanage-common 2.2-1
libsemanage1 2.2-1
libsepol1 2.2-1ubuntu0.1
libslang2 2.2.4-15ubuntu1
libss2 1.42.9-3ubuntu1.3
libstdc++6 4.8.4-2ubuntu1~14.04.1
libsystemd-daemon0 204-5ubuntu20.18
libsystemd-login0 204-5ubuntu20.18
libtext-charwidth-perl 0.04-7build3
libtext-iconv-perl 1.7-5build2
libtext-wrapi18n-perl 0.06-7
libtinfo5 5.9+20140118-1ubuntu1
libtsan0 4.8.4-2ubuntu1~14.04.1
libudev1 204-5ubuntu20.18
libustr-1.0-1 1.0.4-3ubuntu2
libuuid1 2.20.1-5.1ubuntu20.7
libxtables10 1.4.21-1ubuntu1
linux-libc-dev 3.13.0-79.123
lsb-base 4.1+Debian11ubuntu6
make 3.81-8.2ubuntu3
makedev 2.3.1-93ubuntu1
manpages 3.54-1ubuntu1
manpages-dev 3.54-1ubuntu1
module-init-tools 15-0ubuntu6
mount 2.20.1-5.1ubuntu20.7
mountall 2.53
multiarch-support 2.19-0ubuntu6.7
netbase 5.2
passwd 1:4.1.5.1-1ubuntu9.2
patch 2.7.1-4ubuntu2.3
perl-base 5.18.2-2ubuntu1
plymouth 0.8.8-0ubuntu17.1
plymouth-theme-ubuntu-text 0.8.8-0ubuntu17.1
procps 1:3.3.9-1ubuntu2.2
psmisc 22.20-1ubuntu2
sensible-utils 0.0.9
systemd-services 204-5ubuntu20.18
sysv-rc 2.88dsf-41ubuntu6.3
sysvinit-utils 2.88dsf-41ubuntu6.3
tar 1.27.1-1
tzdata 2015g-0ubuntu0.14.04
udev 204-5ubuntu20.18
upstart 1.12.1-0ubuntu4.2
util-linux 2.20.1-5.1ubuntu20.7
uuid-runtime 2.20.1-5.1ubuntu20.7
zlib1g 1:1.2.8.dfsg-1ubuntu1
DistroRelease: Ubuntu 14.04
InstallationDate: Installed on 2014-10-09 (506 days ago)
InstallationMedia: Ubuntu 14.04.1 LTS "Trusty Tahr" - Release amd64 (20140722.2)
PackageArchitecture: all
ProcVersionSignature: Ubuntu 4.2.0-30.36~14.04.1-generic 4.2.8-ckt3
RelatedPackageVersions:
dpkg 1.17.5ubuntu5.5
apt 1.0.1ubuntu2.11
Tags: trusty
Uname: Linux 4.2.0-30-generic x86_64
UpgradeStatus: No upgrade log present (probably fresh install)
_MarkForUpload: True
It looks like something wrong with this module or something. Any idea what do to next?
Thanks
Bookmarks