Problem in compiling kernel

Daniel Baluta daniel.baluta at gmail.com
Tue Jun 28 14:08:17 EDT 2011


On Tue, Jun 28, 2011 at 8:39 PM, Ponkumaran Annadurai
<aspkumaran at gmail.com> wrote:
>
>
> I got struck in making initrd file, I got the following error
>
>
> root at rocker:/boot# mkinitramfs -o  initrd.img-2.6.39.1 2.6.39.1Y

2.6.39.1Y? - shouldn't it be 2.6.39.1.

These days I cooked a script to compile the kernel. Perhaps it helps.

KERNEL_DIR=/home/daniel/src/linux
KERNEL_VER=3.0.0-rc4

cd $KERNEL_DIR

#build kernel and images
make bzImage
make modules
make modules_install

#copy newly created image to /boot

cp $KERNEL_DIR/arch/x86/boot/bzImage /boot/vmlinuz-$KERNEL_VER
cp $KERNEL_DIR/.config /boot/config-$KERNEL_VER
cp $KERNEL_DIR/System.map /boot/System.map-$KERNEL_VER

#setup initrd image
cd /boot
mkinitramfs -o initrd.img-$KERNEL_VER $KERNEL_VER

thanks,
Daniel.



More information about the Kernelnewbies mailing list