openSUSE Forums > Archives > Novell Archives » Kernel location in Suse 10

Go Back   openSUSE Forums > Archives > Novell Archives
Forums FAQ Members List Search Today's Posts Mark Forums Read


Novell Archives Archived content from Novell openSUSE support forums

 
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 14-Mar-2006, 13:52
chimera-777@hotmail.com
Guest
 
Posts: n/a
Default Kernel location in Suse 10

I can't seem to configure my kernel. I have ncurses-devel installed, but
when I try to:

linux:/usr/src/linux # make menuconfig
make: *** No rule to make target `menuconfig'. Stop.

Contents of /usr/src:

linux:/usr/src # ls -la
total 0
drwxr-xr-x 6 root root 192 Mar 14 10:41 .
drwxr-xr-x 13 root root 368 Feb 13 21:20 ..
drwxr-xr-x 3 root root 80 Mar 14 10:27 debug
drwxr-xr-x 15 root users 456 Mar 6 15:08 kernel-modules
lrwxrwxrwx 1 root root 22 Mar 14 10:41 linux -> linux-2.6.15-jad2-obj/
drwxr-xr-x 3 root root 72 Mar 14 11:37 linux-2.6.15-jad2-obj
drwxr-xr-x 7 root root 168 Feb 6 13:24 packages

Am I looking in the wrong place for the kernel sources?

  #2 (permalink)  
Old 14-Mar-2006, 13:55
chimera-777@hotmail.com
Guest
 
Posts: n/a
Default Kernel location in Suse 10

Sorry, this should be in the general forum. It is in networking, as I'm
trying to enable mppe supprot in the kernel for VPN connections.
  #3 (permalink)  
Old 14-Mar-2006, 14:37
baskitcaise
Guest
 
Posts: n/a
Default Re: Kernel location in Suse 10

chimera-777@hotmail.com adjusted his/her tinfoil beanie to post:

> I can't seem to configure my kernel. I have ncurses-devel installed,
> but when I try to:
>
> linux:/usr/src/linux # make menuconfig
> make: *** No rule to make target `menuconfig'. Stop.
>
> Contents of /usr/src:
>
> linux:/usr/src # ls -la
> total 0
> drwxr-xr-x 6 root root 192 Mar 14 10:41 .
> drwxr-xr-x 13 root root 368 Feb 13 21:20 ..
> drwxr-xr-x 3 root root 80 Mar 14 10:27 debug
> drwxr-xr-x 15 root users 456 Mar 6 15:08 kernel-modules
> lrwxrwxrwx 1 root root 22 Mar 14 10:41 linux ->
> linux-2.6.15-jad2-obj/
> drwxr-xr-x 3 root root 72 Mar 14 11:37 linux-2.6.15-jad2-obj
> drwxr-xr-x 7 root root 168 Feb 6 13:24 packages
>
> Am I looking in the wrong place for the kernel sources?


You have not got the kernel sources installed, you only have the obj
dir, the link linux should point to the full source dir.

You need to install the correct version of them as well, i see you are
using a different version from the release one so I suppose you will
have to grab them from kernel.org or wherever you got the 2.6.15 kernel
from.

HTH
--
Mark
Twixt hill and high water
N. Wales, UK
Novell Support Forums SysOp

  #4 (permalink)  
Old 14-Mar-2006, 15:31
chimera-777@hotmail.com
Guest
 
Posts: n/a
Default Re: Kernel location in Suse 10

Thx Mark, I'm in!


> chimera-777@hotmail.com adjusted his/her tinfoil beanie to post:
>
> > I can't seem to configure my kernel. I have ncurses-devel installed,
> > but when I try to:
> >
> > linux:/usr/src/linux # make menuconfig
> > make: *** No rule to make target `menuconfig'. Stop.
> >
> > Contents of /usr/src:
> >
> > linux:/usr/src # ls -la
> > total 0
> > drwxr-xr-x 6 root root 192 Mar 14 10:41 .
> > drwxr-xr-x 13 root root 368 Feb 13 21:20 ..
> > drwxr-xr-x 3 root root 80 Mar 14 10:27 debug
> > drwxr-xr-x 15 root users 456 Mar 6 15:08 kernel-modules
> > lrwxrwxrwx 1 root root 22 Mar 14 10:41 linux ->
> > linux-2.6.15-jad2-obj/
> > drwxr-xr-x 3 root root 72 Mar 14 11:37 linux-2.6.15-jad2-obj
> > drwxr-xr-x 7 root root 168 Feb 6 13:24 packages
> >
> > Am I looking in the wrong place for the kernel sources?

>
> You have not got the kernel sources installed, you only have the obj
> dir, the link linux should point to the full source dir.
>
> You need to install the correct version of them as well, i see you are
> using a different version from the release one so I suppose you will
> have to grab them from kernel.org or wherever you got the 2.6.15 kernel
> from.
>
> HTH
> --
> Mark
> Twixt hill and high water
> N. Wales, UK
> Novell Support Forums SysOp
>


  #5 (permalink)  
Old 14-Mar-2006, 15:46
chimera-777@hotmail.com
Guest
 
Posts: n/a
Default Re: Kernel location in Suse 10

One last question: After I make changes to the kernel, I need to update
some files in the /boot directory, namely bzImage, System.map, and config.
How do these files correspond with what's in my /boot:

drwxr-xr-x 4 root root 1024 Mar 14 11:48 .
drwxr-xr-x 25 root root 592 Mar 14 03:20 ..
-rw-r--r-- 1 root root 711060 Jan 12 13:22 System.map-2.6.15-jad2-default
-rw------- 1 root root 512 Feb 6 13:25 backup_mbr
lrwxrwxrwx 1 root root 1 Feb 6 13:20 boot -> .
-rw-r--r-- 1 root root 64346 Jan 12 13:31 config-2.6.15-jad2-default
drwxr-xr-x 2 root root 1024 Mar 14 11:48 grub
lrwxrwxrwx 1 root root 7 Mar 14 11:48 initrd -> initrd-
-rw-r--r-- 1 root root 1726869 Mar 6 15:08 initrd-2.6.15-jad2-default
drwx------ 2 root root 12288 Feb 6 13:16 lost+found
-rw-r--r-- 1 root root 128000 Feb 6 18:56 message
-rw-r--r-- 1 root root 74818 Jan 12 13:31
symvers-2.6.15-jad2-i386-default.gz
-rw-r--r-- 1 root root 1570039 Jan 12 13:30 vmlinux-2.6.15-jad2-default.gz
lrwxrwxrwx 1 root root 8 Mar 14 11:48 vmlinuz -> vmlinuz-
-rw-r--r-- 1 root root 1284290 Jan 12 13:22 vmlinuz-2.6.15-jad2-default

  #6 (permalink)  
Old 15-Mar-2006, 11:22
Tilman Schmidt
Guest
 
Posts: n/a
Default Re: Kernel location in Suse 10

chimera-777@hotmail.com wrote:

> One last question: After I make changes to the kernel, I need to update
> some files in the /boot directory, namely bzImage, System.map, and config.
> How do these files correspond with what's in my /boot:


This is how I do it:

SUFFIX=${VERSION}${CONFIG_LOCALVERSION}
cp arch/i386/boot/bzImage /boot/vmlinuz-${SUFFIX}
cp .config /boot/config-${SUFFIX}
cp Module.symvers /boot/symvers-${SUFFIX} && gzip -f /boot/symvers-${SUFFIX}
cp System.map /boot/System.map-${SUFFIX}
ln -sf vmlinuz-${SUFFIX} /boot/vmlinuz-test

where VERSION is the kernel version I am building (eg., 2.6.16-rc6-mm1)
and CONFIG_LOCALVERSION is the value by that name from your .config.
/boot/vmlinuz-test is a symlink for which I have an entry "Test Kernel"
in /boot/grub/menu.lst, in order to avoid editing it each time I try a
new kernel version.

HTH
Tilman
  #7 (permalink)  
Old 15-Mar-2006, 17:32
chimera-777@hotmail.com
Guest
 
Posts: n/a
Default Re: Kernel location in Suse 10

Perfect, I had it, with the exception of the symvers...Thanks!



> chimera-777@hotmail.com wrote:
>
> > One last question: After I make changes to the kernel, I need to update
> > some files in the /boot directory, namely bzImage, System.map, and config.
> > How do these files correspond with what's in my /boot:

>
> This is how I do it:
>
> SUFFIX=${VERSION}${CONFIG_LOCALVERSION}
> cp arch/i386/boot/bzImage /boot/vmlinuz-${SUFFIX}
> cp .config /boot/config-${SUFFIX}
> cp Module.symvers /boot/symvers-${SUFFIX} && gzip -f /boot/symvers-${SUFFIX}
> cp System.map /boot/System.map-${SUFFIX}
> ln -sf vmlinuz-${SUFFIX} /boot/vmlinuz-test
>
> where VERSION is the kernel version I am building (eg., 2.6.16-rc6-mm1)
> and CONFIG_LOCALVERSION is the value by that name from your .config.
> /boot/vmlinuz-test is a symlink for which I have an entry "Test Kernel"
> in /boot/grub/menu.lst, in order to avoid editing it each time I try a
> new kernel version.
>
> HTH
> Tilman


 

Bookmarks


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




 

Search Engine Friendly URLs by vBSEO 3.3.0 RC2