Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

[solved]: Atheros 8151 internet config

New to Debian (Or Linux in general)? Ask your questions here!
Message
Author
User avatar
bugsbunny
Posts: 5354
Joined: 2008-07-06 17:04
Been thanked: 1 time

Re: Debian presents a username and login???

#21 Post by bugsbunny »

I'm not sure what the following refers to:

Code: Select all

pcilib: sysfs_read_vpd: read failed: Connection timed out
but I don't think it's the Ethernet card

To find out what that refers to try following the procedure here: Bug 528392 – pcilib: sysfs_read_vpd: read failed: Connection timed out

You probably don't have strace installed so you'll have to install it. You should be able to get the network up before trying to track this down. Otherwise strace should be installable in any case, only dependency is libc6.

User avatar
bugsbunny
Posts: 5354
Joined: 2008-07-06 17:04
Been thanked: 1 time

Re: Debian presents a username and login???

#22 Post by bugsbunny »

Technopenguin wrote:I'm thinking it would be a good idea to use my parted magic livecd, which has internet, and find all the necessary stuff (ip of LAN, gateway, PC ip) from there.
just setup the network as a dhcp address to start. All you should need in /etc/network/interfaces is the following:

Code: Select all

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
allow-hotplug eth0
iface eth0 inet dhcp
You can switch to a static ip setup afterwards if you want to. Or just leave it as dynamic. In any case you'll be able to get gateway IP. If you do want to go with static ip's you'll need to reserve ip's as static ip's by restricting the dhcp pool (to accomplish this requires router configuration, not pc configuration). If you don't know what you're doing I recommend you leave it as dynamic for now (even if you do want to change later)

User avatar
Technopenguin
Posts: 45
Joined: 2011-06-25 03:52

Re: Debian presents a username and login???

#23 Post by Technopenguin »

Configuring the interfaces file so DHCP is used has not worked for me. I wonder what is going on. Though I believe I remember that DHCP failed for another computer that had to be configured on this home network before.

User avatar
bugsbunny
Posts: 5354
Joined: 2008-07-06 17:04
Been thanked: 1 time

Re: Debian presents a username and login???

#24 Post by bugsbunny »

The router may not be configured as a dhcp server? Just guessing at this point.

User avatar
Technopenguin
Posts: 45
Joined: 2011-06-25 03:52

Re: Debian presents a username and login???

#25 Post by Technopenguin »

I believe that's a negative here; I entered the ip address to access router settings, and it says here that it's Automatic Configuration - DHCP.
I should have looked here (router settings page) earlier: I could try static ip again, this time using an ACTUAL gateway, not one I guessed up. :P
Wouldn't matter right now, since I'm using DHCP.
Almost forgot; that recent link you gave me on using DHCP; I found the second part (allow-hotplug eth0 etc.), and it said that once my computer is set up for it I can do it. They meant that I needed a particular installation, of something called dhcp-3 client. I'm going to try it out. http://packages.debian.org/squeeze/dhcp3-client

One other thing: when I change the interfaces file, do I have to reboot to see the results, before trying to open a webpage?

User avatar
Technopenguin
Posts: 45
Joined: 2011-06-25 03:52

Re: Debian presents a username and login???

#26 Post by Technopenguin »

There's more that I'm curious about now. Running ifconfig is showing interesting stuff. When I'm in a browser, and click try again, to refresh the failed page loading, the RX and TX packet numbers increase (say, before reload, 3956, now 3964). I wonder: why are they the same number, and why are they both increasing identically?

Also, they give an "inet addr:" and a mask. It also says that the "Link encap" is a local loopback.

Code: Select all

ifconfig eth0
eth0: error fetching interface information: Device not found
Does this mean what I think it might mean?
What I want to know is why parted magic could find my ethernet, and Debian cannot. Also, Debian has the necessary driver for my ethernet.

User avatar
bugsbunny
Posts: 5354
Joined: 2008-07-06 17:04
Been thanked: 1 time

Re: Debian presents a username and login???

#27 Post by bugsbunny »

What's the output of

Code: Select all

# ifconfig -a
(where the # indicates to run the command as root)
also post the contents of /etc/udev/rules.d/70-persistent-net.rules
(the 70 could conceivably be a different number)

If you had let the installer set up the network all this would have been a lot simpler :)

User avatar
Technopenguin
Posts: 45
Joined: 2011-06-25 03:52

Re: Debian presents a username and login???

#28 Post by Technopenguin »

Code: Select all

root@localhost:~# ifconfig -a
lo                       Link encap:Local Loopback
                          inet addr:127.0.0.1 Mask:255.0.0.0
                          inet6 addr:  ::1/128 Scope:Host
                          UP LOOPBACK RUNNING MTU:16436 Metric:1
                          RX packets:6052 errors:0 dropped:0 overruns:0 frame:0
                          TX packets:6052: errors:0 dropped:0 overruns:0 carrier:0
                          collisions:0 txqeuelen:0
                          RX bytes:360964 (352.5 KiB)    TX bytes:360964 (352.5 KiB)

(There is no file with the "net", only a "cd"
root@localhost:/home/rob# cd /etc/udev/rules.d
root@localhost:/etc/udev/rules.d# ls
70-persistent-cd.rules	85-pcmcia.rules  z60_hdparm.rules
root@localhost:/etc/udev/rules.d# cat 70-persistent-cd.rules 
# This file was automatically generated by the /lib/udev/write_cd_rules
# program, run by the cd-aliases-generator.rules rules file.
#
# You can modify it, as long as you keep each rule on a single
# line, and set the $GENERATED variable.

# DVDRAM_GH22NS50 (pci-0000:00:1f.2-scsi-0:0:0:0)
SUBSYSTEM=="block", ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:00:1f.2-scsi-0:0:0:0", SYMLINK+="cdrom", ENV{GENERATED}="1"
SUBSYSTEM=="block", ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:00:1f.2-scsi-0:0:0:0", SYMLINK+="cdrw", ENV{GENERATED}="1"
SUBSYSTEM=="block", ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:00:1f.2-scsi-0:0:0:0", SYMLINK+="dvd", ENV{GENERATED}="1"
SUBSYSTEM=="block", ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:00:1f.2-scsi-0:0:0:0", SYMLINK+="dvdrw", ENV{GENERATED}="1"

# U3_Cruzer_Micro (pci-0000:00:1a.0-usb-0:1.1:1.0-scsi-0:0:0:1)
SUBSYSTEM=="block", ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:00:1a.0-usb-0:1.1:1.0-scsi-0:0:0:1", SYMLINK+="cdrom1", ENV{GENERATED}="1"
SUBSYSTEM=="block", ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:00:1a.0-usb-0:1.1:1.0-scsi-0:0:0:1", SYMLINK+="cdrw1", ENV{GENERATED}="1"

# U3_Cruzer_Micro (pci-0000:00:1a.0-usb-0:1.1:1.0-scsi-0:0:0:1)
SUBSYSTEM=="block", ENV{ID_CDROM}=="?*", ENV{ID_SERIAL}=="SanDisk_U3_Cruzer_Micro_0000060421068989-0:1", SYMLINK+="cdrom2", ENV{GENERATED}="1"
SUBSYSTEM=="block", ENV{ID_CDROM}=="?*", ENV{ID_SERIAL}=="SanDisk_U3_Cruzer_Micro_0000060421068989-0:1", SYMLINK+="cdrw2", ENV{GENERATED}="1"

If you had let the installer set up the network all this would have been a lot simpler :)
Yeah, but the installer didn't find my ethernet..and none of the drivers worked.
Last edited by Technopenguin on 2011-06-27 19:47, edited 1 time in total.

User avatar
nadir
Posts: 5961
Joined: 2009-10-05 22:06
Location: away

Re: Debian presents a username and login???

#29 Post by nadir »

Look here:
http://aptosid.com/index.php?name=PNphp ... opic&t=983
where it says:

Code: Select all

# modprobe atl1c
# echo "1969 1083" > /sys/bus/pci/drivers/atl1c/new_id 
Don't simply run the commands, but read the thread ( i am tired).
The thread is the first result with scroogle, and there are more (i was interested what might be the cause of the problem).
Good luck.

Edit: Sorry, i was not clear. I used your card +Debian as a search term: "Atheros Communications Device 1083 +Debian"
"I am not fine with it, so there is nothing for me to do but stand aside." M.D.

User avatar
Technopenguin
Posts: 45
Joined: 2011-06-25 03:52

Re: Debian presents a username and login???

#30 Post by Technopenguin »

Code: Select all

lspci -knn
00:1c.1 PCI bridge [0604]: Intel Corporation 82801 PCI Bridge [8086:244e] (rev b5)
00:1c.2 PCI bridge [0604]: Intel Corporation Cougar Point PCI Express Root Port 3 [8086:1c14] (rev b5)
etc.....
05:00.0 Ethernet controller [0200]: Atheros Communications Device [1969:1083] (rev c0)
            Subsystem: ASrock Incorporation Device [1849:1083]

Code: Select all

# modprobe atl1c
#echo "1969 1083" > /sys/bus/pci/drivers/atl1c/new_id 
Both return nothing.

As I wondered before, should I recompile the kernel?

User avatar
nadir
Posts: 5961
Joined: 2009-10-05 22:06
Location: away

Re: Atheros 8131 internet config [login solved]

#31 Post by nadir »

"Return nothing" in Unix (usually) is a good sign (aka success of command). Its not exactly what i call chatty.
In the thread over at aptosid-forum they said to use ceni after running those commands.
Try:

Code: Select all

ifconfig -a 
again. If this time it shows your card try:

Code: Select all

dhclient eth0
Replace eth0 with the result of ifconfig.
If that works, edit /etc/network/interfaces accordingly (just use a searchengine, its two self-explaining lines. I think bugsbunny gave an example above).
If it, ifconfig -a, does not show your card i was on the wrong track.
"I am not fine with it, so there is nothing for me to do but stand aside." M.D.

User avatar
Technopenguin
Posts: 45
Joined: 2011-06-25 03:52

Re: Atheros 8131 internet config [login solved]

#32 Post by Technopenguin »

Code: Select all

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:8 errors:0 dropped:0 overruns:0 frame:0
          TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:560 (560.0 B)  TX bytes:560 (560.0 B)
I'm a bit lost here - what should I take from here and put into the dhclient command?
In the thread over at aptosid-forum they said to use ceni after running those commands.
Network configuration, wicd, ceni, I could use any of these right? However, as bugsbunny said, it should be easy to simply adjust the interfaces file, in regards to adjusting my ethernet device.
If that works, edit /etc/network/interfaces accordingly (just use a searchengine, its two self-explaining lines. I think bugsbunny gave an example above).
Right now I've got the interfaces file set in DHCP mode, so I'm ok there. Simply have yet to input the dhclient with the desired bit from ifconfig -a.

User avatar
bugsbunny
Posts: 5354
Joined: 2008-07-06 17:04
Been thanked: 1 time

Re: Atheros 8131 internet config [login solved]

#33 Post by bugsbunny »

The problem is that the ethernet card isn't being setup for some reason. what's the output of

Code: Select all

# dmesg|grep -i atheros

User avatar
Technopenguin
Posts: 45
Joined: 2011-06-25 03:52

Re: Atheros 8131 internet config [login solved]

#34 Post by Technopenguin »

Code: Select all

root@localhost:~#dmesg|grep -i atheros
No output.

User avatar
bugsbunny
Posts: 5354
Joined: 2008-07-06 17:04
Been thanked: 1 time

Re: Atheros 8131 internet config [login solved]

#35 Post by bugsbunny »

Look trough the log files and see if you can find anything relevant. start with syslog.

User avatar
Technopenguin
Posts: 45
Joined: 2011-06-25 03:52

Re: Atheros 8131 internet config [login solved]

#36 Post by Technopenguin »

For the logs, is the only place to look /var/log ?
I'm going to start with searching for anything with 0000:05 etc. in it.

Still wondering about whether I was missing the necessary driver, I checked this site: http://kmuto.jp/debian/hcl/index and put in the result to lspci -n; it says the driver needed is atl1c, the one I already have (see below).
19691083 Yes Atheros Communications AR8151 v2.0 Gigabit Ethernet atl1c v2.6.38-
This was just a another way to rule out the possibility of a missing driver, and thus a kernel update needed. Especially since I was thinking the wrong number-8131 when it's 8151.
Like you said, the ethernet card simply isn't being set up for some reason; it wasn't during the installation.

User avatar
bugsbunny
Posts: 5354
Joined: 2008-07-06 17:04
Been thanked: 1 time

Re: Atheros 8151 internet config [login solved]

#37 Post by bugsbunny »

logs are all in /var/log

Actually the output of dmesg should contain something relevant

User avatar
Technopenguin
Posts: 45
Joined: 2011-06-25 03:52

Re: Atheros 8151 internet config [login solved]

#38 Post by Technopenguin »

Ok, I looked through the logs in /var/logs searching for "0000:05", as well as 'dhc' and 'dhclient', since dhclient may have been used whenever the interfaces file was configured for dhcp.
The three files at the bottom, syslog.3, syslog, and daemon.log, have information that seems to be most relevant.

/var/log/debug has some 15 lines of basically this:

Code: Select all

Jun 27 03:36:00 localhost kernel: [    0.307810] pci 0000:05:00.0: reg 10 64bit mmio: [0xfe500000-0xfe53ffff]
Jun 27 03:36:00 localhost kernel: [    0.307821] pci 0000:05:00.0: reg 18 io port: [0xd000-0xd07f]
/var/log/cups/error_log.1

Code: Select all

E [27/Jun/2011:09:21:02 +0000] Unable to bind socket for address ::1:631 - Cannot assign requested address.
/var/log/exim4/mainlog.3

Code: Select all

2011-06-28 08:58:23 exim 4.72 daemon started: pid=1521, -q30m, listening for SMTP on [127.0.0.1]:25 [::1]:25
2011-06-29 00:56:50 exim 4.72 daemon started: pid=1514, -q30m, listening for SMTP on [127.0.0.1]:25 [::1]:25
/var/log/exim4/paniclog

Code: Select all

2011-06-27 09:25:32 socket bind() to port 25 for address ::1 failed: Cannot assign requested address: daemon abandoned
There's an error on startup, when jumping the the first terminal, that tells me my mail system is possibly broken; exim4 is mentioned.

/var/log/exim4/mainlog

Code: Select all

2011-07-01 04:19:20 1QcVCK-0000US-7I Error while reading message with no usable sender address (R=1QcVCK-0000UL-5H): at least one malformed recipient address: root@(none - domain missing or malformed
2011-07-01 04:19:20 1QcVCK-0000UL-5H Process failed (1) when writing error message to root@(none (frozen)
2011-07-01 04:19:27 1QcVCR-0000Vi-HW <= root@(none U=root P=local S=1127
2011-07-01 04:19:27 1QcVCR-0000Vi-HW ** root@(none R=nonlocal: Mailing to remote domains not supported
2011-07-01 04:19:27 1QcVCR-0000Vk-Ht Error while reading message with no usable sender address (R=1QcVCR-0000Vi-HW): at least one malformed recipient address: root@(none - domain missing or malformed
2011-07-01 04:19:27 1QcVCR-0000Vi-HW Process failed (1) when writing error message to root@(none (frozen)
2011-07-01 23:24:18 exim 4.72 daemon started: pid=1546, -q30m, listening for SMTP on [127.0.0.1]:25 [::1]:25
/var/log/installer/syslog

Code: Select all

Jun 27 01:43:18 kernel: [    0.200283] pci 0000:05:00.0: reg 10 64bit mmio: [0xfe500000-0xfe53ffff]
Jun 27 01:43:18 kernel: [    0.200294] pci 0000:05:00.0: reg 18 io port: [0xd000-0xd07f]

Jun 27 01:43:18 kernel: [    0.200388] pci 0000:05:00.0: PME# supported from D0 D1 D2 D3hot D3cold
Jun 27 01:43:18 kernel: [    0.200395] pci 0000:05:00.0: PME# disabled

Jun 27 01:43:18 kernel: [    0.269272] pci 0000:00:1c.2: PCI bridge, secondary bus 0000:05
Jun 27 01:43:18 kernel: [    0.269276] pci 0000:00:1c.2:   IO window: 0xd000-0xdfff

Jun 27 01:43:18 kernel: [    0.269459] pci_bus 0000:05: resource 0 io:  [0xd000-0xdfff]
Jun 27 01:43:18 kernel: [    0.269461] pci_bus 0000:05: resource 1 mem: [0xfe500000-0xfe5fffff]

Jun 27 01:43:18 kernel: [    0.200283] pci 0000:05:00.0: reg 10 64bit mmio: [0xfe500000-0xfe53ffff]
Jun 27 01:43:18 kernel: [    0.200294] pci 0000:05:00.0: reg 18 io port: [0xd000-0xd07f]
Jun 27 01:43:18 kernel: [    0.200388] pci 0000:05:00.0: PME# supported from D0 D1 D2 D3hot D3cold
Jun 27 01:43:18 kernel: [    0.200395] pci 0000:05:00.0: PME# disabled
There's an installer log from the cd install that tells me I have netcfg installed.

/var/log/kern.log

Code: Select all

Jul  1 04:14:19 localhost kernel: [    0.304444] pci 0000:05:00.0: reg 10 64bit mmio: [0xfe500000-0xfe53ffff]
Jul  1 04:14:19 localhost kernel: [    0.304455] pci 0000:05:00.0: reg 18 io port: [0xd000-0xd07f]
Jul  1 04:14:19 localhost kernel: [    0.304549] pci 0000:05:00.0: PME# supported from D0 D1 D2 D3hot D3cold
Jul  1 04:14:19 localhost kernel: [    0.304556] pci 0000:05:00.0: PME# disabled
/var/log/daemon.log

Code: Select all

Jun 28 07:26:31 localhost dhclient: Bind socket to interface: No such device
Jun 28 07:26:48 localhost dhclient: Unsupported device type 772 for "lo"
Jun 28 07:26:57 localhost dhclient: Bind socket to interface: No such device
Jun 28 07:27:07 localhost dhclient: Bind socket to interface: No such device

Jun 28 09:00:42 localhost dhclient: No broadcast interfaces found - exiting.
Jun 28 09:00:57 localhost dhclient: Internet Systems Consortium DHCP Client 4.1.1-P1
Jun 28 09:00:57 localhost dhclient: Copyright 2004-2010 Internet Systems Consortium.
Jun 28 09:00:57 localhost dhclient: All rights reserved.
Jun 28 09:00:57 localhost dhclient: For info, please visit https://www.isc.org/software/dhcp/
Jun 28 09:00:57 localhost dhclient: Usage: dhclient [-4|-6] [-SNTP1dvrx] [-nw] [-p <port>] [-s server]
Jun 28 09:00:57 localhost dhclient:                 [-cf config-file] [-lf lease-file][-pf pid-file] [-e VAR=val]
Jun 28 09:00:57 localhost dhclient:                 [-sf script-file] [interface]
/var/log/syslog.3

Code: Select all

Jun 28 07:26:31 localhost dhclient: Bind socket to interface: No such device
Jun 28 07:26:48 localhost dhclient: Unsupported device type 772 for "lo"
Jun 28 07:26:57 localhost dhclient: Bind socket to interface: No such device
Jun 28 07:27:07 localhost dhclient: Bind socket to interface: No such device

Jun 28 09:00:42 localhost dhclient: No broadcast interfaces found - exiting.
Jun 28 09:00:57 localhost dhclient: Internet Systems Consortium DHCP Client 4.1.1-P1
Jun 28 09:00:57 localhost dhclient: Copyright 2004-2010 Internet Systems Consortium.
Jun 28 09:00:57 localhost dhclient: All rights reserved.
Jun 28 09:00:57 localhost dhclient: For info, please visit https://www.isc.org/software/dhcp/
Jun 28 09:00:57 localhost dhclient: Usage: dhclient [-4|-6] [-SNTP1dvrx] [-nw] [-p <port>] [-s server]
Jun 28 09:00:57 localhost dhclient:                 [-cf config-file] [-lf lease-file][-pf pid-file] [-e VAR=val]
Jun 28 09:00:57 localhost dhclient:                 [-sf script-file] [interface]
/var/log/syslog

Code: Select all

Jul  1 23:24:17 localhost kernel: [    0.376872] IP route cache hash table entries: 32768 (order: 5, 131072 bytes)
Jul  1 23:24:17 localhost kernel: [    0.377008] TCP established hash table entries: 131072 (order: 8, 1048576 bytes)
Jul  1 23:24:17 localhost kernel: [    0.377208] TCP bind hash table entries: 65536 (order: 7, 524288 bytes)
Jul  1 23:24:17 localhost kernel: [    0.377310] TCP: Hash tables configured (established 131072 bind 65536)
Jul  1 23:24:17 localhost kernel: [    0.377312] TCP reno registered
Jul  1 23:24:17 localhost kernel: [    0.377356] NET: Registered protocol family 1

User avatar
bugsbunny
Posts: 5354
Joined: 2008-07-06 17:04
Been thanked: 1 time

Re: Atheros 8151 internet config [login solved]

#39 Post by bugsbunny »

Just dump the output of dmesg to a pastebin site and post the link here

Most of the things you posted are symptoms, but don't point to the actual problem.


Post Reply