LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Ubuntu (http://www.linuxquestions.org/questions/ubuntu-63/)
-   -   Cannot connect to ethernet with wired connection Ubuntu 12.10 (http://www.linuxquestions.org/questions/ubuntu-63/cannot-connect-to-ethernet-with-wired-connection-ubuntu-12-10-a-4175453661/)

tontoOz 03-11-2013 03:31 PM

Cannot connect to ethernet with wired connection Ubuntu 12.10
 
I am new to Ubuntu (installed Ubuntu 12.10 desktop on my Mac Mini today from Ubuntu iso – mac mini had blank SSD on it i.e. no OS X at all).

First drama is that Ubuntu installer seems to be setup for DHCP whereas my LAN is all static IP based.

Anyway, Ubuntu installed okay except that it seems to have gone into loopback mode and cannot find the Ethernet adapter on the Mac Mini.

Doing an 'ifconfig -a' confirms the loopback.

Doing an lspci reveals the following: 01:00.0 Ethernet controller: Broadcom Corporation Netxtreme BCM57766 Gigabit Ethernet PCIe (rev 05)

I tried the following:

Setting /etc/hosts file to include: 127.0.0.1 localhost 192.168.0.2 merlot

I wanted to set /etc/network/interfaces file to have:

auto eth0
iface eth0 inet static
address 192.168.0.2
netmask 255.255.255.0
gateway 192.168.0.1

Except that eth0 (mac mini only has one ethernet connector) doesn't seem to exist as far as Ubuntu is concerned. 192.168.0.1 is my modem/router which connects directly to the Internet.

I wanted to edit /etc/resolv.conf so that I could specify some DNS name servers (3 in total) that should be used except that the resolv.conf file contained text warning me that the file would be overwritten so don't bother doing anything manually in that file.

Checking 'System Settings > Network' I cannot see wired Ethernet at all. There is, for some reason, a 'Network Proxy' defined. A messagebox appears saying:

"The system network services are not compatible with this version."

When I am able to modify via 'System Settings > Network' the only option permitted to me is to add a 'vpn' definition.

I have not been able to establish a network connection at all.

1. What can I try to fix this?

2. Do I need a driver from somewhere and can I install said driver without having to recompile the kernel?

3. Is there a GUI way of setting network parameters or is editing the hosts, resolv.conf (???), and interfaces file the only way?

4. How can I find the Ethernet Mac address from terminal (I couldn't get it by doing 'ifconfig -a')?

Emerson 03-11-2013 06:27 PM

Can you provide more info, output of
Code:

lspci -knn | grep -i eth -A 2
would help.

tontoOz 03-11-2013 06:46 PM

More info as requested (don't know what it means though)
 
lspci -knn | grep -i eth -A 2

01:00.0 Ethernet controller [0200]: Broadcom Corporation NetXtreme BCM57766 Gigabit Ethernet PCIe [14e4:1686] (rev 01)
Subsystem: Broadcom Corporation NetXtreme BCM57766 Gigabit Ethernet PCIe [14e4:1686]
01:00.1 SD Host controller [0805]: Broadcom Corporation NetXtreme BCM57765 Memory Card Reader [14e4:16bc] (rev 01)
Subsystem: Broadcom Corporation Device [14e4:0000]


lspci -nn | grep 0200

01:00.0 Ethernet controller [0200]: Broadcom Corporation NetXtreme BCM57766 Gigabit Ethernet PCIe [14e4:1686] (rev 01)

Emerson 03-11-2013 07:37 PM

A quick Google brings up this: http://comments.gmane.org/gmane.linux.network/236867

It seems it will work with tg3, if it's PCI-ID is not listed in your kernel sources you have to tweak it or switch to a newer kernel.

tontoOz 03-13-2013 04:28 AM

Tried a few things but still no joy
 
I have tried upgrading to the 3.7.10 and then the 3.8.2 kernels from http://kernel.ubuntu.com/~kernel-ppa/mainline/

The kernel updated fine but I still don't have Ethernet. I don't know what to do next. Any ideas?

Could you please explain what you mean by "if it's PCI-ID is not listed in your kernel sources you have to tweak it"?

We know that the PCI-ID should be 14e4:1686 but what do I do next?

Incidentally I tried downloading the Broadcom driver from:

http://www.broadcom.com/support/lice...nux-3.124c.zip

and then doing a make but I got a bunch of errors which I don't know what to do next about:


tony@merl0t:~/tg3/Server/Linux/Driver/tg3-3.124c$ make
sh makeflags.sh /lib/modules/3.8.2-030802-generic/build > tg3_flags.h
make -C /lib/modules/3.8.2-030802-generic/build SUBDIRS=/home/tony/tg3/Server/Linux/Driver/tg3-3.124c modules
make[1]: Entering directory `/usr/src/linux-headers-3.8.2-030802-generic'
CC [M] /home/tony/tg3/Server/Linux/Driver/tg3-3.124c/tg3.o
/home/tony/tg3/Server/Linux/Driver/tg3-3.124c/tg3.c:96:24: fatal error: asm/system.h: No such file or directory
compilation terminated.
make[2]: *** [/home/tony/tg3/Server/Linux/Driver/tg3-3.124c/tg3.o] Error 1
make[1]: *** [_module_/home/tony/tg3/Server/Linux/Driver/tg3-3.124c] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-3.8.2-030802-generic'
make: *** [default] Error 2
tony@merl0t:~/tg3/Server/Linux/Driver/tg3-3.124c$

tontoOz 03-13-2013 08:30 AM

I have also tried this solution:

http://ubuntuforums.org/showthread.p...1#post12337391

The first problem I encountered was that it wasn't obvious that DKMS needs to be installed first from here:

http://linux.dell.com/dkms/

After that DKMS would work but I got the following error after trying to do the 'make'. I have no idea what this means or what to do next before trying install. Any ideas, please advise:

DKMS make.log for tg3-3.124c for kernel 3.8.2-030802-generic (x86_64)
Wed Mar 13 20:17:56 WST 2013
sh makeflags.sh /lib/modules/3.8.2-030802-generic/build > tg3_flags.h
make -C /lib/modules/3.8.2-030802-generic/build SUBDIRS=/var/lib/dkms/tg3/3.124c/build/src modules
make[1]: Entering directory `/usr/src/linux-headers-3.8.2-030802-generic'
CC [M] /var/lib/dkms/tg3/3.124c/build/src/tg3.o
/var/lib/dkms/tg3/3.124c/build/src/tg3.c:96:24: fatal error: asm/system.h: No such file or directory
compilation terminated.
make[2]: *** [/var/lib/dkms/tg3/3.124c/build/src/tg3.o] Error 1
make[1]: *** [_module_/var/lib/dkms/tg3/3.124c/build/src] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-3.8.2-030802-generic'
make: *** [default] Error 2


All times are GMT -5. The time now is 11:06 PM.