LinuxQuestions.org
Review your favorite Linux distribution.
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 01-21-2005, 01:29 PM   #1
Kholnuu
LQ Newbie
 
Registered: Dec 2004
Posts: 20

Rep: Reputation: 0
No remote access after kernel update


I started off with a basic Slackware 10.0 installation which gave me the kernel 2.4.26. Here are the steps I followed to update to 2.4.29.

Code:
- cd /usr/src/linux-2.4.26
- make clean
- cd /usr/src
- tar zcvf linux-2.4.26-tree.tar.gz linux-2.4.26
- got latest patches - 2.4.27, 2.4.28, 2.4.29
- unzip each patch (gzip -d patch-<version>.gz)
- mv patch-* /usr/src/linux-2.4.26
- cd /usr/src/linux-2.4.26
- apply each patch in order (patch -p1 < patch-<version>)
- mv /usr/src/linux-2.4.26 /usr/src/linux-2.4.29
- cd /usr/src
- rm /usr/src/linux
- ln -s /usr/src/linux-2.4.29 /usr/src/linux
- cd /usr/src/linux
- vi Makefile
- uncomment #export INSTALL_PATH=/boot
- vi /etc/lilo.conf
- uncomment timeout and prompt
- add new entry
  - image = /boot/vmlinuz.old
  - root = /dev/hda1
  - label = slack.old
  - read-only
- make mrproper
- make menuconfig
- make dep
- make clean
- make bzImage
- make
- make install
- make modules
- make modules_install
- reboot
- uname -r and vi /proc/version to see if everything is updated
The update worked fine, everything is reporting 2.4.29 as the current version, except now I can't access the machine remotely. ifconfig only shows the local loopback. What happened to my NIC?
 
Old 01-21-2005, 01:53 PM   #2
keefaz
Senior Member
 
Registered: Mar 2004
Distribution: Slackware
Posts: 4,444

Rep: Reputation: 94
What is your NIC ? (/sbin/lspci | grep net)
 
Old 01-22-2005, 12:08 AM   #3
Kholnuu
LQ Newbie
 
Registered: Dec 2004
Posts: 20

Original Poster
Rep: Reputation: 0
I've got two: D-Link DFE-350TX and a Realtek RTL8139D.
 
Old 01-22-2005, 12:33 AM   #4
Kholnuu
LQ Newbie
 
Registered: Dec 2004
Posts: 20

Original Poster
Rep: Reputation: 0
From a fresh install, no kernel updates.

/sbin/lspci | grep net

00:0d.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)
00:10.0 Ethernet controller: VIA Technologies, Inc. VT6102 [Rhine-II] (rev 43)

Looks like the D-Link isn't being picked up, not entirely sure why. Possibly because there's no network cable plugged into it.
 
Old 01-22-2005, 02:35 AM   #5
MBH
Member
 
Registered: Sep 2003
Location: Kuwait
Distribution: Slack 10.0 @ Kernel 2.4.27
Posts: 63

Rep: Reputation: 15
That happened to me after I updated my system with swaret.

No problem, just fire your shell and type 'netconfig', without the quotes.

That should do it ^_^

If that doesn't add all your NIC's, open the file /etc/rc.d/inet.conf or inet1.conf
and add your configuration there..

Hope that works.
 
Old 01-22-2005, 04:28 AM   #6
Kholnuu
LQ Newbie
 
Registered: Dec 2004
Posts: 20

Original Poster
Rep: Reputation: 0
Well, I patched the kernel again and got back to the same point I was at before with no remote access.

Ran netconfig, nothing. Even rebooted, but no such luck. As for editting /etc/rc.d/rc.inet1.conf, I've got no idea what to put in there.

Why are my network settings disappearing? And where are they stored before I patch the kernel; I checked rc.inet1.conf beforehand, and there was nothing stored in there.
 
Old 01-22-2005, 06:20 AM   #7
keefaz
Senior Member
 
Registered: Mar 2004
Distribution: Slackware
Posts: 4,444

Rep: Reputation: 94
You need driver for your NIC.

try : /sbin/modprobe -l | grep -i via
and look for something like via-rhine, it is the driver for your 2nd NIC

/sbin/modprobe -l | grep 8139
and look for something like 8139, it is the driver for your 1st NIC

Now, if you got result, try /sbin/modprobe <module name without .o>
after that, try netconfig, if all goes well and a modprobe line in /etc/rc.d/rc.modules
to load your NIC driver at boot
 
Old 01-22-2005, 06:54 AM   #8
MBH
Member
 
Registered: Sep 2003
Location: Kuwait
Distribution: Slack 10.0 @ Kernel 2.4.27
Posts: 63

Rep: Reputation: 15
Are you sure your 'patched kernel' has the NIC's drivers compiled into it or as modules?!

As keefaz mentioned, you need the drivers to run the devices.

cd /usr/src/linux
make xconfig

Make sure you've selected your device's drivers and the proper protcols.
 
Old 01-22-2005, 11:41 AM   #9
Kholnuu
LQ Newbie
 
Registered: Dec 2004
Posts: 20

Original Poster
Rep: Reputation: 0
modprobe didn't find the drivers that used to be there. Looking through /etc/rc.d/rc.modules, I found the entries for my network cards, so I uncommented them and rebooted. Several things came to my attention.

modprobe: modprobe: Can't locate module char-major-10-135
Module dependencies up to date (no new kernel modules found).
modprobe: Can't locate module agpgart
modprobe: Can't locate module 8139too
modprobe: Can't locate module via-rhine
modprobe: Can't locate module ide-scsi

So when I patched the kernel from 2.4.26 to 2.4.29, the drivers for my NICs went AWOL and I guess do did the AGP and IDE/SCSI drivers/modules?

http://www.realtek.com.tw/downloads/...True#16Unix%20(Linux)

Several driver options here, not entirely sure which I should pick. Either "Linux driver for kernel 2.4.x (RedHat 7.2/ 7.3/ 8.0/ 9.0)" or "Slackware 8.0 (kernel 2.2.19 and 2.4.5)".

---

Oh man, I'm an idiot. Just noticed that there's a package available for download at slackware.com/pb - kernel-modules-2.4.29-i486-1. This may just solve all my of headaches, I'll post after I install it.
 
Old 01-22-2005, 01:22 PM   #10
Kholnuu
LQ Newbie
 
Registered: Dec 2004
Posts: 20

Original Poster
Rep: Reputation: 0
Ok, fresh install. Installed the modules-2.4.29 package. Patched the kernel up to 2.4.29. Rebooted. Still not autodetect of NICs. modprobe can't find anything.

How can I point modprobe to look for the drivers that I know are installed on my system? Or am I missing something when I'm patching the kernel? I know that when I run make modules and make modules_install that it says it can't find any modules, so maybe I am missnig something somewhere.
 
Old 01-22-2005, 01:27 PM   #11
Kholnuu
LQ Newbie
 
Registered: Dec 2004
Posts: 20

Original Poster
Rep: Reputation: 0
Dumb dumb dumb. Didn't select the 8139 and via rhine modules when running make menuconfig. Did that now, report soon.
 
Old 01-22-2005, 01:56 PM   #12
Kholnuu
LQ Newbie
 
Registered: Dec 2004
Posts: 20

Original Poster
Rep: Reputation: 0
Ok, so everything is compiled in and should be ready to go. I can see the computer trying to bring up eth0, but something is failing somewhere.

dhcpcd: MAC address = xx:xx:xx:xx:xx:xx (editted unless necessary)

This displays for a little while (10 seconds or so) and then nothing. Syslog says that there's a timeout waiting for a valid DHCP server response, so I'll see what I can do on my end with my ISP.

I'll keep updating as things progress.
 
Old 01-22-2005, 04:08 PM   #13
Kholnuu
LQ Newbie
 
Registered: Dec 2004
Posts: 20

Original Poster
Rep: Reputation: 0
The idea just hit me: dhcpcd shouldn't be getting a timed out response, because I know for a fact that before the kernel update I had internet access.

So why am I suddenly getting dhcp timeouts?
 
Old 01-22-2005, 07:20 PM   #14
Kholnuu
LQ Newbie
 
Registered: Dec 2004
Posts: 20

Original Poster
Rep: Reputation: 0
Here's a question: would it be a bad thing to simply grab /slackware-current/kernels/bare.i/ from my favorite mirror, make copies of what I have, and then overwrite the three files?
 
  


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
Problems with NVIDIA drivers after kernel update with yast online update Sheytan Linux - Software 4 05-06-2007 10:27 AM
remote access gary79 Linux - Newbie 1 08-09-2005 03:28 AM
How To Remote Access? Rundi Linux - Networking 3 06-21-2005 05:54 AM
Problems with NVIDIA drivers after kernel update with yast online update Sheytan Linux - Distributions 0 10-13-2004 11:01 AM
No remote access. twhunt Linux - Security 2 03-20-2002 12:34 AM


All times are GMT -5. The time now is 08:52 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration