LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-29-2004, 12:39 PM   #1
qsir1
LQ Newbie
 
Registered: Feb 2004
Distribution: suse
Posts: 4

Rep: Reputation: 0
Angry mkinitrd problems (compiling new kernel)


After compiling (successfuly) a new 2.6.2 kernel from scratch I run mkinitrd but get the following error:

max3d:/usr/src/linux# mkinitrd -i /lib/modules/2.6.2 /boot/initrd-2.6.2.img
Using kernel_version from devices.inf 2.4.22-x1
Modules in ramdisk: jbd.o ext3.o /lib/modules/2.6.2
Modules: jbd.o ext3.o /lib/modules/2.6.2
Preload:
Could not copy modules! at /sbin/mkinitrd line 324.

FYI- my old kernel is 2.4.22. I tried compiling ext3 directly into the new kernel as opposed to a module but still had problems. Apparently it keeps trying to use the old kernel stuff because it can't find these 2 modules. Here's some more info

max3d:/usr/src/linux# ls /lib/modules/2.6.2/
build modules.generic_string modules.parportmap modules.usbmap
kernel modules.ieee1394map modules.pcimap
modules.dep modules.isapnpmap modules.pnpbiosmap

max3d:/usr/src/linux# ls /lib/modules/2.6.2/kernel/fs/
autofs ext3 msdos smbfs
binfmt_aout.ko fat nfs vfat
binfmt_misc.ko jbd nfsd
exportfs lockd nls

max3d:/usr/src/linux# ls /lib/modules/2.6.2/kernel/fs/ext3/
ext3.ko

max3d:/usr/src/linux# ls /lib/modules/2.6.2/kernel/fs/jbd/
jbd.ko


HELP
 
Old 02-29-2004, 04:51 PM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Linux Mint 17, Debian 8
Posts: 7,854

Rep: Reputation: 310Reputation: 310Reputation: 310Reputation: 310
"After compiling (successfuly) a new 2.6.2 kernel from scratch I run mkinitrd but get the following error:"

I think that you are trying to use the same initrd for both the 2.4.22 and the 2.6.2 kernels. Create separate initrds for the two kernels. Set up a dual boot and in your bootloader pass a different initrd to each kernel.

Personally, I prefer to leave the distribution's initrd as it is and not use an initrd in my compiled kerenels. You can dispense with initrd if you set to y all modules necessary for the kernel to access the / partition.

___________________________________
Be prepared. Create a LifeBoat CD.
http://users.rcn.com/srstites/LifeBo...home.page.html

Steve Stites

Last edited by jailbait; 02-29-2004 at 04:54 PM.
 
Old 02-29-2004, 05:03 PM   #3
qsir1
LQ Newbie
 
Registered: Feb 2004
Distribution: suse
Posts: 4

Original Poster
Rep: Reputation: 0
2 things:
First of all I am trying to create 2 separate initrd's. Thats my goal. It can't find some things to make the new image(2.6.2) so it uses the old module files(2.4.22) to create the image. Second of all, what can I compile directly into the kernel so it doesn't need mkinitrd. I already tried compiling ext3 into the kernel but I got all kinds of errors messages when booting so I figured I would give mkinitrd another shot and go for modules instead.
 
Old 02-29-2004, 06:36 PM   #4
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Linux Mint 17, Debian 8
Posts: 7,854

Rep: Reputation: 310Reputation: 310Reputation: 310Reputation: 310
"First of all I am trying to create 2 separate initrd's."
I guess I got it mixed up when I read your post. When I read "Apparently it keeps trying to use the old kernel stuff" I though that the new kernel was trying to use the old initrd.

"Second of all, what can I compile directly into the kernel so it doesn't need mkinitrd."

Off the top of my head, it needs the hardware driver for your hard drive controller, your hard drive driver, your file system type module, probably frame buffers, and the keyboard driver.

If you are using initrd then you need RAM disk support, loopback support, and initial RAM disk compiled into the bootable kernel.

___________________________________
Be prepared. Create a LifeBoat CD.
http://users.rcn.com/srstites/LifeBo...home.page.html

Steve Stites
 
Old 02-29-2004, 10:10 PM   #5
qsir1
LQ Newbie
 
Registered: Feb 2004
Distribution: suse
Posts: 4

Original Poster
Rep: Reputation: 0
I included frame buffer, loopback, initrd support and got the kernel to compile and run with no modules- everything directly compiled in. You da man- I forgot the aforementioned items However when it went through the initialization phase everything went haywire. Missing this, can't find that etc. I have Xandros 2 and I have a feeling that everything is heavily customized as I learned when I tried to install KDE 3.2. When the new kernel ran, the pretty Xandros bootup screen which tries to hide all the techie linux stuff is replaced by the standard loading this, running that, executing this phase and I get tons of errors about missing Xandros stuff. I would probably have been ok if I had a less customized version like Suse, Redhat, or Slackware. I never had kernel problems on those distros. I guess that's the choice you make- ease of use vs customization. No matter how hard some distros try to convince you that theirs is both great for both novices and techies- they are just wishful thinkers.
 
Old 03-01-2004, 09:40 AM   #6
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Linux Mint 17, Debian 8
Posts: 7,854

Rep: Reputation: 310Reputation: 310Reputation: 310Reputation: 310
"I get tons of errors about missing Xandros stuff."

You can probably get rid of some of these problems by reworking /etc/modules.conf. That is where the information is contained as to what modules to load which are not necessary for boot.

"the pretty Xandros bootup screen which tries to hide all the techie linux stuff is replaced by the standard loading this, running that, executing this phase"

You can get the Xandros bootup screen by changing the vga field in your bootloader config file.

___________________________________
Be prepared. Create a LifeBoat CD.
http://users.rcn.com/srstites/LifeBo...home.page.html

Steve Stites

Last edited by jailbait; 03-01-2004 at 10:25 AM.
 
  


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
Can't mkinitrd for Kernel 2.6.11.6 (when compiling) LordOfer Linux - Newbie 3 04-02-2005 11:20 AM
Trouble compiling kernel, mkinitrd step shrndegruv Linux - Software 3 01-23-2005 12:57 AM
what mkinitrd flag to use when compiling kernel for suse 9.1 feetyouwell Linux - Software 0 11-15-2004 10:41 AM
kernel 2.6.6 mkinitrd problem ziox Linux - Software 0 07-13-2004 07:48 PM
mkinitrd problems when compiling DropHit Red Hat 15 12-24-2003 06:41 PM


All times are GMT -5. The time now is 01:40 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration