LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 11-27-2003, 08:27 PM   #1
luzi82
LQ Newbie
 
Registered: Apr 2003
Posts: 26

Rep: Reputation: 15
Unhappy ip lost after kernel 2.4.22


I am a kernel compiling .
I am using Debian 3, original kernel 2.2.20idepci, wish to have 2.4.22.

make menuconfig, config file base on /boot/config-2.2.20-idepci
make dep, bzImage, modules
copy kernel to boot
make modules_install
modify /etc/lilo.conf
run lilo
init 6
eth0 disappear~~~

make menuconfig, force realtek driver to be included in kernel (use Y, not M).
make dep, bzImage, modules
copy kernel to boot
make modules_install
run lilo
init 6
eth0 appear, no IP.

ifconfig in 2.4.22:
Code:
eth0      Link encap:Ethernet  HWaddr 00:50:FC:39:B1:22  
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:38 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100 
          RX bytes:3645 (3.5 KiB)  TX bytes:0 (0.0 b)
          Interrupt:10 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:8 errors:0 dropped:0 overruns:0 frame:0
          TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:560 (560.0 b)  TX bytes:560 (560.0 b)
ifconfig in 2.2.20:
Code:
eth0      Link encap:Ethernet  HWaddr 00:50:FC:39:B1:22  
          inet addr:192.168.0.237  Bcast:192.168.0.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:194 errors:0 dropped:0 overruns:0 frame:0
          TX packets:158 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100 
          RX bytes:25813 (25.2 KiB)  TX bytes:27056 (26.4 KiB)
          Interrupt:10 Base address:0xd000 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:3924  Metric:1
          RX packets:8 errors:0 dropped:0 overruns:0 frame:0
          TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:560 (560.0 b)  TX bytes:560 (560.0 b)
please help me to bring IP back to 2.4.22, thanks a lot.
 
Old 11-27-2003, 08:39 PM   #2
iceman47
Senior Member
 
Registered: Oct 2002
Location: Belgium
Distribution: Debian, Free/OpenBSD
Posts: 1,123

Rep: Reputation: 47
The only thing I can say with the info you gave is that you can't use your 2.2 config on a 2.4 kernel.
Configure all the options of the 2.4 by hand, especially the networking ones in this case.
Maybe you'll find the error this way.
 
Old 11-27-2003, 08:48 PM   #3
luzi82
LQ Newbie
 
Registered: Apr 2003
Posts: 26

Original Poster
Rep: Reputation: 15
thx a lot!!!

but indeed, I really config the kernel by hand in the first time.
The result: VGA error, network not work, sometimes need to hard reboot.
I ask my linux friend and he advise me to use the 2.2.20 config file.
and VGA error is fixed after following that.

is here any kernel options which directly affect the ip? thanks.
 
Old 11-27-2003, 09:10 PM   #4
iceman47
Senior Member
 
Registered: Oct 2002
Location: Belgium
Distribution: Debian, Free/OpenBSD
Posts: 1,123

Rep: Reputation: 47
There are many, it's not that easy to say.
It all depends what sort connection you're using.
When I compile a new kernel, I always go over all options.
You leanr a lot that way too.
Use common scence, don't enable stuff you don't need.
In doubt, enable it anyway, but that makes the kernel file bigger at the end.
This is a little hard at first, but you get used to it.
After that the fun begins and you could try to remove everything you really don't need
to make the kernel even smaller... and faster
Notice /var/log/ is full of usefull logfiles, maybe you should start there
 
  


Reply



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
pcmcia kernel lost pturnin Linux - Laptop and Netbook 3 12-06-2005 11:27 PM
Kernel in lost+found jameslabocki Linux - Software 0 11-12-2004 06:11 AM
lost ip when using a new kernel h_lina_k Linux - General 6 02-13-2004 02:53 AM
kernel sources lost mjkramer Mandriva 2 10-15-2003 09:56 AM
I lost rmed my kernel config file. Anyway to create one from the kernel? severedhead Linux - Software 3 07-12-2002 07:54 PM

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

All times are GMT -5. The time now is 01:50 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
Open Source Consulting | Domain Registration