Code: Select all
mkdir ~/raspi-dev; cd ~/raspi-dev
mkdir modules
git clone --depth 1 git://github.com/grimjoey/raspi-linux.git
git clone git://github.com/raspberrypi/tools
export CCPREFIX=~/raspi-dev/tools/arm-bcm2708/gcc-linaro-arm-gnueabihf-raspbian/bin/arm-linux-gnueabihf-
export MOD_INST=~/raspi-dev/modules
cd raspi-linux
make mrproper
scp pi@[raspberrypi-ip-address]:/proc/config.gz ../
zcat ../config.gz ./.config
make ARCH=arm CROSS_COMPILE=${CCPREFIX} oldconfig
make ARCH=arm CROSS_COMPILE=${CCPREFIX}
make ARCH=arm CROSS_COMPILE=${CCPREFIX} modules
make ARCH=arm CROSS_COMPILE=${CCPREFIX} INSTALL_MOD_PATH=${MOD_INST} modules_install
Sure, no problem. Also, it's nice to know that the module itself was all that's needed. Thanks for confirming that.DaSithDude wrote:Thanks VERY much grimjoey.
I had exactly the same problem with the B revision of the Wifi dongle. I downloaded the compiled module, replaced the original module, insmodded the thing and tada, i have a wlan0.
I'll spread the word if it's ok with you, because there are plenty of similar cases out there...
Code: Select all
unzip 8192cu.zip
sudo cp 8192cu.ko /lib/modules/3.6.11+/kernel/net/wireless
cd /lib/modules/3.6.11+/kernel/net/wireless
sudo insmod 8192cu.ko
Code: Select all
sudo vi /etc/modulesCode: Select all
# /etc/modules: kernel modules to load at boot time.
#
# This file contains the names of kernel modules that should be loaded
# at boot time, one per line. Lines beginning with "#" are ignored.
# Parameters can be specified after the module name.
snd-bcm2835
8192cuThe module should load automatically based on detecting the usb device at boot (no need to modify /etc/modules). At least that's what my raspberry pi seems to be doing.Vkichline wrote:This works fine for me until I reboot.
If I have not edited /etc/modules, the insmod will fix it.
If I have edited /etc/modules, no wifi, and attempting insmod says that the file is already loaded.
Running wheezy, up-to-date.
Not a Linux expert.
So close...
Any help here ?Error: could not insert module /lib/modules/3.6.11/kernel/drivers/net/wireless/8192.ko: Invalid module format
Code: Select all
unzip 8192cu.zip
sudo cp 8192cu.ko /lib/modules/3.6.11+/kernel/net/wireless
cd /lib/modules/3.6.11+/kernel/net/wireless
sudo insmod 8192cu.ko
sudo depmod
Code: Select all
sudo apt-get updateCode: Select all
sudo apt-get upgradeCode: Select all
sudo apt-get install wicd wicd-cursesCode: Select all
wlan0You do realise this thread is over a year old, don't you? Rather out of date now. And if you read my last post you will see it stopped working with #408 3.6.11+, Apr 10 2013, and was corrected and resumed working with #452 3.6.11+, 17 May 2013, so a long time ago and since then there should not be a problem.asilrohit wrote:I followed all the steps in updating the driver in my kernel, but when i insmod the 8192.ko file, it returns an error. Just like "someone" had.
Please help me with this.
Code: Select all
Bus 001 Device 004: ID 2001:330d D-Link Corp.
Code: Select all
Linux raspberrypi 3.18.5+ #744 PREEMPT Fri Jan 30 18:19:07 GMT 2015 armv6l GNU/Linux