Network Problem
Monday, 10. September 2007, 16:35:54
Yesterday I installed ArchLinux on my Laptop Asus F3U, during the installation I configured the network to use « dhcp », but after I finished and rebooted, the network doesn’t work.
When I did :
I got a time out, I googled for that, and I found that many guys have this problem. By checking the logs I found:
I tried with an Ubuntu 6.10 liveCD, I got that:
The first strange thing was « eth0: link down » , also ArchLinux loads r8169 module for my RTL8168 chiped card. Ubuntu loads the r1000 v1.02 which is a driver for 2.4.x kernels.
So the next step was to get a working driver for my card, Realtek offers their driver at : http://www.realtek.com.tw/downloads/downloadsView.aspx?Langid=1&PNid=13&PFid=5&Level=5&Conn=4&DownTypeID=3&GetDown=false
Dowload the « Linux driver for kernel 2.6.x (Support x86 and x64) » one.
Extract with:
Then, unload the module you have:
Go to the directory of extracted files
Then :
Check if it got loaded successfully
Then use :
You should not see the eth0 (the card you got problem with)
Now we have to make it up
Now you can configure your network for the « dhcp » or static by editing your /etc/rc.conf file (or using network-profiles)
Restart the network
Now It should work
To load the module at each boot you have to edit the /etc/rc.conf file, go to MODULES, put a ‘ !’ before the r8169, and add r8168 to the list, you should have :
MODULES=( !r8169 r8168 …)
Now the module should start at each boot.
When I did :
/etc/rc.d/network restart
I got a time out, I googled for that, and I found that many guys have this problem. By checking the logs I found:
Sep 9 21:16:24 myhost dhcpcd[6061]: eth0: dhcpcd 3.1.3 starting Sep 9 21:16:24 myhost r8169: eth0: link down Sep 9 21:16:24 myhost dhcpcd[6061]: eth0: hardware address = 00:1b:fc:b3:fa:98 Sep 9 21:16:24 myhost dhcpcd[6061]: eth0: broadcasting for a lease Sep 9 21:16:54 myhost dhcpcd[6061]: eth0: timed out Sep 9 21:16:54 myhost dhcpcd[6061]: eth0: trying to use old lease in `/var/lib/dhcpcd/dhcpcd-eth0.info' Sep 9 21:16:54 myhost dhcpcd[6061]: eth0: lease information file `/var/lib/dhcpcd/dhcpcd-eth0.info' does not exist Sep 9 21:16:54 myhost dhcpcd[6061]: eth0: probing for an IPV4LL address Sep 9 21:16:54 myhost dhcpcd[6061]: eth0: checking 169.254.160.80 is available on attached networks Sep 9 21:16:55 myhost dhcpcd[6061]: eth0: adding IP address 169.254.160.80/16 Sep 9 21:17:00 myhost dhcpcd[6062]: eth0: broadcasting for a lease Sep 9 21:17:30 myhost dhcpcd[6062]: eth0: timed out Sep 9 21:17:30 myhost dhcpcd[6062]: eth0: trying to use old lease in `/var/lib/dhcpcd/dhcpcd-eth0.info' Sep 9 21:17:30 myhost dhcpcd[6062]: eth0: checking 169.254.160.80 is available on attached networks Sep 9 21:17:31 myhost dhcpcd[6062]: eth0: adding IP address 169.254.160.80/16 Sep 9 21:17:36 myhost dhcpcd[6062]: eth0: broadcasting for a lease Sep 9 21:18:06 myhost dhcpcd[6062]: eth0: timed out Sep 9 21:18:06 myhost dhcpcd[6062]: eth0: trying to use old lease in `/var/lib/dhcpcd/dhcpcd-eth0.info' Sep 9 21:18:06 myhost dhcpcd[6062]: eth0: checking 169.254.160.80 is available on attached networks Sep 9 21:18:07 myhost dhcpcd[6062]: eth0: adding IP address 169.254.160.80/16 Sep 9 21:18:12 myhost dhcpcd[6062]: eth0: broadcasting for a lease Sep 9 21:18:42 myhost dhcpcd[6062]: eth0: timed out Sep 9 21:18:42 myhost dhcpcd[6062]: eth0: trying to use old lease in `/var/lib/dhcpcd/dhcpcd-eth0.info' Sep 9 21:18:42 myhost dhcpcd[6062]: eth0: checking 169.254.160.80 is available on attached networks Sep 9 21:18:43 myhost dhcpcd[6062]: eth0: adding IP address 169.254.160.80/16 Sep 9 21:18:48 myhost dhcpcd[6062]: eth0: broadcasting for a lease
I tried with an Ubuntu 6.10 liveCD, I got that:
[17179632.772000] eth0: Identified chip type is 'RTL8168B/8111B'. [17179632.772000] eth0: r10001.02, the Linux device driver for Realtek Ethernet Controllers at 0xb800, 00:1b:fc:b3:fa:98, IRQ 217 [17179632.772000] eth0: Auto-negotiation Enabled. [17179632.780000] ath_hal: module license 'Proprietary' taints kernel. [17179640.460000] Realtek RTL8168/8111 Family PCI-E Gigabit Ethernet Network Adapter [17179640.460000] Driver version:1.02 [17179640.460000] Released date:2006/02/23 [17179640.460000] Link Status:Not Linked [17179640.460000] I/O Base:0xB800(I/O port) [17179640.460000] IRQ:217 [17179640.460000] ath_hal: 0.9.17.2 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413, RF5413) [17179640.624000] wlan: 0.8.4.2 (0.9.2)
The first strange thing was « eth0: link down » , also ArchLinux loads r8169 module for my RTL8168 chiped card. Ubuntu loads the r1000 v1.02 which is a driver for 2.4.x kernels.
So the next step was to get a working driver for my card, Realtek offers their driver at : http://www.realtek.com.tw/downloads/downloadsView.aspx?Langid=1&PNid=13&PFid=5&Level=5&Conn=4&DownTypeID=3&GetDown=false
Dowload the « Linux driver for kernel 2.6.x (Support x86 and x64) » one.
Extract with:
# tar vjxf r8168-8.003.00.tar.bz2
Then, unload the module you have:
# rmmod r8169
Go to the directory of extracted files
# cd cd r8168-8.003.00
Then :
# make clean modules # make install # depmod -a # insmod ./src/r8168.ko
Check if it got loaded successfully
# lsmod | grep r8168
Then use :
# ifconfig –a
You should not see the eth0 (the card you got problem with)
Now we have to make it up
# ifconfig eth0 up
Now you can configure your network for the « dhcp » or static by editing your /etc/rc.conf file (or using network-profiles)
Restart the network
#/etc/rc.d/network restart
Now It should work
To load the module at each boot you have to edit the /etc/rc.conf file, go to MODULES, put a ‘ !’ before the r8169, and add r8168 to the list, you should have :
MODULES=( !r8169 r8168 …)
Now the module should start at each boot.
Hello, thank you for posting the solution to this problem, I had a similar one with my motherboard. I have one question. I edited modules like you said in my rc.conf file, but when I restart my machine the r8169 module is still being loaded... is there any reason why this should happen?
By anonymous user, # 18. October 2007, 17:36:30
By knuthy, # 30. October 2007, 17:40:43
aRARGHAGHGA i have/had this problem ,just searched up on it and found ur help. Should work now. I'll reply from linux IF i get it working...
By anonymous user, # 28. November 2007, 06:16:08
YAY it works im posting from linux and i am very happy. Ur tutorial was awsome and now it works.
By anonymous user, # 28. November 2007, 06:28:07
i m facing same problem . i m working on host--linux and board -at91sam9261.
getting this problem-----
U-Boot> tftp 21400000 uImage_at91sam9261.bin
dm9000 i/o: 0x30000000, id: 0x90000a46
MAC: 12:34:56:78:9a:bc
operating at 100M full duplex mode
TFTP from server 192.168.10.101; our IP address is 192.168.10.54
Filename 'uImage_at91sam9261.bin'.
Load address: 0x21400000
Loading: T T T T T T T T T T ###################################################
##T ###############################################################
#####T ############################################################
###T ##############################################################
######T ############
done
Bytes transferred = 1421408 (15b060 hex)
U-Boot> bootm 21400000
## Booting image at 21400000 ...
Image Name: Linux-2.6.20.11
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 1421344 Bytes = 1.4 MB
Load Address: 20008000
Entry Point: 20008000
Verifying Checksum ... OK
OK
Starting kernel ...
Uncompressing Linux.............................................................
Linux version 2.6.20.11 (root@bslave2-4.timesys.com) (gcc version 4.1.1) #1 Mon7
CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=00053177
Machine: Atmel AT91SAM9261-EK
Ignoring unrecognised tag 0x54410008
Memory policy: ECC disabled, Data cache writeback
Clocks: CPU 198 MHz, master 99 MHz, main 18.432 MHz
CPU0: D VIVT write-back cache
CPU0: I cache: 16384 bytes, associativity 4, 32 byte lines, 128 sets
CPU0: D cache: 16384 bytes, associativity 4, 32 byte lines, 128 sets
Built 1 zonelists. Total pages: 16256
Kernel command line: mem=64M console=ttyS0,115200 root=/dev/nfs ip=bootp rw
AT91: 96 gpio irqs in 3 banks
PID hash table entries: 256 (order: 8, 1024 bytes)
Console: colour dummy device 80x30
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory: 64MB = 64MB total
Memory: 61952KB available (2604K code, 243K data, 104K init)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
NET: Registered protocol family 16
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 2048 (order: 1, 8192 bytes)
TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
TCP: Hash tables configured (established 2048 bind 1024)
TCP reno registered
NetWinder Floating Point Emulator V0.97 (double precision)
audit: initializing netlink socket (disabled)
audit(0.510:1): initialized
NTFS driver 2.1.28 [Flags: R/O].
JFFS2 version 2.2. (NAND) (SUMMARY) (C) 2001-2006 Red Hat, Inc.
io scheduler noop registered
io scheduler anticipatory registered (default)
atmel_lcdfb atmel_lcdfb.0: 150KiB frame buffer at 23cc0000 (mapped at ffc00000)
atmel_lcdfb atmel_lcdfb.0: fb0: Atmel LCDC at 0x00600000 (mapped at c485c000), 1
atmel_usart.0: ttyS0 at MMIO 0xfefff200 (irq = 1) is a ATMEL_SERIAL
RAMDISK driver initialized: 16 RAM disks of 8192K size 1024 blocksize
dm9000 Ethernet Driver
eth0: dm9000 at c485e000,c4860044 IRQ 107 MAC: 12:34:56:78:9a:bc
NAND device: Manufacturer ID: 0xec, Chip ID: 0xda (Samsung NAND 256MiB 3,3V 8-b)
Scanning device for bad blocks
Bad eraseblock 265 at 0x02120000
Bad eraseblock 403 at 0x03260000
Bad eraseblock 491 at 0x03d60000
Bad eraseblock 493 at 0x03da0000
Bad eraseblock 645 at 0x050a0000
Bad eraseblock 689 at 0x05620000
Bad eraseblock 803 at 0x06460000
Bad eraseblock 824 at 0x06700000
Bad eraseblock 1515 at 0x0bd60000
Bad eraseblock 1517 at 0x0bda0000
atmel_spi atmel_spi.0: Atmel SPI Controller at 0xfffc8000 (irq 12)
mtd_dataflash spi0.0: AT45DB642x (8448 KBytes)
usbmon: debugfs is not available
at91_ohci at91_ohci: AT91 OHCI
at91_ohci at91_ohci: new USB bus registered, assigned bus number 1
at91_ohci at91_ohci: irq 20, io mem 0x00500000
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
udc: at91_udc version 3 May 2006
mice: PS/2 mouse device common for all mice
ads7846 spi0.2: touchscreen, irq 29
input: ADS784x Touchscreen as /class/input/input0
i2c /dev entries driver
at91_i2c at91_i2c: AT91 i2c bus driver.
Advanced Linux Sound Architecture Driver Version 1.0.14rc1 (Tue Jan 09 09:56:17.
ALSA device list:
#0: AT73C213
TCP cubic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
eth0: link down
Sending BOOTP requests .<6>eth0: link up, 100Mbps, full-duplex, lpa 0x43E1
..... timed out!
IP-Config: Reopening network devices...
eth0: link down
Sending BOOTP requests .<6>eth0: link up, 100Mbps, full-duplex, lpa 0x43E1
..
plz help me what shud i do..???????????????????/
By anonymous user, # 30. November 2007, 07:19:51
???? no reply...!!
By anonymous user, # 1. December 2007, 04:27:42