Re: config(8) KERNEL setting

2003-09-05 Thread Daniel C. Sobral
Doug White wrote:
On Thu, 4 Sep 2003, John Birrell wrote:


however kern.post.mk only uses KERNEL_KO, so even though config(8) has
set KERNEL for me, that name only gets used for the boot directory.
There doesn't seem to be any way of getting KERNEL_KO set from the
kernel config file.


If you change the name of the kernel binary itself, loader won't be able
to find it.  By renaming the /boot directory it goes into it is Doing the
Right Thing.
Huh?

kernel=kernel # /boot sub-directory containing kernel and modules
bootfile=kernel   # Kernel name (possibly absolute path)
I note that loader.conf(5) is completely out of date in this regard. 
What can I say? I'm lazy. :-)

In 5.X, the kernel is the core kernel binary and the modules built with
it.  All of it goes into the same directory.  The /modules directory is
unused and should be deleted. When you specify a kernel to load in loader,
you ask for the /boot/foo directory name (load foo) and loader does the
rest.


--
Daniel C. Sobral   (8-DCS)
Gerencia de Operacoes
Divisao de Comunicacao de Dados
Coordenacao de Seguranca
VIVO Centro Oeste Norte
Fones: 55-61-313-7654/Cel: 55-61-9618-0904
E-mail: [EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]
Outros:
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]
She stood on the tracks
Waving her arms
Leading me to that third rail shock
Quick as a wink
She changed her mind
She gave me a night
That's all it was
What will it take until I stop
Kidding myself
Wasting my time
There's nothing else I can do
'Cause I'm doing it all for Leyna
I don't want anyone new
'Cause I'm living it all for Leyna
There's nothing in it for you
'Cause I'm giving it all to Leyna
-- Billy Joel, All for Leyna (Glass Houses)
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: config(8) KERNEL setting

2003-09-04 Thread Dag-Erling Smørgrav
John Birrell [EMAIL PROTECTED] writes:
 It would make more sense to me if kern.pre.mk contained this:

 KERNEL?=  kernel
 KERNEL_KO?=   ${KERNEL}
 KODIR?=   /boot/${KERNEL}

 Comments?

I have

Index: kern.pre.mk
===
RCS file: /home/ncvs/src/sys/conf/kern.pre.mk,v
retrieving revision 1.34
diff -u -r1.34 kern.pre.mk
--- kern.pre.mk 22 Aug 2003 15:41:44 -  1.34
+++ kern.pre.mk 29 Aug 2003 21:06:02 -
@@ -9,7 +9,8 @@
 # Can be overridden by makeoptions or /etc/make.conf
 KERNEL_KO?=kernel
 KERNEL?=   kernel
-KODIR?=/boot/${KERNEL}
+KODIR?=/boot/${KERN_IDENT}
+BOOTKODIR?=/boot/${KERNEL}

 M= ${MACHINE_ARCH}
 

and in /boot/loader.conf:

kernel=dwp_smp
#kernel=dwp_up

For old times' sake, I also have /boot/kernel as a symlink to
/boot/dwp_smp.  

I used to have a more extensive patch which created that symlink at
kernel install time so you wouldn't need to modify loader.conf, and
the system would boot whichever kernel you installed last.  I removed
that part because I couldn't be bothered to make it work correctly
with all combinations of make install / make reinstall and
pre-existing /boot/kernel directory or symlink.

DES
-- 
Dag-Erling Smørgrav - [EMAIL PROTECTED]
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: config(8) KERNEL setting

2003-09-04 Thread John Birrell
On Thu, Sep 04, 2003 at 12:31:33PM +0200, Dag-Erling Sm?rgrav wrote:
 I have
 
 Index: kern.pre.mk
 ===
 RCS file: /home/ncvs/src/sys/conf/kern.pre.mk,v
 retrieving revision 1.34
 diff -u -r1.34 kern.pre.mk
 --- kern.pre.mk 22 Aug 2003 15:41:44 -  1.34
 +++ kern.pre.mk 29 Aug 2003 21:06:02 -
 @@ -9,7 +9,8 @@
  # Can be overridden by makeoptions or /etc/make.conf
  KERNEL_KO?=kernel
  KERNEL?=   kernel
 -KODIR?=/boot/${KERNEL}
 +KODIR?=/boot/${KERN_IDENT}
 +BOOTKODIR?=/boot/${KERNEL}
 
  M= ${MACHINE_ARCH}
  
 
 and in /boot/loader.conf:
 
 kernel=dwp_smp
 #kernel=dwp_up

My kernel is intended for netbooting and the loader isn't needed.

It seems what I really should be using is:

makeoptions KERNEL_KO=foo

That gives me what I need.

-- 
John Birrell
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: config(8) KERNEL setting

2003-09-04 Thread David O'Brien
On Wed, Sep 03, 2003 at 09:22:09PM -0700, Doug White wrote:
 On Thu, 4 Sep 2003, John Birrell wrote:
 
  however kern.post.mk only uses KERNEL_KO, so even though config(8) has
  set KERNEL for me, that name only gets used for the boot directory.
  There doesn't seem to be any way of getting KERNEL_KO set from the
  kernel config file.
 
 If you change the name of the kernel binary itself, loader won't be able
 to find it.

Depends on what you rename it to -- mine is kernel.ko to stress it
really is just another module.  Our loader finds it fine (as .ko is one
of the supported extentions).
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to [EMAIL PROTECTED]


config(8) KERNEL setting

2003-09-03 Thread John Birrell
In a RELENG_4 kernel build, I'm accustomed to setting 'config foo' in
a kernel configuration file and ending up with a kernel called 'foo'.

In current, kern.pre.mk contains:

KERNEL_KO?= kernel
KERNEL?=kernel
KODIR?= /boot/${KERNEL}

however kern.post.mk only uses KERNEL_KO, so even though config(8) has
set KERNEL for me, that name only gets used for the boot directory.
There doesn't seem to be any way of getting KERNEL_KO set from the
kernel config file.

It would make more sense to me if kern.pre.mk contained this:

KERNEL?=kernel
KERNEL_KO?= ${KERNEL}
KODIR?= /boot/${KERNEL}

Comments?

-- 
John Birrell
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: config(8) KERNEL setting

2003-09-03 Thread Doug White
On Thu, 4 Sep 2003, John Birrell wrote:

 however kern.post.mk only uses KERNEL_KO, so even though config(8) has
 set KERNEL for me, that name only gets used for the boot directory.
 There doesn't seem to be any way of getting KERNEL_KO set from the
 kernel config file.

If you change the name of the kernel binary itself, loader won't be able
to find it.  By renaming the /boot directory it goes into it is Doing the
Right Thing.

In 5.X, the kernel is the core kernel binary and the modules built with
it.  All of it goes into the same directory.  The /modules directory is
unused and should be deleted. When you specify a kernel to load in loader,
you ask for the /boot/foo directory name (load foo) and loader does the
rest.

--
Doug White|  FreeBSD: The Power to Serve
[EMAIL PROTECTED]  |  www.FreeBSD.org
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to [EMAIL PROTECTED]