LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 02-07-2019, 12:17 AM   #1
FlinchX
Member
 
Registered: Nov 2017
Distribution: Slackware Linux
Posts: 292

Rep: Reputation: Disabled
Is r8168 compiling and working fine with kernel 4.4.172?


Now with a solution for getting VirtualBox to work [1] and with an SBo update for the NVidia blob [2] probably coming out in a few days as part of the weekly routine update, I'm one step closer to attempt updating Slackware64-14.2 to the latest kernel.

However, there's one more kernel related thing that I'm using. I have to rely on r8168 from SBo because my system with dual NICs

Code:
# lspci | grep Ethernet
03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 02)
04:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 06)
doesn't play nice with the default r8169 kernel driver since forever. Is there any slacker who happens to use similar hardware and can confirm that r8168 from SBo builds fine against 4.4.172 kernel and also works fine after that (ideally, on a system that has more than one network interface like this, so the setup is as close as possible to mine)?

I really want to avoid the situation when I update the kernel and end with a computer with bricked networking, because at this moment I don't have a second one to plug the internet wire into and seek help if it happens.

Not to mention that I simply don't know how would I revert to the previous kernel version in such a situation, because patches/ directory of a Slackware tree only contains the latest version of a security update package. I'd be glad to read more on this if anybody could point to some good resources, because I did not find anything on my own so far. But this probably diverges too much from the original question and deserves its own topic.

1. https://slackblogs.blogspot.com/2019...plication.html

2. https://www.linuxquestions.org/quest...ml#post5958318
 
Old 02-07-2019, 03:55 AM   #2
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,280

Rep: Reputation: 62
make a tar archive of /lib/modules, and /boot/
Code:
tar clfvz - /lib/modules > /lib/modules.tar.gz
then extract it back out if something goes wrong.
 
Old 02-07-2019, 04:03 AM   #3
Qury
Member
 
Registered: Feb 2004
Location: Dublin
Distribution: Slackware
Posts: 156

Rep: Reputation: 136Reputation: 136
why don't you compile your own kernel and have it as an extra option in the boot manager?
It is really easy to do.

What i usually do when i want to experiment with a new kernel is to download the huge kernel config from current huge config and use that to compile the kernel.

When you get more experienced with this, you can choose the generic kernel config and remove the modules that you do not need.
 
Old 02-07-2019, 04:21 AM   #4
FlinchX
Member
 
Registered: Nov 2017
Distribution: Slackware Linux
Posts: 292

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by whansard View Post
make a tar archive of /lib/modules, and /boot/
Code:
tar clfvz - /lib/modules > /lib/modules.tar.gz
then extract it back out if something goes wrong.
while this can bring me back to a working system, doesn't this keep the problem that I can't have the kernel packages for 4.4.157, because they are gone from patches/ being already replaced by 4.4.172?
 
Old 02-07-2019, 11:15 AM   #5
asdrubale
LQ Newbie
 
Registered: Aug 2012
Posts: 13

Rep: Reputation: Disabled
Quote:
Originally Posted by FlinchX View Post
Is there any slacker who happens to use similar hardware and can confirm that r8168 from SBo builds fine against 4.4.172 kernel
Code:
root@mem:~/slackbuilds/r8168# uname -a
Linux mem 4.4.172 #1 SMP Wed Jan 30 16:57:30 CST 2019 x86_64 Intel(R) Core(TM) i5-4590S CPU @ 3.00GHz GenuineIntel GNU/Linux
root@mem:~/slackbuilds/r8168# ./r8168.SlackBuild 
r8168-8.046.00/
r8168-8.046.00/Makefile
r8168-8.046.00/README
r8168-8.046.00/autorun.sh
r8168-8.046.00/src/
r8168-8.046.00/src/Makefile
r8168-8.046.00/src/Makefile_linux24x
r8168-8.046.00/src/r8168.h
r8168-8.046.00/src/r8168_asf.c
r8168-8.046.00/src/r8168_asf.h
r8168-8.046.00/src/r8168_dash.h
r8168-8.046.00/src/r8168_fiber.h
r8168-8.046.00/src/r8168_n.c
r8168-8.046.00/src/r8168_realwow.h
r8168-8.046.00/src/rtl_eeprom.c
r8168-8.046.00/src/rtl_eeprom.h
r8168-8.046.00/src/rtltool.c
r8168-8.046.00/src/rtltool.h
  CC [M]  /tmp/SBo/r8168-8.046.00/src/r8168_n.o
  CC [M]  /tmp/SBo/r8168-8.046.00/src/r8168_asf.o
  CC [M]  /tmp/SBo/r8168-8.046.00/src/rtl_eeprom.o
  CC [M]  /tmp/SBo/r8168-8.046.00/src/rtltool.o
  LD [M]  /tmp/SBo/r8168-8.046.00/src/r8168.o
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /tmp/SBo/r8168-8.046.00/src/r8168.mod.o
  LD [M]  /tmp/SBo/r8168-8.046.00/src/r8168.ko

[...]

install/
install/doinst.sh
install/slack-desc

Slackware package /tmp/r8168-8.046.00_4.4.172-x86_64-1_SBo.tgz created.
But my system has only one NIC, I cannot confirm that it works with two.
 
1 members found this post helpful.
Old 02-14-2019, 05:16 AM   #6
FlinchX
Member
 
Registered: Nov 2017
Distribution: Slackware Linux
Posts: 292

Original Poster
Rep: Reputation: Disabled
Confirming that it works with two NICs, I've just upgraded the kernel to 4.4.172 and networking went up after I rebuilt and reinstalled r8168.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Kernel 4.4.172 on Slack64 and Nvidia camorri Slackware 45 Yesterday 07:44 PM
4.4.172 kernel and nividia-legacy*340* (SBo) someone named bert Slackware 10 02-10-2019 12:46 PM
VirtualBox fails to build drivers for kernel 4.4.172 metageek Slackware 15 02-04-2019 06:23 PM
Realtek r8168 kernel module errors on kernel 3.9.4 misson20000 Linux - Hardware 1 06-09-2013 12:48 PM
Realtek R8168 o R8169 GE Controllers Dont install correctly into Kernel scotsgeezer Linux - Hardware 3 02-09-2009 07:51 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 02:33 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration