VectorLinux
October 20, 2014, 01:28:30 am *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Visit our home page for VL info. To search the old message board go to http://vectorlinux.com/forum1. The first VL forum is temporarily offline until we can find a host for it. Thanks for your patience.
 
Now powered by KnowledgeDex.
   Home   Help Search Login Register  
Please support VectorLinux!
Pages: [1]
  Print  
Author Topic: kernel compile error: virtual box  (Read 3496 times)
icedtea
Vectorite
***
Posts: 142



« on: June 03, 2008, 02:02:16 am »

hi, i tried compiling linux 2.6.25.4 in my VL5.8 (guest OS in virtual box)

i have compiled the 2.6.25.4 kernel already and have loaded it in grub for a test .. BUT since im getting a problem I HAVE tried turning back to the original kernel.. BUT WHY eventhough i have commented out the test kernel in menu.lst still the new kernel is sitll loading ??

details :


#TEST KERNEL

#title Test Kernel
# root (hd0, 4)
# kernel /boot/bzImage-2.6.25.4 root=/dev/hda5 ro vga=normal
# initrd /boot/initrd.img-2.6.25.4


BUT when i check uname -a

Linux vector.linux.net 2.6.25.4




please help. .   Huh  thanks
« Last Edit: June 03, 2008, 03:37:51 am by icedtea » Logged

using VL 5.1 SOHO , 5.8 GOLD
uelsk8s
Administrator
Vectorian
*****
Posts: 2504



« Reply #1 on: June 03, 2008, 04:40:02 am »

how did you install the kernel?

Logged
icedtea
Vectorite
***
Posts: 142



« Reply #2 on: June 03, 2008, 04:49:07 am »

i have downloaded it from the site.. uncompressed the file to /usr/src

1, make menuconfig

then :

Root device is (3, 5)
Setup is 11096 bytes (padded to 11264 bytes).
System is 2712 kB
Kernel: arch/x86/boot/bzImage is ready  (#1)
  Building modules, stage 2.
  MODPOST 1 modules
  CC      drivers/scsi/scsi_wait_scan.mod.o
  LD [M]  drivers/scsi/scsi_wait_scan.ko
vector://usr/src/linux-2.6.25.4


root:# make modules
  CHK     include/linux/version.h
  CHK     include/linux/utsrelease.h
  CALL    scripts/checksyscalls.sh
  Building modules, stage 2.
  MODPOST 1 modules
vector://usr/src/linux-2.6.25.4
root:#                     



root:# make modules_install
  INSTALL drivers/scsi/scsi_wait_scan.ko
  DEPMOD  2.6.25.4
vector://usr/src/linux-2.6.25.4
root:#                           



oot:# mkinitrd -o initrd.img-2.6.25.4
vector://boot
root:# ls
System.map           bitmap/          grub/         initrd.img-2.6.25.4  vmlinuz.old
System.map-2.6.20.3  config@          initrd        vmlinuz
System.old           config-2.6.20.3  initrd-tree/  vmlinuz-2.6.20.3


_______________________________________

btw i have resolved my problem.. (sorry since its my first time to compile a kernel )

here it goes


1. my EDITED grub/menu.lst

# Start GRUB global section
timeout 60
default 0
splashimage=(hd0,4)/boot/bitmap/boot.xpm
#color light-gray/blue black/light-gray
# End GRUB global section
# Linux bootable partition config begins
  title Linux on (/dev/hda5)
  root (hd0,4)
  kernel /boot/vmlinuz-2.6.20.3 root=/dev/hda5 ro vga=normal
# Linux bootable partition config ends

#TEST KERNEL

 title Test Kernel (/dev/hda5)
  root (hd0,4)
  kernel /boot/bzImage-2.6.25.4 root=/dev/hda5 ro vga=normal
 #initrd /boot/initrd.img-2.6.25.4


___________________________________________


the reason ON WHY i was not able to roll back at my previous kernel is because of this :

# Linux bootable partition config begins
  title Linux on (/dev/hda5)
  root (hd0,4)
  kernel /boot/vmlinuz-2.6.20.3 root=/dev/hda5 ro vga=normal
# Linux bootable partition config ends

the KERNEL loaded is vmlinuz and NOT the one posted above..
i think vmlinuz was created since i have compiled my kernel ...

the reason for me knowing this is because of the timestamp :

root:# ls -l vm*
-rw-r--r-- 1 root root 2788076 2008-06-03 18:25 vmlinuz
-rw-r--r-- 1 root root 3937096 2007-05-13 11:38 vmlinuz-2.6.20.3
-rw-r--r-- 1 root root 2788076 2008-06-03 17:48 vmlinuz.old


so i just used the ORIG vmlinuz-2.6.20.3

and now i can load my previous kernel..


thanks Smiley


NOW my problem  is upon using the TEST KERNEL.. my firewall is NOT working including the internet..  everytime i start  the firwall it will say something like :

your iptables or kernel must be upgraded.. .

question: CAN I STILL MODIFY my test kernel then re-compile it? (to be able to somehow figure out the firewall problem )




« Last Edit: June 03, 2008, 04:52:16 am by icedtea » Logged

using VL 5.1 SOHO , 5.8 GOLD
uelsk8s
Administrator
Vectorian
*****
Posts: 2504



« Reply #3 on: June 03, 2008, 04:57:01 am »

you can change the options in the kernel config and recompile it as many times as you want.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!