LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 01-06-2010, 08:30 AM   #1
ott0disk
Member
 
Registered: Nov 2008
Posts: 39

Rep: Reputation: 15
How to interact with the initramfs?


Hi all,could some one tell me how to tell the initramfs which module not to load??I've got a huge trouble with my new laptop,finally i discovered this is a kernel bug(conflict between the b43 module and acpi)so it can't boot.The solution is,pull off ssb and b43 module from the initramfs and load them in a higher runlevel..HOW TO DO THAT?thanks
 
Old 01-06-2010, 04:24 PM   #2
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,399
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
There are numerous online articles that explain how to decompose an initramfs. One that looks like a good starting point is Decompress and compress initramfs images.
As far as loading drivers post-boot, that may be as simple as adding entries for the drivers to /etc/modprobe.conf

--- rod.
 
Old 01-06-2010, 08:20 PM   #3
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Linux 11 (Bullseye)
Posts: 3,407

Rep: Reputation: 141Reputation: 141
The most important question is can you boot? If you can, then it's just a matter of making whatever changes you need to make and then running "update-initramfs" (see the man page for parameters). If you can't boot, then you're going to need to do something like the following:

1. Boot from a liveCD
2. With a terminal session, "chroot" into your drive and make your changes
3. Run "update-initramfs" with the appropriate paramaters.
 
Old 01-06-2010, 10:10 PM   #4
vishesh
Member
 
Registered: Feb 2008
Distribution: Fedora,RHEL,Ubuntu
Posts: 661

Rep: Reputation: 66
You can edit initramfs to include any module using following step
mkdir /root/temp
cd /root/temp
gzip -d /boot/initrd-2.6.27.7.img|cpio -i
After that you got content of initrd in /root/temp folder.
Then edit/root/temp/init file and then again create cpio archived initrd
cd /root/temp
find .|cpio --create --format 'newc'>/tmp/myinitrd
gzip /tmp/myinitrd
cp /tmp/myinitrd /boot/

Now boot using myinitrd
 
  


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
Having objects interact in C++? PoopLoops Programming 25 05-28-2009 11:25 PM
Interact PC Powerpad Pro Niteskye Linux - Hardware 0 07-25-2004 07:59 AM
Interact ACT! thanko Linux - Software 3 03-14-2004 07:30 PM
InterAct magnum 6 on mandrake 9.2 storyteller Linux - Hardware 1 12-26-2003 07:38 PM
Need to interact with VB / COM from Perl jpbarto Programming 0 10-08-2003 10:10 AM

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

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