You are not logged in.
i install the latest slitaz rolling on my ext3 usb using tazusb
i set network.conf look below:
# /etc/network.conf: SliTaz system wide networking configuration.
# Config file used by: /etc/init.d/network.sh
#
# Set default interface.
INTERFACE="eth0"
# Dynamic IP address.
# Enable/disable DHCP client at boot time.
DHCP="no"
# Static IP address.
# Enable/disable static IP at boot time.
STATIC="yes"
# Set IP address and netmask for a static IP.
IP="172.22.40.145"
NETMASK="255.255.255.0"
# Set broadcast address
BROADCAST="172.22.40.145"
# Set route gateway for a static IP.
GATEWAY="172.22.40.1"
# Set domain name
DOMAIN=""
# Set DNS server for a static IP.
DNS_SERVER="202.106.0.20"
it is the same with my another windows7 where i can access the internet.
below is some information about my network config in the slitaz:
root@slitaz:/home/tux# lspci | grep [Ee]th
02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 06)
root@slitaz:/home/tux# uname -a
Linux slitaz 3.2.53-slitaz #4 SMP Wed Feb 11 12:43:16 CET 2015 i686 GNU/Linux
root@slitaz:/home/tux# /etc/init.d/network.sh restart
stopping all interfaces
ifconfig: SIOCGIFFLAGS: No such device
Killing all daemons
killall: udhcpc: no process killed
wlan0 No such device
Configuring static IP on eth0: 172.22.40.145...
root@slitaz:/home/tux# ifconfig
eth0 Link encap:Ethernet HWaddr 44:8A:5B:4A:C7:F0
inet addr:172.22.40.145 Bcast:172.22.40.145 Mask:255.255.255.0
UP 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:17 Base address:0x4000
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:7238 errors:0 dropped:0 overruns:0 frame:0
TX packets:7238 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1123395 (1.0 MiB) TX bytes:1123395 (1.0 MiB)
tux@slitaz:~$ route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default 172.22.40.1 0.0.0.0 UG 0 0 0 eth0
127.0.0.0 * 255.0.0.0 U 0 0 0 lo
172.22.40.0 * 255.255.255.0 U 0 0 0 eth0
root@slitaz:/home/tux# arp
? (172.22.40.1) at <incomplete> on eth0
root@slitaz:/home/tux# arp -a
? (172.22.40.1) at <incomplete> on eth0
root@slitaz:/home/tux# ls /sys/class/net
dummy0 eth0 lo tunl0
root@slitaz:/home/tux# lspci -nn
00:00.0 Host bridge [0600]: Intel Corporation Xeon E3-1200 v2/3rd Gen Core processor DRAM Controller [8086:0150] (rev 09)
00:02.0 VGA compatible controller [0300]: Intel Corporation Xeon E3-1200 v2/3rd Gen Core processor Graphics Controller [8086:0152] (rev 09)
00:16.0 Communication controller [0780]: Intel Corporation 6 Series/C200 Series Chipset Family MEI Controller #1 [8086:1c3a] (rev 04)
00:1a.0 USB controller [0c03]: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #2 [8086:1c2d] (rev 04)
00:1b.0 Audio device [0403]: Intel Corporation 6 Series/C200 Series Chipset Family High Definition Audio Controller [8086:1c20] (rev 04)
00:1c.0 PCI bridge [0604]: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 1 [8086:1c10] (rev b4)
00:1c.5 PCI bridge [0604]: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 6 [8086:1c1a] (rev b4)
00:1d.0 USB controller [0c03]: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #1 [8086:1c26] (rev 04)
00:1f.0 ISA bridge [0601]: Intel Corporation H61 Express Chipset Family LPC Controller [8086:1c5c] (rev 04)
00:1f.2 SATA controller [0106]: Intel Corporation 6 Series/C200 Series Chipset Family SATA AHCI Controller [8086:1c02] (rev 04)
00:1f.3 SMBus [0c05]: Intel Corporation 6 Series/C200 Series Chipset Family SMBus Controller [8086:1c22] (rev 04)
02:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev 06)
root@slitaz:/home/tux# lsmod
Module Size Used by Not tainted
ipv6 178458 20
snd_hda_codec_realtek 134559 1
i915 262075 2
i2c_algo_bit 3627 1 i915
drm_kms_helper 17504 1 i915
snd_hda_intel 16713 1
drm 118562 2 i915,drm_kms_helper
snd_hda_codec 45592 2 snd_hda_codec_realtek,snd_hda_intel
snd_hwdep 3811 1 snd_hda_codec
snd_pcm 42934 2 snd_hda_intel,snd_hda_codec
snd_page_alloc 4673 2 snd_hda_intel,snd_pcm
snd_timer 12073 1 snd_pcm
intel_agp 7912 1 i915
snd 33335 8 snd_hda_codec_realtek,snd_hda_intel,snd_hda_codec,snd_hwdep,snd_pcm,snd_timer
intel_gtt 9087 3 i915,intel_agp
agpgart 17571 3 drm,intel_agp,intel_gtt
i2c_core 12294 4 i915,i2c_algo_bit,drm_kms_helper,drm
soundcore 3258 1 snd
wmi 5839 0
video 9495 1 i915
button 3286 1 i915
tux@slitaz:~$ dmesg | grep -i eth0
r8169 0000:02:00.0: eth0: RTL8168e/8111e at 0xf8024000, 44:8a:5b:4a:c7:f0, XID 0c200000 IRQ 17
r8169 0000:02:00.0: eth0: jumbo features [frames: 9200 bytes, tx checksumming: ko]
r8169 0000:02:00.0: eth0: unable to load firmware patch rtl_nic/rtl8168e-2.fw (-2)
r8169 0000:02:00.0: eth0: link down
r8169 0000:02:00.0: eth0: link down
ADDRCONF(NETDEV_UP): eth0: link is not ready
r8169 0000:02:00.0: eth0: link down
ADDRCONF(NETDEV_UP): eth0: link is not ready
r8169 0000:02:00.0: eth0: link down
ADDRCONF(NETDEV_UP): eth0: link is not ready
r8169 0000:02:00.0: eth0: link down
ADDRCONF(NETDEV_UP): eth0: link is not ready
r8169 0000:02:00.0: eth0: link down
ADDRCONF(NETDEV_UP): eth0: link is not ready
r8169 0000:02:00.0: eth0: link down
ADDRCONF(NETDEV_UP): eth0: link is not ready
r8169 0000:02:00.0: eth0: link down
ADDRCONF(NETDEV_UP): eth0: link is not ready
r8169 0000:02:00.0: eth0: link down
ADDRCONF(NETDEV_UP): eth0: link is not ready
r8169 0000:02:00.0: eth0: link down
ADDRCONF(NETDEV_UP): eth0: link is not ready
r8169 0000:02:00.0: eth0: link down
ADDRCONF(NETDEV_UP): eth0: link is not ready
r8169 0000:02:00.0: eth0: link down
ADDRCONF(NETDEV_UP): eth0: link is not ready
r8169 0000:02:00.0: eth0: link down
ADDRCONF(NETDEV_UP): eth0: link is not ready
r8169 0000:02:00.0: eth0: link down
ADDRCONF(NETDEV_UP): eth0: link is not ready
r8169 0000:02:00.0: eth0: link down
r8169 0000:02:00.0: eth0: link down
ADDRCONF(NETDEV_UP): eth0: link is not ready
when i ping 8.8.8.8 or http://www.slitaz.org or 172.22.40.1, there is no reaction.
please help me !!!!!!
Offline
then i do something other
root@slitaz:/home/tux# tazhw detect-pci
Detected PCI devices Kernel modules
================================================================================
! Missing module : agpgart_intel
> Module in use : i915
* Builtin module : ehci_hcd
> Module in use : snd_hda_intel
* Builtin module : pcieport
* Builtin module : ehci_hcd
* Builtin module : ahci
* Builtin module : r8169
so i can see it use the driver i915, i think i can not access the internet may be because it do not match the network card
i wanna test the driver r8169
but when i use:
root@slitaz:/home/tux# modprobe r8169
root@slitaz:/home/tux#
there is nothing happen, and when i use ismod, the moudle r8169 does not load
so i think i must remove i915 first:
root@slitaz:/home/tux# modprobe -r i915
it tells moudle i915 is in use
Offline
The r8169 driver is built into the kernel.
I have an older version with the same pciids and it works.
04:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev 02)
I see 2 possible problems:
The IP and BROADCAST address are the same.
I always configure BROADCAST address to end in 255, yours ends in 145
/etc/network.conf make BROADCAST="172.22.40.255"
Restart networking:
Open terminal, su, password: root
[c]stopd network.sh[/c]
[c]startd network.sh[/c]
Test by pinging gateway
[c]ping 172.22.40.1[/c]
If that fails install missing firmware:
r8169 0000:02:00.0: eth0: unable to load firmware patch rtl_nic/rtl8168e-2.fw (-2)
Download firmware: ftp://cook.slitaz.org/firmware/install/lib/firmware/rtl_nic/rtl8168e-2.fw
[c]mkdir /lib/firmware/rtl_nic[/c]
[c]cp rtl8168e-2.fw /lib/firmware/rtl_nic[/c]
Reboot/check dmesg to verify firmware error message is gone.
Restart networking.
Ping gateway to test.
Offline
i am a newbie of linux and slitaz
i think the r8169 driver is built into the kernel too.
root@slitaz:/home/tux# modinfo r8169
modinfo: ERROR: Module r8169 not found.
does it mean the r8169 driver is built into or not ?
does it say the driver of the netword card is i915 at this time from the information ?
how can i change the driver of the netword card?
should i disable or remove the i915 driver? and how?
root@slitaz:/home/tux# modprobe -r i915
it tells moudle i915 is in use
root@slitaz:/home/tux# rmmod -f i915
rmmod: ERROR: could not remove 'i915': Resource temporarily unavailable
rmmod: ERROR: could not remove module i915: Resource temporarily unavailable
Offline
The i915 driver is intel graphics Direct Rendering Module.
i915 has nothing to do with the ethernet card and connecting to the internet.
Information from lspci -vnn | tail
04:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev 02)
Subsystem: Gigabyte Technology Co., Ltd Motherboard [1458:e000]
Flags: bus master, fast devsel, latency 0, IRQ 17
I/O ports at d000 [size=256]
Memory at ea010000 (64-bit, prefetchable) [size=4K]
Memory at ea000000 (64-bit, prefetchable) [size=64K]
[virtual] Expansion ROM at ea020000 [disabled] [size=64K]
Capabilities: <access denied>
Kernel driver in use: r8169
tux@slitaz:~$ zcat /proc/config.gz | grep -i r8169
CONFIG_R8169=y
The kernel is compiled with r8169 built in (y) if it was a module it would be (m)
Please follow the directions in my previous reply.
Offline
thank you for reply, i will do what you said
i just donot understand if there is no driver for my network card,how the slitaz recognizes the card(with which driver) and why 'eth0' appears
Offline
i do the first step as you said
make BROADCAST="172.22.40.255" and restart the network
when i ping 172.22.40.1 there is no reaction and i can not access the internet.
as you said the r8169 driver is built in
root@slitaz:/home/tux# find /sys/bus/pci/drivers/ | grep $(lspci | grep Ethernet | head -1 | awk '{print $1}') | awk -F/ '{print $6}'
it tells r8169
so slitaz recognizes the card with the r8169 driver
but i have some questions:
why i use 'lsmod' there is no r8168?
when i use 'modinfo r8169' it tells Module r8169 not found
root@slitaz:/home/tux# tazhw detect-pci
Detected PCI devices Kernel modules
===================================================
! Missing module : agpgart_intel
> Module in use : i915
* Builtin module : ehci_hcd
> Module in use : snd_hda_intel
* Builtin module : pcieport
* Builtin module : ehci_hcd
* Builtin module : ahci
* Builtin module : r8169
why the module r8169 is not used?
Offline
now i test your the second step
Download rtl8168e-2.fw
mkdir /lib/firmware/rtl_nic
cp rtl8168e-2.fw /lib/firmware/rtl_nic
Reboot and Restart networking.
but it does not work also.
Offline
Is the error gone?
eth0: unable to load firmware patch rtl_nic/rtl8168e-2.fw
Offline
tux@slitaz:~$ dmesg | grep -i eth0
r8169 0000:02:00.0: eth0: RTL8168e/8111e at 0xf8024000, 44:8a:5b:4a:c7:f0, XID 0c200000 IRQ 17
r8169 0000:02:00.0: eth0: jumbo features [frames: 9200 bytes, tx checksumming: ko]
r8169 0000:02:00.0: eth0: unable to load firmware patch rtl_nic/rtl8168e-2.fw (-2)
r8169 0000:02:00.0: eth0: link down
r8169 0000:02:00.0: eth0: link down
ADDRCONF(NETDEV_UP): eth0: link is not ready
Offline
Download rtl8168e-2.fw
mkdir /lib/firmware/rtl_nic
cp rtl8168e-2.fw /lib/firmware/rtl_nic
can the rtl8168e-2.fw be loaded auto ?
should i do something like depmod or modprobe?
Offline
We're at a dead end for now. I'm going to recompile the kernel so r8169 is a kernel module. With r8169 builtin there is no way to manually load the driver(modprobe) or disable(blacklisted).I will also add the rtl_nic firmware to the linux-firmware package which is installed on the live cd. If you still can't get it to work you can try the realtek driver and we can blacklist r8169.
I'll report back when the rolling has these changes for you to try.
Offline
whick version of slitaz with less problem? cooking stable or rolling ?
Offline
now i find the error is missing
root@slitaz:/home/tux# dmesg |grep eth0
r8169 0000:02:00.0: eth0: RTL8168e/8111e at 0xf8024000, 44:8a:5b:4a:c7:f0, XID 0c200000 IRQ 17
r8169 0000:02:00.0: eth0: jumbo features [frames: 9200 bytes, tx checksumming: ko]
r8169 0000:02:00.0: eth0: link down
r8169 0000:02:00.0: eth0: link down
ADDRCONF(NETDEV_UP): eth0: link is not ready
r8169 0000:02:00.0: eth0: link down
ADDRCONF(NETDEV_UP): eth0: link is not ready
root@slitaz:/home/tux# ethtool -i eth0
driver: r8169
version: 2.3LK-NAPI
firmware-version: rtl_nic/rtl8168e-2.fw
bus-info: 0000:02:00.0
supports-statistics: yes
supports-test: no
supports-eeprom-access: no
supports-register-dump: yes
supports-priv-flags: no
but i still can not access the internet
may be there is still a proble with the r8169 driver
Offline
Install 3.2.53 32bit kernel which provides r8169.ko.xz module enabling unloading/blacklisting.
http://download.tuxfamily.org/slitaz/packages/5.0/linux-3.2.53.tazpkg
Install rtl_nic firmware package.
http://download.tuxfamily.org/slitaz/packages/5.0/firmware-rtlnic-20141201.tazpkg
Install attached r8168-3.2.53.tazpkg containing r8168-8.039.00 driver compiled on Slitaz-5.0 with 3.2.53 32bit kernel.
As root user blacklist r8169 from loading:
[c]echo "install r8169 /bin/true" > /etc/modprobe.d/r8169.conf[/c]
Reboot
Comments:
Wake-on-lan which is broken with r8169 driver running on 3.0 kernels works with r8168
Offline
[ Generated in 0.017 seconds, 11 queries executed - Memory usage: 1.59 MiB (Peak: 1.77 MiB) ]