LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-06-2004, 03:33 PM   #1
pnh73
Member
 
Registered: Jul 2003
Location: Birmingham, UK
Distribution: Ubuntu,Debian
Posts: 381

Rep: Reputation: 30
Recompiled kernel and LILO wont boot it!


Hi,

I am currently in the throws of building a minimal system which I can use as an MP3 box and play MP3 cd's etc.

It currently has a 2.4.18 kernel, which has little support as it comes from the ALCAS distribution (see http://schapenstal.homeip.net/alcas/). I am looking to upgrade this kernel and create my own version of this system for my house

Anyway, to my problem. I compiled a kernel from the officical source on a mandrake box i have which is faster than the box i am going to put on it. So i duly got a copy of 2.4.25 from kernel.org and did the usual make xmenuconfg, make dep, make bzImage process. I copied the bzImage from ~/kernels/linux-2.4.25/arch/i386/boot/ to my other box in /boot and added the following lines to my lilo.conf:

Code:
.. REST OF LILO ...
image = /boot/bzImage
 root = /dev/hda1
 label = ALHAVS
 read-only
then i excuted /sbin/lilo, then rebooted.

Upon selecting ALHAVS it does the following:
Code:
Loading ALHAVS ...................................
then it reboots the computer.

Have i mad a fundamental mistake somewhere?

Thanks in advance
 
Old 04-06-2004, 03:49 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
I'd suggest copying the working kernels
.config to the new direcotry, then running
make oldconfig and then continue with the
process as described before ... make sure
you only modify stuff you know well ;)



Cheers,
Tink
 
Old 04-06-2004, 05:11 PM   #3
waster
Member
 
Registered: Jan 2004
Location: London
Distribution: Debian
Posts: 33

Rep: Reputation: 15
Is the "minimal system" by any chance not x86? Did you compile with any pentium optimisations which are beyond your system's capabilities?
 
Old 04-07-2004, 03:49 AM   #4
pnh73
Member
 
Registered: Jul 2003
Location: Birmingham, UK
Distribution: Ubuntu,Debian
Posts: 381

Original Poster
Rep: Reputation: 30
It is x86 it is a Pentium 166

I will try working with the old configuration. Its just that with such a minimal kernel that the old config has it doesnt support ISO9660 CD's and also my CD-Drive, netcard etc. It has been compiled with specific components in mind. But I think i can work through that

Also, a question about modules. If i compile all my drivers into the kernel NOT as modules, this means that I dont have to load modules? The tradeoff is that it uses more memory? Though this isnt an issue with the minimal setup i have.

Thanks for your help
 
Old 04-07-2004, 04:03 AM   #5
waster
Member
 
Registered: Jan 2004
Location: London
Distribution: Debian
Posts: 33

Rep: Reputation: 15
Make sure that you haven't got the wrong sub-architecture type selected in the kernel config.

If you compile things in, that's fine as long as you want them to be there always. This is often undesirable while getting the system set up, as each change requires a recompile. Once you have worked out what you want in and out, then you can compile in, if you don't want to make any changes. E.g. ide-scsi you might want as a module in 2.6 kernel so you can switch between scsi and ide burning with just a reboot, not a recompile. Compiling in AGP stuff often causes problems when trying to set things up.

GOod luck.
 
Old 04-07-2004, 07:14 AM   #6
doralsoral
Member
 
Registered: Aug 2003
Location: raleigh
Distribution: Gentoo 2005.1 x86_64
Posts: 931

Rep: Reputation: 31
when you rerun lilo next time try lilo -v and watch out for anye rror messages
 
Old 04-07-2004, 12:15 PM   #7
pnh73
Member
 
Registered: Jul 2003
Location: Birmingham, UK
Distribution: Ubuntu,Debian
Posts: 381

Original Poster
Rep: Reputation: 30
just had a thought, as the bzImage is bzipped to i need bzip2 installed to run it?

btw lilo gives me messages about 0x13 and 0x80 calls or something, cant remember specifically!

hth
 
Old 04-07-2004, 12:30 PM   #8
pnh73
Member
 
Registered: Jul 2003
Location: Birmingham, UK
Distribution: Ubuntu,Debian
Posts: 381

Original Poster
Rep: Reputation: 30
lilo -v outputs the following warnings:
Code:
Warning: LBA32 addressing assumed
Warning: Int 0x13 function 8 and function 0x48 return different head/sector geomitries for BIOS drive 0x80
and no errors
 
Old 04-07-2004, 01:10 PM   #9
doralsoral
Member
 
Registered: Aug 2003
Location: raleigh
Distribution: Gentoo 2005.1 x86_64
Posts: 931

Rep: Reputation: 31
did you happen to use an old config file with a different version of the kernel. i used a 2.4 config file when i compiled a 2.6 kernel once and it did the same thing.
 
Old 04-07-2004, 02:06 PM   #10
pnh73
Member
 
Registered: Jul 2003
Location: Birmingham, UK
Distribution: Ubuntu,Debian
Posts: 381

Original Poster
Rep: Reputation: 30
i didnt initially, but i have tried a 2.4.18 config with a 2.4.25. I did add some CD-ROM support etc, so I did "make xconfig" and then added what i wanted the compiled. I am finding this quite frustrating atm.
 
  


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
Recompiled kernerl 2.6.6 in fedora core 2 but it wont boot... SpItoS Linux - Software 5 05-25-2004 10:42 AM
LILO wont boot default Kernel DigiCrime Linux - General 7 03-23-2004 10:58 PM
Inspiron laptop, kernel recompiled -> cannot boot x sedulous Red Hat 2 09-08-2003 07:59 AM
Recompiled kernel boot problem... lokee Linux - Software 5 05-15-2003 05:35 PM
kernel recompiled - but i boot from floppy? gui10 Slackware 8 05-08-2002 12:43 PM


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