kernel compiling problemos

Place to discuss SUSE
Locked
Master of Reality
guru
guru
Posts: 562
Joined: Thu Jan 09, 2003 8:25 pm

kernel compiling problemos

Post by Master of Reality » Mon Oct 24, 2005 9:39 am

So i tried to compile my own kernel in SuSE 10, i thought i learned from my slackware attempt, but i screwed something over.

After booting with the new kernel i couldnt mount my vfat drive (mount says type vfat unknown). I compiled vfat support into the kernel though.

So... i tried booting my old kernel (which would be 2.6.13-8-default.old and i copied it to 2.6.13-8-original to prevent me accidentally overwriting it) and it says the same thing for some reason. And when i do uname -a it says im using 2.6.13-default which is what my newly compiled kernel is.

My Xen kernel is still working fine to boot with and use to mount my vfat partition.
Any idea as to where the problem is?

heres my ls -l of boot and grub.conf, i cant see whats wrong with this.

Code: Select all

total 20695
drwxr-xr-x   3 root root    1168 Oct 24 11:29 .
drwxr-xr-x  23 root root     536 Oct 24 07:25 ..
-rw-r--r--   1 root root  963513 Oct 24 10:05 System.map-2.6.13-8-default
-rw-r--r--   1 root root  899631 Sep  6 12:49 System.map-2.6.13-8-default.old
-rw-r--r--   1 root root  895762 Sep  6 12:37 System.map-2.6.13-8-xen
-rw-------   1 root root     512 Sep 25 02:39 backup_mbr
lrwxrwxrwx   1 root root       1 Sep 25 02:32 boot -> .
-rw-r--r--   1 root root   55579 Sep  6 13:04 config-2.6.13-8-default
-rw-r--r--   1 root root   53165 Sep  6 12:43 config-2.6.13-8-xen
drwxr-xr-x   2 root root     544 Oct 24 11:08 grub
lrwxrwxrwx   1 root root      23 Oct 24 10:13 initrd -> initrd-2.6.13-8-default
-rw-r--r--   1 root root 2448802 Oct 24 10:13 initrd-2.6.13-8-default
-rw-r--r--   1 root root 2498478 Sep 25 02:39 initrd-2.6.13-8-xen
lrwxrwxrwx   1 root root      19 Sep 25 02:37 initrd-xen -> initrd-2.6.13-8-xen
-rw-r--r--   1 root root       0 Oct 24 11:29 lsoutput
-rw-r--r--   1 root root   90292 Sep  3 06:50 memtest.bin
-rw-r--r--   1 root root  159232 Oct  6 07:14 message
-rw-r--r--   1 root root   70910 Sep  6 13:05 symvers-2.6.13-8-x86_64-default.gz
-rw-r--r--   1 root root   68338 Sep  6 12:44 symvers-2.6.13-8-x86_64-xen.gz
-rw-r--r--   1 root root 1887147 Sep  6 13:04 vmlinux-2.6.13-8-default.gz
-rw-r--r--   1 root root 1898291 Sep  6 12:43 vmlinux-2.6.13-8-xen.gz
lrwxrwxrwx   1 root root      24 Oct 24 10:13 vmlinuz -> vmlinuz-2.6.13-8-default
-rw-r--r--   1 root root 1857629 Oct 24 10:06 vmlinuz-2.6.13-8-default
-rw-r--r--   1 root root 1606867 Sep  6 12:49 vmlinuz-2.6.13-8-default.old
-rw-r--r--   1 root root 1606867 Oct 24 10:16 vmlinuz-2.6.13-8-original
-rw-r--r--   1 root root 1585839 Sep  6 12:37 vmlinuz-2.6.13-8-xen
lrwxrwxrwx   1 root root      20 Sep 25 02:37 vmlinuz-xen -> vmlinuz-2.6.13-8-xen
lrwxrwxrwx   1 root root      17 Sep 25 02:38 xen-3.0.gz -> xen-3.0_6610-2.gz
-rw-r--r--   1 root root  202686 Sep  5 19:53 xen-3.0_6610-2.gz
lrwxrwxrwx   1 root root      17 Sep 25 02:38 xen-3.gz -> xen-3.0_6610-2.gz
lrwxrwxrwx   1 root root      19 Sep 25 02:38 xen-syms -> xen-syms-3.0_6610-2
-rw-r--r--   1 root root 2284728 Sep  5 19:53 xen-syms-3.0_6610-2
lrwxrwxrwx   1 root root      10 Sep 25 02:38 xen.gz -> xen-3.0.gz

Code: Select all

# Modified by YaST2. Last modification on Thu Oct  6 07:14:39 EDT 2005

color white/blue black/light-gray
default 0
timeout 1000 
gfxmenu (hd0,1)/boot/message

###Don't change this comment - YaST2 identifier: Original name: linux###
title SUSE LINUX 10.0
    root (hd0,1)
    kernel /boot/vmlinuz-2.6.13-8-original root=/dev/hda2 vga=0x314 selinux=0 resume=/dev/hda3  showopts
    initrd /boot/initrd-2.6.13-8-default

# Custom compiled kernel 
title SUSE LINUX 10.0 (custom)
   root (hd0,1)
   kernel /boot/vmlinuz root=/dev/hda2 vga=0x314 selinux=0 resume=/dev/hda3 showopts
   initrd /boot/initrd

###Don't change this comment - YaST2 identifier: Original name: xen###
title XEN
    root (hd0,1)
    kernel /boot/xen.gz dom0_mem=393216
    module /boot/vmlinuz-xen root=/dev/hda2 vga=0x314 selinux=0    resume=/dev/hda3  splash=silent showopts
    module /boot/initrd-xen

###Don't change this comment - YaST2 identifier: Original name: windows###
title Windows
    chainloader (hd0,0)+1

###Don't change this comment - YaST2 identifier: Original name: failsafe###
title Failsafe -- SUSE LINUX 10.0
    root (hd0,1)
    kernel /boot/vmlinuz root=/dev/hda2 vga=normal showopts ide=nodma apm=off acpi=off noresume selinux=0 edd=off 3
    initrd /boot/initrd

###Don't change this comment - YaST2 identifier: Original name: memtest86###
title Memory Test
    kernel (hd0,1)/boot/memtest.bin

[/code]

User avatar
Void Main
Site Admin
Site Admin
Posts: 5716
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA
Contact:

Post by Void Main » Mon Oct 24, 2005 10:43 am

Renaming the kernel will not change the output of "uname -a". uname will display whatever the kernel was compiled as. If they both were compiled as "*-default" then no matter which one you boot will show the name "default". Now, the compile times should distinguish the two (also listed in uname -a).

Master of Reality
guru
guru
Posts: 562
Joined: Thu Jan 09, 2003 8:25 pm

Post by Master of Reality » Mon Oct 24, 2005 1:43 pm

My compile time is september 6 (the date i installed suse), so what else does a new compile effect. Would it have anything to do with initrd or the system.map ?

Master of Reality
guru
guru
Posts: 562
Joined: Thu Jan 09, 2003 8:25 pm

Post by Master of Reality » Tue Oct 25, 2005 7:02 am

do you think finding and reinstalling the kernel rpm would make it back to the original way it was?

User avatar
Void Main
Site Admin
Site Admin
Posts: 5716
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA
Contact:

Post by Void Main » Tue Oct 25, 2005 8:38 am

Yeah it should. Sorry I haven't responded but I didn't see anything wrong with just a quick look and I've been pretty busy so haven't had a lot of time to think about your problem.

Master of Reality
guru
guru
Posts: 562
Joined: Thu Jan 09, 2003 8:25 pm

Post by Master of Reality » Wed Oct 26, 2005 12:29 pm

so i upgraded the kernel rpm (with one slightly newer!) , compiled my ndiswrapper with the new kernel and everything works great. I even have a connection over my schools VPN now.

Locked