Operating System - HP-UX
1838005 Members
5613 Online
110124 Solutions
New Discussion

Re: mk_kernel Error message

 
SOLVED
Go to solution
Gian Filippo
Advisor

mk_kernel Error message

Hi all,
I'm trying to build a new kernel on a HP 11i, but when I run the command mk_kernel as below:
# /usr/sbin/mk_kernel -v -s system
I got the error message:
Building a new kernel based on template file "system"
config failure.
Someone can help me???
Thank you in advance for any help...
8 REPLIES 8
Steven E. Protter
Exalted Contributor

Re: mk_kernel Error message

Looks like you may be missing some of the basic files or have not followed the instructions for moving files around as you built your kernel.

Here is a general guide:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=105739

#cd /stand
#cp vmunix vmunix.old
#cp system system.old
#cd build

#this is the changed line.
#/usr/lbin/sysadm/system_prep -s system

Edit system file and make changes here as per ur require ment. Imeand addition/Deletion of devices. Then
#mk_kernel -s system
For more information see the man page of mk_kernel

Now one new kernel will be created in /stand/build directory. Copy this to original location
#cd /stand/build
#cp vmunix_test /stand/vmunix
#cp system /stand

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Gian Filippo
Advisor

Re: mk_kernel Error message

Hi SEP,
I followed the general guide that you suggested me, but I got the same error...
Navin Bhat_2
Trusted Contributor

Re: mk_kernel Error message

Is this the complete error message or was it accompanied with another message?
Gian Filippo
Advisor

Re: mk_kernel Error message

Yes,
this is the complete error message that I found using the -v (verbose) parameter.
Shaikh Imran
Honored Contributor
Solution

Re: mk_kernel Error message

Hi,
Well you can just check few things:
Are these files present in /stand/build
files such as conf.c, conf.o, and tune.h ?
Is the path /usr/conf/lib set ?
At the last you can try if get the same error if you try from sam.

Regards,



I'll sleep when i am dead.
ketan_5
Valued Contributor

Re: mk_kernel Error message

Pls check adequate space availability in /stand.
Gian Filippo
Advisor

Re: mk_kernel Error message

Maybe the problem is the space availabitity! I tryied the command:
# /usr/sbin/mk_kernel -o /home -v -s system
to redirect the new kernel to /home but I got the error:
ERROR: Cannot place a kernel in "/home".
It must either not exist or else exist as an ordinary file.
Since the directory home exists my question is: Should it be a particolar directory? If yes what kind of directory?
Someone can help me?
Shaikh Imran
Honored Contributor

Re: mk_kernel Error message

Hi,
maybe you have tried and maybe it's simple
But Just try using this:
#mk_kernel -o /home/vmunix_test

regards,

I'll sleep when i am dead.