I have followed the steps below according to a book:
Edited init/main.c as below:
Then I have edited the /boot/grub/menu.lst file. as below:
After that I have rebooted the OS. According to book suggestion I was suppose to see my added line in the beginning of the boot sequence
But all I have found is, I cant connect to internet anymore from that. What am I missing?
I am using this on VirtualBox.
Best Regards,
johny
Edited init/main.c as below:
Code:
asmlinkage void __init start_kernel(void)
{
..............
..............
//this line is added right after variable declaration
printk("Penguins are Cute, But so are polar bears\n");
............
............
}
Code:
bash>cd /usr/src/linux-x.y.z/ bash>make clean #bash>make menuconfig//i have skipped this part //instead i have done this bash>cp .config.old .config bash>make bzImage bash>cp arch/x86/boot/bzImage /boot/vmlinuz
Code:
title openSUSE 11.0 - 2.6.25.5-1.1 root(hd0,1) kernel /boot/vmlinuz root=/dev/disk/by-id/scsi-SATA_VBOX_HARDDISK_VB72b5415f-0465leee-part2 resume=/devsda1 splash=silent showopts initrd /boo/initrd-2.6.25.5.1.1-default
But all I have found is, I cant connect to internet anymore from that. What am I missing?
I am using this on VirtualBox.
Best Regards,
johny
Comment