Re: kernel number doubt

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Monday 20 September 2004 02:56, Brian Mury wrote:
>On Sun, 2004-09-19 at 23:35, Gene Heskett wrote:
>> Are you using an initrd?  I don't, I use /lib/modules/$VERSION,
>> but IIRC either also has to carry that same version in its
>> internal modules.  For /lib/modules/$VERSION, that dirname must
>> also match.
>
>Yes, I'm using an initrd.
>
>The top of the makefile looks like this:
>VERSION = 2
>PATCHLEVEL = 6
>SUBLEVEL = 8
>EXTRAVERSION = .1-Win4Lin
>NAME=Zonked Quokka
>
>make modules_install puts the modules here:
>/lib/modules/2.6.8.1-Win4Lin
>
>I make the initrd like this:
>mkinitrd -f /boot/initrd-2.6.8.1-Win4Lin.img 2.6.8.1

I'd think that you would need the -Win4Lin appended to the second 
argument too, else your initrd will be very small because there are 
no "2.6.8.1" modules.

Try it like this from the top level of the kernel src:
mkinitrd -f initrd-2.6.8.1-Win4Lin.img 2.6.8.1-Win4Lin

OTOH, not being an initrd user, I could be full of it.  But the first 
thing I'd check would be the size of the initrd it makes.  And if the 
above command makes a bigger one than the one in /boot, then thats 
the definitive clue.

>I put the kernel and System.map here:
>/boot/bzImage-2.6.8.1-Win4Lin
>/boot/System.map-2.6.8.1-Win4Lin
>ln -s /boot/System.map-2.6.8.1-Win4Lin /boot/System.map
>
>GRUB entry looks like this:
>title Test Kernel
>        root (hd0,0)
>        kernel /bzImage-2.6.8.1-Win4Lin ro root=LABEL=/ rhgb quiet
>        initrd /initrd-2.6.8.1-Win4Lin.img
>
>Here's what I get when it boots:
>
>jdb: version magic '2.6.8.1 K7 gcc-3.3' should be '2.6.8.1-Win4Lin
> K7 gcc-3.3' insmod: error inserting '/lib/jbd.ko': -1 Invalid
> module format ERROR: /bin/insmod exited abnormally!
>ext3: version magic '2.6.8.1 K7 gcc-3.3' should be '2.6.8.1-Win4Lin
> K7 gcc-3.3' insmod: error inserting '/lib/ext3.ko': -1 Invalid
> module format ERROR: /bin/insmod exited abnormally!
>mount: error 19 mounting ext3
>pivotroot: pivot_root(/sysroot,/sysroot/initrd) failed: 2
>umount /initrd/proc failed: 2
>kernel panic: No init found. Try passing init= option to kernel.

-- 
Cheers, Gene
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
99.26% setiathome rank, not too shabby for a WV hillbilly
Yahoo.com attorneys please note, additions to this message
by Gene Heskett are:
Copyright 2004 by Maurice Eugene Heskett, all rights reserved.



[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux