SliTaz SliTaz Forum

You are not logged in.

#1 2017-02-04 08:30:30

totoetsasoeur
Moderator
Registered: 2011-03-29
Posts: 247

Slitaz rolling - USB flash live - trouble with eth0

Hi guys,

Having trouble to get my eth0 internet working.

The kernel version:

[c]tux@slitaz:~$ uname -a
Linux slitaz 3.2.71-slitaz #4 SMP Sat Oct 22 01:37:29 CEST 2016 i686 GNU/Linux[/c]
dmesg returns nothing:

[c]tux@slitaz:~$ dmesg | grep -i eth
tux@slitaz:~$[/c]
ifconfig does not even mention eth0 (but dumm0):

[c]tux@slitaz:~$ ifconfig -a
dumm0 Link encap: Ethernet HWaddr 9E:82:E3:0A:68:9C
      BROADCAST NOARP MMTU:1500 Metric:1
      RX packets:0 errors:0 dropped:0 overruns:0 frame:0
      TX packets:0 errors:0 dropped:0 overruns:0 frame:0
      collisions:0 txqueuelen:0
      RX bytes:0 (0,0 B) TX bytes:0 (0,0 B)

lo    Link encap: local loopback
      ....

tunl0 Link encap: UNSPEC HWaddr 00-00-00-00-00-...
      ...[/c]
lspci returns nothing:

[c]tux@slitaz:~$ lspci -nn | grep -i eth
tux@slitaz:~$[/c]
Does anyone know what is going wrong here? And how to solve this?

Thx

Offline

#2 2017-02-04 08:54:11

mojo
Administrator
Registered: 2011-03-29
Posts: 2,174

Re: Slitaz rolling - USB flash live - trouble with eth0

You have to install pciutils to get human-readable output from lspci command.

Bellard removed it from the packages.list of every flavor.

http://hg.slitaz.org/flavors/rev/13e9b291c4ef

The busybox version only outputs binary info.

Offline

#3 2017-02-04 09:02:11

totoetsasoeur
Moderator
Registered: 2011-03-29
Posts: 247

Re: Slitaz rolling - USB flash live - trouble with eth0

Thx mojo, but to install something, I need eth0 working .... Too bad :-(

Offline

#4 2017-02-04 09:12:27

mojo
Administrator
Registered: 2011-03-29
Posts: 2,174

Re: Slitaz rolling - USB flash live - trouble with eth0

Post the full output:

[c]ls /sys/class/net[/c]

[c]lspci[/c]

[c]lsmod[/c]

Offline

#5 2017-02-04 09:32:31

totoetsasoeur
Moderator
Registered: 2011-03-29
Posts: 247

Re: Slitaz rolling - USB flash live - trouble with eth0

Thx mojo, for info:

- I must copy "by hand from one pc (no internet) to second one. So I "cut" the output...

- This is the official slitaz-rolling iso, so all the module must be already known. No?

[c]tux@slitaz:~$ ls /sys/class/net/
dummy0 lo tunl0[/c]
[c]tux@slitaz:~$ lspci
00:00.0 Class 0600: 8086:0c04
00:01.0 Class 0604: 8086:0c01
...[/c]
[c]tux@slitaz:~$ lsmod
Module                      Size Usedby
snd_hda_codec_realtek
ipv6
nouveau
mxm_wmi
i2c_algo_bit
ttm
drm_kms_helper
snd_hda_intel
drm
snd_hda_codec
snd_hwdep
snd_pcm
xhci_hcd
snd_page_alloc
snd_timer
snd
agpgart
hwmon
i2c_core
soundcore
wmi
video
button[/c]
Let's hope you can still help me with those partial output.

Offline

#6 2017-02-04 09:51:53

mojo
Administrator
Registered: 2011-03-29
Posts: 2,174

Re: Slitaz rolling - USB flash live - trouble with eth0

What you posted has no info related to an ethernet adapter.

You will need to identify the ethernet adapter, download the driver, and compile/install the driver.

Use a USB flash drive to transfer files/software between the computer with internet access to the computer without.

Offline

#7 2017-02-04 12:40:04

totoetsasoeur
Moderator
Registered: 2011-03-29
Posts: 247

Re: Slitaz rolling - USB flash live - trouble with eth0

Yes mojo, that's the point. Does that mean no driver for this ethernet board inside slitaz-rolling? Let's see. ;-)

For info, the ethernet board is: Intel I217-LM (VENDOR ID: VEN8086, DEVICE ID: DEV153A)

The latest Linux driver available for download from intel website is: e1000e-3.3.5.3.tar.gz => needs to compile, which needs slitaz-toolchain package which needs internet to install... :-/

So lets check if the module is already available in this live session:

[c]tux@slitaz: zcat /proc/config.gz | grep E1000
CONFIG_E1000=m
CONFIG_E1000e=m[/c]
=> yes module is here. So load it:

[c]root@slitaz:/home/tux# modprobe -v e1000e[/c]
=> verify that module is loaded: 

[c]root@slitaz:/home/tux# lsmod
Module                  Size    Usedby
e1000e                104780    0
....[/c]
=> then, next error: grrr!

[c]root@slitaz:/home/tux# ifconfig eth0 up
ifconfig: SIOCGIFFLAGS: No such device[/c]
What am I missing here?

`

Offline

#8 2017-02-04 17:59:17

mojo
Administrator
Registered: 2011-03-29
Posts: 2,174

Re: Slitaz rolling - USB flash live - trouble with eth0

Slitaz kernel 3.2.71 e1000e has no support for i217 ethernet controller.

Ethernet support was added to e1000e driver for i217 ethernet controller in 3.5 kernel series.

The out-of-tree driver is required to use i217 with the 3.2.71 kernel

Reference:

https://kernelnewbies.org/Linux_3.5_DriverArch

http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=2fbe4526e5aafc9ffa5d85fa4749a7c5b22af6b2

Install attached e1000e-3.3.5.3_3.2.71.tazpkg

If in-kernel e1000e is auto loading [c]rmmod e1000e[/c]

[c]modprobe e1000e[/c] to load new 3.3.5.3 module.

Info from my system after installing e1000e-3.3.5.3_3.2.71.tazpkg.

tazpkg list-files e1000e :

Installed files by "e1000e"

================================================================================

/lib/modules/3.2.71-slitaz/updates/kernel/drivers/net/ethernet/intel/e1000e/e1000e.ko

================================================================================

1 file

dmesg:

e1000e: Intel(R) PRO/1000 Network Driver - 3.3.5.3-NAPI

e1000e: Copyright(c) 1999 - 2016 Intel Corporation.

modinfo:

filename:       /lib/modules/3.2.71-slitaz/updates/kernel/drivers/net/ethernet/intel/e1000e/e1000e.ko

version:        3.3.5.3-NAPI

license:        GPL

description:    Intel(R) PRO/1000 Network Driver

author:         Intel Corporation, <linux.nics@intel.com>

srcversion:     253EF7080435DCF3B23E8BF

alias:          pci:v00008086d000015D6sv*sd*bc*sc*i*

alias:          pci:v00008086d000015E3sv*sd*bc*sc*i*

alias:          pci:v00008086d000015D8sv*sd*bc*sc*i*

alias:          pci:v00008086d000015D7sv*sd*bc*sc*i*

alias:          pci:v00008086d000015B9sv*sd*bc*sc*i*

alias:          pci:v00008086d000015B8sv*sd*bc*sc*i*

alias:          pci:v00008086d000015B7sv*sd*bc*sc*i*

alias:          pci:v00008086d00001570sv*sd*bc*sc*i*

alias:          pci:v00008086d0000156Fsv*sd*bc*sc*i*

alias:          pci:v00008086d000015A3sv*sd*bc*sc*i*

alias:          pci:v00008086d000015A2sv*sd*bc*sc*i*

alias:          pci:v00008086d000015A1sv*sd*bc*sc*i*

alias:          pci:v00008086d000015A0sv*sd*bc*sc*i*

alias:          pci:v00008086d00001559sv*sd*bc*sc*i*

alias:          pci:v00008086d0000155Asv*sd*bc*sc*i*

alias:          pci:v00008086d0000153Bsv*sd*bc*sc*i*

alias:          pci:v00008086d0000153Asv*sd*bc*sc*i*

alias:          pci:v00008086d00001503sv*sd*bc*sc*i*

alias:          pci:v00008086d00001502sv*sd*bc*sc*i*

alias:          pci:v00008086d000010F0sv*sd*bc*sc*i*

alias:          pci:v00008086d000010EFsv*sd*bc*sc*i*

alias:          pci:v00008086d000010EBsv*sd*bc*sc*i*

alias:          pci:v00008086d000010EAsv*sd*bc*sc*i*

alias:          pci:v00008086d00001525sv*sd*bc*sc*i*

alias:          pci:v00008086d000010DFsv*sd*bc*sc*i*

alias:          pci:v00008086d000010DEsv*sd*bc*sc*i*

alias:          pci:v00008086d000010CEsv*sd*bc*sc*i*

alias:          pci:v00008086d000010CDsv*sd*bc*sc*i*

alias:          pci:v00008086d000010CCsv*sd*bc*sc*i*

alias:          pci:v00008086d000010CBsv*sd*bc*sc*i*

alias:          pci:v00008086d000010F5sv*sd*bc*sc*i*

alias:          pci:v00008086d000010BFsv*sd*bc*sc*i*

alias:          pci:v00008086d000010E5sv*sd*bc*sc*i*

alias:          pci:v00008086d0000294Csv*sd*bc*sc*i*

alias:          pci:v00008086d000010BDsv*sd*bc*sc*i*

alias:          pci:v00008086d000010C3sv*sd*bc*sc*i*

alias:          pci:v00008086d000010C2sv*sd*bc*sc*i*

alias:          pci:v00008086d000010C0sv*sd*bc*sc*i*

alias:          pci:v00008086d00001501sv*sd*bc*sc*i*

alias:          pci:v00008086d00001049sv*sd*bc*sc*i*

alias:          pci:v00008086d0000104Dsv*sd*bc*sc*i*

alias:          pci:v00008086d0000104Bsv*sd*bc*sc*i*

alias:          pci:v00008086d0000104Asv*sd*bc*sc*i*

alias:          pci:v00008086d000010C4sv*sd*bc*sc*i*

alias:          pci:v00008086d000010C5sv*sd*bc*sc*i*

alias:          pci:v00008086d0000104Csv*sd*bc*sc*i*

alias:          pci:v00008086d000010BBsv*sd*bc*sc*i*

alias:          pci:v00008086d00001098sv*sd*bc*sc*i*

alias:          pci:v00008086d000010BAsv*sd*bc*sc*i*

alias:          pci:v00008086d00001096sv*sd*bc*sc*i*

alias:          pci:v00008086d0000150Csv*sd*bc*sc*i*

alias:          pci:v00008086d000010F6sv*sd*bc*sc*i*

alias:          pci:v00008086d000010D3sv*sd*bc*sc*i*

alias:          pci:v00008086d0000109Asv*sd*bc*sc*i*

alias:          pci:v00008086d0000108Csv*sd*bc*sc*i*

alias:          pci:v00008086d0000108Bsv*sd*bc*sc*i*

alias:          pci:v00008086d0000107Fsv*sd*bc*sc*i*

alias:          pci:v00008086d0000107Esv*sd*bc*sc*i*

alias:          pci:v00008086d0000107Dsv*sd*bc*sc*i*

alias:          pci:v00008086d000010B9sv*sd*bc*sc*i*

alias:          pci:v00008086d000010D5sv*sd*bc*sc*i*

alias:          pci:v00008086d000010DAsv*sd*bc*sc*i*

alias:          pci:v00008086d000010D9sv*sd*bc*sc*i*

alias:          pci:v00008086d00001060sv*sd*bc*sc*i*

alias:          pci:v00008086d000010A5sv*sd*bc*sc*i*

alias:          pci:v00008086d000010BCsv*sd*bc*sc*i*

alias:          pci:v00008086d000010A4sv*sd*bc*sc*i*

alias:          pci:v00008086d0000105Fsv*sd*bc*sc*i*

alias:          pci:v00008086d0000105Esv*sd*bc*sc*i*

depends:

vermagic:       3.2.71-slitaz SMP mod_unload 386

parm:           copybreak:Maximum size of packet that is copied to a new buffer on receive (uint)

parm:           TxIntDelay:Transmit Interrupt Delay (array of int)

parm:           TxAbsIntDelay:Transmit Absolute Interrupt Delay (array of int)

parm:           RxIntDelay:Receive Interrupt Delay (array of int)

parm:           RxAbsIntDelay:Receive Absolute Interrupt Delay (array of int)

parm:           InterruptThrottleRate:Interrupt Throttling Rate (array of int)

parm:           IntMode:Interrupt Mode (array of int)

parm:           SmartPowerDownEnable:Enable PHY smart power down (array of int)

parm:           KumeranLockLoss:Enable Kumeran lock loss workaround (array of int)

parm:           CrcStripping:Enable CRC Stripping, disable if your BMC needs the CRC (array of int)

parm:           EEE:Enable/disable on parts that support the feature (array of int)

parm:           Node:[ROUTING] Node to allocate memory on, default -1 (array of int)

parm:           debug:Debug level (0=none,...,16=all) (int)

/var/log/messages:

Feb  4 15:00:58 (none) user.info kernel: e1000e: Intel(R) PRO/1000 Network Driver - 3.3.5.3-NAPI

Feb  4 15:00:58 (none) user.info kernel: e1000e: Copyright(c) 1999 - 2016 Intel Corporation.

Offline

#9 2017-02-05 20:19:42

totoetsasoeur
Moderator
Registered: 2011-03-29
Posts: 247

Re: Slitaz rolling - USB flash live - trouble with eth0

Thank you Mojo, once again your answers were highly valuable.

Then:

- from windows, download the e1000e package supplied by Mojo,

- copy it to usb flash drive,

- boot slitaz live from usb,

- open xterm,

- copy the e1000e package from usb to /home/tux

- login as root,

- install it: tazpkg install e100e-3.3.5.3.3.2.71.tazpkg

- load module: modprobe -v e1000e

- set it up: ifconfig eth0 up

- start it: /etc/init.d/network.sh start

Done and solved. Thx.

happy slitaz

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.018 seconds, 7 queries executed - Memory usage: 1.57 MiB (Peak: 1.77 MiB) ]