LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Arch
User Name
Password
Arch This Forum is for the discussion of Arch Linux.

Notices


Reply
  Search this Thread
Old 10-14-2015, 12:20 PM   #1
firekage
Member
 
Registered: May 2011
Location: Poland
Distribution: Slackware, Ubuntu, Arch
Posts: 275

Rep: Reputation: 7
[solved]Atheros Killer E2400 driver for Arch


Hi.

I would ask for help. Meybe here, at LinuxQuestions will be somebody that would help me. I changed my motherboard that has Realtek network card for MSI that has Atheros Killer E2400 network card and because of this, i don't have internet acces on Atheros.

I tried to make module with these informations:

http://askubuntu.com/questions/67034...-e2400-drivers

I was able to do this:


- i edited reg.h and added this

#define ALX_DEV_ID_E2400 0xe0a1

- i edited main.c and addes this:


{ PCI_VDEVICE(ATTANSIC, ALX_DEV_ID_E2400),
.driver_data = ALX_DEV_QUIRK_MSI_INTX_DISABLE_BUG },

Finally i was able to do this:

Code:
make -C /lib/modules/$(uname -r)/build M=$(pwd) modules
sudo make -C /lib/modules/$(uname -r)/build M=$(pwd) modules_install
sudo modprobe -r alx
sudo depmod
sudo modprobe -v alx
but after building, loading, i still don't have internet acces. lspci shows that no driver is being used for Atheros Killer e2400:

Code:
0b:00.0 Ethernet controller: Qualcomm Atheros Device e0a1 (rev 10)
        Subsystem: Micro-Star International Co., Ltd. [MSI] Device 7978
        Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
        Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
        Latency: 0
        Interrupt: pin A routed to IRQ 11
        Region 0: Memory at df300000 (64-bit, non-prefetchable) [size=256K]
        Region 2: I/O ports at a000 [size=128]
        Capabilities: <access denied>
could somebody help me to build wokring driver for Arch? Thanks.


lsmod shows that driver is being loaded:
Code:
alx                    36864  0
mdio                   16384  1 alx
but device is not using it.

Last edited by firekage; 10-16-2015 at 03:00 PM.
 
Old 10-15-2015, 06:51 AM   #2
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
Do you have kernel sources configured, I.E. the make has been run?

Did the following command execute without errors?
make -C /lib/modules/$(uname -r)/build M=$(pwd) modules

My compliments, your post could be used as an example help request!
 
Old 10-16-2015, 07:26 AM   #3
firekage
Member
 
Registered: May 2011
Location: Poland
Distribution: Slackware, Ubuntu, Arch
Posts: 275

Original Poster
Rep: Reputation: 7
1. Kernel sources? No, i don't know what it is. I downloaded newest kernel, untared it, entered "it" and than did the second part:

2. Yes, this command was finished without errors.

3. Thanks
 
Old 10-16-2015, 07:42 AM   #4
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
OK, there are some constraints. You must use the same exact version of kernel sources as your running kernel, and I strongly suggest you use the same version of gcc which was used to compile kernel.

Anyhow, I would check the dmesg first to see if there are any problems loading alx module.

You can do rmmod alx, then open another terminal and run tail -f /var/log/messages, do modprobe alx in first terminal.
 
Old 10-16-2015, 01:50 PM   #5
firekage
Member
 
Registered: May 2011
Location: Poland
Distribution: Slackware, Ubuntu, Arch
Posts: 275

Original Poster
Rep: Reputation: 7
I did that earlier. Module is being loaded without problems. Dmesg shows that is it is loaded and nothing more.

Hm, about kernel sources. I use right now kernel named 4.2.3-1-arch but i downloaded 4.3.2 and did module for it. So i should download for 4.3.2-1? Well, that's another strange thing - 4.2.3 is the newest kernel that i was able to download but updating Arch gives me the second one with "1".

I checked something because you give me a direction which i should go for. I downloaded kernel for arch from arch webpage. It is totally diffrent than the one i downloaded from main kernel download page on kernel site.

In ubuntu "how to" with Atheros they said to edit reg.h file and main.c file in downloaded kernel files. The problem with arch is that it does not have these kind of files at all. There is only one, single file here

Code:
~/build/linux-4.2.3-1/usr/lib/modules/4.2.3-1-ARCH/kernel/drivers/net/ethernet/atheros/alx

named alx.ko.gz

So, i don't have main.c or reg.h file to enter my Vendor ID, to add it. So, that's why the builded module with ubuntu help does not work? So how should i add it, and where?




Edit: - solved. Emerson, thank you very much. You pushed me into right direction. You gave me an idea.

https://bbs.archlinux.org/viewtopic....71098#p1571098

Solved, works! My first created module :d

Last edited by firekage; 10-16-2015 at 03:04 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Arch Linux install issues - eth0 no such device - Atheros ethernet m3z Linux - Newbie 14 08-12-2011 06:15 PM
LXer: Silverlight 2.0: killer features, no Flash killer LXer Syndicated Linux News 0 10-28-2008 02:42 AM
Using the Atheros wireless driver rvandam Linux - Hardware 27 12-29-2007 11:43 AM
where to get atheros driver? xaptux Linux - Networking 1 05-01-2004 03:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Arch

All times are GMT -5. The time now is 02:30 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration