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 09-07-2003, 03:00 PM   #1
TigerOC
Senior Member
 
Registered: Jan 2003
Location: Devon, UK
Distribution: Debian Etc/kernel 2.6.18-4K7
Posts: 2,380

Rep: Reputation: 49
Packaging 2.4.22 kernel from source


I was wondering if anyone has had any problems with this kernel. I have been trying for days to get this kernel installed the Debian way. Each time I get really weird errors, many of which no one seems have clear answers to. Today I got the 2.4.20 kernel sources and packaged it the Debian way and it works and boots 1st time.
 
Old 09-08-2003, 04:37 AM   #2
tyaiyama
LQ Newbie
 
Registered: Sep 2003
Posts: 4

Rep: Reputation: 0
I mainly use debian, but also redhat and vine; thus I have never compile
the kernel for distribution specific way; thus I do not need to know three or
more of the same thing to accomplish, I believe.
If you want to read the experience of 2.4.22, you can read them at
http://www.e-aiyama.com/~toshi/Computer/Linux/SATA.html
If you want to go to the extreme of fresh install of debian with 2.4.22, then
read:
http://www.e-aiyama.com/~toshi/Compu...ux/LiveCD.html
In fact, I am writing this message using kernel 2.4.22. I really enjoy whole
array of new device support.

Toshikazu Aiyama
 
Old 09-08-2003, 08:28 AM   #3
otjervaag
LQ Newbie
 
Registered: May 2003
Posts: 10

Rep: Reputation: 0
Hi..

Just posted a problem I have in the Software section..:

http://www.linuxquestions.org/questi...threadid=90414

Is this anything like the errors you get??

Øyvind
 
Old 09-08-2003, 09:10 AM   #4
TigerOC
Senior Member
 
Registered: Jan 2003
Location: Devon, UK
Distribution: Debian Etc/kernel 2.6.18-4K7
Posts: 2,380

Original Poster
Rep: Reputation: 49
The first boot error I got was;
kernel panic: VFS : unable to mount root fs on 16:41
The opinion on this error was that there is a problem with ELF support although ELF/a.out was included and in the kernel.
After another recompile I get the following error;

failed exec /sbin/modprobe -s -k binfmt-0000 errno = 8

There is no conclusion on this error on Google apart from a fix which did not work. Suggestions were of a problem in the kernel.
 
Old 09-08-2003, 07:45 PM   #5
tyaiyama
LQ Newbie
 
Registered: Sep 2003
Posts: 4

Rep: Reputation: 0
Some of otjervaag's problems I cannot answer because I do not use Samba at all. For the boot-promt inser the following 2 lines before imgae= in lilo.conf
prompt
timeout=50 ; or any value of one tenths second to wait before default boot

TogerOC's 1st problem looks familiar to me. Do you install / to the partition
above 20th? If so, default debian refuse to load because it does not know
where it is. Look at our url's LiveCD.html, you may find an answer.

I have installed 2.4.22 to a couple of machines without any significant errors of the kernel; thus I doubt these errors are caused by the kernel. I did not use debian way of compiling. I use pristine way and documented also at my url.

Of course, the kernel is still under development, but if you truely believe
it is their problem, report to the kernel maintainer.

Happy debian computing!

Toshikazu Aiyama
 
Old 09-09-2003, 01:51 AM   #6
TigerOC
Senior Member
 
Registered: Jan 2003
Location: Devon, UK
Distribution: Debian Etc/kernel 2.6.18-4K7
Posts: 2,380

Original Poster
Rep: Reputation: 49
Quote:
Originally posted by tyaiyama
Some of otjervaag's problems I cannot answer because I do not use Samba at all. For the boot-promt inser the following 2 lines before imgae= in lilo.conf
prompt
timeout=50 ; or any value of one tenths second to wait before default boot

TogerOC's 1st problem looks familiar to me. Do you install / to the partition
above 20th? If so, default debian refuse to load because it does not know
where it is. Look at our url's LiveCD.html, you may find an answer.
I am using separate hard drives and the system is located on the 3rd drive. I seem to have solved the problem but not sure how. It may have been involved with initrd and or ext3 support in the kernel.

Quote:
I have installed 2.4.22 to a couple of machines without any significant errors of the kernel; thus I doubt these errors are caused by the kernel. I did not use debian way of compiling. I use pristine way and documented also at my url.

Of course, the kernel is still under development, but if you truely believe
it is their problem, report to the kernel maintainer.

Happy debian computing!

Toshikazu Aiyama
The later problem of kmod: failed exec /sbin/modprobe -s -k binfmt-0000 errno = 8 is a run away process. The suggested fix was a line in /etc/modules.conf of alias binfmt-0000 off. I tried this but with no success.

Last edited by TigerOC; 09-09-2003 at 01:53 AM.
 
Old 09-09-2003, 02:32 AM   #7
tyaiyama
LQ Newbie
 
Registered: Sep 2003
Posts: 4

Rep: Reputation: 0
The 1st problem's message means "cannot find where the root is". While you
are upgrading what is the point of creating intrd image unless you are sure
you have created the proper one for your PC. Since I am a frequent installer, I do not create initrd image at all.
I do admit I encounter a couple of errors I have not solved after upgrading.
But none of them appears to be serious like yours. Do you use debian way
of compiling? If so, try pristine way of compiling, and compare the result.

Toshikazu Aiyama
 
Old 09-09-2003, 05:05 AM   #8
TigerOC
Senior Member
 
Registered: Jan 2003
Location: Devon, UK
Distribution: Debian Etc/kernel 2.6.18-4K7
Posts: 2,380

Original Poster
Rep: Reputation: 49
I use the Debian method mainly because it is very straightforward;
make-kpkg clean
fakeroot make-kpkg --append_to_version -X --initrd \ --revsion=.01 kernel_image
You ask "what is the point of creating initrd unless you are sure you have created the correct on for your PC." I am not sure what you mean by this. When I have compiled the kernel I have always made an individual boot floppy for the new initrd. The point is that I used exactly the same routines to create the 2.4.20 kernel and it worked 1st time. I have either got something wrong in the config or there is some other bug causing a problem. What I may try is using the config from 2.4.20 to configure 2.4.22 and see if I get a working kernel.
 
Old 09-09-2003, 09:38 AM   #9
slapNUT
Member
 
Registered: Jun 2001
Location: Recycle Bin
Distribution: Linux & Everything else on VirtualBox
Posts: 144

Rep: Reputation: 15
I think that mkinitrd, by default, will setup initrd as an ext2 filesystem, which means you must have ext2 support built into the kernel, not as a module.
 
Old 09-13-2003, 11:55 AM   #10
TigerOC
Senior Member
 
Registered: Jan 2003
Location: Devon, UK
Distribution: Debian Etc/kernel 2.6.18-4K7
Posts: 2,380

Original Poster
Rep: Reputation: 49
As an update I downloaded the debian kernel-source-2.4.22 today and used the same procedures described above to compile the kernel package. Installed 100% and is working perfectly. The debian source packages must be tweaked in some way. I will at some stage compile this kernel in the conventional way and see what the result is.
 
  


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
Debain kernel source or Linux kernel source? kushalkoolwal Debian 4 11-28-2005 01:56 PM
apt-get kernel-source is installing the wrong kernel source. JordanH Ubuntu 10 07-08-2005 05:42 PM
difference between "pure" kernel source, and .deb packaged kernel source microsoft/linux Debian 1 06-19-2005 10:28 PM
totem packaging and my kernel dont mix nephritis Linux - Software 0 08-18-2004 04:55 PM
kernel 2.4.23 packaging build error Modify Debian 3 12-07-2003 03:51 AM

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

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