LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 04-09-2012, 12:48 PM   #1
MostViktorious
LQ Newbie
 
Registered: Oct 2010
Location: Toronto, Canada
Distribution: Arch Linux
Posts: 25

Rep: Reputation: 1
Question Having issues with creating initrd.img for a 3.3.1 kernel


I'm interested in compiling a 3.3.1 kernel to work on my Debian machine, to replace my current 2.6.32-5-amd64 kernel.

So far, I've:\
downloaded the archive,
unzipped it,
ran make,
make modules,
make install,
make modules_install
makeinitramfs /boot/initrd.img-3.3.1 3.3.1
sudo update-grub

After restarting, I booted into the 3.3.1 kernel. I open up my wicd manager to select a wifi network(part of my reason to upgrade kernels was support for my wifi chipset), and then it starts lagging like crazy.

When I go back to my current 2.6.32 kernel, I noticed the difference between the initrd images. The initrd image for my current kernel is 8.9 MB, while the initrd image for the new 3.3.1 kernel is a whopping 157.4 MB.

I've also checked the /lib/modules/3.3.1/ directory, and it's 1.27 GB, as opposed to like, ~10 MB for /lib/modules/2.6.32-5-amd64.

I used make menuconfig to configure the makefile, and I tried to be as conservative as possible, selecting only drivers that I need etc...

But how in the heck do I have 1.27 GB of modules, and consequently a 157.4 MB initrd image? I think that's the main reason why the 3.3.1 started lagging.

How can I make a reasonably sized initrd image and module directory?

I was playing with the idea of just proceeding like normally, and deleting the modules in lib/modules/3.3.1/ that I didn't need, AND THEN creating an initrd image.

Any ideas?
 
Old 04-10-2012, 05:59 AM   #2
k3lt01
Senior Member
 
Registered: Feb 2011
Location: Australia
Distribution: Debian Wheezy, Jessie, Sid/Experimental, playing with LFS.
Posts: 2,900

Rep: Reputation: 637Reputation: 637Reputation: 637Reputation: 637Reputation: 637Reputation: 637
My 3.2 from Debian is 105 MB and my self compiled 3.3 is also 105 MB in /lib/modules

The initrd.img are 10.2 and 10.6 respectively, so I don;t know why yours is so big? did you do this using debian tools?

You could enable backports and install 3.0.2 from backports

Last edited by k3lt01; 04-10-2012 at 06:00 AM.
 
Old 04-10-2012, 09:41 AM   #3
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,971
Blog Entries: 46

Rep: Reputation: 3195Reputation: 3195Reputation: 3195Reputation: 3195Reputation: 3195Reputation: 3195Reputation: 3195Reputation: 3195Reputation: 3195Reputation: 3195Reputation: 3195
Moderator response

Moved: This thread is more suitable in <Linux-Kernel> and has been moved accordingly to help your thread/question get the exposure it deserves.
 
  


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
problem wiht creating initrd (initramfs.img) file using dracut Crackel Linux - Kernel 0 10-26-2010 07:19 PM
Failed to symbolic-link boot/initrd.img-2.6.18-4-486 to initrd.img Scotteh Linux - Software 8 06-02-2007 12:24 AM
Kernel initrd.img? microsoft/linux Debian 15 10-29-2004 01:35 PM
initrd.img GONE after kernel instal?!?! denniz Debian 5 08-17-2004 04:55 PM
no initrd.img after install of new kernel? denniz Linux - General 1 08-17-2004 10:25 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 05:19 AM.

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