Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Atheros AR8161 - Problem with module [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
feiticeir0
Apprentice
Apprentice


Joined: 13 Jul 2005
Posts: 260
Location: Castelo Branco, Portugal

PostPosted: Sun May 26, 2013 9:25 pm    Post subject: Atheros AR8161 - Problem with module [SOLVED] Reply with quote

Hi all !

For several times i've tried to update my kernel version to a newer one, but i'm always getting stoped by my network card.

I have an Qualcomm Atheros AR8161 Gigabit Ethernet (rev 08) and the kernel module needed is the alx.

I've tried a handful of compat-drivers and still getting problems with the module..

Some versions compile, others don't, but those who compile, i can't load the module, always getting the same error:

Code:

modprobe: ERROR: could not insert 'alx': Unknown symbol in module, or unknown parameter (see dmesg)


And, dmesg
Code:

alx: Unknown symbol mdio_mii_ioctl (err 0)


Searching online, i've found a workaround:

Adding
Quote:
SELECT MDIO
to the Kconfig file in
Quote:
/usr/src/linux/drivers/net/ethernet/atheros/Kconfig


That worked for my previous kernel version :

3.7.10-ck (ck-sources).

I'm now trying to update to gentoo-sources-3.8.13 but that hack doesn't work anymore (at least not with the compat-drivers i've tried).

I've searched for mdio_mii or mii in my kernel config and it is selected - don't know if is the same thing or if it should be selected or as a module - but the question is, i get always the same error...

Should i file a bug ?

Is there any way of bypassing this or solving it ?

Thank you
_________________
Do It With Rhythm


Last edited by feiticeir0 on Sat Jun 29, 2013 11:05 am; edited 1 time in total
Back to top
View user's profile Send private message
wpkzz
n00b
n00b


Joined: 28 Feb 2013
Posts: 28

PostPosted: Fri Jun 07, 2013 8:28 pm    Post subject: Same ethernet, similar problem. Reply with quote

Hello feiticeiro:

I have also the same ethernet card, and I remember having the same problem with kernel 3.7.10, and I could solve it without messing with the line in Kconfig.
I just put everything "mii" related as kernel and worked. But now, with the kernel 3.8.13 I get an even weirder error.
Like this.
Code:

monstruona atheros # modprobe alx
modprobe: ERROR: could not insert 'alx': Exec format error


Seems we are on the same boat. Let me see if I discover something.
Back to top
View user's profile Send private message
wouzer
Tux's lil' helper
Tux's lil' helper


Joined: 11 Feb 2003
Posts: 82
Location: The Hague, The Netherlands

PostPosted: Tue Jun 25, 2013 6:08 pm    Post subject: Reply with quote

I also have the same card. I managed to get the thing working with kernel 3.6.11-x and
http://wireless.kernel.org/download/compat-wireless-2.6/compat-wireless-2012-03-18-p.tar.bz2
If you need a newer kernel, I can't help I'm afraid.
good luck!
_________________
It is better to keep your mouth closed and let people think you are a fool than to open it and remove all doubt. (Mark Twain)
Back to top
View user's profile Send private message
hadrons123
Tux's lil' helper
Tux's lil' helper


Joined: 08 Mar 2012
Posts: 90
Location: chennai

PostPosted: Wed Jun 26, 2013 4:32 am    Post subject: Reply with quote

I tried this and it works for 3.9.7 kernel

http://www.linuxfoundation.org/collaborate/workgroups/networking/alx
Back to top
View user's profile Send private message
feiticeir0
Apprentice
Apprentice


Joined: 13 Jul 2005
Posts: 260
Location: Castelo Branco, Portugal

PostPosted: Sat Jun 29, 2013 10:35 am    Post subject: Reply with quote

hadrons123 wrote:
I tried this and it works for 3.9.7 kernel

http://www.linuxfoundation.org/collaborate/workgroups/networking/alx


Hi ! Thank you, but still no luck...

I get the same error over and over again. It compiles ok without any warnings, but when loading the module, the same message:

Code:

alx: Unknown symbol mdio_mii_ioctl (err 0)


I'm sending an email for the maintainer of the alx driver in hopes it can shed some light in this...

btw, i'm trying this now on 3.9.7-ck-sources.... I guess i'm still stuck with 3.7

Cheers
_________________
Do It With Rhythm
Back to top
View user's profile Send private message
feiticeir0
Apprentice
Apprentice


Joined: 13 Jul 2005
Posts: 260
Location: Castelo Branco, Portugal

PostPosted: Sat Jun 29, 2013 11:05 am    Post subject: Reply with quote

Hi all !

I've just solved this...

Its still a bug, and i guess i should fill it, but i don't know where - can someone help me by pointing where ?

To be able to compile the driver, getting rid of the message and be able to load the module, in your kernel config, just select any broadcom driver in
device drivers -> ethernet driver support -> broadcom devices

My guess is this will activate some needed kernel option (probably related with PHY device support and infrastructure) and alx driver will load and not complain about mdio_mii_ioctl ..

Is still a bug, because i don't have any broadcom device and since i compile my kernel, i like to activate only devices i really have...

Cheers

Bruno
_________________
Do It With Rhythm
Back to top
View user's profile Send private message
hadrons123
Tux's lil' helper
Tux's lil' helper


Joined: 08 Mar 2012
Posts: 90
Location: chennai

PostPosted: Sat Jun 29, 2013 3:54 pm    Post subject: Reply with quote

Your kernel config is probably wrong. I had this issues with wrong kernel configs. Now I have a new install and my issues in both gentoo and sabyon are gone.
Back to top
View user's profile Send private message
hadrons123
Tux's lil' helper
Tux's lil' helper


Joined: 08 Mar 2012
Posts: 90
Location: chennai

PostPosted: Thu Jul 04, 2013 2:54 pm    Post subject: Reply with quote

Alx is being upstreamed right now. The backports are here https://www.kernel.org/pub/linux/kernel/projects/backports/2013/06/18/backports-20130618.tar.bz2
_________________
LENOVO Y580 FHD Intel® Core™ i7-3630QM CPU @ 2.40GHz × 8 |660M GTX NVIDIA | 16GB SanDisk SSD
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum