2006-08-15 15:17:19

by Zeidler, Mike

[permalink] [raw]
Subject: Unable to boot kernel after compiling source for 2.6.17-1.2157

After building the kernel and copying the arch/i386/boot/bzImage to
/boot/vmlinuz-2.6.17-1.2157_FC5smp
and doing a make modules_install
and doing a mkinitrd
And modifying grub.conf to have the following lines

default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title Fedora Core (2.6.17-1.2157_FC5smp)
root (hd0,0)
kernel /vmlinuz-2.6.17-1.2157_FC5smp ro
root=/dev/VolGroup00/LogVol00 rhgb quiet
initrd /initrd-2.6.17-1.2157_FC5smp.img

I am still getting the following errors:


Insmod : error inserting '/lib/scsi_mod.ko' : -1 Operation not Permitted
Insmod : error inserting '/lib/sd_mod.ko' : -1 Operation not Permitted
Insmod : error inserting '/lib/libata.ko' : -1 Operation not Permitted
Insmod : error inserting '/lib/satasil24.ko' : -1 Operation not
Permitted
Insmod : error inserting '/lib/ata_piix.ko' : -1 Operation not Permitted
Insmod : error inserting '/lib/jbd.ko' : -1 Operation not Permitted
Insmod : error inserting '/lib/ext3' : -1 Operation not Permitted
Insmod : error inserting '/lib/dm_mod.ko' : -1 Operation not Permitted
Insmod : error inserting '/lib/mirror.ko' : -1 Operation not Permitted
Insmod : error inserting '/lib/zero.ko' : -1 Operation not Permitted
Insmod : error inserting '/lib/snapshot.ko' : -1 Operation not Permitted

Any advice?

Mike


2006-08-15 15:31:45

by Michal Piotrowski

[permalink] [raw]
Subject: Re: Unable to boot kernel after compiling source for 2.6.17-1.2157

Hi,

On 15/08/06, Zeidler, Mike <[email protected]> wrote:
> After building the kernel and copying the arch/i386/boot/bzImage to
> /boot/vmlinuz-2.6.17-1.2157_FC5smp
> and doing a make modules_install
> and doing a mkinitrd

Try to use new-kernel-pkg instead of mkinitrd
sudo /sbin/new-kernel-pkg --make-default --mkinitrd --depmod
--kernel-args="crashkernel=64M@16M" --install $VER

You can also use
http://www.stardust.webpages.pl/files/crap/kgbi2.sh

> And modifying grub.conf to have the following lines
>
> default=0
> timeout=5
> splashimage=(hd0,0)/grub/splash.xpm.gz
> hiddenmenu
> title Fedora Core (2.6.17-1.2157_FC5smp)
> root (hd0,0)
> kernel /vmlinuz-2.6.17-1.2157_FC5smp ro
> root=/dev/VolGroup00/LogVol00 rhgb quiet
> initrd /initrd-2.6.17-1.2157_FC5smp.img
>
> I am still getting the following errors:
>
>
> Insmod : error inserting '/lib/scsi_mod.ko' : -1 Operation not Permitted
> Insmod : error inserting '/lib/sd_mod.ko' : -1 Operation not Permitted
> Insmod : error inserting '/lib/libata.ko' : -1 Operation not Permitted
> Insmod : error inserting '/lib/satasil24.ko' : -1 Operation not
> Permitted
> Insmod : error inserting '/lib/ata_piix.ko' : -1 Operation not Permitted
> Insmod : error inserting '/lib/jbd.ko' : -1 Operation not Permitted
> Insmod : error inserting '/lib/ext3' : -1 Operation not Permitted
> Insmod : error inserting '/lib/dm_mod.ko' : -1 Operation not Permitted
> Insmod : error inserting '/lib/mirror.ko' : -1 Operation not Permitted
> Insmod : error inserting '/lib/zero.ko' : -1 Operation not Permitted
> Insmod : error inserting '/lib/snapshot.ko' : -1 Operation not Permitted
>
> Any advice?
>
> Mike

Regards,
Michal

--
Michal K. K. Piotrowski
LTG - Linux Testers Group
(http://www.stardust.webpages.pl/ltg/wiki/)

2006-08-15 15:34:27

by Arjan van de Ven

[permalink] [raw]
Subject: Re: Unable to boot kernel after compiling source for 2.6.17-1.2157

On Tue, 2006-08-15 at 17:31 +0200, Michal Piotrowski wrote:
> Hi,
>
> On 15/08/06, Zeidler, Mike <[email protected]> wrote:
> > After building the kernel and copying the arch/i386/boot/bzImage to
> > /boot/vmlinuz-2.6.17-1.2157_FC5smp
> > and doing a make modules_install
> > and doing a mkinitrd


it's even easier: just do a "make install"

it looks like the original bug is an selinux case (since nothing else
should prevent modules from loading ;).. could be a bad initrd could be
something else.



2006-08-15 18:47:26

by Zeidler, Mike

[permalink] [raw]
Subject: RE: Unable to boot kernel after compiling source for 2.6.17-1.2157

Thanks, doing the "make install" as root did the trick. Machine boots
like a charm.

Mike

-----Original Message-----
From: Arjan van de Ven [mailto:[email protected]]
Sent: Tuesday, August 15, 2006 11:34 AM
To: Michal Piotrowski
Cc: Zeidler, Mike; [email protected]
Subject: Re: Unable to boot kernel after compiling source for
2.6.17-1.2157

On Tue, 2006-08-15 at 17:31 +0200, Michal Piotrowski wrote:
> Hi,
>
> On 15/08/06, Zeidler, Mike <[email protected]> wrote:
> > After building the kernel and copying the arch/i386/boot/bzImage to

> > /boot/vmlinuz-2.6.17-1.2157_FC5smp
> > and doing a make modules_install
> > and doing a mkinitrd


it's even easier: just do a "make install"

it looks like the original bug is an selinux case (since nothing else
should prevent modules from loading ;).. could be a bad initrd could be
something else.