LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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, 11:48 AM   #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, 04:59 AM   #2
k3lt01
Senior Member
 
Registered: Feb 2011
Location: Australia
Distribution: Debian Wheezy, Jessie, Sid/Experimental, playing with LFS.
Posts: 2,757

Rep: Reputation: 575Reputation: 575Reputation: 575Reputation: 575Reputation: 575Reputation: 575
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 05:00 AM.
 
Old 04-10-2012, 08:41 AM   #3
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 11,290
Blog Entries: 3

Rep: Reputation: 1446Reputation: 1446Reputation: 1446Reputation: 1446Reputation: 1446Reputation: 1446Reputation: 1446Reputation: 1446Reputation: 1446Reputation: 1446
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 06:19 PM
Failed to symbolic-link boot/initrd.img-2.6.18-4-486 to initrd.img Scotteh Linux - Software 8 06-01-2007 11:24 PM
Kernel initrd.img? microsoft/linux Debian 15 10-29-2004 12:35 PM
initrd.img GONE after kernel instal?!?! denniz Debian 5 08-17-2004 03:55 PM
no initrd.img after install of new kernel? denniz Linux - General 1 08-17-2004 09:25 AM


All times are GMT -5. The time now is 10:38 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration