Re: Problem in compiling kernel

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

 



On Tue, Jun 28, 2011 at 8:39 PM, Ponkumaran Annadurai
<aspkumaran@xxxxxxxxx> wrote:
>
>
> I got struck in making initrd file, I got the following error
>
>
> root@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.

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies



[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux