1836599 Members
1874 Online
110102 Solutions
New Discussion

Error Buiding New Kernel

 
SOLVED
Go to solution
Chris Hinnen
Frequent Advisor

Error Buiding New Kernel

I am now having another problem. I am trying to increase the number of semaphores allowed because Oracle will not start. But when rebuilding the kernel I get the following error:

Cannot build a kernel using /usr/sbin/config. The standard output of the command is shown below:
Usage: bstab input_data symbol_cnt strtbl_size kernel_file output_file

Stop.
config: make did an exit(1)

The command exited with exitcode -71.

Any ideas?

Chris Hinnen
6 REPLIES 6
Stan Britney
New Member
Solution

Re: Error Buiding New Kernel

Chris,

To rebuild the HP-UX kernal, do the following:

1. cd /stand/build
2. create the kernal parameter system file
/usr/lbin/sysadm/system_prep -s system
3. make your changes to the system file
vi system
4. build the new kernal
/usr/sbin/mk_kernel -s ./system
5. back up the old kernel and sys files
mv /stan/system /stand/system.prev
mv /stand/vmunix /stand/vmunix.prev
6. install the new kernel
cp /stand/build/system /stand
cp /stand/build/vmunix_test /stand/vmunix
7. reboot system
8. verify the kernel changes using sysdef

Check out the sysdef and mk_kernel man pages. You can also use the SAM. Hopefully this helps you.
Chris Hinnen
Frequent Advisor

Re: Error Buiding New Kernel

I used SAM to increase the parameter and had it rebuild the kernel for me but that is when I got this error message. Would doing it manually be any different?

Chris
Peggy Fong
Respected Contributor

Re: Error Buiding New Kernel

Yes - building the kernel manually is different than through SAM. If you can do it manually then there is a bug in SAM and no problem on your system... I have experienced that situation once - a driver affected the ability for SAM to do the compile but it could be done without SAM...good luck and let us know.
thanks,
Peg
Stan Britney
New Member

Re: Error Buiding New Kernel

Chris,

Peggy is right. There have been some problems in the past using SAM to rebuild the kernel. If you have all the latest patches/updates for your server, SAM should work. I have successfully rebuilt the kernel using SAM in the past but I prefer to use the manual method.
Peggy Fong
Respected Contributor

Re: Error Buiding New Kernel

Chris
Did we help at all? Or did you find an answer elsewhere? Is your problem fixed? I am always curious when someone runs into trouble. Will you post what happened and if we did help please assign points so we know - this helps the whole forum, especially newbies who might run into the same problem. I really do want to know what the outcome of your situation was - we can all learn from these problems we run into. Thanks,
Peggy
Chris Hinnen
Frequent Advisor

Re: Error Buiding New Kernel

Yes rebuilding the kernel by hand seemed to fix the problem. The kernel built fine and everything is OK now. Thanks for the help.