LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 05-21-2011, 11:45 PM   #1
AK-33
Member
 
Registered: Aug 2010
Location: Canada
Posts: 31

Rep: Reputation: 2
Help with LAN - eth0


Hey, guys:

So, I tried to install Arch on a new laptop for the first time today. After a successful installation, I could do little else other than add a new user. Before I can get my wireless working, I need to get my wired LAN working.

# lspci returns:

06:00.0 Ethernet controller: Attansic Technology Corp. Device 1083 (rev c0)
07:00.0 Network controller: Atheros Communications Inc. Device 002e (rev 01)

In my /etc/rc.conf file, I have:

eth0="dhcp"
INTERFACES=(eth0)

However, when I do:

# ifconfig -a

I only get an lo interface.

When I try:

# dhcpcd eth0

I get

eth0: dhcpcd 4.0.10 starting
eth0: read_interface: No such device

When I try:

# ifconfig eth0 up

I get

eth0: unknown interface: No such device

# dmesg | grep eth0 - doesn't return anything, which means eth0 is not even listed.

I did a bit of Googling, but nobody seems to have a solution.

Any ideas?
 
Old 05-22-2011, 12:05 AM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Please enter "lspci -n" and display the lines beginning with "06:00.0" and "07:00".0". This will display the manid code.

Most recent atheros wireless devices use the "ath9k" kernel driver, and don't need firmware install. Try modprobing the "ath9k" device and see if wireless works.
 
Old 05-22-2011, 12:26 AM   #3
AK-33
Member
 
Registered: Aug 2010
Location: Canada
Posts: 31

Original Poster
Rep: Reputation: 2
Quote:
Originally Posted by jschiwal View Post
Please enter "lspci -n" and display the lines beginning with "06:00.0" and "07:00".0". This will display the manid code.

Most recent atheros wireless devices use the "ath9k" kernel driver, and don't need firmware install. Try modprobing the "ath9k" device and see if wireless works.
# lspci -n returns:

06:00.0 0200: 1969:1083 (rev c0)
07:00.0 0280: 168c:002e (rev 01)

Btw, my kernel version is 2.6.28-ARCH, and, in the /etc/rc.conf file, I have modules=() - perhaps this the problem is no modules are being loaded?

As far as wireless is concerned, let's see if I can get on wired first before getting to the fancy stuff.

EDIT: I found an explanation from http://www.linuxfromscratch.org/lfs/faq.html

Quote:
eth0 is a virtual device with no /dev entry. It refers to the first detected network card in your system. The reason the kernel can't find this device is because you forgot to add support for your network card in the kernel. The kernel detected the card but doesn't have a driver for it. The LFS boot script tries to bring up the network but fails because of this.

Recompile your kernel with the proper driver, either built in or as a module. If you compiled the network driver as a module, then also adjust /etc/modules.conf to alias the network card module as eth0; for example: alias eth0 8139too. If you don't know which network card you have, you can use dmesg, /proc/pci or lspci to find out.
I'll give this a try.

Last edited by AK-33; 05-22-2011 at 02:48 AM.
 
Old 05-22-2011, 01:21 PM   #4
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
I located 1969 in /usr/share/pci.ids. I don't know what the comment above the list of atheros devices is supposed to mean.

Code:
# nee Attansic Technology Corp.
1969  Atheros Communications
        1026  AR8121/AR8113/AR8114 Gigabit or Fast Ethernet
                1043 8304  P5KPL-CM Motherboard
        1048  L1 Gigabit Ethernet
                1043 8226  P5KPL-VM Motherboard
        1062  AR8132 Fast Ethernet
        1063  AR8131 Gigabit Ethernet
                1458 e000  GA-G31M-ES2L Motherboard
        1066  L2c Gigabit Ethernet
        1067  L1c Gigabit Ethernet
        1073  AR8151 v1.0 Gigabit Ethernet
        2048  L2 Fast Ethernet
        2060  AR8152 v1.1 Fast Ethernet
        2062  AR8152 v2.0 Fast Ethernet
These are the devices that mention Attansic:
Code:
locate /atl | grep '/lib/.*/net/.*\.ko'
/lib/modules/2.6.37.6-0.5-desktop/kernel/drivers/net/atl1c/atl1c.ko
/lib/modules/2.6.37.6-0.5-desktop/kernel/drivers/net/atl1e/atl1e.ko
/lib/modules/2.6.37.6-0.5-desktop/kernel/drivers/net/atlx/atl1.ko
/lib/modules/2.6.37.6-0.5-desktop/kernel/drivers/net/atlx/atl2.ko
I couldn't find a net device for 0x1083 in the kernel source, and I'm using a newer kernel. You might want to google for "Attansic atl kernel" and see what information you can find.
 
Old 05-22-2011, 02:14 PM   #5
AK-33
Member
 
Registered: Aug 2010
Location: Canada
Posts: 31

Original Poster
Rep: Reputation: 2
Please forgive my *nix n00b-ness, but exactly what info should I be looking for right now? Am I looking for the module name? Because I read on another thread here that modprobe <module name> will solve the problem I have.

So, the 1083 model isn't supported by my kernel? Um... I guess I'll to find the right module somewhere online or purchase an external Wi-Fi adapter with *nix support.

Thanks for your help, though.
 
Old 05-24-2011, 10:38 AM   #6
reed9
Member
 
Registered: Jan 2009
Location: Boston, MA
Distribution: Arch Linux
Posts: 653

Rep: Reputation: 142Reputation: 142
As of kernel 2.6.38, this card is supported by the atl1c driver.
Code:
 modinfo atl1c
filename:       /lib/modules/2.6.38-ARCH/kernel/drivers/net/atl1c/atl1c.ko.gz
version:        1.0.1.0-NAPI
license:        GPL
description:    Atheros 1000M Ethernet Network Driver
author:         Jie Yang <jie.yang@atheros.com>
srcversion:     0673CB8E8D3A7764860907D
alias:          pci:v00001969d00001083sv*sd*bc*sc*i*
alias:          pci:v00001969d00001073sv*sd*bc*sc*i*
alias:          pci:v00001969d00002062sv*sd*bc*sc*i*
alias:          pci:v00001969d00002060sv*sd*bc*sc*i*
alias:          pci:v00001969d00001062sv*sd*bc*sc*i*
alias:          pci:v00001969d00001063sv*sd*bc*sc*i*
depends:
vermagic:       2.6.38-ARCH SMP preempt mod_unload 686
Probably your best bet it to get the wireless card going and then upgrade the system. The wireless should be supported by the ath9k driver under your kernel.
 
Old 05-24-2011, 11:49 AM   #7
reed9
Member
 
Registered: Jan 2009
Location: Boston, MA
Distribution: Arch Linux
Posts: 653

Rep: Reputation: 142Reputation: 142
Another thing you can do is use one of the development builds of the Arch iso to install, which should have the latest kernel. It's bleeding edge so there might be bugs, but should be usable.
 
Old 05-30-2011, 12:19 AM   #8
AK-33
Member
 
Registered: Aug 2010
Location: Canada
Posts: 31

Original Poster
Rep: Reputation: 2
Quote:
Originally Posted by reed9 View Post
As of kernel 2.6.38, this card is supported by the atl1c driver.
Probably your best bet it to get the wireless card going and then upgrade the system. The wireless should be supported by the ath9k driver under your kernel.
That was my conclusion exactly. Guess what? The exact same error messages creep up for wlan0.

I tried manually upgrading the kernel, but received error messages during that process as well.

What I've decided to do is to purchase a *nix-compat USB Wi-Fi adapter that comes with its own driver. Once I get online, I can upgrade my kernel.

EDIT: I just had an idea. Do you have a URL link where I can download this driver so I can try it out with my 2.6.28 kernel? Or if anyone's using this current driver, can you possibly please uploaded onto MegaUpload so I can dl it directly?

Last edited by AK-33; 05-30-2011 at 12:29 AM.
 
Old 06-05-2011, 04:09 AM   #9
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Drivers for Linux wireless devices will be supplied with the kernel. Sometimes you need to install the firmware for the driver using a *fwcutter program. E.G. broadcom devices will need the b43-fwcutter package installed to cut the firmware from a windows driver. The firmware is code and data that the device itself runs, not the CPU.

For some wireless devices, firmware is needed but supplied with the kernel.

You may have better luck installing a pci wireless device for a desktop or a pcmcia card for a laptop.
I've had better luck with Atheros devices. Originally Broadcom devices were difficult, but the b43 device works well now.
 
Old 06-26-2011, 04:22 PM   #10
AK-33
Member
 
Registered: Aug 2010
Location: Canada
Posts: 31

Original Poster
Rep: Reputation: 2
Hey, I got caught up with moving and work, so I didn't find any time to get back to this until now.

I decided to follow reed9's advice on upgrading my kernel from 2.6.28 to 2.6.38. Now, since I can't get online either thru Wi-Fi or Ethernet, the only other option I have is to do it manually.

I dl-ed kernel26-2.6.38.6-2-x86_64.pkg.tar.xz from http://distro.ibiblio.org/

When I do a 'sudo pacman -U <kernel>' command, I get an 'Unrecognized archive format: Invalid or incomplete multibyte or wide character error.'

I'll do some research on this and post the solution (if I find it) here for future reference.

Thanks, everyone.

EDIT:

You know what, f**k this! I'm just going to torrent a new install CD from the official site. The entire point of me buying a "clean" install CD from a recognized vendor was for security purposes. However, what's the point of that if the thing DOESN'T F**KING WORK?!?!?!?

The new CD should have the latest everything, so all this crap I've been going through trying to get this running should be history.

Thanks again, all.

EDIT:

And, just as I thought, with the latest release, wlan0 is up!

Last edited by AK-33; 06-28-2011 at 06:32 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Production server with static IPs on eth0 and eth0:1 - need private LAN on eth1 stardotstar Linux - Networking 8 07-03-2010 12:27 AM
Alias eth0 to lan fukawi2 Linux - Networking 5 04-09-2010 03:49 AM
new LAN card and eth0 disappears wufo Slackware 4 01-13-2010 05:39 PM
Let sl0 use eth0 in lan nl1at Linux - Networking 3 08-10-2005 09:00 AM
Firewall WAN eth0 LAN eth1 self-bridges, eth0 does all routeing. Nichole_knc Linux - Networking 5 07-29-2004 02:33 PM

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

All times are GMT -5. The time now is 06:03 AM.

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