LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


View Poll Results: Recommended kernel:
2.4.* 0 0%
2.6.* 0 0%
2.8.* 0 0%
6.9.* 2 100.00%
Multiple Choice Poll. Voters: 2. You may not vote on this poll

Reply
  Search this Thread
Old 07-27-2006, 10:30 AM   #1
linead
LQ Newbie
 
Registered: Jul 2006
Location: MA
Distribution: Debian 3.1
Posts: 4

Rep: Reputation: 0
Kernel 2.6.17.6 - kernel panic on initramfs


Hello,

I charged into compiling the 2.6.17.6 kernel, updating from my initial kernel 2.4.27 for sarge 3.1r2 on my IBM thinkpad 600x - but have been getting a consistent initramfs kernel panic error. I have recompiled 5 times looking for possible fixes in the menuconfig, with no success. I am a newbie to linux, although had some success figuring out the initial install and playing with the basics.

Here is the error (occurs very early during the boot):
"Unpacking initramfs...<0>Kernel panic - not syncing: bad gzip magic numbers"

of course, I set initramfs = () per the help, since i don't know where else to send it. I've also looked all over the web for initramfs and kernel 2.6.* compiling info. I may have been overzealous in my cleaning out "unecessary" modules and options during my 5 successive attempts, but I'm following the help recommendations as much as possible.

I haven't found other questions that address this error. I'm still learning the ropes, although I'm sadly getting used to recompiling again and again... Please help!

 
Old 07-27-2006, 10:36 AM   #2
Dutch Master
Senior Member
 
Registered: Dec 2005
Posts: 1,686

Rep: Reputation: 124Reputation: 124
I used this guide to get my 2.6.17.* kernels working: http://www.digitalhermit.com/linux/K...ild-HOWTO.html The only thing you'll need to change is to add the -o switch when building the initrd file. 'Cause mkinitrd nowadays defaults to writing to /dev/null (e.i. the digital wastebasket) unless an outputfile is specified. Good luck!
 
Old 07-27-2006, 10:48 AM   #3
linead
LQ Newbie
 
Registered: Jul 2006
Location: MA
Distribution: Debian 3.1
Posts: 4

Original Poster
Rep: Reputation: 0
many thanks - checking it out...

Thanks Dutch Master.
I'm not entirely sure how to add in the -o switch for the initrd build. I'm still in the need for very verbose descriptions...

I'm checking out the link.
 
Old 07-27-2006, 10:51 AM   #4
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170

Rep: Reputation: 244Reputation: 244Reputation: 244
Quote:
Originally Posted by linead
Thanks Dutch Master.
I'm not entirely sure how to add in the -o switch for the initrd build. I'm still in the need for very verbose descriptions...

I'm checking out the link.
Give up on an initrd and compile support for your file system, chipset on the motherboard .... directly into the kernel then the problem is solved.
 
Old 07-27-2006, 10:57 AM   #5
Dutch Master
Senior Member
 
Registered: Dec 2005
Posts: 1,686

Rep: Reputation: 124Reputation: 124
Look in the section "Create Initial RAMDisk", there is a command "$ mkinitrd /boot/initrd-2.6.0.img 2.6.0" You'll need to change that command to "mkinitrd -o /path/to/initrd.img-<kernel-version>" Make sure you've got all modules you want to include into the Ramdisk in the proper directory, /lib/modules/<version>/initrd is the best option (but may clash with your current kernel)

<edit>HappyTux gives a good alternative, but for most users perhaps a bit too much geeky (read as: complicated)</edit>

Last edited by Dutch Master; 07-27-2006 at 10:59 AM.
 
Old 07-27-2006, 02:14 PM   #6
linead
LQ Newbie
 
Registered: Jul 2006
Location: MA
Distribution: Debian 3.1
Posts: 4

Original Poster
Rep: Reputation: 0
Thnx

am recompiling and adjusting the mkinitrd.

RE: skipping initrd and compiling fs and chipset into kernel - this is what I have been attempting for the past 5 tries.

currently I have ext3, ext2, and reiserfs all loading, although i hadn't included reiserfs before. Or are you refering to something else?

I'm not clear on how else to do this, almost everything is loaded into the kernel and i have only a few modules. my chipset (PIII coppermine) is already highlighted. Once this latest compile is complete per the mkinitrd suggestions, I'll report back.

Thanks again
 
Old 07-27-2006, 02:37 PM   #7
linead
LQ Newbie
 
Registered: Jul 2006
Location: MA
Distribution: Debian 3.1
Posts: 4

Original Poster
Rep: Reputation: 0
Well,
after some initial pain I am successfully into 2.6.17.6!!!
Yea Thank you VERY MUCH!!
 
Old 07-27-2006, 07:05 PM   #8
JackieBrown
Member
 
Registered: Dec 2004
Location: San Antonio, TX
Distribution: Debian-AMD64 Sid
Posts: 481

Rep: Reputation: 31
I voted for 6.9. You really are looking toward the future
 
Old 08-01-2006, 07:03 AM   #9
gkiagia
Member
 
Registered: Oct 2003
Location: Greece
Distribution: Debian sid
Posts: 248

Rep: Reputation: 30
Is there a kernel 2.8.* and 6.9.* ???? The latest stable version is 2.6.17.7 !!!
 
Old 08-01-2006, 10:00 AM   #10
Penguin of Wonder
Senior Member
 
Registered: Sep 2005
Location: West Virginia
Distribution: Gentoo
Posts: 1,249

Rep: Reputation: 45
Quote:
Originally Posted by gkiagia
Is there a kernel 2.8.* and 6.9.* ???? The latest stable version is 2.6.17.7 !!!
No. 2.8 is still in alpha and 6.9 is an obvious sexual reference.
 
Old 08-01-2006, 02:00 PM   #11
RavenOfOdin
Member
 
Registered: Feb 2006
Location: Arkansas, C.S.A
Distribution: Ubuntu 6.06 LTS, PC / Debian Etch 2.6.16.17 PPC
Posts: 60

Rep: Reputation: 15
I'll try that guide out. I've been having some problems of my own when it comes to recent kernel compilation.
 
Old 08-02-2006, 11:30 AM   #12
gkiagia
Member
 
Registered: Oct 2003
Location: Greece
Distribution: Debian sid
Posts: 248

Rep: Reputation: 30
Quote:
Originally Posted by Penguin of Wonder
No. 2.8 is still in alpha and 6.9 is an obvious sexual reference.
Oh, now I see the light.
 
Old 12-14-2006, 12:54 AM   #13
kernelyogi
LQ Newbie
 
Registered: Dec 2006
Distribution: Debian 3.1 R3, SLES10
Posts: 3

Rep: Reputation: 0
Unhappy

Quote:
Originally Posted by linead
Well,
after some initial pain I am successfully into 2.6.17.6!!!
Yea Thank you VERY MUCH!!
What did you change? I tried both the options -

Quote:
Originally Posted by HappyTux
Give up on an initrd and compile support for your file system, chipset on the motherboard .... directly into the kernel then the problem is solved.
and

Quote:
Originally Posted by Dutch Master
there is a command "$ mkinitrd /boot/initrd-2.6.0.img 2.6.0" You'll need to change that command to "mkinitrd -o /path/to/initrd.img-<kernel-version>" Make sure you've got all modules you want to include into the Ramdisk in the proper directory, /lib/modules/<version>/initrd is the best option (but may clash with your current kernel)
Also, note that "/lib/modules/<version>/initrd" was not found in my system after compilation. How to get it? I am in learning/falling mode. Pls help!

My system is Debian 3.1 R3 and trying the latest 2.6.19 kernel.

~kernelyogi
 
Old 12-14-2006, 03:21 AM   #14
gkiagia
Member
 
Registered: Oct 2003
Location: Greece
Distribution: Debian sid
Posts: 248

Rep: Reputation: 30
What is your problem exactly? What happens if you compile everything you need into the kernel and boot without an initrd?
 
Old 12-14-2006, 03:35 AM   #15
kernelyogi
LQ Newbie
 
Registered: Dec 2006
Distribution: Debian 3.1 R3, SLES10
Posts: 3

Rep: Reputation: 0
I am getting the same error as OP - Unpacking initramfs...<0>Kernel panic - not syncing: bad gzip magic numbers.
I have not tried booting without initrd. Can that be done?
TIA,
~kernelyogi
 
  


Reply

Tags
compile, initramfs, panic


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
Kernel 2.4 in Zipslack (Waring: unable to open an initial console | Kernel Panic...) kurtamos Linux - General 2 05-10-2006 12:58 PM
kernel panic: try passing init= option to kernel...installation with Red Hat 9 kergen Linux - Hardware 1 09-30-2004 03:28 AM
Linux Kernel Problem -- Kernel panic: CPU context corrupt crcooney Linux - Distributions 0 01-15-2004 08:48 AM
YaST Online Update + AMD kernel patch = kernel panic THX1138 Linux - General 3 10-26-2003 04:25 PM

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

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