You are not logged in.

#1 2010-07-10 14:35:18

Xyzk
Member
Registered: 2007-04-30
Posts: 44

[Solved]Can`t create internet connection

I`ve installed arch linux on my lenovo y550, but, because I was too sleepy to think yesterday so I didn`t configure the /etc/rc.conf and /etc/resolv.conf file (I installed from CD). All in all i`ve got neither wired nor wireless connection to the internet (everything works fine on windows 7, the same laptop). I think the problem is there are no proper drivers. After typing

/sbin/ifconfig

I only get the lo, no eth0. I`ve configured the web connection on my PC 2 years ago, the same router and web provider, but I didn`t have any problems then, so I guess it must laptop issue.

#lspci | grep -i net
06:00.0 Network controller: Intel Corporation WiFI Link 1000 Series
07:00.0 Ethernet controller: Broadcom Corporation NetLink BCM57780 Gigabit Ethernet PCIe (rev 01)

I tried the modprobe pcnet32 and modprobe tg3 and modprobe broadcom. In theory, 2.6.33 kernel should support the driver tg3 for BCM57780 (?? Maybe the information I`ve found is wrong??)
still no result. (I didn`t modify the /etc/rc.local with those modprobes yet).
Any Idea what should I do to get the web access?

I`ve found this post:http://bbs.archlinux.org/viewtopic.php?pid=774219
and I`m curious how to install the iwlwifi-1000-ucode without internet connection to get my wireless going.


Any help with either connection?


SOLVED:
thx karol for solution. add this in your /etc/rc,local
modprobe -r tg3
modprobe broadcom
modprobe tg3

and add dbus in daemons. Also, while installing archlinux, you can find iwlwifi 1000 series in additional packages on cd (necessary for wireless connection)

Last edited by Xyzk (2010-07-19 16:10:56)

Offline

#2 2010-07-10 14:43:47

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [Solved]Can`t create internet connection

> I`m curious how to install the iwlwifi-1000-ucode without internet connection to get my wireless going.
Download it using your other computer and move to your notebook.

Type 'ifconfig -a' to see all of your internet interfaces.

Maybe you can just reinstall and do it all properly. Follow the installation and beginners' guides.
If you still have problems, post your rc.conf and any other files / settings you think might be useful for anyone trying to help you.

Last edited by karol (2010-07-10 14:49:55)

Offline

#3 2010-07-10 15:51:14

Xyzk
Member
Registered: 2007-04-30
Posts: 44

Re: [Solved]Can`t create internet connection

#ifconfig -a
lo                 Link encap: Local Loopback
                    inet addr:127.0.0.1      Mask 255.0.0.0
                    UP LOOPBACK RUNNING MTU:16436 Metric:1
                    RX packets:) errors:0 dropped:0 overruns:0 frame:0
                    TX packets:0 errors: 0 dropped:0 overruns:0 carrier:0
                    collision:0 txqueuelen:0
                    RX bytes:0 (0.0 b)   TX bytes:0 (0.0.b)

I already tried reinstall, no luck. Someone had same problem and solved it with putting this:

touch /var/lock/subsys/local
modprobe -r tg3
modprobe broadcom
modprobe tg3

in /etc/rc.local but it didn`t work for me (there`s no such director as /var/lock/subsys/local)

Offline

#4 2010-07-10 16:02:29

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [Solved]Can`t create internet connection

http://bbs.archlinux.org/viewtopic.php? … 32#p710132
You can ask him if he got around the problem.

According to http://www.linlap.com/wiki/lenovo+ideapad+y550 it's possible to get it to work.

Post your rc.conf.

Offline

#5 2010-07-10 16:58:45

Xyzk
Member
Registered: 2007-04-30
Posts: 44

Re: [Solved]Can`t create internet connection

Send e-mail to that man.


HOSTNAME: Hostname of machine. Should also be put in /etc/hosts
#
HOSTNAME="archlinux"

# Use 'ifconfig -a' or 'ls /sys/class/net/' to see all available interfaces.
#
# Interfaces to start at boot-up (in this order)
# Declare each interface then list in INTERFACES
#   - prefix an entry in INTERFACES with a ! to disable it
#   - no hyphens in your interface names - Bash doesn't like it
# 
# DHCP:     Set your interface to "dhcp" (eth0="dhcp")
# Wireless: See network profiles below
#

#Static IP example
lo="lo 127.0.0.1"
eth0="eth0 192.168.1.101 netmask 255.255.255.0 broadcast 192.168.1.1"
INTERFACES=(lo eth0)

# Routes to start at boot-up (in this order)
# Declare each route then list in ROUTES
#   - prefix an entry in ROUTES with a ! to disable it
#
gateway="default gw 192.168.1.1"
#ROUTES=(!gateway)
ROUTES=(gateway)
 
# Enable these network profiles at boot-up.  These are only useful
# if you happen to need multiple network configurations (ie, laptop users)
#   - set to 'menu' to present a menu during boot-up (dialog package required)
#   - prefix an entry with a ! to disable it
#
# Network profiles are found in /etc/network.d
#
# This now requires the netcfg package
#
#NETWORKS=(main)

#

Offline

#6 2010-07-10 17:06:53

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [Solved]Can`t create internet connection

Is it the whole rc.conf?
Try using

MOD_AUTOLOAD="yes"

so that the kernel load all the needed modules (including the network ones).


What's wrong w/ using dhcpcd? Try this:

eth0="dhcp"
INTERFACES=(eth0)
gateway="default gw 192.168.0.1"
ROUTES=(!gateway)

The first line should read

# HOSTNAME: Hostname of machine. Should also be put in /etc/hosts

Where's the DAEMONS array?

Offline

#7 2010-07-10 17:20:05

Xyzk
Member
Registered: 2007-04-30
Posts: 44

Re: [Solved]Can`t create internet connection

Where's the DAEMONS array?

sry, didn`t copy it.
And I had dhcp at the begining, but changed it while searching for a solution. And the first line is OK in my conf file, once again error while copying. While booting the system after changing the file to your suggestion I`ve noticed FAIL information next to something about eth0 (to fast, couldn`t read)

Offline

#8 2010-07-10 17:26:08

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [Solved]Can`t create internet connection

> to fast, couldn`t read
Add this

read -n1

to /etc/rc.local and paste again the whole rc.conf and rc.local you're currently using.

Now you can read everything while booting and you have to press a key to get to login (the text won't disappear).

Last edited by karol (2010-07-10 17:26:37)

Offline

#9 2010-07-10 17:38:08

Xyzk
Member
Registered: 2007-04-30
Posts: 44

Re: [Solved]Can`t create internet connection

the error i`ve been talking about:

::starting network
eth0:unknown interface: No such device
                    [FAIL]
::Mounting Network Filesystems        [DONE]

there are drivers ofr linux on the producent webpage, http://www.broadcom.com/support/etherne … nk_k57.php
But I`ve got no idea how to access my pendrive from console. I can copy it to the HDD using PartedMagic liveCD, so I`m most likely going to try this. What`s funny, even though eth0 doesn`t work on parted magic using DHCP, wireless network works perfectly fine :]

#
# /etc/rc.conf - Main Configuration for Arch Linux
#

# -----------------------------------------------------------------------
# LOCALIZATION
# -----------------------------------------------------------------------
#
# LOCALE: available languages can be listed with the 'locale -a' command
# HARDWARECLOCK: set to "UTC" or "localtime", any other value will result
#   in the hardware clock being left untouched (useful for virtualization)
# TIMEZONE: timezones are found in /usr/share/zoneinfo
# KEYMAP: keymaps are found in /usr/share/kbd/keymaps
# CONSOLEFONT: found in /usr/share/kbd/consolefonts (only needed for non-US)
# CONSOLEMAP: found in /usr/share/kbd/consoletrans
# USECOLOR: use ANSI color sequences in startup messages
#
LOCALE="pl_PL.UTF-8"
HARDWARECLOCK="localtime"
TIMEZONE="Europe/Warsaw"
KEYMAP="pl"
CONSOLEFONT=lat2-16.psfu.gz
CONSOLEMAP=
USECOLOR="yes"

# -----------------------------------------------------------------------
# HARDWARE
# -----------------------------------------------------------------------
#
# MOD_AUTOLOAD: Allow autoloading of modules at boot and when needed
# MOD_BLACKLIST: Prevent udev from loading these modules
# MODULES: Modules to load at boot-up. Prefix with a ! to blacklist.
#
# NOTE: Use of 'MOD_BLACKLIST' is deprecated. Please use ! in the MODULES array.
#
MOD_AUTOLOAD="yes"
#MOD_BLACKLIST=() #deprecated
MODULES=()

# Scan for LVM volume groups at startup, required if you use LVM
USELVM="no"

# -----------------------------------------------------------------------
# NETWORKING
# -----------------------------------------------------------------------
#
# HOSTNAME: Hostname of machine. Should also be put in /etc/hosts
#
HOSTNAME="archlinux"

# Use 'ifconfig -a' or 'ls /sys/class/net/' to see all available interfaces.
#
# Interfaces to start at boot-up (in this order)
# Declare each interface then list in INTERFACES
#   - prefix an entry in INTERFACES with a ! to disable it
#   - no hyphens in your interface names - Bash doesn't like it
# 
# DHCP:     Set your interface to "dhcp" (eth0="dhcp")
# Wireless: See network profiles below
#

#Static IP example
#lo="lo 127.0.0.1"
#eth0="eth0 192.168.1.101 netmask 255.255.255.0 broadcast 192.168.1.1"
#INTERFACES=(lo eth0)

# Routes to start at boot-up (in this order)
# Declare each route then list in ROUTES
#   - prefix an entry in ROUTES with a ! to disable it
#
#gateway="default gw 192.168.1.1"
#ROUTES=(!gateway)
#ROUTES=(gateway)
 
# Enable these network profiles at boot-up.  These are only useful
# if you happen to need multiple network configurations (ie, laptop users)
#   - set to 'menu' to present a menu during boot-up (dialog package required)
#   - prefix an entry with a ! to disable it
#
# Network profiles are found in /etc/network.d
#
# This now requires the netcfg package
#
#NETWORKS=(main)

#DHCP
eth0="dhcp"
INTERFACES=(eth0)
gateway="default gw 192.168.0.1"
ROTUES=(!gateway)


# -----------------------------------------------------------------------
# DAEMONS
# -----------------------------------------------------------------------
#
# Daemons to start at boot-up (in this order)
#   - prefix a daemon with a ! to disable it
#   - prefix a daemon with a @ to start it up in the background
#
DAEMONS=(syslog-ng network netfs crond)

Last edited by Xyzk (2010-07-10 17:42:02)

Offline

#10 2010-07-10 17:50:38

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [Solved]Can`t create internet connection

Maybe the name isn't eth0 - it happens.
Add dbus to DAEMONS array

DAEMONS=(syslog-ng dbus network netfs crond)

Post the output of

lspci -v | grep -i -A8 ethernet
dmesg | grep network
su -c "/sbin/mii-tool -vv"

> But I`ve got no idea how to access my pendrive from console.
Do it whatever way you can. If none works - post here.

Offline

#11 2010-07-10 18:25:40

Xyzk
Member
Registered: 2007-04-30
Posts: 44

Re: [Solved]Can`t create internet connection

# lspci -v |grep -i -A8 ethernet
07:00.o Ethernet controller: Broadcom Corporation NetlLink BCM57780 Giagabit Ethernet PCIe (rec 01)
  Subsystem: Lenovo Device 38cf
  Flags: fast devsel, IRQ 18
  Memory at da 100000 (64-bit, non-prefetchable) [size=64K]
  Capabilities: [48] Power Managment version 3
  Capabilities: [60] Vendor Specific version 3
  Capabilities [50] MSI: Enable- Count=1/1 Maskable- 64bit+
  Capabilities: [cc] Express Endpoint, MSI 00
  Capabilities: [100] Advanced Error Reporting

for dmesg

Initializing network drop monitor service

and the last one

No MII interfaces found

Offline

#12 2010-07-10 18:39:29

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [Solved]Can`t create internet connection

> No MII interfaces found
mii won't find gigabit NICs.

Try

lspci -v |grep -i -A20 ethernet
dmesg | grep eth

Do you have dbus in DAEMONS?

Offline

#13 2010-07-10 19:00:42

Xyzk
Member
Registered: 2007-04-30
Posts: 44

Re: [Solved]Can`t create internet connection

dmesg | grep eth
eth%d: No PHY devices

well, I`ve got problem with installing drivers. The readme:

Building Driver From TAR File
=============================

The following are general guidelines for installing the driver.

1. Create a directory and extract the files:

   tar xvzf tg3-<version>.tar.gz

2. Build the driver tg3.o (or tg3.ko) as a loadable module for the
running kernel:

   cd src
   make

The driver will be compiled for the running kernel by default. To build
the driver for a kernel different than the running one, specify the
kernel by defining it in KVER:

  make KVER=<kernel version>

where <kernel version> in the form of 2.x.y-z is the version of another
kernel that is installed on the system.

3. Test the driver by loading it: 

   insmod tg3.o
or
   insmod tg3.ko (on 2.6.x kernels)
or
   insmod tg3

4. Install the driver:

   make install

See RPM instructions above for the location of the installed driver.

5. To configure network protocol and address, refer to various Linux
documentations.

the unpacked file is  in /root/tg3-3.105h directory. I`ve done the cd to that dir, but don`t know what to do now.
the ls output:

Changelog
Makefile (I guess this is what they want me to operate on, it`s not a DIR and I don`t know what to do with it)
README.txt
tg3.c
tg3_compat.h
tg3.h
LICENSE
makeflags.sh
tg3.4
tg3_compat2.h
tg3_firmware.h

There`s also no tg3.o nor tg3.ko file.

Offline

#14 2010-07-10 19:03:07

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [Solved]Can`t create internet connection

What about

lspci -v |grep -i -A20 ethernet

?

readme wrote:

cd src
make

Xyzk wrote:

I`ve done the cd to that dir, but don`t know what to do now.

Maybe 'make'?

Last edited by karol (2010-07-10 19:07:12)

Offline

#15 2010-07-10 19:05:32

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [Solved]Can`t create internet connection

Sorry, nothing to see here.

Last edited by karol (2010-07-10 19:06:31)

Offline

#16 2010-07-10 19:11:36

Xyzk
Member
Registered: 2007-04-30
Posts: 44

Re: [Solved]Can`t create internet connection

make- didn`t  find the command. Can I use modprobe with any of those files?
I will edit this post now to write the output of lspci -v |grep -i -A20 ethernet

07:00.0 Ethernet controller : Broadcom Corporation NetLink BCM57780 Gigabit Ethernet PCIe (rev 01)
  Subsystem: Lenovo Device 38cf
  Flags: fast devsel, IRQ 18
  Memory at da100000 (64-bit, non-prefetchable) [size=64K]
  Capabilities: [48] Power Managment version 3
  Capabilities: [60] Vendor Specific Information: Len=6c <?>
  Capabilities: [50] MSI : Enable- Count=1/1 Maskable- 64bit+
  Capabilities: [cc] Express Enspoint, MSI 00
  Capabilities: [100] Advanced Error Reporting
  Capabilities: [13c] Virtual Channel
  Capabilities: [160] Device Serial Number 70-5a-b6-ff-fe-5b-bf-4b
  Capabilities: [16c] Power Budgeting <?>
  Kernel modules: tg3

ff:00.0 Host bridge: Intel Corporation Core Processor QuickPath Architecture Generic Non-core Register (rev 02)
  Subsystem: Lenovo Device 38e0
  Flags: bus master, fast devsel, latency 0

ff:00.1 Host bridge: Intel Corporation Core Processor QuickPath Architecture System Address Decoder (rev 02)
  Subsystem: Lenovo Device 38e0
  Flags: bus master, fast devsel, latency 0

Last edited by Xyzk (2010-07-10 19:20:16)

Offline

#17 2010-07-10 19:13:33

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [Solved]Can`t create internet connection

> make- didn`t  find the command
You have to install the base-devel group of pacakges from the CD.

Try this

modprobe -r tg3
modprobe broadcom
modprobe tg3

I don't know what that 'touch /var/lock/subsys/local' was for <shrugs>

Last edited by karol (2010-07-10 19:22:41)

Offline

#18 2010-07-10 19:21:06

Xyzk
Member
Registered: 2007-04-30
Posts: 44

Re: [Solved]Can`t create internet connection

edited the previous post

Offline

#19 2010-07-10 19:23:20

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [Solved]Can`t create internet connection

> edited the previous post
So did I :-)

find /lib/modules/ -type f -iname 'tg3.ko' | less

I have the kernel module, so you should too. If you somehow don't, then compile it.

Last edited by karol (2010-07-10 19:28:46)

Offline

#20 2010-07-10 19:34:46

Xyzk
Member
Registered: 2007-04-30
Posts: 44

Re: [Solved]Can`t create internet connection

Yeah. the modprobe gave effect now. I`m gonna change the etc/rc.local file to have this inside.
Ifconfig finds eth0 and wlan0.
Still, it doesn`t want to ping the www.google.com

Offline

#21 2010-07-10 19:36:42

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [Solved]Can`t create internet connection

Post the output of

ifconfig -a

Do you use hal? If not, be sure to use dbus. Is dhcpcd up?

Last edited by karol (2010-07-10 19:37:56)

Offline

#22 2010-07-10 19:48:49

Xyzk
Member
Registered: 2007-04-30
Posts: 44

Re: [Solved]Can`t create internet connection

eth0  Link encap: Ethernet HWaddr 70:5A:B6:5B:BF:4B
  BROADCAST MULTICAST MTU:1500 Metric:1
  RX packets:0 errors:0 dropped:0 overruns:0 frame:0
  TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
  collisions:0 txqueuelen:1000
  RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
  Interrupt: 18

lo                 Link encap: Local Loopback
                    inet addr:127.0.0.1      Mask 255.0.0.0
                    UP LOOPBACK RUNNING MTU:16436 Metric:1
                    RX packets:) errors:0 dropped:0 overruns:0 frame:0
                    TX packets:0 errors: 0 dropped:0 overruns:0 carrier:0
                    collision:0 txqueuelen:0
                    RX bytes:0 (0.0 b)   TX bytes:0 (0.0.b)

wlan0  Link encap:Ethernet HWaddr 00:1E:64:92:12:EA
  BROADCAST MULTICAST MTU:1500 Metric:1
  RX packets:) errors:0 dropped:0 overruns:0 frame:0
  TX packets:0 errors: 0 dropped:0 overruns:0 carrier:0
  collision:0 txqueuelen:1000
  RX bytes:0 (0.0 b)   TX bytes:0 (0.0.b)

Offline

#23 2010-07-10 19:51:47

Xyzk
Member
Registered: 2007-04-30
Posts: 44

Re: [Solved]Can`t create internet connection

Okay, writing command dhcp allowed me to ping google.com.... how to stop it from pinging? it does it all the time, and it`s disturbing even if i can simply press alt+F2.
What I have to change to have this start automatically?

Offline

#24 2010-07-10 19:53:45

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [Solved]Can`t create internet connection

> how to stop it from pinging?
Ctrl -C, the (almost) universal 'kill command' in *nix / linux.

You can use

ping -c 3 www.google.com

to ping just three times - it will exit on it's own.

If you have dhcp in rc.conf, dhcpcd should start on boot.

Last edited by karol (2010-07-10 19:55:41)

Offline

#25 2010-07-10 20:09:08

Xyzk
Member
Registered: 2007-04-30
Posts: 44

Re: [Solved]Can`t create internet connection

Ctrl -C, the (almost) universal 'kill command' in *nix / linux.

Don`t knw why i remembered it was ctrl - q tongue thx.

Last edited by Xyzk (2010-07-10 20:09:38)

Offline

Board footer

Powered by FluxBB