Unix Technical Forum

compiling/installing a kernel on a sub-tree

This is a discussion on compiling/installing a kernel on a sub-tree within the Slackware Linux Support forums, part of the Unix Operating Systems category; --> Hello, I'm trying to build a subtree on my system, that could be exported for a diskless workstation. If ...


Go Back   Unix Technical Forum > Unix Operating Systems > Slackware Linux Support

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-19-2008, 03:38 PM
Gauthier
 
Posts: n/a
Default compiling/installing a kernel on a sub-tree

Hello,

I'm trying to build a subtree on my system, that could be exported for a
diskless workstation. If I compile a new kernel, what is the comand/option to
install the kernel, the modules (and the system map ?) to this place
rather than on the root system ?

By the way, is it possible to build packages when one compile kernel and
modules, so that it could be installed with installpkg ?

thanks in advance,
--
^^ Gauthier
(_____/°°-ç
| \_`-"
)/@mmm||
\nn \nn FOE-Belgium : http://www.amisdelaterre.be
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-19-2008, 03:38 PM
Realto Margarino
 
Posts: n/a
Default Re: compiling/installing a kernel on a sub-tree

Gauthier <alouest.du.soleil@nospam_skynet.be> wrote:

> I'm trying to build a subtree on my system, that could be
> exported for a diskless workstation. If I compile a new kernel,
> what is the comand/option to install the kernel, the modules (and
> the system map ?) to this place rather than on the root system ?


rdev - use man rdev to look up the applicable options.

> By the way, is it possible to build packages when one compile
> kernel and modules, so that it could be installed with installpkg
> ?


This would seem to be pointless. Just tar the modules directory.

cordially, as always,

rm
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-19-2008, 03:39 PM
NeoSadist
 
Posts: n/a
Default Re: compiling/installing a kernel on a sub-tree

Gauthier wrote:

> Hello,
>
> I'm trying to build a subtree on my system, that could be exported for a
> diskless workstation. If I compile a new kernel, what is the comand/option
> to install the kernel, the modules (and the system map ?) to this place
> rather than on the root system ?
>
> By the way, is it possible to build packages when one compile kernel and
> modules, so that it could be installed with installpkg ?
>
> thanks in advance,


Check out the .SlackBuild scripts out on Slackware-Current mirrors under
the /source area. You could use those script(s) to build your own kernel,
headers and all, (in theory) and then export the packages to the machine.

--
BOFH Excuse #190: Proprietary Information.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-19-2008, 03:39 PM
Gauthier
 
Posts: n/a
Default Re: compiling/installing a kernel on a sub-tree

Le Sun, 19 Sep 2004 08:49:32 GMT, Realto Margarino <guymacon@IMAmoron.org> a écrit:
>
>> I'm trying to build a subtree on my system, that could be
>> exported for a diskless workstation. If I compile a new kernel,
>> what is the comand/option to install the kernel, the modules (and
>> the system map ?) to this place rather than on the root system ?

>
> rdev - use man rdev to look up the applicable options.


Using rdev was not what I mean ; when you build a kernel, the steps are
"make menuconfig - make dep - make bzImage - make modules - make
modules_install". I was wondering if there was an option when you do the
"make modules_install" to specify another target than the root.

--
^^ Gauthier
(_____/°°-ç
| \_`-"
)/@mmm||
\nn \nn FOE-Belgium : http://www.amisdelaterre.be
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-19-2008, 03:40 PM
Old Man
 
Posts: n/a
Default Re: compiling/installing a kernel on a sub-tree

Gauthier wrote:

> Using rdev was not what I mean ; when you build a kernel, the steps are
> "make menuconfig - make dep - make bzImage - make modules - make
> modules_install". I was wondering if there was an option when you do the
> "make modules_install" to specify another target than the root.


chroot ?

--
Old Man
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 02-19-2008, 03:40 PM
Trygve Selmer
 
Posts: n/a
Default Re: compiling/installing a kernel on a sub-tree

Gauthier wrote:
> Le Sun, 19 Sep 2004 08:49:32 GMT, Realto Margarino <guymacon@IMAmoron.org> a écrit:
>
>>>I'm trying to build a subtree on my system, that could be
>>>exported for a diskless workstation. If I compile a new kernel,
>>>what is the comand/option to install the kernel, the modules (and
>>>the system map ?) to this place rather than on the root system ?

>>
>>rdev - use man rdev to look up the applicable options.

>
> Using rdev was not what I mean ; when you build a kernel, the steps are
> "make menuconfig - make dep - make bzImage - make modules - make
> modules_install". I was wondering if there was an option when you do the
> "make modules_install" to specify another target than the root.


Make a directory like "/tmp/new-kernel". After the usual "make bzImage"
and "make modules", copy the new kernel and System.map over and do a
"make INSTALL_MOD_PATH=/tmp/new-kernel modules_install". You can now
make a tgz-package by tar'ing the directory "/tmp/new-kernel".




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 10:56 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com