LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 10-09-2003, 07:27 AM   #1
coldy
Member
 
Registered: Nov 2002
Distribution: Debian GNU/Linux, Gentoo
Posts: 75

Rep: Reputation: 15
new kernel dosn't load


Hello friends, I compiled kernel-2.4.22, moved bzImage from /etc/src/linux-2.4.22/arch/i386/boot to /boot/bzImage added
Code:
image=/boot/bzImage
label=Linux-2.4.22
read-only
to /etc/lilo.conf after than i do /sbin/lilo, it shows me that the new Linux-2.4.22 is added to lilo than reboot the PC and ... none

the PC stuck at "LILO 2.22" and than reboot itself without any chance for me to choose which one kernel to use, load again and the same thing is repeating again and again (the PC dosn't stop to reboot)

I haven't on that PC floppy drive to make rescue diskette, please help me

have I chance to chroot the partition and to try get back old kernel in lilo.conf If I boot from the install CD (the PC is in the office, I am at home now)

thanks
 
Old 10-09-2003, 10:35 AM   #2
pe2338
Member
 
Registered: Dec 2002
Location: Bucharest,RO
Distribution: debian etch, sarge and sid
Posts: 407

Rep: Reputation: 30
Talking next time...

next time use make-kpkg to make your kernel compilation. I was afraid of it at first, but it does a _great_ job.

Use a cd (first or any other except update) to boot the system, do a chroot and change lilo.conf, run lilo and then

(for the make-kpkg thingy)
as root
Code:
apt-get install make-kpkg
cd /your_path_to_the_kernel_source
make clean
make-kpkg clean
make-kpkg ...... 
cd ..
dpkg -i kernel-image-2.4.22.......deb
lilo
reboot
don't remember the params for make-kpkg as I am not in front of my box. There must be parameter about --append-to-version (as in 2.4.22-4-k7 and the version of the package).

this works as a wonder on my machine.

As a bonus you will have the configuration and the system.map files in the /boot dir, it will make new symbolic links from /vmlinuz to the new kernel, the old /vmlinuz link will be /vmlinuz.old (but you can prevent this behavior with params for the make-kpkg command), and with more params you can be asked at install time if you want boot diskette



good luck
 
Old 10-09-2003, 12:20 PM   #3
coldy
Member
 
Registered: Nov 2002
Distribution: Debian GNU/Linux, Gentoo
Posts: 75

Original Poster
Rep: Reputation: 15
Thanks pe2338, but I want first to compile kernel on the way that everyone compile it, than I'll try to do it by Debian way just because I use different distributions in home and work

thanks again
 
Old 10-10-2003, 02:39 AM   #4
pe2338
Member
 
Registered: Dec 2002
Location: Bucharest,RO
Distribution: debian etch, sarge and sid
Posts: 407

Rep: Reputation: 30
then don't forget to copy the System.map file and the config file to your /boot dir together with the bzImage

I don't recomend using make install on the kernel as it might mess up your present kernel.
 
Old 10-10-2003, 04:27 AM   #5
coldy
Member
 
Registered: Nov 2002
Distribution: Debian GNU/Linux, Gentoo
Posts: 75

Original Poster
Rep: Reputation: 15
sorry, I didn't understand what you suppose with "make install" please explain to me
 
Old 10-10-2003, 06:35 AM   #6
pe2338
Member
 
Registered: Dec 2002
Location: Bucharest,RO
Distribution: debian etch, sarge and sid
Posts: 407

Rep: Reputation: 30
Talking not so hard

the usual copiling:
Code:
#make clean
#make menuconfig
#make dep
#make bzImage
#make install
[...modify lilo.conf]
#lilo
#reboot                  in the new kern
#cd /usr/src/linux-2.x.xx
#make modules
#make modules_install
that "make install"...
I would recomend using the copy technique
Code:
....
make bzImage
cp System.map /boot/System.map-2.x.xx-x
cp .config /boot/config-2.x.xx-x
cp [....]/bzImage /boot/vmlinuz-2.x.xx-x
[modify lilo.conf]
....
that's it...

and when you're tired of forgeting one of the commends just start using make-kpkg
 
Old 10-10-2003, 08:56 AM   #7
coldy
Member
 
Registered: Nov 2002
Distribution: Debian GNU/Linux, Gentoo
Posts: 75

Original Poster
Rep: Reputation: 15
thanks about the explain! I never been used make install but I am trying to compile the kernel with
Code:
#make menuconfig
#make dep
#make bzImage
than
Code:
#make modules
#make modules_install
#cp System.map /boot
#cp arch/i386/boot/bzImage /boot/bzImage-2.4.22
than edit /etc/lilo.conf and run /sbin/lilo, the last thing that I do is to reboot

Is the mistake is that I do make modules and make modules_install before reboot to new kernel?

I find and read many howtos but I didn't find there your advice about the modules
 
Old 10-13-2003, 01:43 AM   #8
pe2338
Member
 
Registered: Dec 2002
Location: Bucharest,RO
Distribution: debian etch, sarge and sid
Posts: 407

Rep: Reputation: 30
the modules _should_ be compiled against the new kernel. make modules might be ok, but make modules_install surely isn't.
 
Old 10-15-2003, 01:22 PM   #9
coldy
Member
 
Registered: Nov 2002
Distribution: Debian GNU/Linux, Gentoo
Posts: 75

Original Poster
Rep: Reputation: 15
thank you pe2338 I'm trying on one old PC
thanks again
 
Old 10-24-2003, 04:09 PM   #10
coldy
Member
 
Registered: Nov 2002
Distribution: Debian GNU/Linux, Gentoo
Posts: 75

Original Poster
Rep: Reputation: 15
I did it successfully (maybe) ! I have one more question
I used one old PC of mine to compile the new kernel. There I have 3Com NIC ... so when I installing woody it don't ask me about network settings, just ask me for the hostname.
So when the default (bf24) install was complete, I installed ncurses and compiled the kernel, the PC can't locate the NIC, I must type
Code:
#modprobe 3c59x
#ifconfig eth0 10.0.0.200
#route add default gw 10.0.0.1
and this is happened, every time when the PC is restarted. ifconfig showed me just the loopback

I added in /etc/network/interfaces the settings for the NIC and now everything is O.K. but ... why woody can't ask me for the network settings ? The NIC isn't new ... I inserted in the kernel module for the 3Com NICs but I think it don't load the modules :/

p.s. thanks again pe2338

Last edited by coldy; 10-24-2003 at 04:13 PM.
 
Old 10-27-2003, 01:28 AM   #11
pe2338
Member
 
Registered: Dec 2002
Location: Bucharest,RO
Distribution: debian etch, sarge and sid
Posts: 407

Rep: Reputation: 30
modify (better said add) a file in /etc/modutils and insert the aliases and all the necessary lines there (I don't remember which are they, but with a look at the other files there you will figure out)

then do a update-modules-modutils or something like that... good luck
 
Old 10-27-2003, 01:33 AM   #12
pe2338
Member
 
Registered: Dec 2002
Location: Bucharest,RO
Distribution: debian etch, sarge and sid
Posts: 407

Rep: Reputation: 30
if you can't figure it out you could make an /etc/init.d script that is ran at boot time (insert your by-hand-ran commands there) update-rc.d
 
Old 10-27-2003, 02:14 AM   #13
coldy
Member
 
Registered: Nov 2002
Distribution: Debian GNU/Linux, Gentoo
Posts: 75

Original Poster
Rep: Reputation: 15
it's strange for me, but in /etc/network/interfaces was added just loopback ... so I added and the parameters of the NIC and everything is O.K. When I restarter the PC for the first time with the new kernel I typed "modprobe 3c58x" once, and everytime that I restart the PC just ifconfig the NIC and add default gateway. Thanks pe2338
 
  


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
grub doesn't auto-load kernel, time/date auto-change, k3b cannot load kenji1903 Red Hat 16 03-27-2005 08:48 PM
Says PCMCIA ok, But dosn't recognise my card Nuke361 Linux - Newbie 2 04-30-2004 04:15 PM
My sound card dosn't work please help! Thantos Slackware 4 09-22-2003 08:17 AM
Consolehelper dosn't work anymore! fuzzyash Linux - General 2 08-26-2003 10:05 AM
CPU Speed? I dosn't like what I have! rlsanders Slackware 4 08-28-2002 12:52 AM

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

All times are GMT -5. The time now is 06:54 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