sensei saitama
Honorary Poster
- Joined
- Feb 1, 2016
- Posts
- 181
- Reaction
- 34
- Points
- 132
Attachments
-
You do not have permission to view the full content of this post. Log in or register now.
First install some updates.eto po sensei yan po yung driver po pahelp poView attachment 365720
sudo apt-get install linux-headers-generic build-essential
sudo -i
wget https://www.kernel.org/pub/linux/kernel/projects/backports/stable/v3.9-rc4/compat-drivers-3.9-rc4-2-s.tar.bz2
tar xvf compat-drivers-3.9-rc4-2-s.tar.bz2
cd compat-drivers-3.9-rc4-2-s/
./scripts/driver-select ath9k
make
error: redefinition of ‘kref_get_unless_zero’
include/linux/kref.h:47:32: note: previous definition of ‘kref_get_unless_zero’ was here
static inline int __must_check kref_get_unless_zero(struct kref *kref)
{
return atomic_add_unless(&kref->refcount, 1, 0);
}
/static inline int __must_check kref_get_unless_zero(struct kref *kref)
{
return atomic_add_unless(&kref->refcount, 1, 0);
}/
make
make install
modprobe ath9k
And calling Sensei, it's way too much. I HATE IT.
ok sir copy ko po wait po gawin ko munaFirst install some updates.
Code:sudo apt-get install linux-headers-generic build-essential
Then enter your password. Once done, wait mo na lang.
Pagkatapos, enter this again.
Code:sudo -i wget https://www.kernel.org/pub/linux/kernel/projects/backports/stable/v3.9-rc4/compat-drivers-3.9-rc4-2-s.tar.bz2 tar xvf compat-drivers-3.9-rc4-2-s.tar.bz2 cd compat-drivers-3.9-rc4-2-s/ ./scripts/driver-select ath9k make
In case magkaroon ng error katulad ng ganito.
So open mo yung header file , and block mo ito.
Code:static inline int __must_check kref_get_unless_zero(struct kref *kref) { return atomic_add_unless(&kref->refcount, 1, 0); }
Now, add / sa mga unahan at hulihan ng headers.
It should be like this.
Code:/static inline int __must_check kref_get_unless_zero(struct kref *kref) { return atomic_add_unless(&kref->refcount, 1, 0); }/
Now once done, balik sa terminal and type mo ito sa terminal.
Code:make make install
Then install the driver by typing
Code:modprobe ath9k
Then reboot your VM.
sir sa terminal ko b itatype yan o sa boot po ?ok sir copy ko po wait po gawin ko muna