System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

Re: Error when building kernel

 
Highlighted
Occasional Contributor

Error when building kernel

/stand/build#mk_kernel -s ./system
config: incorrect format version in /stand/system.d/krm


Does anyone know what this means?
6 REPLIES 6
Highlighted
Honored Contributor

Re: Error when building kernel

Hmmm..maybe my eyes are playing tricks on me...but...seems to me your line says:

mk_kernel -s ./system

So .. what's with the period slash system? Is your system file maybe under /stand and you were backing up one directory level..and missed the xtra period? Or is your system file under /stand/build (which would be my guess..) and maybe you didn't need to type the -s (and so on..)

Just wonderin...
Rita


Highlighted
Valued Contributor

Re: Error when building kernel

The command seems to be OK.
What is the contents of your krm file?
Highlighted
Valued Contributor

Re: Error when building kernel

It looks like you are in /stand/build when mk_kernel is invoked - in that case syntax is wrong it should be

mk_kernel -s ../system

the system file resides in /stand not /stand/build

Keith
Highlighted
Valued Contributor

Re: Error when building kernel

Keith,
It is recommended not to make changed in /stand/system for building the new kernel.
The copy of system file should be created in /stand/build using:

cd /stand/build
/usr/lbin/sysadm/system_prep -v -s system

Anyway, if the file was missing the error would be:
ERROR: Cannot find file "./system".
Highlighted
Occasional Contributor

Re: Error when building kernel

Thanks for everyones reply! My customer was doing:
cd /stand/build
/usr/lbin/sysadm/system_prep -v -s system

I will find out what the /stand/system.d/krm file has.
Highlighted
Regular Advisor

Re: Error when building kernel

All -

your reply to run:
# cd /stand/build
# /usr/lbin/sysadmin/system_prep -v -s system

helped me when I was searching the ITRC for this error from swinstall over a weekend:

{Building a new kernel bases on template file "/stand/system" config: cannot find file -- /stand/system.d/krm config failure.
The command "/usr/sbin/mk_kernel", which is used to rebuild the kernel, has failed. Because kernel-related filesets were installed, this command must be executed by "swinstall", without failures, before the load can continue. Check the above output for details about the failure.}

thanks. ITRC forums rock!