1842308 Members
2363 Online
110188 Solutions
New Discussion

Building the kernel

 
SOLVED
Go to solution
castro_2
Regular Advisor

Building the kernel

I want to re-build the kernel with this commands.

# cd /stand/build
# /usr/lbin/sysadm/system_prep -s system
# vi system (perform required changes)
# /usr/sbin/mk_kernel -s /stand/build/system
# mv /stand/system /stand/system.prev
# mv /stand/vmunix /stand/vmunix.prev
# mv system ../
# /usr/sbin/kmupdate /stand/build/vmunix_test
# Reboot
But when I reboot don`t start up, show me the error /stand/vmunix not found

I start up whith "hpux /stand/vmunix.prev"

but why?
Thanks
6 REPLIES 6
Steven E. Protter
Exalted Contributor

Re: Building the kernel

If there is somethiong wrong with your new kernel, you need to boot off the backup kernel, which you apparently already have done.

If you want your system to boot normally without intervention, you need to cd /stand
cp vmunix.prev vmunix

You may need to back out that copy of the system file because it might be corrupt.

When you boot your system off the new kernel, do you get a message on the console, like System Panic or something. That's a sign of a bad kernel, which makes it backout time.

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
Patrick Wallek
Honored Contributor

Re: Building the kernel

Another thing just to check. After you run kmupdate, does /stand/vmunix exist?
Michael Steele_2
Honored Contributor

Re: Building the kernel

First, its system_prep for 10.20 and 11.00 and kmtune for 11.00 and above. System_prep won't work in 11.11.

How much room is there in /stand? Did it fail for lack of space?

Do you see your changes with lsdev?

lsdev | grep -i driver

What is the time stamp on /stand/build/vmunix_test? On /stand/vmunix? On /stand/vmunix.prev? If the time stamps are the same on /stand/vmunix and /stand/vmunix.prev then this was a pre-existing problem and someone has overwritten vmunix.

Were patches loaded that required a reboot, now or previously, AND FAIL TO REBOOOT at this time? Check /var/adm/sw/swinstall.log and swagent.log.
Support Fatherhood - Stop Family Law
Robert-Jan Goossens
Honored Contributor

Re: Building the kernel

Hi all,

I'm not sure but in my opinion you should copy instead of moving.

# mv /stand/system /stand/system.prev
# mv /stand/vmunix /stand/vmunix.prev
# mv system ../

Robert-Jan.
Patrick Wallek
Honored Contributor
Solution

Re: Building the kernel

Check out TKB document KBRC00001138 for details on building a static kernel on HP-UX 11 and a DLKM kernel on HP-UX 11.

http://www2.itrc.hp.com:80/service/cki/docDisplay.do?docLocale=en_US&docId=200000065680020
castro_2
Regular Advisor

Re: Building the kernel

SO version B.11.00. when I do kmupdate the /stand/vmunix don't exist.
Thanks